Skip to main content

A Python client for interacting with CFF server.

Project description

CFF SDK

The cffsdk is a Python client for interacting with the Common Federation Framework (CFF) server. It provides helper functions to create and manage cross-facility workflows.

Installation

Install from PyPI

To install the Python client from PyPI:

pip install cffsdk

Install from Source

To install the latest Python client corresponding to this repository:

cd client
pip install .

Build and Upload the Package

To create the latest Python client wheel and upload it:

pip install setuptools wheel twine
python3 setup.py sdist bdist_wheel
twine upload dist/*

Usage

Here is an example of how to use the cffsdk:

from cffsdk import cffsdk

client = cffsdk(base_url="http://127.0.0.1:8000")
print(client.get_root())

Running Unit Tests

To run the SDK client unit tests:

# Activate your Python environment
conda activate cff

# Navigate to the client directory
cd client

# Install the package
pip install .

# Run the tests
python3 -m unittest discover -s tests

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

cffsdk-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cffsdk-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cffsdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for cffsdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03f6a70314e2ab8673909c45b68a41e43e5e61e91d7fd4d9e73eac1364c93da3
MD5 a3706c0f9e42a8fb15a13a903b261210
BLAKE2b-256 ea8ba4809970d038346ef6124d1fcc5002730bf114ef3629fbb2b0f4733dbc7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cffsdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for cffsdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df364ac9c2e0c25e1415e25ad57ef4aa0322635fc78307000ad6b3f4210ab08e
MD5 8284801ffa15d29fe1578f456941a317
BLAKE2b-256 35aae0593104914aafbac7f4a20faa86e882f19b32ef58a261041da212ac65a4

See more details on using hashes here.

Supported by

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