halchemy for Python
HAL for humans
Do you have an API that serves data following the HAL specification? The halchemy library makes it easy for your client to make the most of that API.
Getting Started
Install halchemy using the package manager of your chosen language:
pip install halchemy
In your code, create an Api object with the URL of your API.
from halchemy import Api
api = Api('http://example.org/api')
root = api.root.get() # get the root resource
people = api.follow(root).to('people').get() # follow the people rel to get the list of people
# Issue a refund of $5 to everyone
for person in people['_items']:
account = api.follow(person).to('account').get()
api.follow(account).to('deposit').post({'amount':5.00})
print(f"{person['name']} has a new balance of ${account['balance']}")
Read the docs to learn more!
Metadata
Release files for halchemy 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| halchemy-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Release files / halchemy-1.0.9-py3-none-any.whl
| Download URL | halchemy-1.0.9-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d49e4ebec9a174b322798c4221de90f3999ac1f962198ee3e3a4971b6c609ec5
|
|
BLAKE2b-256 checksum How to use checksums |
5d7dc144177e82c833cd6bcd96144bbe2651b9f5a7cacb0d86aaebc9d1c92b1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for halchemy 1.0.9
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.