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.10.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

hubmap_sdk-1.0.10-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hubmap_sdk-1.0.10.tar.gz
Algorithm Hash digest
SHA256 445789c847f0a6947b3ae1ebfeb945dc42296fb1005cf4b3731e60e930b8bafa
MD5 09f9c10354ae4c3baea2f3966acaec2b
BLAKE2b-256 6c8db951352bbdcc967fbd9770a4b58e02cd05e9ac9758339333aa6fbf07f2fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hubmap_sdk-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for hubmap_sdk-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1786229c7e6496eae056bd86228efdffae53c1a1190b2362532fb81f2a200a
MD5 135228e7b79bc19773cfd714137550fa
BLAKE2b-256 afbf4a346046ad88078eb5d1f741a3b0daf775ef404944a703fde644c61e892b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page