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

Uploaded Source

Built Distribution

phc-0.16.0-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phc-0.16.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for phc-0.16.0.tar.gz
Algorithm Hash digest
SHA256 28c6819d483fc851c159da3724d628f22bca219ab147b23d022750d244fb617b
MD5 a0c6ca47cdec6efdff206b7c270c7e42
BLAKE2b-256 ae3f520e341bf0080d9332d2b2188fb568fead800e8eaf1a4412db108c2f41b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phc-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for phc-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf7daf4f857fdb1abcc53bd3d8f2007d38c1ed83b3c11e41dd868f4ad8f8dacb
MD5 315b8c1677920f77469e0e9a729f639c
BLAKE2b-256 487c9f43dd4351d4be98b696be4517fb4b63056b3a5b30d14545e6cc75342fe1

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