A Python package for interacting with the Dahua RPC API.
Project description
Dahua RPC API
A Python package that provides a convenient API for interacting with Dahua RPC services.
Installation
You can install this package using pip directly from PyPI. Simply run:
pip install dahua-rpc-api
If you prefer to install from source, follow these steps:
-
Clone the repository:
git clone https://github.com/ctrlsam/dahua-rpc-api.git
-
Navigate to the project directory:
cd dahua-rpc-api
-
Install the package:
pip install .
Usage
After installation, you can import the package in your Python scripts as follows:
from dahua.client import DahuaRpc
client = DahuaRpc(host="172.20.10.254", port=80)
client.login(username="admin", password="password")
print("Serial Number: " + client.magic_box.get_serial_number())
Find a few examples here
Contributing
Contributions and feedback are welcome. Please submit bug reports or pull requests via the project repository.
License
This project is licensed under the MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dahua_rpc_api-0.1.5.tar.gz.
File metadata
- Download URL: dahua_rpc_api-0.1.5.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7540e79b5f183110a77f321806fe05133b051c6154f84d03c894abe910c82cbc
|
|
| MD5 |
21d837dba515bbc5ef3fb8c5277e8788
|
|
| BLAKE2b-256 |
aa8aadb2c7e23b99f4e904b27c1687e7536eb3426d7f1f108b4a43c5ff65a3c6
|
File details
Details for the file dahua_rpc_api-0.1.5-py3-none-any.whl.
File metadata
- Download URL: dahua_rpc_api-0.1.5-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99c83e0ce8846716e5d9e58339e43364b89688495db21b9e7971adacdd0d00ad
|
|
| MD5 |
1c93dacdf22924283ac1a726fdea39a3
|
|
| BLAKE2b-256 |
9754c4cc839ec84055de3b8c0b1d4f92039ec3bb4d745c16f8be7d9c7be13cc1
|