Skip to main content

Control your GoPro swarm with ease using Python.

Project description

pyTermite

pyTermite logo

Project Status: Active – The project has reached a stable, usable state and is being actively developed. readthedocs codecov pre-commit pre-commit.ci status Ruff Contributor Covenant

pyTermite is a small toolkit that simplifies discovering, connecting to and controlling a swarm of GoPro cameras over USB and mDNS. It wraps parts of the open_gopro library and provides a convenient CLI and small Python API for automation and testing.

Key features

  • Discover GoPro devices via mDNS/USB
  • Connect to multiple cameras concurrently
  • Query camera info and runtime state
  • Start/stop recording on multiple cameras simultaneously
  • Interactive REPL and programmatic API

Quick start

If you want to try out pyTermite quickly, you can install it from PyPI and run the demo script from the GitHub repository:

pip install pyTermite
python -m demo.py

Make sure to put the serial numbers of one or multiple connected cameras in a subdirectory ./config/gopro_serials.json next to demo.py before running the script. Structure of this file is as follows:

{
  "camera_name": "camera_serial_number"
}

If you want to contribute or run the latest development version, you can clone the repository and install it locally. Create a virtual environment, install dependencies and run the demo script:

git clone https://github.com/cimt-unia/pyTermite.git
cd pyTermite
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e .

Running the CLI

After installation, you can use the bundled CLI. Examples:

# discover devices (waits for mDNS / USB discovery)
pytermite scan --timeout 5

# connect to discovered devices automatically
pytermite connect --auto

# connect using explicit serials
pytermite connect --serials S123,S456

# start recording on connected devices
pytermite record start

# disconnect
pytermite disconnect

Testing

Run the test suite with coverage reporting:

pip install tox --group test
tox r -m test coverage

Documentation

Build the Sphinx documentation locally and open the generated HTML:

python -m pip install -e . tox --group docs
tox r -m docs

or alternatively use sphinx-autobuild:

python -m pip install -e . tox --group docs
sphinx-autobuild docs/source docs/build/html

Contributing

See CONTRIBUTING.md and the Developer Guide for contribution guidelines and the typical workflow (pull requests, tests, code style).

License

This project is licensed under the BSD-3-Clause license (see LICENSE.txt).

Contact

Lukas Behammer — lukas.behammer@uni-a.de

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

pytermite-0.0.3.tar.gz (896.3 kB view details)

Uploaded Source

Built Distribution

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

pytermite-0.0.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file pytermite-0.0.3.tar.gz.

File metadata

  • Download URL: pytermite-0.0.3.tar.gz
  • Upload date:
  • Size: 896.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytermite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0a61ea633c76aa54a17c82caec61ee82e25e3df8369ea9f9ed87e2322607c53c
MD5 cadecc21bf8b163e079d7e916f6d2d94
BLAKE2b-256 4cf96f2a0ace61b9da53ad8874616514ce7c5316edfe047cdbb29bf6515ffe3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytermite-0.0.3.tar.gz:

Publisher: cd.yml on cimt-unia/pyTermite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytermite-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pytermite-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytermite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85507053d15e9cc0e9c8ad7c53ca952556c71508472c4aeb38403f0bccd6365e
MD5 b1dc5124b51dfbdb62e04a7f79b9267c
BLAKE2b-256 bceffbe49167f3ed7667f2e9f666cb1538b3328f88987eacbe4af1b438d807f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytermite-0.0.3-py3-none-any.whl:

Publisher: cd.yml on cimt-unia/pyTermite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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