Skip to main content

Python Pachyderm

PyPI Package latest release Supported versions Slack Status

Official Python Pachyderm client.

This library provides the autogenerated gRPC/protobuf code for Pachyderm, along with a higher-level and more pythonic Client class. See the API docs.

Installation

pip install python-pachyderm

A Small Taste

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

import python_pachyderm

# Connects to a pachyderm cluster on localhost:30650.
# For other options, see the API docs.
client = python_pachyderm.Client()

# Create a pachyderm repo called `test`
client.create_repo("test")

# Create a file in `(repo="test", branch="master")` at `/dir_a/data.txt`
# Similar to `pachctl put file test@master:/dir_a/data.txt`
with client.commit("test", "master") as commit:
    client.put_file_bytes(commit, "/dir_a/data.txt", b"DATA")

# Get back the file
f = client.get_file(("test", "master"), "/dir_a/data.txt")
print(f.read())  # >>> b"DATA"

How to load a CSV file into a Pandas dataframe

import pandas as pd

f = client.get_file(("my_repo", "my_branch"), "/path_to/my_data.csv")
df = pd.read_csv(f)

For more sophisticated examples, see the examples directory.

Versioning

Prior to python-pachyderm 2.0, this library's versioning synced with pachyderm's core versioning; e.g. version 1.8.5 of this library synced with 1.8.5 of pachyderm core. python-pachyderm 2.0 onwards uses semver instead, so versions are not tied to pachyderm core. This was done for two reasons:

  1. Sometimes this library makes breaking or backwards-incompatible changes, which aren't properly conveyed by revision changes.
  2. Pachyderm core is stable enough that most features of this library will work for disparate versions of pachyderm clusters. To help ensure this, this library's CI tests against several versions of pachyderm core.

However, if for whatever reason you need to know which version of pachyderm core a version of python-pachyderm was built with, consult CHANGELOG.md. As a broad rule of thumb, we recommend working with the latest version of both pachyderm core and python-pachyderm where possible.

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. Take a look at the contributing guide for more info (including testing instructions).

Metadata

Release files for python-pachyderm 7.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-pachyderm 7.6.0
File Size Uploaded
python_pachyderm-7.6.0.tar.gz 135.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-pachyderm 7.6.0
File Interpreter ABI Platform
python_pachyderm-7.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 292.1 kB

Release files / python_pachyderm-7.6.0.tar.gz

Download URL python_pachyderm-7.6.0.tar.gz
Size 135.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5398ae558e5603acba4629822b307251c226c4a64551e8d3d7a4bde5555eb87d
BLAKE2b-256 checksum
How to use checksums
18147b72dce47bac12674a81658b33e25d6f1183bab11d857e3fffd6f42d996e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Darwin/22.3.0

Release files / python_pachyderm-7.6.0-py3-none-any.whl

Download URL python_pachyderm-7.6.0-py3-none-any.whl
Size 156.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4e5919159e2dd357998325e997a23b5ac37d3c569d97bf926ede5902efaa224
BLAKE2b-256 checksum
How to use checksums
b1fc36ff22051880a564c81a02ac90e2715f4ae2471d2213dd147155e1723825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Darwin/22.3.0

Release history Release notifications | RSS feed

This release

7.6.0 This release

2 release files

7.5.0

2 release files

7.4.0

2 release files

7.3.3

2 release files

7.3.2

2 release files

7.3.1

2 release files

7.3.0

2 release files

7.2.1

2 release files

7.2.0

2 release files

7.1.2

1 release file

7.1.1

1 release file

7.1.0

1 release file

7.0.0

1 release file

6.3.3

1 release file

6.3.2

1 release file

6.3.1

1 release file

6.2.0

1 release file

6.1.0

1 release file

6.0.0

1 release file

5.0.0

1 release file

4.2.0

1 release file

4.1.0

1 release file

4.0.0

1 release file

3.1.0

1 release file

3.0.0

1 release file

2.6.0

1 release file

2.5.0

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.9.7

1 release file

1.9.4

1 release file

1.8.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page