{ "info": { "author": "Allisson Azevedo", "author_email": "allisson@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries" ], "description": "Python Vindi\n============\n\n|TravisCI Build Status| |Coverage Status| |Requirements Status|\n|Scrutinizer Code Quality| |Code Climate|\n\n----\n\nIntegra\u00e7\u00e3o com API da Vindi (Python 3.5+).\n\n\nComo instalar\n-------------\n\n.. code:: shell\n\n pip install vindi\n\n\nTutorial\n--------\n\n.. code:: python\n\n >>> # import inicial\n >>> from vindi.api import get_api_instance\n >>> # criando uma nova inst\u00e2ncia da api\n >>> api = get_api_instance(token='seu-token-da-vindi')\n >>> # listando todos os resources dispon\u00edveis\n >>> api.get_resource_list()\n ['customers', 'plans', 'products', 'payment_methods', 'discounts', 'subscriptions', 'product_items', 'periods', 'bills', 'bill_items', 'charges', 'transactions', 'payment_profiles', 'usages', 'invoices', 'movements', 'messages', 'import_batches', 'merchant', 'issues']\n >>> # listando todas as a\u00e7\u00f5es dispon\u00edveis para o resource customers\n >>> api.customers.actions\n {'list': {'method': 'GET', 'url': 'customers'}, 'create': {'method': 'POST', 'url': 'customers'}, 'retrieve': {'method': 'GET', 'url': 'customers/{}'}, 'update': {'method': 'PUT', 'url': 'customers/{}'}, 'destroy': {'method': 'DELETE', 'url': 'customers/{}'}}\n >>> # executando a\u00e7\u00e3o list com todos os par\u00e2metros poss\u00edveis\n >>> response = api.customers.list(body=None, params={}, headers={})\n >>> # trabalhando com uma inst\u00e2ncia response\n >>> response.url\n 'https://app.vindi.com.br/api/v1/customers'\n >>> response.method\n 'GET'\n >>> response.headers\n {'Cache-Control': 'max-age=0, private, must-revalidate', 'Content-Type': 'application/json; charset=UTF-8', 'Date': 'Fri, 21 Apr 2017 15:30:11 GMT', 'ETag': 'W/\"0cbcb8ab8eb167a7525bdc61c7b89ba3\"', 'Per-Page': '25', 'Rate-Limit-Limit': '120', 'Rate-Limit-Remaining': '119', 'Rate-Limit-Reset': '1492788671', 'Server': 'nginx', 'Total': '2', 'Vindi-Merchant-Id': '5963', 'X-Request-Id': 'd155bf74-df8e-4803-8281-8f1fe0373814', 'X-Runtime': '0.034142', 'Content-Length': '773', 'Connection': 'keep-alive'}\n >>> response.body\n {'customers': [{'id': 2481112, 'name': 'Jane Doe', 'email': 'jane@doe.com', 'registry_code': None, 'code': None, 'notes': None, 'status': 'archived', 'created_at': '2017-04-19T13:08:51.000-03:00', 'updated_at': '2017-04-19T13:25:57.000-03:00', 'metadata': {}, 'address': {'street': None, 'number': None, 'additional_details': None, 'zipcode': None, 'neighborhood': None, 'city': None, 'state': None, 'country': None}, 'phones': []}, {'id': 2481258, 'name': 'John Doe', 'email': 'john@doe.com', 'registry_code': None, 'code': None, 'notes': None, 'status': 'inactive', 'created_at': '2017-04-19T13:27:35.000-03:00', 'updated_at': '2017-04-19T13:27:35.000-03:00', 'metadata': {}, 'address': {'street': None, 'number': None, 'additional_details': None, 'zipcode': None, 'neighborhood': None, 'city': None, 'state': None, 'country': None}, 'phones': []}]}\n >>> response.status_code\n 200\n >>> # fim \\o/\n\n\nUsando o ambiente sandbox\n-------------------------\n\n.. code:: python\n\n >>> # import inicial\n >>> from vindi.api import get_api_instance\n >>> # criando uma nova inst\u00e2ncia da api\n >>> api = get_api_instance(token='seu-token-da-vindi', api_root_url='https://sandbox-app.vindi.com.br/api/v1/')\n\n\nVerifique a documenta\u00e7\u00e3o da `API Vindi`_.\n\n.. _`API Vindi`: https://vindi.github.io/api-docs/dist/\n\n.. |TravisCI Build Status| image:: https://travis-ci.org/allisson/python-vindi.svg?branch=master\n :target: https://travis-ci.org/allisson/python-vindi\n.. |Coverage Status| image:: https://coveralls.io/repos/github/allisson/python-vindi/badge.svg?branch=master\n :target: https://coveralls.io/github/allisson/python-vindi?branch=master\n.. |Requirements Status| image:: https://requires.io/github/allisson/python-vindi/requirements.svg?branch=master\n :target: https://requires.io/github/allisson/python-vindi/requirements/?branch=master\n.. |Scrutinizer Code Quality| image:: https://scrutinizer-ci.com/g/allisson/python-vindi/badges/quality-score.png?b=master\n :target: https://scrutinizer-ci.com/g/allisson/python-vindi/?branch=master\n.. |Code Climate| image:: https://codeclimate.com/github/allisson/python-vindi/badges/gpa.svg\n :target: https://codeclimate.com/github/allisson/python-vindi\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/allisson/python-vindi", "keywords": "rest client http vindi", "license": "", "maintainer": "", "maintainer_email": "", "name": "vindi", "package_url": "https://pypi.org/project/vindi/", "platform": "", "project_url": "https://pypi.org/project/vindi/", "project_urls": { "Homepage": "https://github.com/allisson/python-vindi" }, "release_url": "https://pypi.org/project/vindi/1.0.0/", "requires_dist": [ "simple-rest-client (>=1.0.0)" ], "requires_python": "", "summary": "Integra\u00e7\u00e3o com API da Vindi (Python 3.6+)", "version": "1.0.0" }, "last_serial": 5920740, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0d029c7aa34fff152aa64fe1ea371ef7", "sha256": "4b63107d085825db62775f509df07087ec89fe4097adc84900688e8693f15d7a" }, "downloads": -1, "filename": "vindi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0d029c7aa34fff152aa64fe1ea371ef7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6744, "upload_time": "2017-04-21T15:40:31", "url": "https://files.pythonhosted.org/packages/9d/4a/077270999984f474c4951edb3e28497d02806c422f43eca0065c0a96c2b5/vindi-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa4ba737645c6295a5f5c71c90df0d0e", "sha256": "667cf9c47e151c9dac6429c2230b083dc78c70a27942ece247f3b2216549bdbf" }, "downloads": -1, "filename": "vindi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fa4ba737645c6295a5f5c71c90df0d0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5182, "upload_time": "2017-04-21T15:40:33", "url": "https://files.pythonhosted.org/packages/92/c5/0d81efbfd0841745b52c06c4fdbb15edfaad4169ed67f17820d2f06302e6/vindi-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "de0910f84e439569816b6349a39fafc5", "sha256": "5fa5c1d5991e4764edd36c4ae53d8dff87971a1245a284a02e83e5adb399e348" }, "downloads": -1, "filename": "vindi-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "de0910f84e439569816b6349a39fafc5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6869, "upload_time": "2017-09-19T00:10:03", "url": "https://files.pythonhosted.org/packages/85/98/1863e5adb8cdcf91f4623f309c6041616a3ef3625f35cfb42ece6050b36a/vindi-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f07990a82f22a6a1369e5c191662494", "sha256": "f3b271a371d21d6799a57ede32f2538b6f8d7792a70324534d34f6c75825cb9e" }, "downloads": -1, "filename": "vindi-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6f07990a82f22a6a1369e5c191662494", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5336, "upload_time": "2017-09-19T00:10:07", "url": "https://files.pythonhosted.org/packages/20/78/f4faa2f670f29b60eb266341dd9866e9b457a64c15c43370ac75bcc64b3c/vindi-0.2.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8ed8eaccbbfd2836ff7bfbc9144b07f8", "sha256": "faff5e69e31e63f05c2cb1b2f7b36109c7be39283bf1ad95a71099968e033663" }, "downloads": -1, "filename": "vindi-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8ed8eaccbbfd2836ff7bfbc9144b07f8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5247, "upload_time": "2019-10-02T21:51:17", "url": "https://files.pythonhosted.org/packages/b3/c1/d8c08f2f0fe6f5fa97d4440bf87b438ff1e8a4d71af93f7ed2767ab453c1/vindi-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c73ee23257d9bca775111a892ffc074", "sha256": "647e710157c11cf5893b4c955fc0fa0cbc4eecac6e8dc521d02ba0abef44fae0" }, "downloads": -1, "filename": "vindi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1c73ee23257d9bca775111a892ffc074", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5274, "upload_time": "2019-10-02T21:51:18", "url": "https://files.pythonhosted.org/packages/91/a1/e77a0aec60d863e14abf4d0a94c35e4f65021d32ccaea32262adcbf91940/vindi-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ed8eaccbbfd2836ff7bfbc9144b07f8", "sha256": "faff5e69e31e63f05c2cb1b2f7b36109c7be39283bf1ad95a71099968e033663" }, "downloads": -1, "filename": "vindi-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8ed8eaccbbfd2836ff7bfbc9144b07f8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5247, "upload_time": "2019-10-02T21:51:17", "url": "https://files.pythonhosted.org/packages/b3/c1/d8c08f2f0fe6f5fa97d4440bf87b438ff1e8a4d71af93f7ed2767ab453c1/vindi-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c73ee23257d9bca775111a892ffc074", "sha256": "647e710157c11cf5893b4c955fc0fa0cbc4eecac6e8dc521d02ba0abef44fae0" }, "downloads": -1, "filename": "vindi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1c73ee23257d9bca775111a892ffc074", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5274, "upload_time": "2019-10-02T21:51:18", "url": "https://files.pythonhosted.org/packages/91/a1/e77a0aec60d863e14abf4d0a94c35e4f65021d32ccaea32262adcbf91940/vindi-1.0.0.tar.gz" } ] }