GitHub storage adapter stub for Peagen
Project description
Swarmauri GitHub Storage Adapter
GithubStorageAdapter is a lightweight placeholder storage adapter for Peagen.
It returns deterministic github:// URIs for uploaded objects without making
any network calls to GitHub. The class is useful for demos, tests, and for
validating code paths that rely on the storage adapter interface.
Installation
Choose the tool that matches your workflow:
# pip
pip install swarmauri_storage_github
# Poetry
poetry add swarmauri_storage_github
# uv
uv add swarmauri_storage_github
Quickstart
GithubStorageAdapter.upload() accepts a key and a binary file-like object. It
returns the key formatted as a github:// URI so callers can wire the adapter
into pipelines that expect GitHub-backed storage without performing any remote
I/O.
from io import BytesIO
from swarmauri_storage_github import GithubStorageAdapter
adapter = GithubStorageAdapter()
# The adapter only inspects the key, so any binary stream is acceptable.
payload = BytesIO(b"# Example README\nThis payload would be uploaded to GitHub.")
uri = adapter.upload("my-org/my-repo/README.md", payload)
print(uri) # github://my-org/my-repo/README.md
Behavior and limitations
upload()does not persist data?it simply echoes the key back as agithub://URI.download(),upload_dir(), anddownload_dir()raiseNotImplementedErrorto signal that full GitHub support is intentionally out of scope for this stub.
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_storage_github-0.11.0.dev1.tar.gz.
File metadata
- Download URL: swarmauri_storage_github-0.11.0.dev1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
613d7fa9ed80851ab073c113cb743315255b528e1a9dacd644cf8790c176e2eb
|
|
| MD5 |
9368ae35e6aa626ff66679416f1f3220
|
|
| BLAKE2b-256 |
db066a43dc8185325d7934ea5a73ce8b3e9c9f2bdd11af4188d94da874abe7ce
|
File details
Details for the file swarmauri_storage_github-0.11.0.dev1-py3-none-any.whl.
File metadata
- Download URL: swarmauri_storage_github-0.11.0.dev1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04a2a817bbdbdb876cfb271e70bff55c4fac65e598f2b2312d84a001d90ae49c
|
|
| MD5 |
3a16e0f8b17fe94099f97d5a014f2262
|
|
| BLAKE2b-256 |
27e64fd23f25f5fc5b1cdf3aaf9e5b7e4b3f5184d37b74adb5b27de08929759a
|