Skip to content

KI-labs/python-pachyderm

 
 

Repository files navigation

Python Pachyderm

PyPI Package latest releasee Supported versions Slack Status

Official Python Pachyderm client. Created by kalugny (formerly kalugny/pypachy), and now maintained by Pachyderm Inc.

Installation

pip install python-pachyderm

Usage

PFS

For PFS-related functionality, you can use PfsClient, which wraps around protobuf/gRPC autogenerated code to make for a more idiomatic Python experience.

Here's an example that creates a repo and adds a file:

import python_pachyderm
client = python_pachyderm.PfsClient()
client.create_repo('test')
with client.commit('test', 'master') as c:
    client.put_file_bytes(c, '/dir_a/data.txt', b'DATA')

PPS

Similarly, we offer a higher-level PpsClient for PPS-related functionality. An example:

import python_pachyderm
client = python_pachyderm.PpsClient()
client.list_pipeline()

Everything else

For all other gRPC APIs, we expose the protobuf/gRPC autogenerated code. See the API docs.

Contributing

This driver is co-maintained by Pachyderm and the community. If you're looking to contribute to the project, this is a fantastic place to get involved.

Getting started

To run tests, clone the repo, then run:

make init
tox

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.3%
  • Other 1.7%