Skip to main content

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.

CI

SDK ↔ Server Integration

📦 Publish to PyPI

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.

  1. Bump the package version
poetry version patch
  1. Create a matching git tag
git tag v<version number (i.e. 0.1.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

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

File details

Details for the file federated_learning_clinical_safety_sdk-0.1.2.tar.gz.

File metadata

File hashes

Hashes for federated_learning_clinical_safety_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a75061b37b8598d1da8b93c9d46398feb8c785c07efdc566c3a45a66cf9055da
MD5 123261e7cf3310e5e7ba8a045c6a645c
BLAKE2b-256 723e113d4efb46720cdf1e15497f372a6c77e302efb32545192f7e003771d55a

See more details on using hashes here.

File details

Details for the file federated_learning_clinical_safety_sdk-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for federated_learning_clinical_safety_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eaa5db9358dffb222aefdcf5f9733faa735f14e20d1ab9464aea50b808552144
MD5 df246c9fd70be48dd3101a48c8ba6501
BLAKE2b-256 a35004817df1623ad764701dfe00e0a2c4abe946e8f1da4e68c6c8733e70c649

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