Arrand-arabic-random-text
Arrand-arabic-random-text copied to clipboard
To-Do List for Improvements
trafficstars
1. Modern Python Packaging (PEP 621)
- [x] Replace
setup.pywithpyproject.toml - [x] Define metadata: name, version, description, authors, license, etc.
- [x] Declare dependencies and build backend
2. Code Quality & Documentation
- [x] Add docstrings (Google or NumPy style) to all public functions and modules
- [x] Add
__main__.pyfor running withpython -m arrand
3. Command-Line Interface (CLI)
- [x] Add CLI entry point using
argparseortyper - [x] Allow choosing type of text:
aya,hadith,poem, etc. - [x] Add optional flag for vocalization
4. Tests
- [x] Create formal unit tests using
pytest - [x] Create test files like
test_arrandom.py
5. API Exposure
-
[x] Expose key functions in
arrand/__init__.py:from .arrandom import generate_random_text from .builder import TextBuilder __all__ = ['generate_random_text', 'TextBuilder']
6. Improve README
- [x] Add examples of usage
- [x] Add sample output
- [x] Mention vocalized/unvocalized support
- [x] Include install and usage instructions
7. Metadata & Versioning
- [x] Move version to
arrand/__version__.py - [x] Reference version dynamically in
pyproject.toml - [x] Keep
AUTHORS.mdandCREDITSfiles updated
8. Optional Enhancements
- [x] Support nonsense generation from
nonsense_const.py - [x] Add output length control (e.g.,
--words 10) - [x] Add
--vocalizedflag in CLI to toggle output form