Skip to main content

deepseek-cordis

A lightweight Python plugin runtime for services, reactive dependencies, owned effects and events. Python 3.11+; no runtime dependencies.

PyPI distribution: deepseek-cordis. Python import: deepseek_cordis.

Version 0.1.0 is an alpha API. deepseek-cordis adapts the ownership model of the vendored Cordis 4.0.4 runtime used by DeepSeek Harness at commit 639ed015397290b3745d163aafe02ffee4aa3f84. It is an independent implementation, not the Harness application or an affiliated Cordis/DeepSeek product.

First plugin

import asyncio
from deepseek_cordis import Context


def greeter(ctx: Context, config: object) -> object:
    ctx.on("hello", lambda name: print("Hello,", name))
    return lambda: print("Greeter stopped")


async def main() -> None:
    root = Context()
    fiber = await root.plugin(greeter)
    root.emit("hello", "Cordis")
    await fiber.dispose()


asyncio.run(main())

The Fiber owns the listener and returned cleanup. Disposal removes the listener and joins teardown. Named services can gate consumers through declared dependencies; provider loss unloads them and restoration starts a new activation. Context views share an owner unless a new plugin is mounted.

Features and boundaries

  • Sync/async setup, owned cleanup, generator effects and nested plugin lifetimes.
  • Scoped service bindings, reactive injection, caller intercept options and Service classes.
  • Owned events with emit, parallel, serial, bail and waterfall dispatch.
  • Explicit plugin metadata, synchronous config validation and deterministic loader batches.
  • Typed package with a py.typed marker.

Compatibility is partial. Transparent method/property proxies, method injection, LoggerService exporters, kernel publication hooks, Fiber.update and advanced loader configuration/HMR remain unimplemented. Passing Python tests does not establish full Cordis or live DeepSeek Harness compatibility. There are no schema adapter extras.

Documentation

MIT licensed, copyright 2026 Ikram Ali. Cordis (Shigma) and DeepSeek Harness (DeepSeek) are MIT-licensed behavioral references. The distribution includes the project license and retained third-party notices; the full attribution is also available in the source repository.

Metadata

Release files for deepseek-cordis 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepseek-cordis 0.2.0
File Size Uploaded Provenance Actions
deepseek_cordis-0.2.0.tar.gz 221.1 kB With provenance Details for deepseek_cordis-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepseek-cordis 0.2.0
File Interpreter ABI Platform Actions
deepseek_cordis-0.2.0-py3-none-any.whl Python 3 none any Details for deepseek_cordis-0.2.0-py3-none-any.whl

Total release size: 253.4 kB

Release files / deepseek_cordis-0.2.0.tar.gz

Download URL deepseek_cordis-0.2.0.tar.gz
Size 221.1 kB
Tags Source
SHA-256 checksum
How to use checksums
478e0caebe0373e48f3524ac155fc62e4e543cb2ef50c0a2706d7047c2a49028
BLAKE2b-256 checksum
How to use checksums
7658a145396aeb91a936c4ee9858a33da23522f6ba632fa1c36bdf6f5442a40c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / deepseek_cordis-0.2.0-py3-none-any.whl

Download URL deepseek_cordis-0.2.0-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de3dca0b0e786c76139150814053090dae3f8c586394c42ea4921767288d1564
BLAKE2b-256 checksum
How to use checksums
f0a85122b956f85dfdfe0073445aee9850e2f1907da4f345752a86be8fd95b14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for deepseek-cordis 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deepseek_cordis-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page