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

Uploaded Source

Built Distribution

phc-0.35.0-py3-none-any.whl (118.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phc-0.35.0.tar.gz
  • Upload date:
  • Size: 73.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.35.0.tar.gz
Algorithm Hash digest
SHA256 c6a6f6fe021ffa43ceb815de5a10c6e053c8d99953d48c6b8c448331c2345394
MD5 fe7ba42e7a88a78d12b5586195a5c4cf
BLAKE2b-256 732f62f094b76a0e8a961bdba6e5de861427c55d15ba6c52a9c327a99b2b2991

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phc-0.35.0-py3-none-any.whl
  • Upload date:
  • Size: 118.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.35.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff75fbcda908c5f56259f353c761ae8b5ccde67deed9d1a3378d874b90c90fad
MD5 32c61465333521b7f1945072c88fb502
BLAKE2b-256 80c940d9ee7e5a331d37a6a20ef3f1897d711c52af0495fbfdf6beeea67cb9c7

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