Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

Awesome Lists containing this project

README

        

# **MadlibsPy**
Create your own madlibs game!

## **Installation**
Use `python -m pip install madlibspy`

## **Example**
```py
import madlibspy as madlibs

data = 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...!