hubmap-sdk
A Python interface to the various HuBMAP web services
Overview
The hubmap sdk is a client library that allows for easy integration of the API's associated with HuBMAP.
Using hubmap-sdk
The hubmap-sdk library is available through PyPi via the command:
pip3 install hubmap-sdk
hubmap-sdk requirements can be found here
Documentation
Documentation and examples can be found here
Building and Publishing hubmap-sdk
SetupTools and Wheel is required to build the sdk distribution. Twine is required to publish to Pypi
Build the distribution directory with:
python3 setup.py sdist bdist_wheel
from within the python-sdk project directory
To publish, from inside the project directory, run:
twine upload dist/*
A prompt to enter login information to the hubmap Pypi account will appear
Files
This code contains:
collection.py Contains the Collection class. This is used for creation and modification of Collection objects.
dataset.py Contains the Dataset class. This is used for creation and modification of Dataset objects.
donor.py Contains the Donor class. This is used for creation and modification of Donor objects.
entity.py Contains the Entity class. This is the base class for the Donor, Dataset, Upload, Collection, and Sample classes
entitysdk.py This file contains the primary methods used to interface with the Entity Api. These methods are part of the EntitySdk class. An instance of this class is needed to use the various methods in this class. For a detailed breakdown of the various methods within entitysdk.py, visit api.docs.hubmapconsortium.org
sample.py Contains the Sample class. This is used for creation and modification of Sample objects.
sdk_helper.py This helper function contains various functions used frequently throughout the sdk. These include make_entity() and make_request()
searchsdk.py This file contains the primary methods used to interface with the Search Api. These methods are part of the EntitySdk class. An instance of this class is needed to use the various methods in this class. For a detailed breakdown of the various methods within searchsdk.py, visit api.docs.hubmapconsortium.org
upload.py Contains the Upload class. This is used for creation and modification of Upload objects.
Metadata
Release files for hubmap-sdk 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hubmap_sdk-1.0.11.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hubmap_sdk-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.5 kB
Release files / hubmap_sdk-1.0.11.tar.gz
| Download URL | hubmap_sdk-1.0.11.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78b28c0365a7c323bf7eaa840cb167112046d5b7ffcceb7602317c958bf6df2e
|
|
BLAKE2b-256 checksum How to use checksums |
526979f731415316e06e90d84143f49a2ff4182239196939b7f8dfeb377106c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / hubmap_sdk-1.0.11-py3-none-any.whl
| Download URL | hubmap_sdk-1.0.11-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5697fea4126a0bc84aa7c627388c5c351d59d987f7a4cf8325cdac85bb83359d
|
|
BLAKE2b-256 checksum How to use checksums |
97f3bf01aa68521dc215b3704ae5799a24da06ea7ccbb8524e8a20fe3cdf0cab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|