Skip to main content

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:

  1. Clone the repository:

    git clone https://github.com/ctrlsam/dahua-rpc-api.git
    
  2. Navigate to the project directory:

    cd dahua-rpc-api
    
  3. 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.

Metadata

Release files for dahua-rpc-api 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dahua-rpc-api 0.1.5
File Size Uploaded
dahua_rpc_api-0.1.5.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dahua-rpc-api 0.1.5
File Interpreter ABI Platform
dahua_rpc_api-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / dahua_rpc_api-0.1.5.tar.gz

Download URL dahua_rpc_api-0.1.5.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7540e79b5f183110a77f321806fe05133b051c6154f84d03c894abe910c82cbc
BLAKE2b-256 checksum
How to use checksums
aa8aadb2c7e23b99f4e904b27c1687e7536eb3426d7f1f108b4a43c5ff65a3c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / dahua_rpc_api-0.1.5-py3-none-any.whl

Download URL dahua_rpc_api-0.1.5-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99c83e0ce8846716e5d9e58339e43364b89688495db21b9e7971adacdd0d00ad
BLAKE2b-256 checksum
How to use checksums
9754c4cc839ec84055de3b8c0b1d4f92039ec3bb4d745c16f8be7d9c7be13cc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page