How leebro7/sycc works
sycc is an interactive terminal calculator for circles, rings, cylinders, and spheres. A user starts the CLI or calls main(), chooses a shape, enters dimensions and a π option, and receives formatted measurements or returns to the mode menu. Startup handles platform-specific display setup; bundled tqdm and colorama code supplies progress and terminal-color support. The graph follows the documented modes and indexed module references; unsampled internals and uncertain runtime links are not expanded.
Main entry points: core.py CLI entry · std.py Progress core · beginnings.py Startup helpers · ansitowin32.py ANSI conversion
Components 18
Calculator application
- CLI entry
core.py - Circle mode
p/y.py - Cylinder mode
p/yz.py - Ring mode
p/yh.py - Sphere mode
p/qt.py - Startup helpers
p/beginnings.py
Terminal support
- Platform setup
p/pdsys.py - ANSI conversion
colorama/ansitowin32.py - Windows terminal
colorama/winterm.py - Windows API
colorama/win32.py
Progress utilities
- Progress core
p/tqdm/std.py - Progress helpers
p/tqdm/utils.py - Monitor thread
p/tqdm/_monitor.py
Progress adapters
- Auto selector
p/tqdm/auto.py - Async progress
p/tqdm/asyncio.py - Logging adapter
p/tqdm/contrib/logging.py - Task worker
p/tqdm/contrib/utils_worker.py
Other components
- User
Connections 17
- User → CLI entry: starts
- CLI entry → Circle mode: dispatches
core.py - CLI entry → Cylinder mode: dispatches
core.py - CLI entry → Ring mode: dispatches
core.py - CLI entry → Sphere mode: dispatches
core.py - CLI entry → Startup helpers: calls
core.py - Startup helpers → Task worker: uses progress
p/beginnings.py - Startup helpers → Platform setup: uses setup
p/beginnings.py - Platform setup → ANSI conversion: initializes colors
p/pdsys.py - ANSI conversion → Windows terminal: converts sequences
colorama/ansitowin32.py - ANSI conversion → Windows API: checks API
colorama/ansitowin32.py - Progress core → Monitor thread: starts monitor
p/tqdm/std.py - Progress core → Progress helpers: uses helpers
p/tqdm/std.py - Auto selector → Progress core: selects base
p/tqdm/auto.py - Auto selector → Async progress: selects async
p/tqdm/auto.py - Logging adapter → Progress core: wraps progress
p/tqdm/contrib/logging.py - Task worker → Auto selector: reports errors
p/tqdm/contrib/utils_worker.py