Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (19 loc) · 502 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 502 Bytes

MadlibsPy

Create your own madlibs game!

Installation

Use python -m pip install madlibspy

Example

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