{ "info": { "author": "Olivier Locard", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# REST API CALL\n\nThis **python** library is a REST API Call which generates REST URLs using attributes.\",\n\nAs an example:\n\n http://example.org/product/kart/customer?id=3&name=foo'\n\nThe URI path:\n\n product/kart/customer?id=3&name=foo\n\nwith this **python** library is the sequence:\n\n product.kart.customer(id='3', name='foo')\n\n## get()\n\nYou can perform the request (Cf. http://docs.python-requests.org/) with `get()`:\n\n >>> import restapicall\n >>> conn = restapicall.ApiCall(endpoint='http://example.org')\n >>> r = conn.product.kart.customer(id='3', name='foo').get()\n >>> r.url\n http://example.org/product/kart/customer?id=3&name=foo\n >>> r.status_code\n 404\n >>> r.headers['content-type']\n 'text/html; charset=UTF-8'\n\n## get_url()\n\nthe url can be get by `get_url()`:\n\n >>> import restapicall\n >>> conn = restapicall.ApiCall(endpoint='http://example.org')\n >>> r = conn.product(id='3').kart.customer(name='foo').get_url()\n >>> print(r)\n http://example.org/product/kart/customer?id=3&name=foo'\n\nYou can concatenate the attributes. That's exactly the same:\n\n >>> conn = ApiCall(endpoint='http://example.org')\n >>> r = conn.product.kart.customer(id='3', name='foo').get_url()\n >>> print(r)\n http://example.org/product/kart/customer?id=3&name=foo'\n\n\n## License\n\nMIT\n\n## Author information\n\nThis code was created in 2019 by Olivier Locard on the behalf of Deveryware.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/olo-dw/restapicall.py", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "RestApiCall", "package_url": "https://pypi.org/project/RestApiCall/", "platform": "", "project_url": "https://pypi.org/project/RestApiCall/", "project_urls": { "Homepage": "https://github.com/olo-dw/restapicall.py" }, "release_url": "https://pypi.org/project/RestApiCall/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "This python library is a REST API Call which generates REST URLs using attributes.", "version": "0.0.3" }, "last_serial": 4849250, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "be626279396eb909aafc90fb088a8794", "sha256": "655f9bc12baa234118b29885cf762878b74351594b85725a40f0688f5eb5482d" }, "downloads": -1, "filename": "RestApiCall-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "be626279396eb909aafc90fb088a8794", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4920, "upload_time": "2019-02-20T08:29:30", "url": "https://files.pythonhosted.org/packages/08/f8/087932b31a0e9e34d22b1de238f24d532e1106b8d1002138aeef220edc5e/RestApiCall-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b48b2b6a21317febc36f9fac92c29717", "sha256": "4645c8fad6b7436acc8df59a71e677d3d67c72fa3ffdc7fac336446daa602ac8" }, "downloads": -1, "filename": "RestApiCall-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b48b2b6a21317febc36f9fac92c29717", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2635, "upload_time": "2019-02-20T08:29:32", "url": "https://files.pythonhosted.org/packages/0b/e4/b37df43fa3980de959621eb1c73bf9490f85e0fa0d6a8104c0c285020133/RestApiCall-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ee5ff4442dabb49206013560f08e266a", "sha256": "1f9d91019574bf446000635932282bb47deb42160eb96a9b4e0dda0cb633612f" }, "downloads": -1, "filename": "RestApiCall-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ee5ff4442dabb49206013560f08e266a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5017, "upload_time": "2019-02-21T09:00:11", "url": "https://files.pythonhosted.org/packages/4b/07/cd7b42e13f1cf5166340ccd26efe7cd721eea2e7b383f8e2bbaafd8ae479/RestApiCall-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "77d1ae73d4decf0dca4bc6a71325afa8", "sha256": "a029276d9aaea60ad019377f77c7a19f25d33deaa8cc96a5e6efec9f26336536" }, "downloads": -1, "filename": "RestApiCall-0.0.2.tar.gz", "has_sig": false, "md5_digest": "77d1ae73d4decf0dca4bc6a71325afa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2693, "upload_time": "2019-02-21T09:00:13", "url": "https://files.pythonhosted.org/packages/8e/5a/57041daaabb04d4da994499e90c1986fd1b7155cea992396d690f74a02c5/RestApiCall-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e9ce53a94ab15752d4632ee270a57544", "sha256": "0361bddda95d50215a79cf72981d97044fce1e810851fcccbcd919c7347c69b4" }, "downloads": -1, "filename": "RestApiCall-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e9ce53a94ab15752d4632ee270a57544", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5010, "upload_time": "2019-02-21T09:12:49", "url": "https://files.pythonhosted.org/packages/79/ae/d6b1e8b2717b5350f61f92359880db872f5ea00a7c85ea33005645bcf20f/RestApiCall-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "231623ed068fd2050d25cdd951b74490", "sha256": "e6cc21430bdd3823a8d3f5a192c5d418ee99b381360f82ecfe00846d1feef5f8" }, "downloads": -1, "filename": "RestApiCall-0.0.3.tar.gz", "has_sig": false, "md5_digest": "231623ed068fd2050d25cdd951b74490", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2704, "upload_time": "2019-02-21T09:12:51", "url": "https://files.pythonhosted.org/packages/b6/7f/68f6a7107c881fe5063773ed5f2cce643885e485537de1564fa6dfc1dfad/RestApiCall-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e9ce53a94ab15752d4632ee270a57544", "sha256": "0361bddda95d50215a79cf72981d97044fce1e810851fcccbcd919c7347c69b4" }, "downloads": -1, "filename": "RestApiCall-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e9ce53a94ab15752d4632ee270a57544", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5010, "upload_time": "2019-02-21T09:12:49", "url": "https://files.pythonhosted.org/packages/79/ae/d6b1e8b2717b5350f61f92359880db872f5ea00a7c85ea33005645bcf20f/RestApiCall-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "231623ed068fd2050d25cdd951b74490", "sha256": "e6cc21430bdd3823a8d3f5a192c5d418ee99b381360f82ecfe00846d1feef5f8" }, "downloads": -1, "filename": "RestApiCall-0.0.3.tar.gz", "has_sig": false, "md5_digest": "231623ed068fd2050d25cdd951b74490", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2704, "upload_time": "2019-02-21T09:12:51", "url": "https://files.pythonhosted.org/packages/b6/7f/68f6a7107c881fe5063773ed5f2cce643885e485537de1564fa6dfc1dfad/RestApiCall-0.0.3.tar.gz" } ] }