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.3.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.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cyta-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 02010657106d3bae95b87d55c1982c7408dd2d4bd9b656db5cd307aab6bba385
MD5 93f896201dca166a0b99ef9a95399ac5
BLAKE2b-256 f1d3dd4f0ba0c5ac7efa1a99816048f31a5d6bc72dec51b61494a21cf4a55950

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyta-0.2.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: cyta-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae380ad7cb12cb53f13777533aa78af57132607af56fa718fd254f6aa9d3a700
MD5 8f4982fbcceedb5b432a66fe35688e4e
BLAKE2b-256 3272e262f94a82a89d072d3c235eed644a314f6923f5f05b4563b576c0ff5059

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyta-0.2.3-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