Skip to main content

Python Client Libary to use HuBMAP web services

Project description

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.

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

hubmap_sdk-1.0.11.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

hubmap_sdk-1.0.11-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file hubmap_sdk-1.0.11.tar.gz.

File metadata

  • Download URL: hubmap_sdk-1.0.11.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for hubmap_sdk-1.0.11.tar.gz
Algorithm Hash digest
SHA256 78b28c0365a7c323bf7eaa840cb167112046d5b7ffcceb7602317c958bf6df2e
MD5 0cb53af6ee71f5ec6037709afef21502
BLAKE2b-256 526979f731415316e06e90d84143f49a2ff4182239196939b7f8dfeb377106c5

See more details on using hashes here.

File details

Details for the file hubmap_sdk-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: hubmap_sdk-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for hubmap_sdk-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5697fea4126a0bc84aa7c627388c5c351d59d987f7a4cf8325cdac85bb83359d
MD5 ac5a7c155266124bfd1d2769435d2b8a
BLAKE2b-256 97f3bf01aa68521dc215b3704ae5799a24da06ea7ccbb8524e8a20fe3cdf0cab

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