Skip to main content

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.

Metadata

Release files for phc 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phc 1.6.0
File Size Uploaded Provenance Actions
phc-1.6.0.tar.gz 76.6 kB Without provenance Details for phc-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phc 1.6.0
File Interpreter ABI Platform Actions
phc-1.6.0-py3-none-any.whl Python 3 none any Details for phc-1.6.0-py3-none-any.whl

Total release size: 199.0 kB

Release files / phc-1.6.0.tar.gz

Download URL phc-1.6.0.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bc90eb2d926d248897dd1f8b9243fa08efd10305c7db71be4782c07ac51972a7
BLAKE2b-256 checksum
How to use checksums
3cd82e5458982c3962049e0742e812da581d35b75414238b7ec68e8efd54fda1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.12.3 Linux/6.14.0-1017-azure

Release files / phc-1.6.0-py3-none-any.whl

Download URL phc-1.6.0-py3-none-any.whl
Size 122.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
971993b822c3e7e2fa9d5e90813b6be3028349e73378f8e5f0abb07ae65b6f12
BLAKE2b-256 checksum
How to use checksums
f0d6f0fe465b4835d39556c9ee6d3706b22b17ece2e66abb5596d063bd7d286b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.12.3 Linux/6.14.0-1017-azure

Security for phc 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page