Skip to main content

A simple tool to stream camera in shell.

Project description

CamShell

CamShell, A simple way to stream a camera as ASCII art directly in a terminal.

Installation

Using pip:

pip install camshell

How to Use

CLI Usage:

After installation, you can run the camshell command-line tool or by providing the device id.

# Run the default device
camshell

# Or run by device-id
camshell 1

# Or a device path specifically
camshell /dev/video3

Python API Usage

If you’d like to use XDisplay in your Python code, here’s how:

from camshell.xdisplay import XDisplay as CamShellDisplay

# simply call:
device_id = "/dev/video0"
CamShellDisplay.start(device_id)

Run on a custom screen

from asciimatics.screen import Screen
from camshell.xdisplay import XDisplay as CamShellDisplay

with XDisplay(cap_id="/dev/video0") as display:
    Screen.wrapper(display.run)

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

camshell-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

camshell-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file camshell-0.1.1.tar.gz.

File metadata

  • Download URL: camshell-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for camshell-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fb719c6ff903cedfb475cb707ed94b2300fb36fbf6e6e6fe482a0cdd449508f1
MD5 946cbc09f76e7595e46e7b3e9ea3ace8
BLAKE2b-256 0a1ff66c4587b06e2ba063c03a2ce562cc66df910bcacb23f3bfd0e556b3488e

See more details on using hashes here.

File details

Details for the file camshell-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: camshell-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for camshell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d7fd49aa267e9bdf32912956587f83c3785e53ac16f44e7b78dadb469cb2d46
MD5 c5dc034e6b0a082383d653e3a187b5eb
BLAKE2b-256 9d528f1d52d4591bd10d3d0eb5bc1f87a0b6e08ec5f3c15de6854dcc2f184033

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