Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkstudio585/cowser
Cowser is a Python tool that displays ASCII art cows with personalized greetings. It supports interactive commands for greeting users, showing help, and listing available ASCII art. Easily extendable and fun to use, it combines classic cowsay functionality with Python scripting.
https://github.com/rkstudio585/cowser
bash cowsay cowset project python python-project
Last synced: 29 days ago
JSON representation
Cowser is a Python tool that displays ASCII art cows with personalized greetings. It supports interactive commands for greeting users, showing help, and listing available ASCII art. Easily extendable and fun to use, it combines classic cowsay functionality with Python scripting.
- Host: GitHub
- URL: https://github.com/rkstudio585/cowser
- Owner: rkstudio585
- License: gpl-3.0
- Created: 2024-09-13T02:19:12.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T18:25:12.000Z (2 months ago)
- Last Synced: 2024-12-19T01:08:17.871Z (29 days ago)
- Topics: bash, cowsay, cowset, project, python, python-project
- Language: Python
- Homepage: https://rkstudio.com
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cowser 🐄
---
![Logo](logo.svg)---
Welcome to **Cowser**, a fun command-line tool written in Python that displays ASCII art cows with customizable greetings! This project combines the classic `cowsay` tool functionality with Python scripting to provide a unique and interactive experience.## Features 🌟
- **Greet Users**: Personalize your greeting with a random ASCII art cow.
- **Help Command**: Provides usage instructions and available commands.
- **List ASCII Art**: Displays all available ASCII art options.
- **Customizable**: Easily extend with more ASCII art designs.## Getting Started 🚀
### Prerequisites
- Python 3.x installed on your system.
- `termcolor` library for colored output.### Installation
1. **Clone the Repository**
To get started, clone the repository to your local machine:
```bash
git clone https://github.com/rkstudio585/Cowser
cd Cowser
```
2. Install DependenciesInstall the required Python packages using pip:
```bash
pip install -r requirements.txt
```
3. Make the Bash Script ExecutableIf you want to use the provided cowset script, make it executable:
```bash
chmod +x cowset
```Usage 📜
Using the Python Script
Run the cowser.py script with the following commands:
Greet a User
```python
python main.py
```
Replace with the name you want to greet. This will show a random ASCII art cow with a personalized greeting.Show Help
```python
python main.py help
```
Displays usage instructions and available commands.List All ASCII Art
```python
python main.py list
```
Lists all available ASCII art options.Using the Bash Script
Alternatively, you can use the cowset bash script:
Greet a User
```bash
./cowset
```
Show Help
```bash
./cowset help
```
List All ASCII Art
```bash
./cowset list
```Adding More ASCII Art 🎨
To add more ASCII art designs:
1. Open main.py.
```python
nano main.py
```2. Update the show_cows() function with additional ASCII art strings.
Customization and Hacks ✨
1. Enhanced Output: Use termcolor to add color and style to your output.
2. Interactive Commands: Modify main.py to include more interactive features.
Contributing 🤝
Contributions are welcome! Please open an issue or submit a pull request on GitHub if you have suggestions or improvements.
---
Have fun with Cowser! 🎉
| Command | Description |
|-----------------|------------------------------------------------|
| `` | Greet the user with a random ASCII art cow. |
| `help` | Show usage instructions. |
| `list` | List all available ASCII art options. |