Skip to main content

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

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)

Uploaded Source

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

Hashes for madlibspy-2.3.tar.gz
Algorithm Hash digest
SHA256 67d3a2bba0185d5aaa7cc27b7f1ba3c28bdc40d8fe60ae7a28afee1ef1ecf9ae
MD5 93ae11d64638749f65b02840dbb30dd3
BLAKE2b-256 3de34bf5c00048d3dffe26b08de7319fcef0a164e0dc94a6290af0849247f3e6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.3 This release

1 file

2.2

1 file

2.1

1 file

2.0

1 file

1.0.2

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page