Skip to content

cemrehancavdar/cyta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

cython -a for terminal

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages