Skip to main content

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:

  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.

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

dahua_rpc_api-0.1.5.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dahua_rpc_api-0.1.5-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for dahua_rpc_api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7540e79b5f183110a77f321806fe05133b051c6154f84d03c894abe910c82cbc
MD5 21d837dba515bbc5ef3fb8c5277e8788
BLAKE2b-256 aa8aadb2c7e23b99f4e904b27c1687e7536eb3426d7f1f108b4a43c5ff65a3c6

See more details on using hashes here.

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

Hashes for dahua_rpc_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 99c83e0ce8846716e5d9e58339e43364b89688495db21b9e7971adacdd0d00ad
MD5 1c93dacdf22924283ac1a726fdea39a3
BLAKE2b-256 9754c4cc839ec84055de3b8c0b1d4f92039ec3bb4d745c16f8be7d9c7be13cc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page