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.1.tar.gz (6.3 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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for cffsdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 07d75c9aaacd0068a06b7ca6725060863da87ac272ea81ee9daf9405b043b7b0
MD5 0f97bae0220c9e763d5ec9c2142b5960
BLAKE2b-256 4f513fee2bff7334433e8efaf7b81b5633be94f0dfe947fd7742104ed9413f8d

See more details on using hashes here.

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

Hashes for cffsdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c576447055b9d61e462695e863de208e8b26a774e633546e981c79738b74a2cc
MD5 9127126336f905b33668b104d3df1378
BLAKE2b-256 e7c77cbfecf8f2d0b4e983d1a0c59ab14afd6a84830b7c85f8a8391fa2ed421a

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