Skip to main content

Core abstractions for SkillOS

Project description

skillos-core

Core abstractions for SkillOS.

SkillRepo

SkillRepo is a read-only abstraction over a directory of skills, backed by fsspec. The backend is selected from the URL protocol, so the same code works against local disk, S3, GCS, Azure, in-memory test fixtures, and anything else fsspec supports.

A skill is any immediate subdirectory of the repo root that contains a SKILL.md file. The SKILL.md may have YAML frontmatter; everything else in the directory is treated as bundled resources.

from skillos_core import SkillRepo

repo = SkillRepo("/path/to/skills")          # local
repo = SkillRepo("s3://bucket/skills")       # S3 (pip install skillos-core[s3])
repo = SkillRepo("gs://bucket/skills")       # GCS (pip install skillos-core[gcs])

for skill in repo:
    print(skill.name, "-", skill.description)

skill = repo.read("hello")
print(skill.body)
for path in skill.list_resources():
    data = skill.read_resource(path)

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

skillos_core-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

skillos_core-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file skillos_core-0.1.0.tar.gz.

File metadata

  • Download URL: skillos_core-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for skillos_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e62c1a83dadf63e7171a8896173688b5e0090dd62389fb44246a490869106aa2
MD5 ea8f6ff1cf1141dd33cc35da37f86c2d
BLAKE2b-256 a8740f95a7f0b35a17fffba75384bd293f515675bc6acf542d7c5576adf0db79

See more details on using hashes here.

Provenance

The following attestation bundles were made for skillos_core-0.1.0.tar.gz:

Publisher: publish.yml on SheaHawkins/skillos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skillos_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: skillos_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for skillos_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f33a47e506882f6173d4c4367b6a49a953f76541d4129acdff186359ddfdd0fa
MD5 a409de9a2306df380389a628e55ecf8e
BLAKE2b-256 f972fabc57e02b0592041dfdcb8130acb821c8e21530bbf79f845ba8b26e74af

See more details on using hashes here.

Provenance

The following attestation bundles were made for skillos_core-0.1.0-py3-none-any.whl:

Publisher: publish.yml on SheaHawkins/skillos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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