Metadata-Version: 2.0
Name: BacklogPy
Version: 0.5.2
Summary: Backlog API v2 Client Library
Home-page: https://github.com/koxudaxi/BacklogPy
Author: Koudai Aono
Author-email: koxudaxi@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: requests

=========================================
BacklogPy - Backlog API v2 Client Library
=========================================

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


Install
-------
You can install the client library with pip:

.. code-block:: sh

    $ pip install BacklogPy

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

.. code-block:: python

    >>> from BacklogPy.backlog import Backlog
    >>> backlog = Backlog('space_name','api-key')
    >>> response = backlog.get_project_list({'archived':'false', 'all':'false'})
    >>> 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}


Development
-----------

Tests
~~~~~
``tox`` can support to test with few python versions

.. code-block:: sh

    $ tox
    $ tox -e py26,py36

or ``nosetests`` for one Python version

.. code-block:: sh

    $ 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:

.. code-block:: sh

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

Build Wheel Package
~~~~~~~~~~~~~~~~~~~

.. code-block:: sh

    $ pip3 install wheel
    $ python3 setup.py bdist_wheel


