Skip to main content

Printing module with pausing and sound effects

Project description

Achieve Dramatic Printing!


Hello! This is a class that would provide a print() method (weird, huh) that would add extra delay after each character printed! To use this as the normal print, simply override it like this:

from dramaprint import Dramaprint # import the dramaprint object
printObj = Dramaprint()
print = printObj.print # strange, huh
print('Hello, World!') # now it would output it slowly

printObj.setDelay(0.02) # you can also change the delay
print('Hello Again!') # now it would output much faster!

sound_path = "path\\to\\your\\sound.wav" # Here is a typing sound effect (get it yourself)
print('Hello Again Again!', soundPath=sound_path) # now it should play your sound after EACH CHAR
print('Again...?', soundPath=sound_path, soundPerLine=True) # sound per LINE
  1. import Dramaprint class from the script containing it
  2. get a variable and assign it to Dramaprint() (You can set other things too in __init__() like delay)
  3. (Optional) Override the default print() with your obj (say printObj) like this: print = printObj.print
  4. You MUST set a delay, either in __init__() or with printObj.setDelay(). Missing this step would cause failiure.
  5. You can use it!
  6. If you have a typing-sound effect sound file (best in .wav, but .mp3 is fine), you can include the path and soundPerLine arg to make the print function play your sound!

Play around with it! I have provided a example typing sound effect for you to use I found it quite useful in my projects
Hope you'll have fun!

Enjoy :)

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

dramaprint-1.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dramaprint-1.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file dramaprint-1.0.2.tar.gz.

File metadata

  • Download URL: dramaprint-1.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for dramaprint-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d998d34778778f1ad8c784217d9baf4d5f4dddf755462b6f052b72ab9f24db3f
MD5 03d68e8d7d5f6e924c4c6e0c512f655e
BLAKE2b-256 8089ce54391614c308a66aaa3115dfb8524182f11f309873728240a909a6a16e

See more details on using hashes here.

File details

Details for the file dramaprint-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dramaprint-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for dramaprint-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e1dc9ed469d9a8dc0ba9f45cfbfe73eb5dcbb62b326a5227251846e2511f93a
MD5 45478a1292a89cd6767bed294bd64361
BLAKE2b-256 d82dba591dad3ff6a8c53d2b86e825ace75f973b17534d88890b067c956b9d3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page