Skip to main content

GitHub Release storage adapter for Peagen

Project description

Swarmauri GitHub Release Storage Adapter

Stores artifacts as assets on a GitHub release for use with Peagen.

Installation

# pip install swarmauri_storage_github_release (when published)

Usage

from swarmauri_storage_github_release import GithubReleaseStorageAdapter
from pydantic import SecretStr
import io

adapter = GithubReleaseStorageAdapter(
    token=SecretStr("ghp_..."),
    org="my-org",
    repo="my-repo",
    tag="v1.0.0",
)
uri = adapter.upload("artifact.txt", io.BytesIO(b"data"))
print(uri)

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_storage_github_release-0.3.0.dev4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_storage_github_release-0.3.0.dev4.tar.gz
Algorithm Hash digest
SHA256 41ea20811315264253f54474c5fd8c783827a54a83dfd69c0492147d817c8230
MD5 7ff2739794f83a32234bbe2ab08ad8a4
BLAKE2b-256 7c63adcc446f2fdf253e80fbb9ac840c9471ac89b6d23f3e61c2a7602370438e

See more details on using hashes here.

File details

Details for the file swarmauri_storage_github_release-0.3.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_storage_github_release-0.3.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 bedd3377cb69f4c8db68f46c7d4031770af17c1b928096adf18225a61be70a27
MD5 72b2a90c9350b6b4a2660d21611ad946
BLAKE2b-256 4149dc6ae8784733e3e1f32cff2a734ca6fd183e4fa78a98b42bcd5ad8ba017a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page