{ "info": { "author": "Robert Forkel", "author_email": "forkel@shh.mpg.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# pycdstar\nPython client library for CDStar\n\n[![Build Status](https://travis-ci.org/clld/pycdstar.svg?branch=master)](https://travis-ci.org/clld/pycdstar)\n[![PyPI](https://img.shields.io/pypi/v/pycdstar.svg)](https://pypi.python.org/pypi/pycdstar)\n[![codecov.io](http://codecov.io/github/clld/pycdstar/coverage.svg?branch=master)](http://codecov.io/github/clld/pycdstar?branch=master)\n\n\n## Usage\n\n```python\n from pycdstar.api import Cdstar\n\n # Initialize a client object, with connection info from a config file\n cdstar = Cdstar()\n\n # create a new object\n obj = cdstar.get_object()\n # with initially no associated metadata\n assert obj.metadata is None\n\n # assigning to the metadata property will create a metadata record\n obj.metadata = {\"creator\": \"pycdstar\"}\n\n # retrieve the now existing object\n obj = cdstar.get_object(obj.id)\n assert 'creator' in obj.metadata\n\n # again, initially the bitstreams property is an empty list\n assert not obj.bitstreams\n\n # we add a bitstream by uploading a local file\n bitstream = obj.add_bitstream(fname='README.txt')\n # and re-read the object\n obj.read()\n # a bitstreams read method returns an iterator to allow for streaming,\n # i.e. chunked downloads\n assert ''.join(list(bitstream.read()))\n assert len(obj.bitstreams) == 1\n\n # to make sure the newly created resources are properly indexed, we allow\n # for a short delay\n sleep(1)\n\n # now we search for a string we know to exist in the uploaded bitstream\n res = cdstar.search('ssh')\n assert len(res)\n # the first element in the search results list has the bitstream as\n # associated resource\n assert 'ssh' in ''.join(list(res[0].resource.read()))\n\n query = 'pycdstar'\n res = cdstar.search(query, index='metadata')\n assert len(res)\n res = cdstar.search(query, index='fulltext')\n assert not len(res)\n bitstream.delete()\n obj.delete()\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/clld/pycdstar", "keywords": "", "license": "Apache 2", "maintainer": "", "maintainer_email": "", "name": "pycdstar", "package_url": "https://pypi.org/project/pycdstar/", "platform": "", "project_url": "https://pypi.org/project/pycdstar/", "project_urls": { "Homepage": "https://github.com/clld/pycdstar" }, "release_url": "https://pypi.org/project/pycdstar/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A python wrapper for the CDStar API", "version": "1.0.1" }, "last_serial": 5390801, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "217d1ebb153e0166913af2a5ca29f48c", "sha256": "ff06d12f736bbf16e9a10865c8772a4f70e85749224f891108a4ab763a04f92a" }, "downloads": -1, "filename": "pycdstar-0.1.0.tar.gz", "has_sig": false, "md5_digest": "217d1ebb153e0166913af2a5ca29f48c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16989, "upload_time": "2015-12-17T20:11:17", "url": "https://files.pythonhosted.org/packages/7a/01/635f3ad0d9efb890b002effaa0d806f5779b16a005e4526ed2e62be515b2/pycdstar-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3dfbe1342aa8e7c406fd1ec85f40bdc8", "sha256": "dad3be5a0b2276c8e7607eae853eeca93581bc85cd9d74a0d429042206641ac3" }, "downloads": -1, "filename": "pycdstar-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3dfbe1342aa8e7c406fd1ec85f40bdc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14418, "upload_time": "2015-12-17T20:16:32", "url": "https://files.pythonhosted.org/packages/56/f2/aa0c1b3fa403ceed96288dcd70d4adf2a62622f960a11410f1bc0f2ac127/pycdstar-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a55933186f08c72490fc69692571c308", "sha256": "1917912e36e06e4f25f65985412dfdde79fef9844e17258110517bfbf524695e" }, "downloads": -1, "filename": "pycdstar-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a55933186f08c72490fc69692571c308", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14590, "upload_time": "2015-12-18T12:21:38", "url": "https://files.pythonhosted.org/packages/a7/f6/e9257c9a9ab51d4de8d28bfbde60f5bd25656c006a93a62b881391367fe9/pycdstar-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "302d70b4852f4886e98244c7a920184e", "sha256": "3caa226297498f756ad1e3d258ae4f063afb6d90c06cd88057e81ccf0cfa9256" }, "downloads": -1, "filename": "pycdstar-0.2.0.tar.gz", "has_sig": false, "md5_digest": "302d70b4852f4886e98244c7a920184e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15218, "upload_time": "2016-01-15T08:17:22", "url": "https://files.pythonhosted.org/packages/75/1a/155ff4ea473ea3ba88bbf477904dbf25635f8ec0a7290759ec01d370c910/pycdstar-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "a76ffb8a327cafc40f2f45c6b2e16c63", "sha256": "c58d4857d6a6e6e0041883032fa1eab1f0a8f624cf5c90c56bd0b6d8f8fb8c91" }, "downloads": -1, "filename": "pycdstar-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a76ffb8a327cafc40f2f45c6b2e16c63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18959, "upload_time": "2016-10-24T16:19:48", "url": "https://files.pythonhosted.org/packages/23/40/b534ed7a156a63cab2fe14b1160e16dc40314c3a2d27f0a3fde1207f5165/pycdstar-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "4e08a7f9a6f2a7ffaa1751f57bb00ef5", "sha256": "e380cf7e7ad9b376487205b4941aeccb004de07eb3164d5a2527bff1ed7e0689" }, "downloads": -1, "filename": "pycdstar-0.3.1.tar.gz", "has_sig": false, "md5_digest": "4e08a7f9a6f2a7ffaa1751f57bb00ef5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18969, "upload_time": "2016-10-24T16:52:26", "url": "https://files.pythonhosted.org/packages/51/f8/03faa9ca5cfcd6ca3596dc6d7bdc13c57c8b60aaf845874c91e38d249a38/pycdstar-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "398a95fa54e6d0274b961f7cf4e0a9f5", "sha256": "d4682fb03baf35839d4823b59a8927aa1f061bef2bf220661813217c3548d3f0" }, "downloads": -1, "filename": "pycdstar-0.3.2.tar.gz", "has_sig": false, "md5_digest": "398a95fa54e6d0274b961f7cf4e0a9f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19435, "upload_time": "2016-10-28T08:01:05", "url": "https://files.pythonhosted.org/packages/6f/df/26118aac21a755a010825556b60635d4a7546d638a896080459691f6bbe9/pycdstar-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "719ceead219df9f5fd25020399f46865", "sha256": "89f773a102b51f7f37f13453626dfa08ae3d0d34c61f10dba48bb5033d1f8606" }, "downloads": -1, "filename": "pycdstar-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "719ceead219df9f5fd25020399f46865", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14165, "upload_time": "2018-06-12T07:18:28", "url": "https://files.pythonhosted.org/packages/05/2c/f4dc5a6d699df61c034015b8740443e2f16f1e42de71de19ef5bd3d6a535/pycdstar-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76071f4c569cefa10ba615933e95ebf9", "sha256": "320c9f396a235a14d6bcae8f7b205f6a4484d695bfd34cd372bce94f2c541f30" }, "downloads": -1, "filename": "pycdstar-0.4.0.tar.gz", "has_sig": false, "md5_digest": "76071f4c569cefa10ba615933e95ebf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11443, "upload_time": "2018-06-12T07:17:57", "url": "https://files.pythonhosted.org/packages/f3/83/b7896f4b9c5106a028731988d630b82d7982bfcee85e24dd189d47c6b41d/pycdstar-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "28c59b4fef318e7f03b004aa3d724674", "sha256": "30b3a5aa3449623b1e55d40dcfb3d2e4a5e8a95426c82e0310a24f0f8a711a8a" }, "downloads": -1, "filename": "pycdstar-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "28c59b4fef318e7f03b004aa3d724674", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14167, "upload_time": "2018-09-06T15:42:22", "url": "https://files.pythonhosted.org/packages/21/87/c898addadad54f7555a48fbb593a2da79394dd34a2e7012ef505cbb1dbb4/pycdstar-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8994ac2778af9a92051dbe05b0ae252f", "sha256": "5c82c050cae04a9b3113d5c1f914034409e8fb52555d96e1e59c4e5428e0f9da" }, "downloads": -1, "filename": "pycdstar-0.4.1.tar.gz", "has_sig": false, "md5_digest": "8994ac2778af9a92051dbe05b0ae252f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11452, "upload_time": "2018-09-06T15:42:17", "url": "https://files.pythonhosted.org/packages/25/39/0b1d8f15afa3a7e4ee3566c9a4b9369146ab0a221ed9a9a747518ee2cb29/pycdstar-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "0c31fb4598634ee287114ea7ff3237be", "sha256": "b5fa09ae87f0d892437868bf4818ead9cc67468080fc38466be84633f9849828" }, "downloads": -1, "filename": "pycdstar-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0c31fb4598634ee287114ea7ff3237be", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14141, "upload_time": "2018-09-13T19:15:21", "url": "https://files.pythonhosted.org/packages/06/0b/b803066f59fe89ad3700c7dad0291d51680f51a0f2d6ae8f1c807abda7d3/pycdstar-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61132cfe51448d5b8033e0abea1a6084", "sha256": "98bae3b1250a80323194461e53362ce407952a488bdeabf772c059bb89c6bbb1" }, "downloads": -1, "filename": "pycdstar-0.4.2.tar.gz", "has_sig": false, "md5_digest": "61132cfe51448d5b8033e0abea1a6084", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11441, "upload_time": "2018-09-13T19:15:16", "url": "https://files.pythonhosted.org/packages/6a/82/3580f8443d75d5a6cb12be77ce1696c622e79c6bcb78087832f36587bbcb/pycdstar-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "ff8b8201840491e3dcc0039408117239", "sha256": "5f11f23e79b7824b6842066cc279d36fb2b9fbd7159ce5580af1c83767873773" }, "downloads": -1, "filename": "pycdstar-0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ff8b8201840491e3dcc0039408117239", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14180, "upload_time": "2019-04-03T10:03:02", "url": "https://files.pythonhosted.org/packages/ac/61/99903f4ac5eebc54d5e0013037debb6051d8fee6ad9923b1ef0ffaf08cbd/pycdstar-0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "705a6458087218fc8e0368063d48620f", "sha256": "14b088190ba68b9d9847dbfa2af5dc45aacee04cbe90f90849f29550b7ce1e81" }, "downloads": -1, "filename": "pycdstar-0.4.3.tar.gz", "has_sig": false, "md5_digest": "705a6458087218fc8e0368063d48620f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11490, "upload_time": "2019-04-03T10:02:57", "url": "https://files.pythonhosted.org/packages/74/fc/df090cd4bf1d7749c64ffe550ba7de2295779e4b6623d5cb9040e6d3bcdc/pycdstar-0.4.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "bf0265f7f13e41bd3ff11ad70857fa28", "sha256": "c978a1dca4a5c43e8a113779222802a6e27982215df3a1dca413b898e10668f0" }, "downloads": -1, "filename": "pycdstar-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bf0265f7f13e41bd3ff11ad70857fa28", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14041, "upload_time": "2019-06-05T08:30:41", "url": "https://files.pythonhosted.org/packages/7e/15/d28a3fb150f80b4ac1c1bdfa5295f786c44b3ef70d93c57b293f51261dd6/pycdstar-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5acfaa60bc87497fa1090ee8becea617", "sha256": "8aaeb608cf7eda9950a00e0c7c4171ecefc536a37d8c6fafb0970615d98b00ae" }, "downloads": -1, "filename": "pycdstar-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5acfaa60bc87497fa1090ee8becea617", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11162, "upload_time": "2019-06-05T08:30:37", "url": "https://files.pythonhosted.org/packages/bd/3b/1ca0c51254cb59b5e0840b8d8bcc0e1a24e667e66865d8b37625e046f364/pycdstar-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "eccc824d50921f8c4612b928a2b189aa", "sha256": "c8162b7cdc2406fc1119e7c5247bc96bc84e14f7da13368f85aab413ab7f3ad2" }, "downloads": -1, "filename": "pycdstar-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "eccc824d50921f8c4612b928a2b189aa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14016, "upload_time": "2019-06-12T11:52:17", "url": "https://files.pythonhosted.org/packages/e0/bd/02bf30fa2f627ff6aed6bffc64553d7052273b703f1cf5072b9976c3b48f/pycdstar-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f451f4ef69c465d49a98245355915a61", "sha256": "0ccdfd44a6b2681de72df9a949994cc6d0985c105ac2d126cee2428ab878308e" }, "downloads": -1, "filename": "pycdstar-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f451f4ef69c465d49a98245355915a61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11145, "upload_time": "2019-06-12T11:52:13", "url": "https://files.pythonhosted.org/packages/c2/ca/ac24c20451c35fd0045fb933a4ac51f73098931442734317b5e022aa7a1e/pycdstar-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eccc824d50921f8c4612b928a2b189aa", "sha256": "c8162b7cdc2406fc1119e7c5247bc96bc84e14f7da13368f85aab413ab7f3ad2" }, "downloads": -1, "filename": "pycdstar-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "eccc824d50921f8c4612b928a2b189aa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14016, "upload_time": "2019-06-12T11:52:17", "url": "https://files.pythonhosted.org/packages/e0/bd/02bf30fa2f627ff6aed6bffc64553d7052273b703f1cf5072b9976c3b48f/pycdstar-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f451f4ef69c465d49a98245355915a61", "sha256": "0ccdfd44a6b2681de72df9a949994cc6d0985c105ac2d126cee2428ab878308e" }, "downloads": -1, "filename": "pycdstar-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f451f4ef69c465d49a98245355915a61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11145, "upload_time": "2019-06-12T11:52:13", "url": "https://files.pythonhosted.org/packages/c2/ca/ac24c20451c35fd0045fb933a4ac51f73098931442734317b5e022aa7a1e/pycdstar-1.0.1.tar.gz" } ] }