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

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

Uploaded Source

Built Distribution

phc-0.21.1-py3-none-any.whl (91.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phc-0.21.1.tar.gz
  • Upload date:
  • Size: 53.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for phc-0.21.1.tar.gz
Algorithm Hash digest
SHA256 7598fcca4153c0c00a6971f64c475239dd57149fad3366518e4e1de84f5124c9
MD5 9813e7632ebcd3e9951c9d99e38f567e
BLAKE2b-256 f9ac789d4eb1f8490148a4843c028e24a44dc89090e8a1c4e795444c1f08d149

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phc-0.21.1-py3-none-any.whl
  • Upload date:
  • Size: 91.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for phc-0.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e472d13d95fe82fd4b88cb9f5bf75dec70b9328eb398de2aad0f9300dd40f1ff
MD5 70268f261a3ec1ed8b74b61e56648841
BLAKE2b-256 83aca5fe9fc32f20fb07654aff79ba809a37dc9c2903e05d3c1ced144a8a2b21

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