Skip to main content

Python interface for the PHC.

Project description

PHC SDK for Python

The phc-sdk-py is a developer kit for interfacing with the PHC API on Python 3.7 and above.

Project Status

GitHub PyPI status Downloads GitHub release Docs User Guides

Getting Started

Dependencies

Getting the Source

This project is hosted on GitHub. You can clone this project directly using this command:

git clone git@github.com:lifeomic/phc-sdk-py.git

Development

Python environments are managed using virtualenv. Be sure to have this installed first pip install virtualenv. The makefile will setup the environment for the targets listed below.

Setup

This installs some pre-commit hooks that will format and lint new changes.

make setup

Running tests

make test

Linting

make lint

Installation

pip install phc

Usage

A Session needs to be created first that stores the token and account information needed to access the PHC API. One can currently using API Key tokens generated from the PHC Account, or OAuth tokens generated using the CLI.

from phc import Session

session = Session(token=<TOKEN VALUE>, account="myaccount")

Once a Session is created, you can then access the different parts of the platform.

from phc.services import Accounts

accounts = Accounts(session)
myaccounts = accounts.get_list()

Release Process

Releases are generally created with each merged PR. Packages for each release are published to PyPi. See CHANGELOG.md for release notes.

Versioning

This project uses Semantic Versioning.

Contributing

We encourage public contributions! Please review CONTRIBUTING.md and CODE_OF_CONDUCT.md for details on our code of conduct and development process.

License

This project is licensed under the MIT License - see LICENSE file for details.

Authors

See the list of contributors who participate in this project.

Acknowledgements

This project is built with the following:

  • aiohttp - Asynchronous HTTP Client/Server for asyncio and Python.

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

phc-0.23.0.tar.gz (62.4 kB view details)

Uploaded Source

Built Distribution

phc-0.23.0-py3-none-any.whl (104.7 kB view details)

Uploaded Python 3

File details

Details for the file phc-0.23.0.tar.gz.

File metadata

  • Download URL: phc-0.23.0.tar.gz
  • Upload date:
  • Size: 62.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for phc-0.23.0.tar.gz
Algorithm Hash digest
SHA256 6b51bf5d30f9eaf21361de209850780f4c72b058f7e08e0c98459d5865b15614
MD5 38e565b500d9d984a353431a6648acbd
BLAKE2b-256 e31f04947730c4bcce3374fa5aa5b437796a581d094586e3158051db5a5fa61b

See more details on using hashes here.

File details

Details for the file phc-0.23.0-py3-none-any.whl.

File metadata

  • Download URL: phc-0.23.0-py3-none-any.whl
  • Upload date:
  • Size: 104.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for phc-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65393b3decdf4dc5712c88e6c6f3e79de974b4c4ae4d86ca83924d2a3576ac0d
MD5 1c16326f7622792c7ba65bef18b4502c
BLAKE2b-256 3a454c12a6f265f49f73fa5c714cff27e23e8050f44ace736a9110552a8cb665

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