Python bindings to the Zenhub API
Project description
PyZenHub
Python bindings to the Zenhub API.
Project status
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
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)
Built Distribution
Close
Hashes for pyzenhub-0.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37493ef893168feb54e8413eed79f7c6c260226c0f8b4ca7260e02a2557e4abe |
|
MD5 | bb866d3bb8ec2f9205d6f840fa0afcfd |
|
BLAKE2b-256 | 698e440566faaf5e03a3c34986717df07a1631439906161fe32a0d1747a6bed7 |