Skip to main content

easyTypeWriter module

This module lets you quickly add type writer sound effect for inputs to your python project

Main Users :

  1. Jarvis - command line personal assistant for windows , linux and mac. click here to visit jarvis website
  2. 100's of little school project

install module using pip command

pip install easytypeWriter

external dependencies required :

  1. playsound module

Install via -

pip install playsound

To import in project -

from easyTypeWriter import typeWriter

Then make a object instance of EasyInput class

obj = typeWriter.EasyInput()

Now set the paths to sound effect -

obj.setEnterAudioPath("ding3.wav path here")
obj.setKeyboardAudioPath("keysound.wav path here")

You can get sound effects from here

  1. Enter key sound effect - click here to directly download . If this does not work then download it from github page

  2. keyboard key sound effect - click here to directly download . If this does not work then download it from github page

Now just call the takeInput() method :

x = obj.takeInput(makeSound=True, messagePrompt="" , toNextLineOnEnter=True , toReturn=False)

Above function returns the string that is inputted by the user to x

Now it accepts three aruguments all of which as some default value also :

  1. makeSound - accepts a bool value whether it make a type writer sound or not , remember - it slows down keyboard input , so if someone as fast typing then they may struggle. By default it is True .

  2. message promt - accepts a string value for making a prompt for asking user for input like normal input message prompt. By default it is empty

input("here is the message")
  1. toNextLineOnEnter - accets a bool value , if set to true , then it make a line when a enter is pressed , just like normal input fucntion . by default it is also set to true

  2. toReturn - this module can return the everycharacter that the user enters without even pressing enter. By default it is False

Other methods -

All methods are called automatically by start_fileShare() method.

  1. obj.setTabSpaceValue(port) - to set a custom value for how many spaces should a tab consist of . By default it is setted to 4

Sample program -

from easyTypeWriter import typeWriter

obj = typeWriter.EasyInput()

# setting audio files paths - you can get them from here

# Enter key sound effect - 
# link - https://drive.google.com/uc?export=download&id=1mN_-vyRsHWK8qsHP16ktL9G0XX3RCbB9 . If the file is not available to download then you can download the file from here - https://github.com/harshnative/easyTypeWriter_module_python/tree/master/easyTypeWriter

# keyboard key sound effect
# link - https://drive.google.com/uc?export=download&id=1qGSaacUgs6MEoI18W0uQOTq5yYSwo_Iv . If the file is not available to download then you can download the file from here - https://github.com/harshnative/easyTypeWriter_module_python/tree/master/easyTypeWriter

obj.setEnterAudioPath("C:/users/UserName/desktop/ding3.wav")
obj.setKeyboardAudioPath("C:/users/UserName/desktop/keysound30.wav")
x = obj.takeInput(True , "input : " )

print(x)

# output - 

# input : 123

# 123

Contibute -

Post any issues on github

Check out code on github

Release files for easyTypeWriter 0.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easyTypeWriter 0.23
File Size Uploaded
easyTypeWriter-0.23.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easyTypeWriter 0.23
File Interpreter ABI Platform
easyTypeWriter-0.23-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / easyTypeWriter-0.23.tar.gz

Download URL easyTypeWriter-0.23.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
57c263e11853041ed710bd7279fe3e864a05aa836f607875b3309507984a7890
BLAKE2b-256 checksum
How to use checksums
821fbc5576a5e8ce016bfddcf7bff95b1319b853f221f54d61e48a0aa234e260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / easyTypeWriter-0.23-py3-none-any.whl

Download URL easyTypeWriter-0.23-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a820dde39e0ea80a23506bcac0360b1fd4ecb3f761ae6895c8834532d7355712
BLAKE2b-256 checksum
How to use checksums
e7fb20be6430a69a09ea9207d35ff114c618b38688785daeaf0109e2013d6537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.23 This release

2 release files

0.22

2 release files

0.21

2 release files

0.20

2 release files

0.18

2 release files

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