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

Uploaded Source

Built Distribution

phc-0.33.2-py3-none-any.whl (117.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for phc-0.33.2.tar.gz
Algorithm Hash digest
SHA256 5de47e487554c6650b9c36433703fe1f604c3fffd802b4d42a6c3f8ff927fe9f
MD5 7a6e100e6fbf82c3f902352a21d58dda
BLAKE2b-256 b9eb070ef64711956e43d00f2373edac0d1d350ce5fe6c888d12f2322654196b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for phc-0.33.2-py3-none-any.whl
Algorithm Hash digest
SHA256 741d126105094fed3e04f32419c86e97a2ec455d79280399bd913f2e1640df32
MD5 47de1f6db1c622b3cebd57b0ec9b5efb
BLAKE2b-256 1fc9a25a33b2770c659370f5d2fd5d0c2dc5d9f936eb8df22b9dcf1edcd6e990

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