c400g-ptz


Namec400g-ptz JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryipTIME C400G ONVIF PTZ control wrapper
upload_time2025-11-14 15:29:30
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT
keywords c400g camera ipcam iptime onvif ptz
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # c400g-ptz

ipTIME C400G ONVIF PTZ control wrapper

## Installation

```bash
pip install c400g-ptz
```

## Usage

```python
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 address
- `port`: ONVIF port (usually 5000)
- `user`: Username
- `password`: Password
- `profile_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 duration
- `left(duration=None)`: Move left
- `right(duration=None)`: Move right
- `up(duration=None)`: Move up
- `down(duration=None)`: Move down
- `start_move(direction)`: Start continuous movement
- `stop()`: Stop movement

**Directions:** `"left"`, `"right"`, `"up"`, `"down"`

## Logging

Enable logging to see what's happening:

```python
import logging
logging.basicConfig(level=logging.INFO)

from c400g_ptz import C400GPTZ
cam = C400GPTZ("192.168.1.100", 5000, "admin", "password")
```

## License

MIT

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "c400g-ptz",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "c400g, camera, ipcam, iptime, onvif, ptz",
    "author": null,
    "author_email": "wonjj6768 <wonjj6768@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/be/13/7c041000dc5fb269d31034a34e017aecb92d9a284366eaf52b0b05c0167c/c400g_ptz-0.1.0.tar.gz",
    "platform": null,
    "description": "# c400g-ptz\n\nipTIME C400G ONVIF PTZ control wrapper\n\n## Installation\n\n```bash\npip install c400g-ptz\n```\n\n## Usage\n\n```python\nfrom c400g_ptz import C400GPTZ\n\n# Connect to camera\ncam = C400GPTZ(\"192.168.1.100\", 5000, \"admin\", \"password\")\n\n# Step movements (with duration)\ncam.left(0.3)\ncam.right(0.3)\ncam.up(0.5)\ncam.down(0.5)\n\n# Continuous movement\ncam.start_move(\"left\")\n# ... do something ...\ncam.stop()\n\n# Generic step with custom duration\ncam.step(\"up\", duration=0.4)\n```\n\n## API\n\n### `C400GPTZ(ip, port, user, password, *, profile_index=0, default_step_time=0.3, log=None)`\n\nMain PTZ control class.\n\n**Parameters:**\n- `ip`: Camera IP address\n- `port`: ONVIF port (usually 5000)\n- `user`: Username\n- `password`: Password\n- `profile_index`: ONVIF media profile index (default: 0)\n- `default_step_time`: Default duration for step movements in seconds (default: 0.3)\n- `log`: Optional logger instance\n\n**Methods:**\n- `step(direction, *, duration=None)`: Move in direction for specified duration\n- `left(duration=None)`: Move left\n- `right(duration=None)`: Move right\n- `up(duration=None)`: Move up\n- `down(duration=None)`: Move down\n- `start_move(direction)`: Start continuous movement\n- `stop()`: Stop movement\n\n**Directions:** `\"left\"`, `\"right\"`, `\"up\"`, `\"down\"`\n\n## Logging\n\nEnable logging to see what's happening:\n\n```python\nimport logging\nlogging.basicConfig(level=logging.INFO)\n\nfrom c400g_ptz import C400GPTZ\ncam = C400GPTZ(\"192.168.1.100\", 5000, \"admin\", \"password\")\n```\n\n## License\n\nMIT\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "ipTIME C400G ONVIF PTZ control wrapper",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/wonjj6768/c400g-ptz",
        "Repository": "https://github.com/wonjj6768/c400g-ptz"
    },
    "split_keywords": [
        "c400g",
        " camera",
        " ipcam",
        " iptime",
        " onvif",
        " ptz"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7e40dcac5cf781ec7b5135b8e6b978a8839095c561d8fd7dc4df47b327dc483a",
                "md5": "ea7b37268a9ee9aa392e4f42ac2789ab",
                "sha256": "70d6d49770ba5872ffc62f7b8f9185b5aa89319eb0dd4c1a575472cf50bafa7b"
            },
            "downloads": -1,
            "filename": "c400g_ptz-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ea7b37268a9ee9aa392e4f42ac2789ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 4573,
            "upload_time": "2025-11-14T15:29:29",
            "upload_time_iso_8601": "2025-11-14T15:29:29.300748Z",
            "url": "https://files.pythonhosted.org/packages/7e/40/dcac5cf781ec7b5135b8e6b978a8839095c561d8fd7dc4df47b327dc483a/c400g_ptz-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "be137c041000dc5fb269d31034a34e017aecb92d9a284366eaf52b0b05c0167c",
                "md5": "5c53b19536d32beaeb6d366cf48baaad",
                "sha256": "61b100de1c3e58616ce34a55adf934f7b2aae6db64ac36e0284b515406820ec3"
            },
            "downloads": -1,
            "filename": "c400g_ptz-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5c53b19536d32beaeb6d366cf48baaad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3893,
            "upload_time": "2025-11-14T15:29:30",
            "upload_time_iso_8601": "2025-11-14T15:29:30.787621Z",
            "url": "https://files.pythonhosted.org/packages/be/13/7c041000dc5fb269d31034a34e017aecb92d9a284366eaf52b0b05c0167c/c400g_ptz-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-11-14 15:29:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wonjj6768",
    "github_project": "c400g-ptz",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "c400g-ptz"
}
        
Elapsed time: 3.23380s