Skip to main content

Python SDK for the LifeOmic platform

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.

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()

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

Uploaded Source

Built Distribution

phc-0.33.4-py3-none-any.whl (117.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phc-0.33.4.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for phc-0.33.4.tar.gz
Algorithm Hash digest
SHA256 67d90ad14f286bea1bbb710d8c49cc6cd7e56063b2842735c8227d7314032310
MD5 c6eb8442999a6c04a3238e7532c04657
BLAKE2b-256 a324a6e1ad7e9887e6910382d6d736c4d2d812d78a90b0a98d9b9af9c55bace4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phc-0.33.4-py3-none-any.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for phc-0.33.4-py3-none-any.whl
Algorithm Hash digest
SHA256 773412f6d616c76ec20f7f06d441ab717ef894219102f138a942ce4881d3f175
MD5 d784e2193ce08c3b0bbca6862d1864ac
BLAKE2b-256 1c750d9afa7433fcad6739b39c0ac8510396a3790ca5d3da872e34042c91bc96

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