Skip to main content

cython -a for terminal (no HTML/browser needed)

Project description

cyta

cython -a for terminal. No HTML, no browser.

Usage

uvx cyta file.py                    # yellow = Python interaction
uvx cyta --annotate-fullc file.py   # show generated C code
uvx cyta --raw file.py              # plain text (no colors)

Install

uv add cyta   # or: pip install cyta

Example

$ cyta demo.py

demo.py
Yellow = Python interaction

  1 | import cython
  2 |
  3 | def slow_sum(data: list) -> float:  # highlighted yellow
  4 |     total = 0.0                      # highlighted yellow
  5 |     for x in data:                   # highlighted yellow
  6 |         total += x                   # highlighted yellow
  7 |     return total

Name

cython terminal annotation

License

MIT

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

cyta-0.2.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

cyta-0.2.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cyta-0.2.2.tar.gz.

File metadata

  • Download URL: cyta-0.2.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cyta-0.2.2.tar.gz
Algorithm Hash digest
SHA256 fb33b5257d7367420b2dde0f671af9fe5c3acfa3b41c0aa0f79f9c9c9b6d5258
MD5 76774d4318f3078d2147e4cb389c9a7e
BLAKE2b-256 38066b10fa0577d47cfd513da5430b56463d579addc53f30674915f84752be9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyta-0.2.2.tar.gz:

Publisher: publish.yml on cemrehancavdar/cyta

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

File details

Details for the file cyta-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: cyta-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cyta-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c52534c528ace4d64597e4273c4bc8bbf4fa6bd5877899d34816a696fa196db4
MD5 fb2ec7845637eb8268a8acff2a2d8d9f
BLAKE2b-256 892a71376711b75a265172515d95e6bf86790e6f5b18df15643b9a543e5bc60e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyta-0.2.2-py3-none-any.whl:

Publisher: publish.yml on cemrehancavdar/cyta

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