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.1.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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dramaprint-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f182311febb7ba72b290d1feb710b0ade8771ea411cb77eecf52b2c51042c801
MD5 23a7abc1a7d4e3b6d39cc7e9ae4cc531
BLAKE2b-256 5d40d53d5b5d671ee2b8b2084ff4a0b82eb363bb2a03c979cc8c4189d28a8e4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dramaprint-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d3536969c951574ab324059925392474acc567b5c63a5ade8984ff6373543c
MD5 acbedbc05c4011951afd7f4eeb0024eb
BLAKE2b-256 912161798d726cadcd12e0d3d3b9c13ff3e162190c3b63c8cdcf9431055b4c6b

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