The phc-sdk-py is a developer kit for interfacing with the PHC API on Python 3.7 and above.
- Python 3 version >= 3.8
This project is hosted on GitHub.
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()
We encourage public contributions! Please review CONTRIBUTING.md and CODE_OF_CONDUCT.md for details on our code of conduct and development process.
This project is licensed under the MIT License - see LICENSE file for details.
See the list of contributors who participate in this project.
This project is built with the following:
- aiohttp - Asynchronous HTTP Client/Server for asyncio and Python.