Skip to content

ctrlsam/dahua-rpc-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Python implementation of the Dahua RPC API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages