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

Uploaded Source

Built Distribution

BacklogPy-1.0.6-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BacklogPy-1.0.6.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for BacklogPy-1.0.6.tar.gz
Algorithm Hash digest
SHA256 74cf28965f2b2e1c6aa7700104ad4cd53fa07abee12c696c3b7f2a74fd3af20d
MD5 a6a4e046970c3cdbd0616bbd5ce6f5ca
BLAKE2b-256 475ab010357cbba5f06914573f9b4057c3f8499ac772508b862e7bd8ce3fe7f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BacklogPy-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for BacklogPy-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fc53e0def7350137dc3e2a44b3b7eb9a9b2e5d395f16d0dbc0ffbc56ea7f51b9
MD5 279f134cf407029703d66e483f77a1fb
BLAKE2b-256 9ab798e23f7f49358ecca72c3922637bc7a1324a9d0160195d76722de6001ae0

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