Skip to main content

image

image image image image image image image image

PyWhatKit is a Python library with various helpful features. It's easy-to-use and does not require you to do any additional setup. Currently, it is one of the most popular library for WhatsApp and YouTube automation. New updates are released frequently with new features and bug fixes.

Links

Installation and Supported Versions

PyWhatKit is available on PyPi:

python3 -m pip install pywhatkit
pip3 install pywhatkit

PyWhatKit officially supports Python 3.8+.

Cloning the Repository

git clone https://github.com/Ankit404butfound/PyWhatKit.git

What's new in v5.4?

Fix Flask import error

What's new in v5.3?

import pywhatkit
pywhatkit.start_server()

This method can be used to remotely control your PC using your phone (Windows only)

  • Make sure your PC and your phone are on same network, on your PC, Open Network and Internet Settings > Properties > Network Profile, make sure it's set to Private.
  • Run the above code and then open command prompt and type ipconfig.
  • Search for IPv4 Address and on your phone's browser type this address and append :8000 at the end, example 192.168.0.1:8000.
  • Try moving you finger and you should notice your cursor moving too.
  • You can also type and scroll too, enjoy.
  • More information here https://pywhatkit.herokuapp.com/remote-kit with the raw code.

Features

  • Sending Message to a WhatsApp Group or Contact
  • Sending Image to a WhatsApp Group or Contact
  • Converting an Image to ASCII Art
  • Converting a String to Handwriting
  • Playing YouTube Videos
  • Sending Mails with HTML Code
  • Install and Use

Usage

import asyncio
import AsyncPywhatKit


async def main():
    # Send a WhatsApp Message to a Contact at 1:30 PM
    await AsyncPywhatKit.sendwhatmsg("+910123456789", "Hi", 13, 30)

    # Same as above but Closes the Tab in 2 Seconds after Sending the Message
    await AsyncPywhatKit.sendwhatmsg("+910123456789", "Hi", 13, 30, 15, True, 2)

    # Send an Image to a Group with the Caption as Hello
    await AsyncPywhatKit.sendwhats_image("AB123CDEFGHijklmn", "Images/Hello.png", "Hello")

    # Send an Image to a Contact with the no Caption
    await AsyncPywhatKit.sendwhats_image("+910123456789", "Images/Hello.png")

    # Send a WhatsApp Message to a Group at 12:00 AM
    await AsyncPywhatKit.sendwhatmsg_to_group("AB123CDEFGHijklmn", "Hey All!", 0, 0)

    # Send a WhatsApp Message to a Group instantly
    await AsyncPywhatKit.sendwhatmsg_to_group_instantly("AB123CDEFGHijklmn", "Hey All!")

    # Play a Video on YouTube
    await AsyncPywhatKit.playonyt("PyWhatKit")


asyncio.run(main())

For more Examples and Functions, have a look at the Wiki.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Be sure to read the Guidelines before Contributing.

License

MIT. For more information see this

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AsyncPywhatKit-1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distributions

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

AsyncPywhatKit-1.0.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

AsyncPywhatKit-1.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file AsyncPywhatKit-1.0.tar.gz.

File metadata

  • Download URL: AsyncPywhatKit-1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for AsyncPywhatKit-1.0.tar.gz
Algorithm Hash digest
SHA256 2eda7a341773cce8423e2b4cd66eb4263905636b68eabcd6229456ba17b23050
MD5 da842691125089f7d208dbbbf3dfad80
BLAKE2b-256 5c273c0991d81354b4218145692417d4092de1a3f88e5f1b33f8ce25b8d133e6

See more details on using hashes here.

File details

Details for the file AsyncPywhatKit-1.0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for AsyncPywhatKit-1.0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b448b7cea27ba47281cad47426e7a0a76f889f60976c974ad0f3e8aa41156c8
MD5 bde1478eab2c3f22c4b119cb72610e71
BLAKE2b-256 de1292dfa74baf0725edbe7e91e3307737b05b1da3212e737836d7b3c6895574

See more details on using hashes here.

File details

Details for the file AsyncPywhatKit-1.0-py3-none-any.whl.

File metadata

  • Download URL: AsyncPywhatKit-1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for AsyncPywhatKit-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b527f7133ed9c177b192ac3d4501458a5e3809877303deeb8bf407787c934c2b
MD5 976a51de0d4603ee13ed6eaf252ac055
BLAKE2b-256 da714d32c96e7aa12288d4ad410b7ccef186ef04a71cd3b870006a4cde4f83f2

See more details on using hashes here.

Release history Release notifications | RSS feed

2.2.7.3

1 file

2.2.7.2

1 file

2.2.7.1

1 file

2.2.7

1 file

2.2.6

2 files

2.2.5.2

2 files

2.2.5

2 files

2.2.4

2 files

2.2.3

1 file

2.2.2

1 file

2.2.1

1 file

2.2.0

1 file

2.1.23

1 file

2.1.22

1 file

2.1.21

1 file

2.1.20

2 files

2.1.14

1 file

2.1.13

1 file

2.1.12

1 file

2.1.11

1 file

2.1.10

1 file

2.1.9

1 file

2.1.8

1 file

2.1.7

1 file

2.1.6

1 file

2.1.5

1 file

2.1.4

1 file

2.1.3

1 file

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.6

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.2.0.0.79

2 files

1.1.0.0.0

2 files

1.0.0.1

2 files

1.0.0.0.79

2 files

1.0.0.0.22

1 file

1.0.0.0.21

1 file

1.0.0.0.20

2 files

1.0.0.0.12

2 files

1.0.0.0.11

2 files

1.0.0.0.10

2 files

1.0.0.0.9

2 files

1.0.0.0.8

2 files

1.0.0.0.7

2 files

1.0.0.0.6

2 files

1.0.0.0.5

2 files

1.0.0.0.4

2 files

1.0.0.0.3

2 files

1.0.0.0.2

2 files

1.0.0.0.1

2 files

This release

1.0 This release

3 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