How edgarreis/opcua-asyncio works
asyncua is an asyncio-based Python OPC UA client/server library, with a synchronous wrapper. The main client workflow connects to an OPC UA server, establishes a session, and lets application code browse or read/write nodes and create subscriptions; the server workflow exposes an address space to clients. The graph also preserves documented history, events, methods, security, XML/address-space and high-availability capabilities. Source excerpts are partial, so uncertain internal links are omitted rather than inferred.
Main entry points: client.py Client API · server.py Server API · ua_client.py Binary client · binary_server_asyncio.py Server transport
Components 20
Client access
- Client API
asyncua/client/client.py - Binary client
asyncua/client/ua_client.py - High availability
asyncua/client/ha/ha_client.py - Sync wrapper
asyncua/sync.py
Server runtime
- Server API
asyncua/server/server.py - Address space
asyncua/server/address_space.py - Server transport
asyncua/server/binary_server_asyncio.py - History services
asyncua/server/history.py
Shared domain API
- Node access
asyncua/common/node.py - Subscriptions
asyncua/common/subscription.py - Node management
asyncua/common/manage_nodes.py - Events
asyncua/common/events.py - XML exchange
asyncua/common/xmlimporter.py - XML export
asyncua/common/xmlexporter.py
UA protocol
- UA types
asyncua/ua/uatypes.py - UA messages
asyncua/ua/uaprotocol_auto.py
Security
- Cryptography
asyncua/crypto/uacrypto.py - Security policies
asyncua/crypto/security_policies.py
Other components
- Application
- OPC UA peer
Connections 21
- Application → Client API: uses
- Client API → Binary client: sends requests
asyncua/client/client.py - Client API → Node access: exposes nodes
asyncua/client/client.py - Application → Node access: reads and browses
- Application → Subscriptions: subscribes
- Client API → Subscriptions: creates subscriptions
asyncua/client/client.py - Binary client → OPC UA peer: exchanges binary
asyncua/client/ua_client.py - OPC UA peer → Server transport: connects
- Application → Server API: configures server
- Server API → Address space: manages address space
- Server API → Server transport: starts server
asyncua/server/server.py - Application → Node management: adds or removes nodes
- Application → Events: uses event services
- Application → History services: reads history
- Application → XML exchange: imports address space
- Application → XML export: exports address space
- Client API → Cryptography: loads certificates
asyncua/client/client.py - Security policies → Cryptography: uses crypto
asyncua/crypto/security_policies.py - Application → High availability: uses failover
- Application → Sync wrapper: uses synchronous API
- UA messages → UA types: uses types
asyncua/ua/uaprotocol_auto.py