Skip to main content

Substra CLI for interacting with substra-backend

Project description

Substra

CLI and SDK for interacting with Substra platform.

Table of contents

Install

To install the command line interface and the python sdk, run the following command:

pip install .

To enable Bash completion, you need to put into your .bashrc:

eval "$(_SUBSTRA_COMPLETE=source substra)"

For zsh users add this to your .zshrc:

eval "$(_SUBSTRA_COMPLETE=source_zsh substra)"

From this point onwards, substra command line interface will have autocompletion enabled.

See the local install guide if you need to run a full instance of the Substra platform locally.

Usage

Credentials are required for using this tool.

CLI

substra --help

SDK

import substra

client = substra.Client()
# enjoy...

Documentation

Interacting with the Substra platform:

Implementing your assets in python:

Learning about the Substra platform:

Examples

Contributing

Setup

To setup the project in development mode, run:

pip install -e .[test]

To run all tests, use the following command:

python setup.py test

Documentation

To generate the command line interface documentation, run the following command:

python bin/generate_cli_documentation.py

Use the following command to generate the python sdk documentation:

pydocmd simple substra.sdk+ substra.sdk.Client+ > references/sdk.md

Documentation will be available in docs/ directory.

Deploy

Deployment to pypi.org should be automatic thanks to Travis but if you need to do it manually, here is what you need to do:

rm -rf dist/*
python3 setup.py sdist bdist_wheel
twine upload dist/* --verbose

Project details


Release history Release notifications | RSS feed

This version

0.1.0

Download files

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

Source Distribution

substra-0.1.0.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

substra-0.1.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file substra-0.1.0.tar.gz.

File metadata

  • Download URL: substra-0.1.0.tar.gz
  • Upload date:
  • Size: 44.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for substra-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b8562307487d377d884fa95869a513c22307237ea714a99cc78d9065337828c8
MD5 889f5d47c62b11714dd2ce07ca4dcc31
BLAKE2b-256 a3c07bd29d49b5d7e1c9831ee61027ca12b6f1df992cd6f36ce891d0184afb3f

See more details on using hashes here.

File details

Details for the file substra-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: substra-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for substra-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84c637463b30f5daa6b000db7592ba02f5c5c2a8f54d8a6edbc7ece45e26cec2
MD5 a018d2e97861253872050ebf909bdbaa
BLAKE2b-256 cadebd9ca1c5d86b5f1b7b2c4ccff4fc5437da2cc6b06c046d1a112ccdf554ec

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