{ "info": { "author": "Yuval Kalugny", "author_email": "kalugny@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "PyPachy\r\n=======\r\n\r\nA python client wrapper for *Pachyderm* API.\r\n\r\n*NOTES*\r\n\r\n1. Currently implements only the PFS interface.\r\n\r\n2. Supports Pachyderm versions 1.4 and up\r\n\r\n\r\nInstalling\r\n----------\r\n\r\n::\r\n\r\n $ pip install pypachy\r\n\r\n\r\nInstructions\r\n------------\r\nAll of the PFS functions used in ``pachctl`` are supported (almost) as-is.\r\nThere are some helper functions that help make things more pythonic:\r\n* ``commit`` which is a context manager wrapper for ``start_commit`` and ``finish_commit``\r\n* ``get_files`` which supports getting the data from multiple files\r\n\r\nNaming commits\r\n--------------\r\n\r\nAll functions that accept a ``commit`` argument will accept a tuple of ``(repo, branch)`` or ``(repo, commit_id)``,\r\na string like ``repo/branch`` or ``repo/commit_id`` and a Commit object.\r\n\r\ne.g:\r\n\r\n::\r\n\r\n >>> client.list_file(('my_repo', 'branch'), '/') # tuple\r\n >>> client.list_file('my_repo/commit_id', '/') # string\r\n >>> c = client.list_commit('my_repo')[0] # get some commit\r\n >>> client.list_file(c, '/') # and use it directly\r\n\r\n\r\n\r\nBasic usage example\r\n-------------------\r\n\r\n::\r\n\r\n >>> import pypachy\r\n \r\n >>> client = pypachy.PfsClient()\r\n >>> client.create_repo('test')\r\n >>> with client.commit('test', 'master') as c:\r\n ...: client.put_file_bytes(c, '/dir_a/data', b'DATA')\r\n ...: client.put_file_url(c, '/dir_b/icon.png', 'http://www.pearl-guide.com/forum/images/smilies/biggrin.png')\r\n ...:\r\n >>> client.get_files('test/master', '/', recursive=True)\r\n {'/dir_a/data': b'DATA',\r\n '/dir_b/icon.png': b'\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\\x00\\rIHDR\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\x10\\x08...'}\r\n\r\n\r\nAs of version 0.1.4, there is also limited support for PPS:\r\n::\r\n\r\n >>> pps_client = pypachy.PpsClient()\r\n >>> pps_client.list_pipeline()\r\n ...\r\n\r\n\r\nTODO\r\n----\r\n* Test, test, test!\r\n* Add support for ``ObjectAPI``\r\n\r\n\r\nChangelog\r\n---------\r\n``0.1.5``\r\n- Bug fixes\r\n\r\n``0.1.4``\r\n- Added: Alpha support for PPS\r\n- Changed: Adapted for Pachyderm ``1.5.2``\r\n\r\n``0.1.3``\r\n- Fixed: ``inspect_commit`` was broken\r\n- Added: ``provenances_for_repo`` function gives all the provenances for the commits in the repo\r\n\r\n``0.1.2``\r\n- Added: ``PfsClient`` default parameters now use the environment variables for pachd\r\n- Added: ``put_file_bytes`` can accept an iterator\r\n- Changed: ``commit`` now tries to close the commit if an error occurred inside the context\r\n- Added: More examples and a changelog to README", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kalugny/pypachy", "keywords": "pachyderm", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pypachy", "package_url": "https://pypi.org/project/pypachy/", "platform": "", "project_url": "https://pypi.org/project/pypachy/", "project_urls": { "Homepage": "https://github.com/kalugny/pypachy" }, "release_url": "https://pypi.org/project/pypachy/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "Python Pachyderm Client", "version": "0.1.5" }, "last_serial": 3076719, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d2d1bead35a29601a37d647cf588d662", "sha256": "879b4f507c778489262a4acaf36ff0dbfe9d1597fddf7d24162e557abb6e1334" }, "downloads": -1, "filename": "pypachy-0.0.1.zip", "has_sig": false, "md5_digest": "d2d1bead35a29601a37d647cf588d662", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21687, "upload_time": "2017-02-19T10:09:37", "url": "https://files.pythonhosted.org/packages/a9/eb/d32f479284d65dbf00a9a58f3f29061d7c7a4d1b72e1f1f15c263fe4bfb3/pypachy-0.0.1.zip" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4d21e9f6d210689407d31ba4b41c7dcc", "sha256": "cd792dcd1ee0ca345eb09fb0abcd3e06e6daa8753300aada18353c8b4e34c99b" }, "downloads": -1, "filename": "pypachy-0.0.2.zip", "has_sig": false, "md5_digest": "4d21e9f6d210689407d31ba4b41c7dcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22489, "upload_time": "2017-02-19T10:18:46", "url": "https://files.pythonhosted.org/packages/42/92/2ae9a57c741a110aad05b4ef3c08adbaa9c868a00fc632c99cbf0ee1b849/pypachy-0.0.2.zip" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "24d6ece4d8988a537c93356dcfa62125", "sha256": "859edbc907b748ebeb9d8be8bd2b66b2022c98dc0bc615b3231d72d843a08627" }, "downloads": -1, "filename": "pypachy-0.0.3.tar.gz", "has_sig": false, "md5_digest": "24d6ece4d8988a537c93356dcfa62125", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19755, "upload_time": "2017-04-03T17:07:36", "url": "https://files.pythonhosted.org/packages/d7/71/d77c3bb09420d53de5145d984c966864aca37ff96b9c58e1ec26f23afb9c/pypachy-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "03bfd0e801d79968f8e2a09b6e5c8c37", "sha256": "6244afdb2bdfb16b60e039631891b6014d3374212a1abe6badf131807f85d763" }, "downloads": -1, "filename": "pypachy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "03bfd0e801d79968f8e2a09b6e5c8c37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24773, "upload_time": "2017-04-13T13:45:15", "url": "https://files.pythonhosted.org/packages/90/47/7f72a39dc01b9afced524edc3fc42ab2ad4d3002d53869bf46bc6e1f4e11/pypachy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bd40d276f1f503a1ac7c019e642c8ce3", "sha256": "515f133334fc0f0c85f78864c7979d658703d5c430a6e1a8d2ef5ab004d5b1dc" }, "downloads": -1, "filename": "pypachy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bd40d276f1f503a1ac7c019e642c8ce3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24809, "upload_time": "2017-04-18T16:32:40", "url": "https://files.pythonhosted.org/packages/ce/f6/2feb2f7b57fa90325df5a471670792a95f608871dc54c059a6b664f550a9/pypachy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2f01fb1324bdb5c4eb0db0f017d53bbf", "sha256": "b88d213dee178f126158f9f42ecdebc9841b4014f963f6f43ad345c140f0fb4f" }, "downloads": -1, "filename": "pypachy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2f01fb1324bdb5c4eb0db0f017d53bbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23360, "upload_time": "2017-04-20T06:15:26", "url": "https://files.pythonhosted.org/packages/25/9b/50566f5219685694e1442354b9710e9d4960077a17254d0c94334f9589e9/pypachy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "154d3e6550f30fff7fc6fed7c6212e6e", "sha256": "f37231b93139db179aa59807592b1bc0a4e9ea6a1025d74bfa1d517ab4b58ff7" }, "downloads": -1, "filename": "pypachy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "154d3e6550f30fff7fc6fed7c6212e6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23680, "upload_time": "2017-05-18T07:18:50", "url": "https://files.pythonhosted.org/packages/6b/f4/4b52099762f0988423b69ae07ea4703261023703d29a026c06e2b8577af2/pypachy-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0761bf5cb81cd141c8fd0e6aad31209b", "sha256": "62ac8172631993f8243901fd22c76dbb522c03240524ccf8ead6e6d52d6e5d51" }, "downloads": -1, "filename": "pypachy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0761bf5cb81cd141c8fd0e6aad31209b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42195, "upload_time": "2017-08-06T12:07:18", "url": "https://files.pythonhosted.org/packages/5b/b1/078ab4251c466715246aee9dbc924342660ee0731f0b8490faf808792784/pypachy-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "f26ec7bf0be2dbd298f24390a03b004b", "sha256": "10bd7efb5def1b22ee329635a3db7731aa350c1538d9e29376dd46debe825361" }, "downloads": -1, "filename": "pypachy-0.1.5.tar.gz", "has_sig": false, "md5_digest": "f26ec7bf0be2dbd298f24390a03b004b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42307, "upload_time": "2017-08-06T16:29:05", "url": "https://files.pythonhosted.org/packages/e7/cb/e0324c8bb05d82b5f939094214e36d318e279f6ea470fcf3298f8b35e90c/pypachy-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f26ec7bf0be2dbd298f24390a03b004b", "sha256": "10bd7efb5def1b22ee329635a3db7731aa350c1538d9e29376dd46debe825361" }, "downloads": -1, "filename": "pypachy-0.1.5.tar.gz", "has_sig": false, "md5_digest": "f26ec7bf0be2dbd298f24390a03b004b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42307, "upload_time": "2017-08-06T16:29:05", "url": "https://files.pythonhosted.org/packages/e7/cb/e0324c8bb05d82b5f939094214e36d318e279f6ea470fcf3298f8b35e90c/pypachy-0.1.5.tar.gz" } ] }