{ "info": { "author": "Albin Larsson", "author_email": "albin.post@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only" ], "description": "# SOCH UGC\n\nSOCH UGC is a Python library for accessing and writing data to the [User Generated Content API](https://www.raa.se/hitta-information/k-samsok/anvandargenererat-innehall-ugc-hubben/) that is a part of the Swedish Open Cultural Heritage (SOCH/K-Sams\u00f6k) API.\n\n## Install SOCH UGC\n\n```bash\npip install sochugc\n```\n\n## Usage Examples\n\n```python\nfrom sochugc import UGC\n\n# the endpoint defaults to http://ugc.kulturarvsdata.se/\nugc = UGC('', endpoint='http://lx-ra-ugchubtest:8080/')\n\n# get the total number of user generated items\nugc.get_total_items_count()\n\n# return an user generated content item by its id\nugc.get_item(679)\n\n# Searching all items or items tied to a specific URI\n# to search all items and not only ones connected to an specific URI omit the uri parameter\nugc.search_items(uri='http://kulturarvsdata.se/raa/bbr/21400000440954', offset=0, limit=100)\n\n#\n# Writing data is not available for everyone\n#\n\n# deleting an item using its id\nugc.delete_item(679)\n\n# creating a new relation, see below for possible relations\nugc.create_item_relation('http://kulturarvsdata.se/raa/kmb/16001000004075', 'isPartOf', 'http://kulturarvsdata.se/pm/photo/POST036605', 'Albin Larsson')\n```\n\n## Supported Item Relations\n\n - sameAs\n - isDescribedBy\n - visualizes\n - hasPart\n - isPartOf\n - isVisualizedBy\n - isContainedIn\n - author\n - authorOf\n - hasBeenUsedIn\n - isRelatedTo\n - architectOf\n - architect\n - user\n - userOf\n - child\n - mother\n - father\n - photographerOf\n - photographer\n - isMentionedBy\n - mentions", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/Abbe98/soch-ugc-py/tarball/1.2.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Abbe98/soch-ugc-py", "keywords": "SOCH,K-Sams\u00f6k,heritage,cultural,API,UGC", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sochugc", "package_url": "https://pypi.org/project/sochugc/", "platform": "", "project_url": "https://pypi.org/project/sochugc/", "project_urls": { "Download": "https://github.com/Abbe98/soch-ugc-py/tarball/1.2.0", "Homepage": "https://github.com/Abbe98/soch-ugc-py" }, "release_url": "https://pypi.org/project/sochugc/1.2.0/", "requires_dist": null, "requires_python": ">=3.5.0", "summary": "API library for the cultural heritage K-Sams\u00f6k (SOCH) UGC API.", "version": "1.2.0" }, "last_serial": 5627711, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ef04ee3c8be99d261fde68d8727e4a53", "sha256": "b511db632f9c4b4aad4d31abfd06d0103d2a0e77e4528560502154d7b9df63d1" }, "downloads": -1, "filename": "sochugc-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ef04ee3c8be99d261fde68d8727e4a53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3290, "upload_time": "2018-10-05T07:25:11", "url": "https://files.pythonhosted.org/packages/25/f2/cc86233d341697ca1413e9ddac5e7ffe7b4e1266d56c54c008cdf3b48e96/sochugc-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "7111eea9ac2b26aff42291c604f47d28", "sha256": "559e4738dad163ce827d62d3e798335eac1bd7d367e7a20e314919e7da213999" }, "downloads": -1, "filename": "sochugc-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7111eea9ac2b26aff42291c604f47d28", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4.0", "size": 4164, "upload_time": "2019-01-17T17:28:15", "url": "https://files.pythonhosted.org/packages/8a/3d/86088df74a8139f47f6bd4387f7a582fdb434df02c1a521c98e77849dd1f/sochugc-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "915f384674c29e49e8a1c4b1769a002c", "sha256": "801422382c276a7cdc1598116c3dd662745d7c7ea5a654fe2dced77b5a3511a7" }, "downloads": -1, "filename": "sochugc-1.1.0.tar.gz", "has_sig": false, "md5_digest": "915f384674c29e49e8a1c4b1769a002c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 3320, "upload_time": "2019-01-17T17:28:17", "url": "https://files.pythonhosted.org/packages/71/ee/a6fcf7bc1665498669e62b3d445b3c1b11e2ff486f7a48b9f0e9e341a8b9/sochugc-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "2b8c1369a73bb53bcc9cc097b3b219ce", "sha256": "2a027531e5b8168459bbc5bde707487fd334b51469c3faa3e12111c1f484a57f" }, "downloads": -1, "filename": "sochugc-1.2.0.tar.gz", "has_sig": false, "md5_digest": "2b8c1369a73bb53bcc9cc097b3b219ce", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 3453, "upload_time": "2019-08-03T09:40:42", "url": "https://files.pythonhosted.org/packages/a9/10/f7e4f1cd5f1e3d3c99496343a32ce08edf1b7c1bd6e837de8c20f51d1d20/sochugc-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2b8c1369a73bb53bcc9cc097b3b219ce", "sha256": "2a027531e5b8168459bbc5bde707487fd334b51469c3faa3e12111c1f484a57f" }, "downloads": -1, "filename": "sochugc-1.2.0.tar.gz", "has_sig": false, "md5_digest": "2b8c1369a73bb53bcc9cc097b3b219ce", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 3453, "upload_time": "2019-08-03T09:40:42", "url": "https://files.pythonhosted.org/packages/a9/10/f7e4f1cd5f1e3d3c99496343a32ce08edf1b7c1bd6e837de8c20f51d1d20/sochugc-1.2.0.tar.gz" } ] }