A library to create your own madlibs game!
Project description
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...!
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
madlibspy-2.3.tar.gz
(2.5 kB
view details)
File details
Details for the file madlibspy-2.3.tar.gz.
File metadata
- Download URL: madlibspy-2.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d3a2bba0185d5aaa7cc27b7f1ba3c28bdc40d8fe60ae7a28afee1ef1ecf9ae
|
|
| MD5 |
93ae11d64638749f65b02840dbb30dd3
|
|
| BLAKE2b-256 |
3de34bf5c00048d3dffe26b08de7319fcef0a164e0dc94a6290af0849247f3e6
|