Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nemika-haj/madlibspy
A library to create your own Madlibs game!
https://github.com/nemika-haj/madlibspy
api game madlibs madlibs-game python python3
Last synced: about 2 months ago
JSON representation
A library to create your own Madlibs game!
- Host: GitHub
- URL: https://github.com/nemika-haj/madlibspy
- Owner: Nemika-Haj
- License: mit
- Archived: true
- Created: 2020-12-03T08:51:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-11T10:29:18.000Z (over 3 years ago)
- Last Synced: 2024-09-28T17:04:17.097Z (about 2 months ago)
- Topics: api, game, madlibs, madlibs-game, python, python3
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **MadlibsPy**
Create your own madlibs game!## **Installation**
Use `python -m pip install madlibspy`## **Example**
```py
import madlibspy as madlibsdata = madlibs.Madlibs(API_TOKEN) # You need an API token from api.bytestobits.dev
answers = [input(f"Enter a/an {i}: ") for i in data.variables]
text = data.convert(answers)
"""text = answers >> data
This also works, it's a faster way of convertion.
"""
print(data.title)
print(text)
```
*And much more!*## **Documentation**
Coming soon...!