Python SDK for the Federated Learning Clinical Safety API
Project description
🔧 Federated Learning Clinical Safety Server SDK
This is the documentation for the Federated Learning Clinical Safety Dashboard SDK! This project provides a package for interacting with the Federated Learning Clinical Safety Dashboard Server in a type-safe and easy manner.
Using the SDK
The package is available from PyPi.
Installation
pip install federated-learning-clinical-safety-sdk
Getting started
Read our code examples to get an idea of how to use this package.
Development
Prerequisites
Before you begin, ensure you have the following installed:
- Python 3.10+
- Poetry
Installing poetry
Windows NT
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
Then add to path:
%USERPROFILE%\AppData\Roaming\pypoetry\venv\Scripts
Linux/MacOS/Unix-like systems:
pipx install poetry
Publishing new versions
This repo is set up with Continuous Deployment to automatically deploy new packages to PyPi.
To deploy a new version, do the following.
- Bump the package version
poetry version patch
- Create a matching git tag
git tag v<version number (i.e. 0.1.1)>
- Push the tag to GitHub
git push origin v<version number from step 2 (i.e. 0.1.1)>
Integration testing
To test the SDK works with the server integration testing with docker has been added.
This will also run as part of the GitHub CI platform.
export API_BASE_URL="http://localhost:8000/api"
export SDK_TEST_TOKEN=<token from your live instance>
poetry install
poetry run pytest src/tests/test_integration.py -q
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
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 federated_learning_clinical_safety_sdk-0.1.2.tar.gz.
File metadata
- Download URL: federated_learning_clinical_safety_sdk-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a75061b37b8598d1da8b93c9d46398feb8c785c07efdc566c3a45a66cf9055da
|
|
| MD5 |
123261e7cf3310e5e7ba8a045c6a645c
|
|
| BLAKE2b-256 |
723e113d4efb46720cdf1e15497f372a6c77e302efb32545192f7e003771d55a
|
File details
Details for the file federated_learning_clinical_safety_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: federated_learning_clinical_safety_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaa5db9358dffb222aefdcf5f9733faa735f14e20d1ab9464aea50b808552144
|
|
| MD5 |
df246c9fd70be48dd3101a48c8ba6501
|
|
| BLAKE2b-256 |
a35004817df1623ad764701dfe00e0a2c4abe946e8f1da4e68c6c8733e70c649
|