Skip to main content

It looks like calango

Project description

Calango Project

It looks like magic

Tests PyPi Publish PyPI version

Get started

Install with pip

pip install calango

or

python -m pip install calango

Mouse Interface

from calango.devices import Mouse

mouse = Mouse()

mouse.up()  # move mouse pointer [up, down, left, right, top_left, top_right ...

mouse.position = (10, 10)  # move mouse pointer to (x, y)
print(mouse.position)  # return current postion

Camera Interface

from calango.devices import Capture
import cv2

cam = Capture()
while True:
    frame = next(cam)

    cv2.imshow('Window Name', frame)
    if cv2.waitKey(5) & 0xFF == 27:
        break
cam.stop()

# You can use out while context
frame = cam.frame  # current frame numpy array
cv2.imwrite('calango.png', frame)
cam.stop()  # stop capture

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

calango-1.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

calango-1.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file calango-1.0.3.tar.gz.

File metadata

  • Download URL: calango-1.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for calango-1.0.3.tar.gz
Algorithm Hash digest
SHA256 489545f9203883c2b9cc6906e578bd3d5959665aecf097e74c46ddd4f66aa161
MD5 26fd8f9ea5d697641326e49d2d07fba8
BLAKE2b-256 afae8919453707804a45aa92366cdfa3c14de8d9a7203c6ac242525e329f83f1

See more details on using hashes here.

File details

Details for the file calango-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: calango-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for calango-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db7759db255ded57cc863657e5fb88f9a3f9bb2ce2096abeef04008885036e64
MD5 91ef89b03f86550c9cb13f73de8e7926
BLAKE2b-256 d78b2ac8e0323c4aa26aa53663003f277c829c7dbafbe22ad3632c8955853e20

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