Skip to main content

PROFI-DCP

A simple Python library to send and receive messages with the Profinet Discovery and basic Configuration Protocol (DCP) protocol. It can send requests and parse the corresponding responses to identify devices over the network, get and set their parameters or reset them to factory settings. Documentation can be found here and in the examples directory.

This is a fork from pnio_dcp.

Installation

Release

The latest release is available in the public PyPi repo. Install via pip:

pip install profi-dcp

From git repo

You can also install directly from the git repo.

  1. Clone the repository
git clone <git-url> <destination>
  1. Change into the clone directory
cd <destination>
  1. Install via pip
pip install .

Windows

To use this library on Windows, Npcap (or WinPcap) is required. Npcap can be downloaded from here: https://nmap.org/npcap/

Linux

On Linux, no additional installations are required since raw sockets are used instead. However, this requires running it with root permission.

Other Operating Systems

PNIO-DCP has not been tested on any other operating systems besides Windows and Linux.

CLI

profi-dcp is the main entry point to the CLI. It supports various subcommands which execute some basic functions.

For more information use the help flag (profi-dcp -h).

Subcommands

  • identify is a subcommand to identify devices.
  • set-ip is a subcommand to set a new ip address for a device.

Metadata

Release files for profi-dcp 0.2.0

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

Built distribution (wheel)

Table of built distributions (wheels) for profi-dcp 0.2.0
File Interpreter ABI Platform Actions
profi_dcp-0.2.0-py3-none-any.whl Python 3 none any Details for profi_dcp-0.2.0-py3-none-any.whl

Release files / profi_dcp-0.2.0-py3-none-any.whl

Download URL profi_dcp-0.2.0-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70ea3d45424cb901dd99b916cf9252e6d91e2355e980443fe2700e643d4181c2
BLAKE2b-256 checksum
How to use checksums
77a672e1bc669ef39207f7211846b2ea9333a2dcc239e1267ddbb22f070ba189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Security for profi-dcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

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