python-taiga
A module for using the Taiga REST API (http://taigaio.github.io/taiga-doc/dist/api.html). Source code on Github: https://github.com/nephila/python-taiga
Getting Started
Getting started with the Taiga API couldn’t be easier. Create a TaigaAPI and you’re ready to go.
API Credentials
The TaigaAPI needs your Taiga credentials. You can pass these directly to the auth method (see the code below).
from taiga import TaigaAPI
api = TaigaAPI()
api.auth(
username='user',
password='psw'
)
Alternately, you can pass a token to the constructor TaigaAPI constructor.
from taiga import TaigaAPI api = TaigaAPI(token='mytoken')
You can also specify a different host if you use Taiga somewhere else
from taiga import TaigaAPI
api = TaigaAPI(
host='http://taiga.my.host.org'
)
Create a project
new_project = api.projects.create('TEST PROJECT', 'TESTING API')
Create a new user story
userstory = new_project.add_user_story(
'New Story', description='Blablablabla'
)
You can also create a milestone and pass it to a story
jan_feb_milestone = new_project.add_milestone(
'MILESTONE 1', '2015-01-26', '2015-02-26'
)
userstory = new_project.add_user_story(
'New Story', description='Blablablabla',
milestone=jan_feb_milestone.id
)
To add a task to your user story just run
userstory.add_task(
'New Task 2',
new_project.task_statuses[0].id
)
Create an issue
newissue = new_project.add_issue(
'New Issue',
new_project.priorities.get(name='High').id,
new_project.issue_statuses.get(name='New').id,
new_project.issue_types.get(name='Bug').id,
new_project.severities.get(name='Minor').id,
description='Bug #5'
)
List elements
projects = api.projects.list() stories = api.user_stories.list()
You can also specify filters
tasks = api.tasks.list(project=1)
Attach a file
You can attach files to issues, user stories and tasks
newissue.attach('Read the README in Issue', 'README.md')
Play with instances
Instances can have actions, for example you can star a project just calling
new_project = api.projects.create('TEST PROJECT', 'TESTING API')
new_project.star()
Any instance can be updated and deleted
new_project.name = 'New name for my project' new_project.update() new_project.delete()
Search
Search function returns a SearchResult object, containing tasks, user stories and issues
projects = api.projects.list()
search_result = api.search(projects[0].id, 'NEW')
for user_story in search_result.user_stories:
print (user_story)
We’re working on documentation, you can find a complete example in demo.py (https://github.com/nephila/python-taiga/blob/master/demo.py).
Metadata
Release files for python-taiga 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python-taiga-0.3.0.tar.gz | 13.0 kB | Without provenance | Details |
Release files / python-taiga-0.3.0.tar.gz
| Download URL | python-taiga-0.3.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2620f85310031add29667dc7eb2f1134b66c28b3339d80f0d8931c096def869
|
|
BLAKE2b-256 checksum How to use checksums |
fba44426b03b9c07ca658785f094fe3134888a8044487ff23b36138f2848bdfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-taiga 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.