Async Python client for the HeadHunter (hh.ru) API with token refresh and typing.
Project description
hhru-async
Async Python client for the HeadHunter (hh.ru) API.
Built on httpx, includes token auto-refresh (OAuth2 refresh token flow), retries, and helpers.
See pyproject.toml for metadata.
Quickstart
pip install hh-api
import asyncio
from hh_api import HHClient, StaticTokenAuth
async def main():
auth = StaticTokenAuth("YOUR_ACCESS_TOKEN")
client = HHClient(auth)
vac = await client.get_vacancy("123456")
print(vac["name"])
await client.aclose()
asyncio.run(main())
Development
Build:
pipx install hatch
hatch build
Publish:
python -m pip install --upgrade twine
twine upload dist/*
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
hh_api-0.1.1.tar.gz
(18.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hh_api-0.1.1-py3-none-any.whl
(19.8 kB
view details)
File details
Details for the file hh_api-0.1.1.tar.gz.
File metadata
- Download URL: hh_api-0.1.1.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f52aba7deee3028f8ac7f3bd613c675ba2436e5d38ad0242ef231d5cf7cb4471
|
|
| MD5 |
b23222cec41cad765ea2a50fbb7b9a92
|
|
| BLAKE2b-256 |
f8435fdac3b8831876073f160a65b83f3a205eb0c839ae4f7370de927a00cfc3
|
File details
Details for the file hh_api-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hh_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89fd0edd361cf49b80a5c7f77515b4fca1b2bb025d35fa81769c538278bbb59d
|
|
| MD5 |
8271dd8a002ef5341eaccebb21b059bd
|
|
| BLAKE2b-256 |
8cc98ddb0cd69b78d7d1fc9bb26febdf084035d4f7574fb032d5ebdfbbb49acf
|