git clone https://github.com/rkriad585/termatplotlib
cd termatplotlib
pip install -e .pytest
# or with verbose output:
pytest -vAll tests are in tests/test_termatplotlib.py.
- Follow PEP 8
- Use type hints for all function parameters and return types
- No external dependencies beyond Python stdlib
- Mimic existing code patterns and conventions
- Create a new module
termatplotlib/newchart.py - Add a public function following the existing pattern:
- Accept
output_fileand_return_outputparameters - Call
write_output()at the end - Return
(output if _return_output else None)
- Accept
- Import and re-export from
termatplotlib/__init__.py - Add tests in
tests/test_termatplotlib.py - Document in
README.mdanddocs/
- Write clear, concise commit messages
- Reference issue numbers if applicable
- Keep commits focused on single changes
termatplotlib/
__init__.py Public API re-exports
bar.py Bar chart functions
scatter.py Scatter plot
line.py Line and area charts
pie.py Pie chart
hist.py Histogram
boxplot.py Box plot
heatmap.py Heatmap
figure.py Figure API
utils.py Shared utilities
tests/
test_termatplotlib.py All tests
- Ensure all tests pass
- Add tests for new functionality
- Update documentation
- Verify no ANSI codes leak into file output