https://github.com/lemonyte/pyco
Colors and utilities for Python console programming.
https://github.com/lemonyte/pyco
Last synced: 9 months ago
JSON representation
Colors and utilities for Python console programming.
- Host: GitHub
- URL: https://github.com/lemonyte/pyco
- Owner: lemonyte
- License: mit
- Created: 2024-12-21T09:24:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-21T09:30:03.000Z (over 1 year ago)
- Last Synced: 2025-08-28T13:45:40.942Z (10 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Pyco
Pyco is a Python package designed to help developers make better command line applications faster. It has cross-platform compatibility for Windows and Linux. Some of the included features are a built-in error logger, colorized terminal input and output, progress bars, and an extensive list of ANSI escape code functions.
Full documentation can be found at .
## Installation
Use pip to install Pyco.
```bash
pip install pyco
```
## Usage
Basic usage of included functions and constants.
```python
from pyco import *
from pyco.color import Fore, Back
# Print a message with a prefix
print_message("message", "prefix")
# Print a message with color
print_message(Fore.RED + "message")
# Print a message with a prefix and color
print_message(Fore.BRIGHT_YELLOW + "message", prefix=Fore.BLUE + "prefix")
# Prompt for user input with color
user_input(Back.GREEN + "prompt", input_color=Fore.BRIGHT_WHITE)
# Log a message into a log file
logging.log("message", "prefix")
```
## Contributing
This project is a work-in-progress, so any issues and bug reports are greatly appreciated. Pull requests are welcome. For major changes and feature requests, please [open an issue](https://github.com/lemonyte/pyco/issues/new) first to discuss what you would like to change.
## License
[MIT License](license.txt)