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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cffsdk-0.1.1.tar.gz.
File metadata
- Download URL: cffsdk-0.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07d75c9aaacd0068a06b7ca6725060863da87ac272ea81ee9daf9405b043b7b0
|
|
| MD5 |
0f97bae0220c9e763d5ec9c2142b5960
|
|
| BLAKE2b-256 |
4f513fee2bff7334433e8efaf7b81b5633be94f0dfe947fd7742104ed9413f8d
|
File details
Details for the file cffsdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cffsdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c576447055b9d61e462695e863de208e8b26a774e633546e981c79738b74a2cc
|
|
| MD5 |
9127126336f905b33668b104d3df1378
|
|
| BLAKE2b-256 |
e7c77cbfecf8f2d0b4e983d1a0c59ab14afd6a84830b7c85f8a8391fa2ed421a
|