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.

Setup

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

make setup

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

Uploaded Source

File details

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

File metadata

  • Download URL: phc-0.3.1.tar.gz
  • Upload date:
  • Size: 10.1 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.3.1.tar.gz
Algorithm Hash digest
SHA256 17a992604330f7ab2429724b513ed65edc629addec133a4ea11a570ef44bd021
MD5 3c8935e9f4500d525b82ecaa38177bf1
BLAKE2b-256 5b002ad2e359a356ba772e4c0eb2a18840425b6a8bac53baa371140e20a9b44c

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