Skip to content

The phc-sdk-py is a developer kit for interfacing with the PHC API on Python 3.8 and above.

License

Notifications You must be signed in to change notification settings

lifeomic/phc-sdk-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

670c356 · Mar 20, 2025
Dec 17, 2024
Dec 17, 2024
Oct 29, 2019
Mar 20, 2025
Dec 17, 2024
Dec 17, 2024
Nov 27, 2019
May 29, 2024
May 29, 2024
Mar 20, 2025
Oct 9, 2019
Jul 31, 2023
Oct 9, 2019
Oct 9, 2019
Dec 17, 2024
Mar 10, 2025
Dec 17, 2024
Dec 17, 2024
Mar 20, 2025

Repository files navigation

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.