Skip to main content

Shared foundation for the Swarm Suite -- models, expert registry, session lifecycle, MCP scaffolding, coordination primitives

Project description

swarm-core

Shared foundation for the Swarm Suite. Pure-Python, no other Swarm Suite packages depend on each other through anything except this package and swarm-kb.

What's here

  • swarm_core.ids -- single helper for prefixed short IDs (f-a1b2, fp-a1b2c3).
  • swarm_core.timeutil -- now_iso() UTC ISO 8601 timestamps.
  • swarm_core.io -- atomic_write_text (tempfile + os.replace).
  • swarm_core.models -- canonical enums and base dataclasses (Severity, ReactionType, Event, Message, Reaction, Claim).
  • swarm_core.experts -- ExpertRegistry + pluggable suggest strategies.
  • swarm_core.sessions -- SessionLifecycle template-method base (mkdir, meta.json, prune, list).
  • swarm_core.coordination -- MessageBus, EventBus, PhaseBarrier, ClaimRegistry, RateLimiter.
  • swarm_core.mcp -- MCPApp builder (transport, tool registration, error wrapping, structured logging).
  • swarm_core.reports -- ReportRenderer ABC + markdown helpers.
  • swarm_core.logging_setup -- setup_logging(tool_name) and get_logger(name).
  • swarm_core.keeper -- claude_md_keeper audit (rules vs accreted bug-fix recipes).

Install

pip install swarmsuite-core

This package is a runtime dep of every other Swarm Suite package; you usually install it transitively.

Layering

swarm_core            <- here (zero in-suite deps)
   ^
   |
swarm_kb              <- storage layer
   ^
   |
spec/arch/review/fix/doc-swarm   <- tools

Layer violations are caught by scripts/check_imports.py in CI.

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

swarmsuite_core-0.1.0.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

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

swarmsuite_core-0.1.0-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarmsuite_core-0.1.0.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for swarmsuite_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 177fe9ab5177c46dc7013be7805ecc4386ce628ff4101ccbe49b5356ae880c72
MD5 2ab7ef2128d0a18ab0679a4adbfa57a8
BLAKE2b-256 75e6d22ade0f6c7cfe092c9e1c2f52eb8e7441af136d6c826b4b5fb65d07a2c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmsuite_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85b0a39b1692f09333a96137e1d8542caa8c426a2add11237dbb48705bb25521
MD5 36bfde981983c9ce30aefbbf580d0d8c
BLAKE2b-256 7fb7c0d506537a3aa8423ba4437e9d2d3204b7c3642ff686c70a4b90c224a072

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