fill-the-blanks-lib
A lightweight, pure-Python library to easily build and run interactive fill-in-the-blanks (Mad Libs style) word games. It requires no external dependencies.
Installation
You can install the library directly from PyPI using pip:
pip install fill-the-blanks-lib
Quick Start / Usage
Since the package name is long, we highly recommend importing it using the shorthand alias ftb in your projects.
Example for 1 Word Substitution (madlibs_1x):
import fill_the_blanks_lib as ftb
Define your prompt and the output template containing {entered}
prompt = "Enter a funny noun: " template = "The quick brown fox jumps over the lazy {entered1}."
Run the function
ftb.madlibs_1x(prompt, template)
Supporting Multiple Substitutions (Up to 10x):
The library scales according to your story needs. If you have 3 slots to fill, simply use madlibs_3x:
import fill_the_blanks_lib as ftb
prompt1 = "Enter a name: " template1 = "Hello {entered1},"
prompt2 = "Enter an adjective: " template2 = "Today is a {entered2} day."
prompt3 = "Enter a place: " template3 = "Welcome to {entered3}!"
Executes all 3 prompts sequentially and prints the results
ftb.madlibs_3x(prompt1, template1, prompt2, template2, prompt3, template3)
Available Functions
- madlibs_1x(...) up to madlibs_10x(...)
Metadata
Release files for fill-the-blanks-lib 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fill_the_blanks_lib-1.0.0.tar.gz | 3.0 kB | Without provenance | Details for fill_the_blanks_lib-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fill_the_blanks_lib-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fill_the_blanks_lib-1.0.0-py3-none-any.whl |
Total release size: 6.6 kB
Release files / fill_the_blanks_lib-1.0.0.tar.gz
| Download URL | fill_the_blanks_lib-1.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
948bd470cf3f80d000375adda5d3d7b430e1599f8047df1f3a39d968f24bbc09
|
|
BLAKE2b-256 checksum How to use checksums |
17cf6d4dc353cd45a1a50d770127076e786ebc3034f4c9a3ec2d92fca04286f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Release files / fill_the_blanks_lib-1.0.0-py3-none-any.whl
| Download URL | fill_the_blanks_lib-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5669274389d0b6f41b79b895e661fbc44c77589bc53c7157bc76b7b0d9cdc839
|
|
BLAKE2b-256 checksum How to use checksums |
d0ba8fd3413c95557a24951c5f31b32ee7d6007e6e5b1c3a4542ff348a046a52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Security for fill-the-blanks-lib 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.