Skip to main content

Backlog API v2 Client Library

Project description

Build Status Version

BacklogPy is Backlog API v2 Client Library for Python 2/3

Install

You can install the client library with pip:

$ pip install BacklogPy

Example

The client Library has API Call methods for All Backlog v2 API:

>>> from BacklogPy import Backlog
>>> backlog = Backlog('space_name','api-key')
>>> response = backlog.get_project_list(all=True, archived=True)
>>> print(response.json()[0])
   {'archived': False,
    'chartEnabled': True,
    'displayOrder': 1234563786,
    'id': 12345,
    'name': 'Coffee Project',
    'projectKey': 'COFFEE_PROJECT',
    'projectLeaderCanEditProjectLeader': True,
    'subtaskingEnabled': False,
    'textFormattingRule': 'markdown',
    'useWikiTreeView': True}

Also you can use dict parameters with ‘*_raw’ methods:

>>> response = backlog.get_project_list_raw({'archived':'false', 'all':'false'})

ScreenShot

You can use auto-completion for methods and arguments in Interpreter(IPython) and IDE(PyCharm, Jedi and more)

https://raw.githubusercontent.com/koxudaxi/BacklogPy/master/docs/img/auto-completion_arguments.png https://raw.githubusercontent.com/koxudaxi/BacklogPy/master/docs/img/auto-completion_method.png

Development

Tests

tox can support to test with few python versions

$ tox
$ tox -e py26,py36

or nosetests for one Python version

$ nosetests tests/backlog

Generating The Backlog API v2 Client

The Backlog API v2 Client is created by api_generator. api_generator downloads API Documents from https://developer.nulab-inc.com/docs/backlog/ . And parse API Documents to generate The Backlog API v2 Client:

$ python3 api_generator/api_generator.py download
$ python3 api_generator/api_generator.py create

Build Wheel Package

$ pip3 install wheel
$ python3 setup.py bdist_wheel

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

BacklogPy-1.0.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

BacklogPy-1.0.1-py2.py3-none-any.whl (41.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file BacklogPy-1.0.1.tar.gz.

File metadata

  • Download URL: BacklogPy-1.0.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for BacklogPy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a481f3f22e871cd0853540949542316f4f5cc26d99b08928456f6cb4a4daf24a
MD5 48722bb559ebe17949b41e6754671e61
BLAKE2b-256 dcff29b21e0e62762fefad98c86b1561119c2b927828d46e4f6cf1d578c1a618

See more details on using hashes here.

File details

Details for the file BacklogPy-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for BacklogPy-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1badfecd8552b8bb85f45b3b269634f87866e2060a7151dedbd7b5b29d9f432
MD5 9f4834b950c91adce6325b3c77cefe32
BLAKE2b-256 a35491530995c708dd81ba9b3a012bf3e0593a3ca2fd2bb60ff18719dc046dd2

See more details on using hashes here.

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