Skip to content

Commit

Permalink
cowsay version3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VaasuDevanS committed Dec 8, 2020
1 parent 4536fe7 commit 89a7db7
Show file tree
Hide file tree
Showing 7 changed files with 1,083 additions and 381 deletions.
674 changes: 674 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include README.rst
include README.md
88 changes: 88 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Cowsay

![](https://pepy.tech/badge/cowsay)
![](https://pepy.tech/badge/cowsay/month)
![](https://pepy.tech/badge/cowsay/week)

A python API / console script for the famous linux-cowsay. <br>
All contributions / forks are welcome.

Brief History
==============

cowsay for GNU/Linux was initially written in perl by Tony Monroe ([email protected]), with suggestions from Shannon Appel ([email protected]) and contributions from Anthony Polito ([email protected]).

Check here for the [list](https://github.com/VaasuDevanS/cowsay-python/graphs/contributors) of contributors for this python package.


Installation
============
```
pip install cowsay
```


Basic Usage
===========

```
>>> import cowsay
>>> cowsay.cow('Hello World')
___________
< Hello World >
===========
\
\
^__^
(oo)\_______
(__)\ )\/\
||----w |
|| ||
>>> cowsay.dragon('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris blandit rhoncus nibh. Mauris mi mauris, molestie vel metus sit amet, aliquam vulputate nibh.')
_________________________________________________
/ \
| Lorem ipsum dolor sit amet, consectetur adipiscin |
| g elit. Mauris blandit rhoncus nibh. Mauris mi ma |
| uris, molestie vel metus sit amet, aliquam vulput |
| ate nibh. |
\ /
=================================================
\
\
\
\
/ \ //\
|\___/| / \// \\
/0 0 \__ / // | \ \
/ / \/_/ // | \ \
\@_^_\@'/ \/_ // | \ \
//_^_/ \/_ // | \ \
( //) | \/// | \ \
( / /) _|_ / ) // | \ _\
( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-.
(( / / )) ,-{ _ `-.|.-~-. .~ `.
(( // / )) '/\ / ~-. _ .-~ .-~^-. \
(( /// )) `. { } / \ \
(( / )) .----~-.\ \-' .~ \ `. \^-.
///.----..> \ _ -~ `. ^-` ^-_
///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
/.-~
```


More characters
===============
```
>>> cowsay.char_names
['beavis', 'cheese', 'daemon', 'cow', 'dragon', 'ghostbusters', 'kitty', 'meow', 'milk', 'pig', 'stegosaurus', 'stimpy', 'turkey', 'turtle', 'tux']
>>> cowsay.chars[0]
<function beavis at 0x0000000002D2F908>
>>> len(cowsay.chars)
15
```
5 changes: 4 additions & 1 deletion cowsay/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from .main import chars, char_names, beavis , cheese , daemon , cow , dragon , ghostbusters , kitty , meow , milk , pig, stegosaurus , stimpy , turkey , turtle , tux, about

from .main import chars, char_names, beavis, cheese, daemon, cow, \
dragon, ghostbusters, kitty, meow, milk, pig, stegosaurus, \
stimpy, turkey, turtle, tux
1 change: 1 addition & 0 deletions cowsay/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from .main import cli


Expand Down
Loading

0 comments on commit 89a7db7

Please sign in to comment.