Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

cdis logo

cdis - a consistent Python disassembler

Important

The cdis bytecode format will not be considered stable until the 1.0.0 release. The 0.x.y releases may have breaking changes in both the bytecode and the API exposed.

What is it?

cdis, pronounced "see this", is a Python disassembler that produce consistent results across Python versions. CPython bytecode is neither forward or backwards compatible, so it outputs bytecode for the "cdis Virtual Machine", which when executed, has the exact same behaviour as CPython's bytecode.

Why would I use it?

  • To write a Python compiler to any language of your choice
  • To determine what symbols a function uses
  • As a compiler target to generate Python code from another language

Known differences with CPython

Missing features

  • User customizable optimization passes (Planned)
  • User customizable VM tracer (Planned)
  • A guide on how to actually use cdis (Planned).

Run tests

Install test dependencies

pip install "pytest>8" "coverage" "tox"
pip install -e .

Run tests on current python version

pytest

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdis-0.0.1a0.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

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

cdis-0.0.1a0-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

Details for the file cdis-0.0.1a0.tar.gz.

File metadata

  • Download URL: cdis-0.0.1a0.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cdis-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 b30933e6f4a0518b0afcc25dc0073828bd226d49650fa675b45caeb6600deafe
MD5 a8b99d5491f881c21a76207bb05a1243
BLAKE2b-256 1ab7d646e6b3c98d087e3f95a2f463212fde07ff92d83d242a94c8f9a929a6ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdis-0.0.1a0.tar.gz:

Publisher: release.yml on cdis-vm/cdis

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

File details

Details for the file cdis-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: cdis-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 67.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cdis-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b96dae7c00e9a11e1f5fbbefcf73f3cbd93fabebd59f972a7d0878e8225608a1
MD5 3d24c60a87f954678bb5799b912d1dd9
BLAKE2b-256 0f3da11a0dd4380bdc4343620659cb954a796fefdd2f58764758be5b47b261ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdis-0.0.1a0-py3-none-any.whl:

Publisher: release.yml on cdis-vm/cdis

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

Release history Release notifications | RSS feed

This release

0.0.1a0 This release

2 files

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