Skip to main content

montagu-py

Build Status codecov.io

Python client for Montagu API.

Initial use case is for authentication only.

Usage

The client currently supports authenticating with Montagu, and a single example endpoint.

To authenticate, instantiate the MontaguAPI class, providing base url, username and password as parameters:

api = MontaguAPI('http://localhost:8080', 'test.user@example.com', 'password')

The Montagu authentication token can be accessed on the api object:

token = api.token

The example endpoint returns a list of all diseases:

diseases = api.diseases()

Development

Clone the repo anywhere and install dependencies with (from the repo root):

pip3 install --user -r requirements.txt

Run dependencies (a local copy of Montagu API and database) with scripts/run-dev-dependencies.sh. This will also add a test user to Montagu.

Testing

Run dependencies as described above, then run pytest

Publishing

This repository is published to PyPI.

Building and publishing is done manually, with local sources. See general instructions for publishing Python packages here.

Publishing configuration can be found in setup.py. Remember to increment version when publishing a new build.

Some troubleshooting tips for publishing Python packages can be found in the consellations repo.

Metadata

Release files for montagu 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for montagu 0.0.3
File Size Uploaded Provenance
montagu-0.0.3.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for montagu 0.0.3
File Interpreter ABI Platform
montagu-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / montagu-0.0.3.tar.gz

Download URL montagu-0.0.3.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8b55462edc441e90535bf96971368521756c3987dc5ebc074a5b14220a310ece
BLAKE2b-256 checksum
How to use checksums
ed9849a34ab0272e8628656f81090256a9f856d3d700796b805ec006ff8ef27f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

Release files / montagu-0.0.3-py3-none-any.whl

Download URL montagu-0.0.3-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
818f72ea3b257fd6776a8b056908b87177f68e124c096a33e61701a0aa641127
BLAKE2b-256 checksum
How to use checksums
9ee48431fcae545f6f80c3c5d02801054e1e730e6e50b00d5661df0fa71e8947
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

Security for montagu 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page