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.9.tar.gz (152.1 kB view details)

Uploaded Source

Built Distribution

BacklogPy-1.0.9-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BacklogPy-1.0.9.tar.gz
  • Upload date:
  • Size: 152.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for BacklogPy-1.0.9.tar.gz
Algorithm Hash digest
SHA256 31d58923102f9192a29f302c87caef329d57f3db6c806442c838569a02cdc669
MD5 932d74b0abde05e6f6742e6d5e2ee574
BLAKE2b-256 9b6767deb7730a73862ced0cc24cfdd50daeebf4a6fd20ca7ce20d518a3b08d7

See more details on using hashes here.

File details

Details for the file BacklogPy-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: BacklogPy-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for BacklogPy-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 94b46fd37ed6da0705f57c2f4495575a401297a4cc9a4fd248178575f0b292c4
MD5 9a3ad53c170157ac272aee686e7ec824
BLAKE2b-256 cef3f5c7fe950b4a855162f7cd5eb75eabfdef164bb41e501c3891c2b07825a2

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