A Python package that provides a convenient API for interacting with Dahua RPC services.
You can install this package using pip directly from PyPI. Simply run:
pip install dahua-rpc-apiIf 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 .
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
Contributions and feedback are welcome. Please submit bug reports or pull requests via the project repository.
This project is licensed under the MIT License.