Python Pachyderm Client
Project description
PyPachy
A python client wrapper for Pachyderm <https://www.pachyderm.io/> API.
Currently implements only the PFS interface.
Installing
$ pip install pypachy
Instructions
The functions correspond closely to the Go client implementation and are very similar to the pachctl interface as well.
In any place where a commit is expected you can either put a sequence in the form of (repo_name, branch/commit_id) or a string in the form of repo/branch/commit_id.
Usage example:
>>> import pypachy >>> client = pypachy.PfsClient() >>> client.create_repo('test') >>> client.start_commit('test', 'master') repo { name: "test" } id: "master/0" >>> client.put_file('test/master/0', 'test', pypachy.FILE_TYPE_DIR) >>> client.put_file('test/master/0', 'test/text.txt', pypachy.FILE_TYPE_REGULAR, value=b'Hello') >>> client.finish_commit('test/master/0') >>> client.get_files('test/master/0', ['test/text.txt']) {'test/test.txt': b"Hello"}
TODO
Test, test, test!
Make the output more Pythonic
Add support for BlockAPI and ObjectAPI
Add support for PPS, Version, etc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypachy-0.0.3.tar.gz
(19.8 kB
view hashes)