Skip to main content

Colorized console printing and input, ANSI escape codes, and logging functions.

Project description

Pyco

Created by Duplexes and LemonPi314

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 https://duplexes.me/pyco.

Installation

Use the package manager pip to install Pyco.

pip install pyco

Usage

Basic usage of included functions and constants.

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 first to discuss what you would like to change.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyco-1.0.0.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

pyco-1.0.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page