c400g-ptz
ipTIME C400G 전용 ONVIF PTZ 컨트롤 래퍼입니다. C400G의 ONVIF PTZ 특성(속도 magnitude 무시, RemoteDisconnected 등)을 고려하여 좌/우/상/하 이동과 정지에 집중한 단순한 API를 제공합니다.
ipTIME C400G ONVIF PTZ control wrapper. Provides a simple API for pan/tilt control, handling C400G's ONVIF quirks (ignoring speed magnitude, RemoteDisconnected errors, etc.).
Requirements
중요: PTZ 제어를 사용하기 전에 ipTIME CCTV 앱에서 RTSP 설정을 활성화해야 합니다.
Important: You must enable RTSP settings in the ipTIME CCTV app before using PTZ control.
Installation
pip install c400g-ptz
Usage
from c400g_ptz import C400GPTZ
# Connect to camera
cam = C400GPTZ("192.168.1.100", 5000, "admin", "password")
# Step movements (with duration)
cam.left(0.3)
cam.right(0.3)
cam.up(0.5)
cam.down(0.5)
# Continuous movement
cam.start_move("left")
# ... do something ...
cam.stop()
# Generic step with custom duration
cam.step("up", duration=0.4)
API
C400GPTZ(ip, port, user, password, *, profile_index=0, default_step_time=0.3, log=None)
Main PTZ control class.
Parameters:
ip: Camera IP addressport: ONVIF port (usually 5000)user: Usernamepassword: Passwordprofile_index: ONVIF media profile index (default: 0)default_step_time: Default duration for step movements in seconds (default: 0.3)log: Optional logger instance
Methods:
step(direction, *, duration=None): Move in direction for specified durationleft(duration=None): Move leftright(duration=None): Move rightup(duration=None): Move updown(duration=None): Move downstart_move(direction): Start continuous movementstop(): Stop movement
Directions: "left", "right", "up", "down"
Logging
Enable logging to see what's happening:
import logging
logging.basicConfig(level=logging.INFO)
from c400g_ptz import C400GPTZ
cam = C400GPTZ("192.168.1.100", 5000, "admin", "password")
License
MIT
Metadata
Release files for c400g-ptz 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| c400g_ptz-0.1.2.tar.gz | 4.3 kB | Without provenance | Details for c400g_ptz-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| c400g_ptz-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for c400g_ptz-0.1.2-py3-none-any.whl |
Total release size: 9.2 kB
Release files / c400g_ptz-0.1.2.tar.gz
| Download URL | c400g_ptz-0.1.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
040d0d9c59c2032a58eb7a246e72217e14a3feb5a75d7966452927e1db76814d
|
|
BLAKE2b-256 checksum How to use checksums |
dd5ecde8e7792305f163f33c6e5c6a636857a33cbedac7c7ccf3a9ebf12fdb1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / c400g_ptz-0.1.2-py3-none-any.whl
| Download URL | c400g_ptz-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83d0309aad743d09c74e0358d107bfcb413f79e181fe5684802a7686379856f6
|
|
BLAKE2b-256 checksum How to use checksums |
a3e3b146a4ff720cdca4e6a760e6ce39d8447bf9bea01bfdfbc2b8dabd10e582
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for c400g-ptz 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.