Pierre Git Storage SDK

raw JSON →
1.5.2 verified Mon Apr 27 auth: no python

Pierre Git Storage SDK for Python provides client libraries to interact with the Pierre Git storage service. Version 1.5.2, requires Python >=3.9. Release cadence is irregular; recent releases focus on bug fixes and hydration improvements.

pip install pierre-storage
error ModuleNotFoundError: No module named 'pierre'
cause Old package name 'pierre' was renamed to 'pierre-storage'. Import path changed.
fix
Uninstall the old package and install 'pierre-storage', then import from 'pierre_storage'.
error TypeError: __init__() missing 1 required positional argument: 'api_key'
cause In version 1.5.0+, the api_key must be passed as a keyword argument, not positional.
fix
Change PierreClient('your_api_key') to PierreClient(api_key='your_api_key').
breaking In version 1.5.0, the constructor signature changed. Previously, you passed an API token as the first positional argument; now it must be passed as a keyword argument `api_key`.
fix Use `PierreClient(api_key='your_key')` instead of `PierreClient('your_key')`.
deprecated The method `get_blob_content` has been deprecated in favor of `download_blob`.
fix Replace `client.get_blob_content(repo_id, blob_id)` with `client.download_blob(repo_id, blob_id)`.
gotcha The client uses a thread pool internally. If you create many client instances rapidly, you may hit a race condition during pool initialization.
fix Reuse client instances across requests or increase the worker pool size via the `max_workers` parameter.

Initialize the client and list repositories.

import os
from pierre_storage import PierreClient

client = PierreClient(api_key=os.environ.get('PIERRE_API_KEY', ''))
# List repositories
repos = client.list_repositories()
print(repos)