EdgeMDT TPC
raw JSON → 1.3.0 verified Sat May 09 auth: no python
EdgeMDT TPC (Third-Party Connectivity) is a Python package for integrating with edge management and diagnostics tools, version 1.3.0, with monthly releases.
pip install edge-mdt-tpc Common errors
error ModuleNotFoundError: No module named 'edge_mdt_tpc' ↓
cause Package not installed or installed under old name 'edge-mdt'
fix
Run
pip install edge-mdt-tpc and ensure no conflicting old version exists. error TypeError: __init__() missing 1 required positional argument: 'credentials' ↓
cause Credentials argument not provided when constructing EdgeMDTClient.
fix
Pass a credentials string, e.g., EdgeMDTClient(endpoint='...', credentials='...').
Warnings
breaking In version 1.0.0, the package name changed from edge-mdt to edge-mdt-tpc. Existing code using 'edge_mdt' imports will break. ↓
fix Update all imports to use 'edge_mdt_tpc'.
gotcha The client constructor requires both 'endpoint' and 'credentials' arguments; omitting 'credentials' will raise a TypeError. ↓
fix Always provide a credentials argument, even if an empty string.
deprecated The method 'EdgeMDTClient.login()' was deprecated in 1.2.0 and will be removed in 2.0.0. Use 'EdgeMDTClient.authenticate()' instead. ↓
fix Replace calls to .login() with .authenticate().
Imports
- EdgeMDTClient wrong
from edge_mdt import EdgeMDTClientcorrectfrom edge_mdt_tpc import EdgeMDTClient
Quickstart
from edge_mdt_tpc import EdgeMDTClient
client = EdgeMDTClient(endpoint=os.environ.get('EDGE_MDT_ENDPOINT', 'localhost:50051'), credentials=os.environ.get('EDGE_MDT_CREDENTIALS', ''))
result = client.connect()
print(result)