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.0.tar.gz (3.5 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.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dramaprint-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 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.0.tar.gz
Algorithm Hash digest
SHA256 292c697594c462fb5a01d1ad0fea14aabe0851e0916789b21691c571cc2b4ffe
MD5 014b004b5bc3c41de2c015f9a61d43fa
BLAKE2b-256 891db2a17f207c3e437aa710797af155985114f7b97d34aeb41f647ae84bd7bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dramaprint-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7a3b23cd893a26d1baf8079b7a61e233e11bd3f8847c7a9c944f5be77c5461
MD5 e2e0e91e4967374e8f82b497d0eb6913
BLAKE2b-256 161a6fbbf3b0e5f90314e258d919525cb5be5b8c090c1becd5696d7d7217a295

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