{ "info": { "author": "Fabio Comuni", "author_email": "f.comuni@creative-group.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)" ], "description": "# python-cip\n\nA very simple python interface to Canto Cumulus CIP\n\nWraps [requests](http://python-requests.org) to call CIP endpoints in a session\n\n\n## API\n\n### class cip.CIP\n\n> CIP(url, serveraddress, user=None, password=None)\n\n#### Methods:\n\n\n** login(user = None, password=None, catalogname=None) **\n\nOpen a session on CIP. Returns reply from server.\n\n\n** do(api, rawdata=False, ...) **\n\nCall a `api` CIP endpoint. Returns reply from server.\nIf `rawdata` is False, reply is parsed JSON.\n\nAny extra arguments are passed to request post call\n\n\n** request(api, ...) **\n\nDo a POST request to `api` CIP endpoint. Returns\n[request Response object](http://docs.python-requests.org/en/master/api/#requests.Response)\n\nAny extra arguments are passed to request post call\n\n\n** logout(self) **\n\nClose CIP session. Returns nothing\n\n\n### class cip.CIPException(Exception)\n\n\n## Example\n\n```python\nfrom cip import CIP\n\nself.cip = CIP(\"http://localhost:8080/CIP/\", \"localhost\")\nself.cip.login('user', 'password', 'Sample Catalog')\n\nr = self.cip.do(\"metadata/search/Sample Catalog\", data={\n 'querystring': '\"Asset Name\" contains \"photo\"',\n 'field': [\"ID\", \"Asset Name\", \"Asset Modification Date\"],\n})\n\nprint( r['items'][0]['Asset Modification Date'] )\n\n```\n\n\n## Test\n\n```bash\n$ pip install tox\n$ tox\n```\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/fcomuni/python_cip", "keywords": "network", "license": "LGPLv2+", "maintainer": "", "maintainer_email": "", "name": "python-cip", "package_url": "https://pypi.org/project/python-cip/", "platform": "", "project_url": "https://pypi.org/project/python-cip/", "project_urls": { "Homepage": "https://bitbucket.org/fcomuni/python_cip" }, "release_url": "https://pypi.org/project/python-cip/0.0.4/", "requires_dist": [ "requests (>=2.12)" ], "requires_python": ">=2.7, <4", "summary": "Very simple python interface to Canto Cumulus CIP", "version": "0.0.4" }, "last_serial": 3039047, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "2569e97cbe9696afbed0d72c80bfcc49", "sha256": "25ac09f458bf1acfe545d842e36c36365510feb75fb03153dcb6972fec59ccd4" }, "downloads": -1, "filename": "python_cip-0.0.4-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "2569e97cbe9696afbed0d72c80bfcc49", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, <4", "size": 4504, "upload_time": "2017-07-21T10:45:15", "url": "https://files.pythonhosted.org/packages/ec/aa/5c9ff6feec8ce2e8dd9d732e299a25d8c166ab1c8dc10772e9aa47c1ab7a/python_cip-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a56802e0d24439811672f69077815c7c", "sha256": "971628e213656e6f932c1bf401824f80f03ce90e2e93b254e228076458fea49c" }, "downloads": -1, "filename": "python-cip-0.0.4.tar.gz", "has_sig": true, "md5_digest": "a56802e0d24439811672f69077815c7c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, <4", "size": 5355, "upload_time": "2017-07-21T10:45:17", "url": "https://files.pythonhosted.org/packages/84/96/100235fecef38240db1951eeae3e3ad2f89b42d4a128a6cce921d835348a/python-cip-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2569e97cbe9696afbed0d72c80bfcc49", "sha256": "25ac09f458bf1acfe545d842e36c36365510feb75fb03153dcb6972fec59ccd4" }, "downloads": -1, "filename": "python_cip-0.0.4-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "2569e97cbe9696afbed0d72c80bfcc49", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, <4", "size": 4504, "upload_time": "2017-07-21T10:45:15", "url": "https://files.pythonhosted.org/packages/ec/aa/5c9ff6feec8ce2e8dd9d732e299a25d8c166ab1c8dc10772e9aa47c1ab7a/python_cip-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a56802e0d24439811672f69077815c7c", "sha256": "971628e213656e6f932c1bf401824f80f03ce90e2e93b254e228076458fea49c" }, "downloads": -1, "filename": "python-cip-0.0.4.tar.gz", "has_sig": true, "md5_digest": "a56802e0d24439811672f69077815c7c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, <4", "size": 5355, "upload_time": "2017-07-21T10:45:17", "url": "https://files.pythonhosted.org/packages/84/96/100235fecef38240db1951eeae3e3ad2f89b42d4a128a6cce921d835348a/python-cip-0.0.4.tar.gz" } ] }