Skip to main content

Python bindings to the Zenhub API

Project description

PyZenHub

Python bindings to the Zenhub API.

Project status

License PyPI Python Version Tests Typing codecov

Usage

from zenhub import Zenhub

zh = Zenhub('<zenhub_token>')
zh.get_epics('<repo_id>')  # Dictionary

Return models instead of dictionaries

from zenhub import Zenhub

zh = Zenhub('<zenhub_token>', return_models=True)
zh.get_epics('<repo_id>')  # Pydantic model!

Methods will always return dates as datetime.datetime objects, not strings.

For enterprise installs

from zenhub import Zenhub

zh = Zenhub('<zenhub_token>', base_url='<enterprise-api-endpoint>')
zh.get_epics('<repo_id>')

To select the enterprise version use the enterprise parameter.

from zenhub import Zenhub

zh2 = Zenhub('<zenhub_token>', base_url='<enterprise-api-endpoint>', enterprise=2)
zh.get_epics('<repo_id>')

zh3 = Zenhub('<zenhub_token>', base_url='<enterprise-api-endpoint>', enterprise=3)
zh.get_epics('<repo_id>')

Documentation

See ZenHub official API documentation.

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

pyzenhub-0.3.2.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

pyzenhub-0.3.2-py2.py3-none-any.whl (19.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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