Registry / devops / g3hardware

g3hardware

JSON →
library0.2.16pypypi✓ verified 81d ago

Generates XML configuration files for G3 PLC hardware. Current version: 0.2.16. Release cadence: infrequent.

pip install g3hardware
INSTALL
IMPORT
SIG · G3HARDWARE
G
g3hardware
devopspythonv0.2.16
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HardwareIsle
from g3hardware import HardwareIsle
from g3hardware import generate_config
HardwareModule
from g3hardware import HardwareModule
api
from g3hardware import api

Generates an XML configuration string for a G3 PLC with specified interfaces.

from g3hardware import generate_config # Generate a basic PLC configuration XML config = generate_config(device_name='MyPLC', interfaces=['CAN', 'ETH']) print(config.decode() if isinstance(config, bytes) else config)
Debug
Known issues
gotchaOutput format: The generate_config function returns bytes by default (or string in some contexts). Always check the type and decode appropriately.
fix
Wrap output with config.decode() if bytes is returned, or use config = generate_config(…).decode('utf-8') if you need a string.
affects: >=0.2.0
gotchaPython version requirement: Requires Python >=3.10. Installing on older Pythons will fail during installation.
fix
Ensure your environment uses Python 3.10 or higher.
affects: all
deprecatedThe parameter 'config_type' in some generation functions is deprecated in favor of 'generator_type'.
fix
Replace 'config_type' with 'generator_type' in function calls.
affects: >=0.2.10
Upgrade
Version history
0.2.16latest on PyPI · released Apr 22, 2026
Audit
Dependencies
lxmlrequiredXML processing
g3utiloptionalCommon utilities for G3 PLC projects
Agent activity
19 hits · last 30 days
node
18
Resources
g3hardware — pip install g3hardware · libregistry