Skip to main content

A Python tool to capture segments of video from cameras.

Project description

camera-segment

A Python tool to capture segments of video from cameras.


🚀 What it does

camera-segment is a Python package and CLI tool designed to help you capture and save segments of video from one or more cameras. (Implementation coming soon!)

Planned Features:

  • 🎥 Capture video segments from local or network cameras
  • ⏱️ Specify start/end times or durations
  • 💾 Save segments to disk in standard formats
  • 🛠️ Command-line interface for automation
  • 📦 Python API for integration in your own scripts

📦 Install

pip install camera-segment --upgrade

🛠️ Usage

Note: The CLI and API are not yet implemented. Example usage will be added in a future release.

# Example (coming soon):
camera-segment record --camera 0 --start 00:01:00 --duration 00:00:30 --output segment.mp4

🧹 Local development

The project includes a simple Makefile:

make setup     # create venv and install editable package
make lint      # check for lint issues
make format    # automatically reformat code
make test      # run unittest
make coverage  # collect and display code coverage stats
make clean     # remove build artifacts

🚦 CI & Release

  • Automated linting, testing, and build checks via GitHub Actions
  • Release automation with release-please
  • Publish to PyPI using Trusted Publishers

Manual Release Tagging

If you need to deploy a release that doesn't include a fix, feat, or docs commit (for example, a pure chore or meta change), you can manually trigger a release with:

git commit --allow-empty -m "chore: release 0.3.1 (manual)" -m "Release-As: 0.3.1"

Replace 0.3.1 with the desired version number.


📄 Links


📝 License

This project is licensed under MIT.

Copyright (c) 2025 Joshua B. Bussdieker

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

camera_segment-0.3.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

camera_segment-0.3.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file camera_segment-0.3.2.tar.gz.

File metadata

  • Download URL: camera_segment-0.3.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for camera_segment-0.3.2.tar.gz
Algorithm Hash digest
SHA256 bef61209a6a7a7242a596f3339a03eee28e615ad68d839e5fc935da5c61efef7
MD5 cbe030b5471f2efa06645c385d477ebd
BLAKE2b-256 3dd0843bbb02d27790a6b3483d07687c119a7260c3e2c1a04822981741dccb1b

See more details on using hashes here.

File details

Details for the file camera_segment-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: camera_segment-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for camera_segment-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf9d882009f1e477cafddd9ef8377cb45893eda9d355690230790ddb0a8df0e0
MD5 ec74c27707c5f7a23ff6c715dd958246
BLAKE2b-256 ed85559f3b4e52c8034782d4c20354e0c4cac223041ca6318f613e8182f10e51

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