Skip to main content

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.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hh_api-0.1.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file hh_api-0.1.0.tar.gz.

File metadata

  • Download URL: hh_api-0.1.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for hh_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9055b2fd56ccc96b5c88fd7c4a5bc5606984785275800d6edb75e0626034c747
MD5 f324bde768c635e6fa8ed89d08d0f6ad
BLAKE2b-256 53e812ee1a6e87248e447096b1d3a44a0a3c3db3f8b7691336d461effa5628fa

See more details on using hashes here.

File details

Details for the file hh_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hh_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for hh_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae1c7486504810cdc655b6b88bae29a8954a0b810e06195f95bc74323ad76a1a
MD5 29d3fa8558e1804362f682f0722b3700
BLAKE2b-256 1f5c3b75df393213cfc0a9d27e3ddb08ed1e17f183e15b97ed5b81fd28b299cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page