Pun-CLI: Because you can't resist a good pun. Generate hilarious puns from our pun repository or contribute your own puns to the list. Pun-CLI, the command-line tool you never knew you needed.
Project description
Pun CLI
pun-cli
is a Python-based command-line tool that generates a random pun based on a given keyword.
Installation
You can install pun-cli via pip:
pip install pun-cli
Usage
pun-cli [-h] [--keyword KEYWORD] [--version] [--add]
Optional Arguments
--keyword (-k): A keyword to search for puns. By default, pun-cli generates a random pun.
--version (-v): Show the version number and exit.
--add (-a): Add a pun to the repository.
Examples
$ pun-cli
Why was the math book sad? Because it had too many problems.
$ pun-cli -k cheese
I’m reading a book about anti-gravity. It’s impossible to put down.
Adding a Pun
To add a pun to the repository, follow these steps:
- Fork the pun-cli repository.
- Clone your fork to your local machine.
- Add your pun to pun_repository.txt file.
- Commit your changes and push to your fork.
- Create a pull request to merge your changes into the main pun-cli repository.
Contributing
If you'd like to contribute to pun-cli
, please open an issue or a pull request on the GitHub repository.
License
pun-cli
is licensed under the 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
pun_cli-0.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file pun_cli-0.1.0.tar.gz
.
File metadata
- Download URL: pun_cli-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.7 Linux/5.19.0-38-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 131eb6a576080db106a00e9d955678dbd2d22644e11c0cadfffd7ac5bc34f69e |
|
MD5 | 96d10f02be649c52de546cb1b5f17fe1 |
|
BLAKE2b-256 | 69fd7a8b75a03a93350054aca8b468c548a7efd26063c4d489f7813766c6fa58 |
File details
Details for the file pun_cli-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pun_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.7 Linux/5.19.0-38-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 323e4c065333300d184e30904eaf5347d55828a264c8ded388ce407a618b6f67 |
|
MD5 | 306b9c5157b417a973f6f9b380a1d094 |
|
BLAKE2b-256 | 1277f75cf157a5f9b162cb17485917f8ab5105a59afc86bb5ca2bd12af340f58 |