{ "info": { "author": "Quintagroup, Ltd.", "author_email": "info@quintagroup.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\ufeff[![Build Status](https://travis-ci.com/openprocurement/ocds-api.client.python.svg?branch=master)](https://travis-ci.com/openprocurement/ocds-api.client.python)\n[![Coverage Status](https://coveralls.io/repos/github/openprocurement/ocds-api.client.python/badge.svg?branch=master)](https://coveralls.io/github/openprocurement/ocds-api.client.python?branch=master)\n\n\n# ocds-api.client.python\n\nA `python` data retrieving and synchronization client for the OCDS API.\n\n## Installation\n\nSimply run from command line:\n```\npip install ocds-api.client.python\n```\n\n## Usage\n### Retrieve\n```py\nfrom ocds_client.clients import RecordClient\n```\n```py\nclient = RecordClient('http://')\n```\nTo get a single `record` by `ocid` use method `get_record`:\n```py\nrecord = client.get_record('ocid')\n```\nTo get multiple `records` by`page id` use method `get_records`:\n```py\nrecords = client.get_records({'size': n , 'page': 'page id'})\n```\nSimilar actions can be taken with the client for `Releases`.\n```py\nfrom ocds_client.clients import ReleaseClient\n```\nUse methods `get_release` and `get_realeses`.\n\n### Synchronization\nTo synchronize, use `SyncClient` when initializing the **OCDS API host** and the resource to synchronize with.\n```py\nfrom ocds_client.sync import SyncClient\nclient = SyncClient('http://', 'record')\nfor record in client.get_resource_items ():\n\t# do smth with record\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/openprocurement/ocds-api.client.python", "keywords": "ocds-client,ocds-api,ocds", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "ocds-api.client.python", "package_url": "https://pypi.org/project/ocds-api.client.python/", "platform": "", "project_url": "https://pypi.org/project/ocds-api.client.python/", "project_urls": { "Homepage": "https://github.com/openprocurement/ocds-api.client.python" }, "release_url": "https://pypi.org/project/ocds-api.client.python/0.0.1b0/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.0.1b0" }, "last_serial": 5096899, "releases": { "0.0.1b0": [ { "comment_text": "", "digests": { "md5": "97ce098061dd57f350d8aee8e5950f09", "sha256": "aff7e8d7b80e3705bd2fdf131ce133c44b44a30cb9433578957b7fd2eb97066a" }, "downloads": -1, "filename": "ocds-api.client.python-0.0.1b0.tar.gz", "has_sig": false, "md5_digest": "97ce098061dd57f350d8aee8e5950f09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8414, "upload_time": "2019-04-04T12:19:49", "url": "https://files.pythonhosted.org/packages/38/ee/0fc6d550f1a09244f73b0a7d54629de360e3651dd9e88210c26380c34f99/ocds-api.client.python-0.0.1b0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97ce098061dd57f350d8aee8e5950f09", "sha256": "aff7e8d7b80e3705bd2fdf131ce133c44b44a30cb9433578957b7fd2eb97066a" }, "downloads": -1, "filename": "ocds-api.client.python-0.0.1b0.tar.gz", "has_sig": false, "md5_digest": "97ce098061dd57f350d8aee8e5950f09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8414, "upload_time": "2019-04-04T12:19:49", "url": "https://files.pythonhosted.org/packages/38/ee/0fc6d550f1a09244f73b0a7d54629de360e3651dd9e88210c26380c34f99/ocds-api.client.python-0.0.1b0.tar.gz" } ] }