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-1.5.0.tar.gz (76.0 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.5.0-py3-none-any.whl (121.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phc-1.5.0.tar.gz
  • Upload date:
  • Size: 76.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for phc-1.5.0.tar.gz
Algorithm Hash digest
SHA256 6353077ad44232d173c6e2134f15fd951d456fc8121a1ed73a31201fd63bcd36
MD5 5b1c9de29c9ace080128560c86df5f3f
BLAKE2b-256 5485f6be3c01e951e90ed4ee87bd8eb2d722568bf15cab8df76679b4e418a559

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for phc-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 853b826e91300afc9310532fb430e5c0c21bfa0684e21847a7b31f9e2faf4c47
MD5 f7ac3c6d7ead741a36cafdb5336c47e3
BLAKE2b-256 bb4bb84c43bbedca7a313405d249ea626466f699b0ca1b8c93fb6d83714ffc8b

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