Skip to main content

Python interface for the PHC.

Project description

phc-sdk-py

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

Table of contents

  1. Project Status
  2. Getting Started
    1. Dependencies
    2. Getting the Source
    3. Development
    4. Installation
    5. Usage
  3. Release Process
    1. Versioning
  4. Contributing
  5. License
  6. Authors
  7. Acknowledgements

Project Status

GitHub Travis (.org) branch PyPI status GitHub release

Back to top

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

Back to top

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.

Running tests

make test

Linting

make lint

Back to top

Installation

pip3 install phc

Back to top

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 import Accounts

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

Back to top

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.

Back to top

Contributing

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

Back to top

License

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

Back to top

Authors

See the list of contributors who participate in this project.

Back to top

Acknowledgements

This project is built with the following:

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

Back to top

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

Uploaded Source

File details

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

File metadata

  • Download URL: phc-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

File hashes

Hashes for phc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3c6c002bed6b0334c02c0b0b8ced9f45b401d0c1193cf02fb1010d08f39006dc
MD5 855b52c599cbd74b897ebfd8750ee0a7
BLAKE2b-256 154500c012bd2fc8c93ca0fad5683b0713c19ff9cbd92c9e48fdd00441caa4b4

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