Skip to main content

FastrPI is a client to interact with a FastrPI repository storing Fastr Networks and (Dockerized) Tools.

Project description

The package fastrpi is the client to interact with the FastrPI, the Fastr Package Index, where Fastr Networks, Tools and Datatypes are gathered to use with Fastr. In the FastrPI repository the Fastr Network, Tool and Datatype definitions are stored, as well as Dockerized versions of the Fastr Tools. By using the FastrPI client the networks can easily be retrieved and run using either Docker or Singularity.

The code can be found on Gitlab and the documentation is available through ReadTheDocs.

The FastrPI repository itself is currently not open to the public.

Install

To use fastrpi it is necessary to have Git (>=1.7.0) installed and either Docker or Singularity. Install and set up FastrPI by running: .. codeblock:

pip install fastrpi
fastrpi init

During the initialization process you will be guided through the setup process. To use the private repository and to publish packages you will need to set an SSH connection with GitLab and have a GitLab API token. See the documentation for more information.

Usage

The fastrpi package can be used to install, run, create, edit and publish Fastr Tools and Networks. Here is a quick introduction to installing and running a network.

Before you can run a Network it needs to be installed. You can do so by using:

fastrpi install network network_name -v version

During the installation of this network the necessary Tools will also be installed. With this installation the Docker containers associated with these Tools will also be pulled using either Docker or Singularity. The available Networks and Tools in the FastrPI repository can be viewed using fastrpi list networks and fastrpi list tools.

After installing a Network it can be run using:

fastrpi run network_name -v version --source_sink ./source_sink.py

The file ./source_sink.py must contain the functions get_source_data() and get_sink_data(). These functions must return dictionaries containing the Sources and Sinks, as described here.

Further information about the functionality of FastrPI can be found in the documentation.

Known issues

  • The package is not yet tested on Windows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastrpi-1.0.0.tar.gz (46.2 kB view details)

Uploaded Source

Built Distribution

fastrpi-1.0.0-py3-none-any.whl (57.4 kB view details)

Uploaded Python 3

File details

Details for the file fastrpi-1.0.0.tar.gz.

File metadata

  • Download URL: fastrpi-1.0.0.tar.gz
  • Upload date:
  • Size: 46.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for fastrpi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c7e486569b548e29178966c0b6dae4db4ba1348edbfd366f09b53238a592d313
MD5 91244ed3ca6da76ce3697fc8922cccae
BLAKE2b-256 8ef59d754f2d9edb2e8e69b5c1c2d0dba2ce8c1981dab93eb35a6a587d9cbe9a

See more details on using hashes here.

File details

Details for the file fastrpi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fastrpi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 57.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for fastrpi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0da47bc41b1da5c2e950779f3b084564e7f6b8dc5362ec9dc06961413f59d2c
MD5 a8a0b66e7f8d30012d313d5eb7d1d7f6
BLAKE2b-256 60d5c629a46a656b5ebbf2b2ed5c8060d8921b96d956ee3a3f66ea0d2c81719d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page