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 details)
Built Distribution
File details
Details for the file pyzenhub-0.3.2.tar.gz
.
File metadata
- Download URL: pyzenhub-0.3.2.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ecafccbd00edd652fbc8204fa218c25eaa89fc827db70e3fa9a4ea7384c910 |
|
MD5 | 06960a5f3bbf61cb63553653ea81e2ac |
|
BLAKE2b-256 | a26c852a4dc8e8a627f16bf0e1cdf08b0628c4b41abe54e0b8914820862c1cd2 |
File details
Details for the file pyzenhub-0.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pyzenhub-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37493ef893168feb54e8413eed79f7c6c260226c0f8b4ca7260e02a2557e4abe |
|
MD5 | bb866d3bb8ec2f9205d6f840fa0afcfd |
|
BLAKE2b-256 | 698e440566faaf5e03a3c34986717df07a1631439906161fe32a0d1747a6bed7 |