Skip to main content

Python module to control ch9329

Project description

ch9329

Python module to control ch9329

Installation

You can install the package via pip:

pip install ch9329

Usage

from serial import Serial

from ch9329 import keyboard
from ch9329 import mouse
from ch9329.config import get_manufacturer
from ch9329.config import get_product
from ch9329.config import get_serial_number

ser = Serial("COM3", 9600, timeout=1)

keyboard.press_and_release(ser, "a", modifier="ctrl")
keyboard.write(ser, "Hello World\n")
keyboard.write(ser, "abcdefghijklmnopqrstuvwxyz\n")
keyboard.write(ser, "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n")
keyboard.write(ser, "0123456789\n")
keyboard.write(ser, "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\n")

mouse.move(ser, x=500, y=500)
mouse.move(ser, x=50, y=50, relative=True)
mouse.click(ser, button="left")

print(get_serial_number(ser))
# 20193152CFBF
print(get_product(ser))
# WCH UART TO KB-MS_V1.7
print(get_manufacturer(ser))
# WWW.WCH.CN

ser.close()

License

This project is licensed under the terms of the MIT license.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Contact

If you want to contact me you can reach me at pradish@sandbox.com.np.

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

ch9329-1.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

ch9329-1.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file ch9329-1.1.0.tar.gz.

File metadata

  • Download URL: ch9329-1.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for ch9329-1.1.0.tar.gz
Algorithm Hash digest
SHA256 041fc972111eea95785a5342e1b3817e69bc894181d3665977a54b1241c68a7a
MD5 ce693cc2d8e40ec58b4bfc8cdf58a203
BLAKE2b-256 47d7460c0ee6e6f6687b5fc13f22eeeefafe048f110254da4a09b33be6066019

See more details on using hashes here.

File details

Details for the file ch9329-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ch9329-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for ch9329-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3831dfa292beac8868babdfbf148a2ab3a6c38b552b5a0cba59dfc6fe76bd171
MD5 d7927303c79e3ff66ce9d8611bf589ed
BLAKE2b-256 51fcc8112148aea746e3b4a53be3b7181e82e7ebaa7dfa44aebe932f6ad83ea8

See more details on using hashes here.

Supported by

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