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


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phc-1.6.0.tar.gz (76.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phc-1.6.0-py3-none-any.whl (122.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phc-1.6.0.tar.gz
  • Upload date:
  • Size: 76.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.14.0-1017-azure

File hashes

Hashes for phc-1.6.0.tar.gz
Algorithm Hash digest
SHA256 bc90eb2d926d248897dd1f8b9243fa08efd10305c7db71be4782c07ac51972a7
MD5 737551b575ec2fbf38bb01aa17078428
BLAKE2b-256 3cd82e5458982c3962049e0742e812da581d35b75414238b7ec68e8efd54fda1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phc-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 122.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.14.0-1017-azure

File hashes

Hashes for phc-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 971993b822c3e7e2fa9d5e90813b6be3028349e73378f8e5f0abb07ae65b6f12
MD5 0a951de7bed4c7d38ec2004394d2754e
BLAKE2b-256 f0d6f0fe465b4835d39556c9ee6d3706b22b17ece2e66abb5596d063bd7d286b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page