kanboard_cli-0.0.2/0000755000175000017500000000000013027316576014775 5ustar travistravis00000000000000kanboard_cli-0.0.2/kanboard_cli/0000755000175000017500000000000013027316576017405 5ustar travistravis00000000000000kanboard_cli-0.0.2/kanboard_cli/commands/0000755000175000017500000000000013027316576021206 5ustar travistravis00000000000000kanboard_cli-0.0.2/kanboard_cli/commands/__init__.py0000644000175000017500000000000013027316442023275 0ustar travistravis00000000000000kanboard_cli-0.0.2/kanboard_cli/commands/application.py0000644000175000017500000000305313027316442024054 0ustar travistravis00000000000000# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from cliff import command class ShowTimezone(command.Command): """Show Kanboard timezone""" def take_action(self, parsed_args): timezone = self.app.client.get_timezone() self.app.stdout.write('{}\n'.format(timezone)) class ShowVersion(command.Command): """Show Kanboard version""" def take_action(self, parsed_args): version = self.app.client.get_version() self.app.stdout.write('{}\n'.format(version)) kanboard_cli-0.0.2/kanboard_cli/commands/project.py0000644000175000017500000000560313027316442023222 0ustar travistravis00000000000000# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from cliff import lister from cliff import show class ListProjects(lister.Lister): """List projects that belongs to the connected user""" def take_action(self, parsed_args): columns = ('ID', 'Name', 'Description', 'Status', 'Private', 'Public') if self.app.is_super_user: projects = self.app.client.get_all_projects() else: projects = self.app.client.get_my_projects() return columns, self._format_projects(projects) @staticmethod def _format_projects(projects): lines = [] for project in projects: lines.append((project['id'], project['name'], project['description'] or '', 'Active' if int(project['is_active']) == 1 else 'Inactive', int(project['is_private']) == 1, int(project['is_public']) == 1)) return lines class ShowProject(show.ShowOne): """Show project details""" def get_parser(self, prog_name): parser = super(ShowProject, self).get_parser(prog_name) parser.add_argument( 'project_id', metavar='', help='Project ID', ) return parser def take_action(self, parsed_args): project = self.app.client.get_project_by_id(project_id=parsed_args.project_id) if not project: raise RuntimeError('Project not found') return self._format_project(project) @staticmethod def _format_project(project): columns = ('ID', 'Name', 'Description', 'Board URL') data = (project['id'], project['name'], project['description'] or '', project['url']['board']) return columns, data kanboard_cli-0.0.2/kanboard_cli/commands/task.py0000644000175000017500000000632613027316442022521 0ustar travistravis00000000000000# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from cliff import command from cliff import lister class CreateTask(command.Command): """Create a new task""" def get_parser(self, prog_name): parser = super(CreateTask, self).get_parser(prog_name) parser.add_argument( 'project_id', metavar='', help='Project ID', ) parser.add_argument( 'title', metavar='', help='Task title', ) parser.add_argument( '--swimlane-id', metavar='<swimlane_id>', help='Task swimlane', ) parser.add_argument( '--column-id', metavar='<column_id>', help='Task column', ) parser.add_argument( '--color-id', metavar='<color_id>', help='Task color', ) return parser def take_action(self, parsed_args): kwargs = dict(project_id=parsed_args.project_id, title=parsed_args.title) if parsed_args.swimlane_id: kwargs['swimlane_id'] = parsed_args.swimlane_id if parsed_args.column_id: kwargs['column_id'] = parsed_args.column_id if parsed_args.color_id: kwargs['color_id'] = parsed_args.color_id task_id = self.app.client.create_task(**kwargs) self.app.stdout.write('{}\n'.format(task_id)) class ListTasks(lister.Lister): """List tasks for a given project""" def get_parser(self, prog_name): parser = super(ListTasks, self).get_parser(prog_name) parser.add_argument( 'project_id', metavar='<project_id>', help='Project ID', ) return parser def take_action(self, parsed_args): columns = ('ID', 'Title', 'Color') tasks = self.app.client.get_all_tasks(project_id=parsed_args.project_id) return columns, self._format_tasks(tasks) @staticmethod def _format_tasks(tasks): lines = [] for task in tasks: lines.append((task['id'], task['title'], task['color']['name'])) return lines ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/tests/��������������������������������������������������������������0000755�0001750�0001750�00000000000�13027316576�020547� 5����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/tests/__init__.py���������������������������������������������������0000644�0001750�0001750�00000000000�13027316442�022636� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/tests/test_client.py������������������������������������������������0000644�0001750�0001750�00000007703�13027316442�023435� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import kanboard import mock import os import unittest from kanboard_cli import client from kanboard_cli import exceptions class TestClientManager(unittest.TestCase): def setUp(self): os.environ = dict() self.options = mock.Mock(url=None, username=None, password=None, auth_header=None) self.client = client.ClientManager(self.options) def test_get_url_not_defined(self): with self.assertRaises(exceptions.KanboardException): self.client.get_url() def test_get_url_defined_with_option(self): self.options.url = 'some url' self.assertEqual('some url', self.client.get_url()) def test_get_url_defined_with_env_variable(self): os.environ['KANBOARD_URL'] = 'another url' self.assertEqual('another url', self.client.get_url()) def test_get_url_defined_in_both_places(self): self.options.url = 'url 1' os.environ['KANBOARD_URL'] = 'url 2' self.assertEqual('url 1', self.client.get_url()) def test_get_username_not_defined(self): self.assertEqual('jsonrpc', self.client.get_username()) def test_get_username_defined_with_option(self): self.options.username = 'some user' self.assertEqual('some user', self.client.get_username()) def test_get_username_defined_with_env_variable(self): os.environ['KANBOARD_USERNAME'] = 'another user' self.assertEqual('another user', self.client.get_username()) def test_get_password_not_defined(self): with self.assertRaises(exceptions.KanboardException): self.client.get_password() def test_get_password_defined_with_option(self): self.options.password = 'some password' self.assertEqual('some password', self.client.get_password()) def test_get_password_defined_with_env_variable(self): os.environ['KANBOARD_PASSWORD'] = 'another password' self.assertEqual('another password', self.client.get_password()) def test_get_auth_header_not_defined(self): self.assertEqual('Authorization', self.client.get_auth_header()) def test_get_auth_header_defined_with_option(self): self.options.auth_header = 'some header' self.assertEqual('some header', self.client.get_auth_header()) def test_get_auth_hader_defined_with_env_variable(self): os.environ['KANBOARD_AUTH_HEADER'] = 'another header' self.assertEqual('another header', self.client.get_auth_header()) def test_is_super_user(self): self.assertTrue(self.client.is_super_user()) self.options.username = 'admin' self.assertFalse(self.client.is_super_user()) def test_get_client(self): self.options.url = 'url' self.options.username = 'admin' self.options.password = 'secret' self.assertIsInstance(self.client.get_client(), kanboard.Kanboard) �������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/__init__.py���������������������������������������������������������0000644�0001750�0001750�00000000000�13027316442�021474� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/client.py�����������������������������������������������������������0000644�0001750�0001750�00000004623�13027316442�021232� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import kanboard import os from kanboard_cli import exceptions class ClientManager(object): def __init__(self, options): self.options = options def get_client(self): return kanboard.Kanboard(url=self.get_url(), username=self.get_username(), password=self.get_password(), auth_header=self.get_auth_header()) def is_super_user(self): return self.get_username() == 'jsonrpc' def get_url(self): return self._get_option('url', error_message='API URL is required') def get_username(self): return self._get_option('username', default='jsonrpc') def get_password(self): return self._get_option('password', error_message='API password is required') def get_auth_header(self): return self._get_option('auth_header', default='Authorization') def _get_option(self, name, default=None, error_message=None): env_variable = 'KANBOARD_' + name.upper() value = getattr(self.options, name) if value: return value elif env_variable in os.environ: return os.environ[env_variable] elif default is None: raise exceptions.KanboardException(error_message) return default �������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/exceptions.py�������������������������������������������������������0000644�0001750�0001750�00000002220�13027316442�022124� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. class KanboardException(Exception): pass ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli/shell.py������������������������������������������������������������0000644�0001750�0001750�00000006511�13027316442�021061� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# The MIT License (MIT) # # Copyright (c) 2016 Frederic Guillot # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from cliff import app from cliff import commandmanager from pbr import version as app_version import sys from kanboard_cli.commands import application from kanboard_cli.commands import project from kanboard_cli.commands import task from kanboard_cli import client class KanboardShell(app.App): def __init__(self): super(KanboardShell, self).__init__( description='Kanboard Command Line Client', version=app_version.VersionInfo('kanboard_cli').version_string(), command_manager=commandmanager.CommandManager('kanboard.cli'), deferred_help=True) self.client = None self.is_super_user = True def build_option_parser(self, description, version, argparse_kwargs=None): parser = super(KanboardShell, self).build_option_parser( description, version, argparse_kwargs=argparse_kwargs) parser.add_argument( '--url', metavar='<api url>', help='Kanboard API URL', ) parser.add_argument( '--username', metavar='<api username>', help='API username', ) parser.add_argument( '--password', metavar='<api password>', help='API password/token', ) parser.add_argument( '--auth-header', metavar='<authentication header>', help='API authentication header', ) return parser def initialize_app(self, argv): client_manager = client.ClientManager(self.options) self.client = client_manager.get_client() self.is_super_user = client_manager.is_super_user() self.command_manager.add_command('app version', application.ShowVersion) self.command_manager.add_command('app timezone', application.ShowTimezone) self.command_manager.add_command('project show', project.ShowProject) self.command_manager.add_command('project list', project.ListProjects) self.command_manager.add_command('task create', task.CreateTask) self.command_manager.add_command('task list', task.ListTasks) def main(argv=sys.argv[1:]): return KanboardShell().run(argv) if __name__ == '__main__': sys.exit(main(sys.argv[1:])) ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/�����������������������������������������������������������0000755�0001750�0001750�00000000000�13027316576�021077� 5����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/PKG-INFO���������������������������������������������������0000644�0001750�0001750�00000006770�13027316575�022205� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Metadata-Version: 1.1 Name: kanboard-cli Version: 0.0.2 Summary: Kanboard Command Line Client Home-page: https://github.com/kanboard/kanboard-cli Author: Frédéric Guillot Author-email: fred@kanboard.net License: MIT Description: ============================ Kanboard Command Line Client ============================ .. image:: https://travis-ci.org/kanboard/kanboard-cli.svg?branch=master :target: https://travis-ci.org/kanboard/kanboard-cli Kanboard command line client. - Author: Frédéric Guillot - License: MIT Installation ============ .. code-block:: bash pip install kanboard_cli This application is compatible with Python 2.7, Python 3.4 and 3.5. Configuration ============= You can define connection parameters as environment variables: .. code-block:: bash export KANBOARD_URL=http://localhost/jsonrpc.php export KANBOARD_USERNAME=admin export KANBOARD_PASSWORD=admin Or as command line arguments: .. code-block:: bash kanboard --url http://localhost/jsonrpc.php --username admin --password admin Examples ======== Display application version: .. code-block:: bash > kanboard app version 1.0.35 Display project information: .. code-block:: bash > kanboard project show 1 +-------------+--------------------------------------------------------------------------------+ | Field | Value | +-------------+--------------------------------------------------------------------------------+ | ID | 1 | | Name | Demo Project | | Description | None | | Board URL | http://localhost/?controller=BoardViewController&action=show&project_id=1 | +-------------+--------------------------------------------------------------------------------+ Display projects list: .. code-block:: bash > kanboard project list +----+------+--------------------------+--------+---------+--------+ | ID | Name | Description | Status | Private | Public | +----+------+--------------------------+--------+---------+--------+ | 7 | Demo | My _project_ is awesome. | Active | False | True | | 8 | test | | Active | False | False | +----+------+--------------------------+--------+---------+--------+ Keywords: kanboard api cli Platform: UNKNOWN Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 ��������kanboard_cli-0.0.2/kanboard_cli.egg-info/SOURCES.txt������������������������������������������������0000644�0001750�0001750�00000001266�13027316576�022770� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.travis.yml AUTHORS ChangeLog LICENSE README.rst requirements.txt setup.cfg setup.py test-requirements.txt tox.ini kanboard_cli/__init__.py kanboard_cli/client.py kanboard_cli/exceptions.py kanboard_cli/shell.py kanboard_cli.egg-info/PKG-INFO kanboard_cli.egg-info/SOURCES.txt kanboard_cli.egg-info/dependency_links.txt kanboard_cli.egg-info/entry_points.txt kanboard_cli.egg-info/not-zip-safe kanboard_cli.egg-info/pbr.json kanboard_cli.egg-info/requires.txt kanboard_cli.egg-info/top_level.txt kanboard_cli/commands/__init__.py kanboard_cli/commands/application.py kanboard_cli/commands/project.py kanboard_cli/commands/task.py kanboard_cli/tests/__init__.py kanboard_cli/tests/test_client.py������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/dependency_links.txt���������������������������������������0000644�0001750�0001750�00000000001�13027316575�025144� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/entry_points.txt�������������������������������������������0000644�0001750�0001750�00000000066�13027316575�024376� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������[console_scripts] kanboard = kanboard_cli.shell:main ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/not-zip-safe�����������������������������������������������0000644�0001750�0001750�00000000001�13027316454�023320� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/pbr.json���������������������������������������������������0000644�0001750�0001750�00000000056�13027316575�022555� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������{"is_release": true, "git_version": "e78e274"}����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/requires.txt�����������������������������������������������0000644�0001750�0001750�00000000100�13027316575�023465� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������cliff>=2.3.0 kanboard>=1.0.1 pbr>=1.8 setuptools>=16.0,!=24.0.0 ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/kanboard_cli.egg-info/top_level.txt����������������������������������������������0000644�0001750�0001750�00000000015�13027316575�023624� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/.travis.yml����������������������������������������������������������������������0000644�0001750�0001750�00000001734�13027316442�017103� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������language: python python: - '3.5' install: - pip install --upgrade setuptools - pip install --upgrade pip - pip install tox script: - tox deploy: provider: pypi user: fguillot password: secure: 1N/vMg24KBhE2diWDBB9YdyaSo09QnQiKUS8/1iaXJTwkYUdZ2qjYaYNQP5K794FE+SUjg4u0ViU4p1dNkMbOFxls2hfaif7TdzeA5GuiAvUo1oPj5dbG6A5+TDEzl9tpq/CP3u9RTDWAh281MX69L9bBTKPz5Zg8oNNJVaGKkVZ9t2IxV0ksnkXrE6GQc0QwtQmQYMwtoP4RRvW7Jkk4jkn/ShDN5Q23RIBkTaqtG9PDisVvjycHDu1DcRQvM0t13580RPhLfFlvjA1ng9BkbfYl37MQzHA2Nv6Dejktk38A7CJIIUowwc59LUXI4a9JVXEb745drB1fyTDoOgQMdRdLOCd7HXvng0ggnWmDv+zWUnfGstZ0d59A/r9y4b/kDAoALpy1vo4pldeF25sJ2KfS1bFbszku/lGOpduUtq/XZiCwmZ/zEOMC7QAItZOgxFqrb5kOOjzMxaxrumuIWIwToEuSzkvn+/b8wipbQU3RZxbMEEWyUeNi8cfz1IQwbrSXmxq6lzLPuA+deQ0Ij45ajiyUf9YwkiuNwVk2MkQkei1UnQJtbTWYRuQePJmvEss7wQRG3dPcAHljJUBt2+kYNifsOZdm5zBq09aoBAH4CRdoLNUY+kG6e4SRgk0zJ+/1iVdhYx45S/acIpz+xj7QGkOx79cICeFmalK/Xw= on: tags: true distributions: sdist bdist_wheel repo: kanboard/kanboard-cli ������������������������������������kanboard_cli-0.0.2/AUTHORS��������������������������������������������������������������������������0000644�0001750�0001750�00000000045�13027316575�016043� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Frederic Guillot <fred@kanboard.net> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/ChangeLog������������������������������������������������������������������������0000644�0001750�0001750�00000000335�13027316575�016547� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������CHANGES ======= 0.0.2 ----- * Fix typo in setup.cfg 0.0.1 ----- * Update travis encrypted password * Add command to create tasks * Add command to list tasks * Add command to list projects * Rename repo * First commit ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/LICENSE��������������������������������������������������������������������������0000644�0001750�0001750�00000002073�13027316442�015774� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������The MIT License (MIT) Copyright (c) 2016 Frederic Guillot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/README.rst�����������������������������������������������������������������������0000644�0001750�0001750�00000004436�13027316442�016463� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������============================ Kanboard Command Line Client ============================ .. image:: https://travis-ci.org/kanboard/kanboard-cli.svg?branch=master :target: https://travis-ci.org/kanboard/kanboard-cli Kanboard command line client. - Author: Frédéric Guillot - License: MIT Installation ============ .. code-block:: bash pip install kanboard_cli This application is compatible with Python 2.7, Python 3.4 and 3.5. Configuration ============= You can define connection parameters as environment variables: .. code-block:: bash export KANBOARD_URL=http://localhost/jsonrpc.php export KANBOARD_USERNAME=admin export KANBOARD_PASSWORD=admin Or as command line arguments: .. code-block:: bash kanboard --url http://localhost/jsonrpc.php --username admin --password admin Examples ======== Display application version: .. code-block:: bash > kanboard app version 1.0.35 Display project information: .. code-block:: bash > kanboard project show 1 +-------------+--------------------------------------------------------------------------------+ | Field | Value | +-------------+--------------------------------------------------------------------------------+ | ID | 1 | | Name | Demo Project | | Description | None | | Board URL | http://localhost/?controller=BoardViewController&action=show&project_id=1 | +-------------+--------------------------------------------------------------------------------+ Display projects list: .. code-block:: bash > kanboard project list +----+------+--------------------------+--------+---------+--------+ | ID | Name | Description | Status | Private | Public | +----+------+--------------------------+--------+---------+--------+ | 7 | Demo | My _project_ is awesome. | Active | False | True | | 8 | test | | Active | False | False | +----+------+--------------------------+--------+---------+--------+ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/requirements.txt�����������������������������������������������������������������0000644�0001750�0001750�00000000155�13027316442�020252� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������cliff>=2.3.0 # Apache-2.0 kanboard>=1.0.1 # MIT pbr>=1.8 # Apache-2.0 setuptools>=16.0,!=24.0.0 # PSF/ZPL�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/setup.cfg������������������������������������������������������������������������0000644�0001750�0001750�00000001336�13027316576�016621� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������[metadata] name = kanboard_cli author = Frédéric Guillot author-email = fred@kanboard.net summary = Kanboard Command Line Client description-file = README.rst home-page = https://github.com/kanboard/kanboard-cli license = MIT classifier = Intended Audience :: Information Technology Intended Audience :: System Administrators License :: OSI Approved :: MIT License Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 3 keywords = kanboard api cli [files] packages = kanboard_cli [entry_points] console_scripts = kanboard = kanboard_cli.shell:main [wheel] universal = 1 [egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/setup.py�������������������������������������������������������������������������0000644�0001750�0001750�00000000201�13027316442�016470� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/usr/bin/env python from setuptools import setup setup( setup_requires=['pbr>=1.9', 'setuptools>=17.1'], pbr=True, ) �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/test-requirements.txt������������������������������������������������������������0000644�0001750�0001750�00000000114�13027316442�021222� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������flake8>=2.5.4,<2.6.0 # MIT mock>=2.0 # BSD nose # LGPL pep8==1.5.7 # MIT����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/tox.ini��������������������������������������������������������������������������0000644�0001750�0001750�00000000573�13027316442�016305� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������[tox] envlist = py27,py34,py35,pep8 [testenv] deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = nosetests --tests kanboard_cli.tests [testenv:venv] commands = {posargs} [testenv:pep8] commands = flake8 {posargs} [flake8] ignore = E125,E123,E129 show-source = True max-line-length = 120 exclude = .git,.venv,.tox,build,dist,*egg �������������������������������������������������������������������������������������������������������������������������������������kanboard_cli-0.0.2/PKG-INFO�������������������������������������������������������������������������0000644�0001750�0001750�00000006770�13027316576�016104� 0����������������������������������������������������������������������������������������������������ustar �travis��������������������������travis��������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Metadata-Version: 1.1 Name: kanboard_cli Version: 0.0.2 Summary: Kanboard Command Line Client Home-page: https://github.com/kanboard/kanboard-cli Author: Frédéric Guillot Author-email: fred@kanboard.net License: MIT Description: ============================ Kanboard Command Line Client ============================ .. image:: https://travis-ci.org/kanboard/kanboard-cli.svg?branch=master :target: https://travis-ci.org/kanboard/kanboard-cli Kanboard command line client. - Author: Frédéric Guillot - License: MIT Installation ============ .. code-block:: bash pip install kanboard_cli This application is compatible with Python 2.7, Python 3.4 and 3.5. Configuration ============= You can define connection parameters as environment variables: .. code-block:: bash export KANBOARD_URL=http://localhost/jsonrpc.php export KANBOARD_USERNAME=admin export KANBOARD_PASSWORD=admin Or as command line arguments: .. code-block:: bash kanboard --url http://localhost/jsonrpc.php --username admin --password admin Examples ======== Display application version: .. code-block:: bash > kanboard app version 1.0.35 Display project information: .. code-block:: bash > kanboard project show 1 +-------------+--------------------------------------------------------------------------------+ | Field | Value | +-------------+--------------------------------------------------------------------------------+ | ID | 1 | | Name | Demo Project | | Description | None | | Board URL | http://localhost/?controller=BoardViewController&action=show&project_id=1 | +-------------+--------------------------------------------------------------------------------+ Display projects list: .. code-block:: bash > kanboard project list +----+------+--------------------------+--------+---------+--------+ | ID | Name | Description | Status | Private | Public | +----+------+--------------------------+--------+---------+--------+ | 7 | Demo | My _project_ is awesome. | Active | False | True | | 8 | test | | Active | False | False | +----+------+--------------------------+--------+---------+--------+ Keywords: kanboard api cli Platform: UNKNOWN Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������