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.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_storage_github_release-0.3.0.dev2.tar.gz
Algorithm Hash digest
SHA256 092164029bf19a8da2485bf530c20deb92ceacfa99dde6c9147f5f84cd3bc3b2
MD5 52c263cc913f029abfc614584c0d8916
BLAKE2b-256 9815172dc253646535bce8868ddc6af3f7063da554fe0750495deca624dea138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_storage_github_release-0.3.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3d54f2a3b6c125dd59f771b9c9c4c93770ee1e6a412e8aacb889f0839bfd2e
MD5 687060887a202eb273e7b4b631ab5fa9
BLAKE2b-256 91ef05ee15a4a64ba94ed4d0645100dbc22c0ecac75091f2b0896e66b79c28be

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