{ "info": { "author": "George Goranov", "author_email": "g.p.goranov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only" ], "description": "Universal REST API Client\n=========================\n\n|Build Status|\n\n- Free software: MIT license\n- Documentation: https://universal-api-client.readthedocs.io/en/latest/.\n\nFeatures\n--------\n\nThis library is a small REST API client with the following features:\n\n- Url builder - allows you to build a url by natively calling the\n client's attributes\n- HTTP requests - a thin wrapper around the requests library that\n allows full control of the HTTP requests.\n\nInstallation\n------------\n\n::\n\n pip install universal-api-client\n\nUsage\n-----\n\nInitialising the client\n~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n from universal_api_client import Client\n swapi_client = Client(base_url='https://swapi.co/api/')\n\nBuilding a URL\n~~~~~~~~~~~~~~\n\nThe url builder is part of the ``request`` (``APIRequest``) attribute of\nthe client.\n\n.. code:: python\n\n swapi_client.request.people # \n swapi_client.request.people.url # 'https://swapi.co/api/people/'\n swapi_client.request.people(identifier=1).url # 'https://swapi.co/api/people/1/'\n swapi_client.request.people(identifier='1').url # 'https://swapi.co/api/people/1/'\n\nMaking a request\n~~~~~~~~~~~~~~~~\n\nThe requests are made by the already built ``APIRequest`` object. The\nmethod call returns the appropriate method call from the requests\nlibrary.\n\n.. code:: python\n\n response = swapi_client.request.people(identifier='1').get() # \n print(response.status_code) # 200\n\nCredits\n-------\n\nThis package was created with `Cookiecutter`_ and the\n`audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage\n\n.. |Build Status| image:: https://travis-ci.org/jorgii/universal-api-client.svg?branch=master\n :target: https://travis-ci.org/jorgii/universal-api-client\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jorgii/universal-api-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "universal-api-client", "package_url": "https://pypi.org/project/universal-api-client/", "platform": "", "project_url": "https://pypi.org/project/universal-api-client/", "project_urls": { "Homepage": "https://github.com/jorgii/universal-api-client" }, "release_url": "https://pypi.org/project/universal-api-client/0.1.0/", "requires_dist": [ "requests (<=3,>=2)" ], "requires_python": "", "summary": "\u0410 library for a REST API client that works with any API that follows somewhat the REST standard.", "version": "0.1.0" }, "last_serial": 5097327, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "09e8b168f09e9a10eb1d2fd84ca233ce", "sha256": "87f873461877ea8ca3e9ffb1ba7dee0cba95aa390b8ae5f8f3b5fa930331e7cd" }, "downloads": -1, "filename": "universal_api_client-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "09e8b168f09e9a10eb1d2fd84ca233ce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4833, "upload_time": "2019-04-04T13:29:24", "url": "https://files.pythonhosted.org/packages/84/1c/32e98ca5148535653794550b0b1ad14ccbd4a6158680efa4bb909a90566c/universal_api_client-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4dce0c8ffd2e053a96757884bfc60e3", "sha256": "d62082b438011bf6b89647e6a3461dc94e2afef747368bfbc77d75542ce25b49" }, "downloads": -1, "filename": "universal-api-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b4dce0c8ffd2e053a96757884bfc60e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11184, "upload_time": "2019-04-04T13:29:28", "url": "https://files.pythonhosted.org/packages/ca/71/edfc2fd1859d3c49c338013680f3213d52d11ca50154cb774c4ae2eed10b/universal-api-client-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "09e8b168f09e9a10eb1d2fd84ca233ce", "sha256": "87f873461877ea8ca3e9ffb1ba7dee0cba95aa390b8ae5f8f3b5fa930331e7cd" }, "downloads": -1, "filename": "universal_api_client-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "09e8b168f09e9a10eb1d2fd84ca233ce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4833, "upload_time": "2019-04-04T13:29:24", "url": "https://files.pythonhosted.org/packages/84/1c/32e98ca5148535653794550b0b1ad14ccbd4a6158680efa4bb909a90566c/universal_api_client-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4dce0c8ffd2e053a96757884bfc60e3", "sha256": "d62082b438011bf6b89647e6a3461dc94e2afef747368bfbc77d75542ce25b49" }, "downloads": -1, "filename": "universal-api-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b4dce0c8ffd2e053a96757884bfc60e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11184, "upload_time": "2019-04-04T13:29:28", "url": "https://files.pythonhosted.org/packages/ca/71/edfc2fd1859d3c49c338013680f3213d52d11ca50154cb774c4ae2eed10b/universal-api-client-0.1.0.tar.gz" } ] }