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.3.tar.gz.

File metadata

File hashes

Hashes for federated_learning_clinical_safety_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a40786eb77e57c927e4f80ff8e0a8a64faf37a2d9eb8342d444e66dbf74ea157
MD5 0234ae82ee2d933cf534562a2aecc517
BLAKE2b-256 46e47b4d2b9bcbec859b3731c03538501ca4d1a7732b7aa42401895274da829a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for federated_learning_clinical_safety_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 218d2ff8550265956e6ca578ab24b27c5fa49aaeb6576069ce31104418db2dfe
MD5 53dcbc9c1818b186c8368b424109445b
BLAKE2b-256 7c16647d1352a652bd4986ff6d03e2f0aaaf67352acbc723fe0716519c675ca5

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