Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
d285f336
Commit
d285f336
authored
Apr 20, 2019
by
Christian Bergmiller
Committed by
oroulet
Apr 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed __all__ definitions
parent
30b2c19f
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
62 additions
and
144 deletions
+62
-144
asyncua/__init__.py
asyncua/__init__.py
+3
-5
asyncua/client/__init__.py
asyncua/client/__init__.py
+1
-1
asyncua/client/client.py
asyncua/client/client.py
+8
-3
asyncua/client/ua_client.py
asyncua/client/ua_client.py
+2
-4
asyncua/common/__init__.py
asyncua/common/__init__.py
+2
-21
asyncua/common/callback.py
asyncua/common/callback.py
+2
-4
asyncua/common/connection.py
asyncua/common/connection.py
+0
-1
asyncua/common/copy_node_util.py
asyncua/common/copy_node_util.py
+0
-1
asyncua/common/event_objects.py
asyncua/common/event_objects.py
+0
-2
asyncua/common/events.py
asyncua/common/events.py
+0
-2
asyncua/common/instantiate_util.py
asyncua/common/instantiate_util.py
+0
-1
asyncua/common/manage_nodes.py
asyncua/common/manage_nodes.py
+0
-4
asyncua/common/methods.py
asyncua/common/methods.py
+0
-2
asyncua/common/node.py
asyncua/common/node.py
+1
-2
asyncua/common/shortcuts.py
asyncua/common/shortcuts.py
+0
-2
asyncua/common/structures.py
asyncua/common/structures.py
+0
-1
asyncua/common/subscription.py
asyncua/common/subscription.py
+0
-3
asyncua/common/ua_utils.py
asyncua/common/ua_utils.py
+0
-5
asyncua/common/utils.py
asyncua/common/utils.py
+0
-1
asyncua/common/xmlexporter.py
asyncua/common/xmlexporter.py
+0
-3
asyncua/common/xmlimporter.py
asyncua/common/xmlimporter.py
+0
-3
asyncua/common/xmlparser.py
asyncua/common/xmlparser.py
+0
-2
asyncua/crypto/uacrypto.py
asyncua/crypto/uacrypto.py
+0
-1
asyncua/server/__init__.py
asyncua/server/__init__.py
+2
-14
asyncua/server/address_space.py
asyncua/server/address_space.py
+0
-4
asyncua/server/binary_server_asyncio.py
asyncua/server/binary_server_asyncio.py
+1
-2
asyncua/server/event_generator.py
asyncua/server/event_generator.py
+1
-3
asyncua/server/history.py
asyncua/server/history.py
+2
-4
asyncua/server/history_sql.py
asyncua/server/history_sql.py
+3
-4
asyncua/server/internal_server.py
asyncua/server/internal_server.py
+3
-3
asyncua/server/internal_subscription.py
asyncua/server/internal_subscription.py
+0
-2
asyncua/server/server.py
asyncua/server/server.py
+9
-3
asyncua/server/standard_address_space/__init__.py
asyncua/server/standard_address_space/__init__.py
+1
-3
asyncua/server/standard_address_space/standard_address_space.py
...a/server/standard_address_space/standard_address_space.py
+0
-2
asyncua/server/subscription_service.py
asyncua/server/subscription_service.py
+0
-2
asyncua/server/uaprocessor.py
asyncua/server/uaprocessor.py
+2
-2
asyncua/server/users.py
asyncua/server/users.py
+0
-1
asyncua/tools.py
asyncua/tools.py
+1
-3
examples/client-example.py
examples/client-example.py
+0
-1
examples/client_to_prosys.py
examples/client_to_prosys.py
+1
-2
examples/server-events.py
examples/server-events.py
+2
-1
examples/server-instantiate-object.py
examples/server-instantiate-object.py
+2
-1
examples/server-with-encryption.py
examples/server-with-encryption.py
+1
-1
examples/server-xmlexporter.py
examples/server-xmlexporter.py
+2
-3
examples/simple-client-server-xml/client_minimal.py
examples/simple-client-server-xml/client_minimal.py
+1
-3
examples/sync/client-example.py
examples/sync/client-example.py
+0
-1
tests/conftest.py
tests/conftest.py
+3
-1
tests/test_common.py
tests/test_common.py
+4
-1
tests/test_server.py
tests/test_server.py
+2
-3
No files found.
asyncua/__init__.py
View file @
d285f336
...
...
@@ -2,8 +2,6 @@
Pure Python OPC-UA library
"""
from
.common
import
*
from
.client
import
*
from
.server
import
*
__all__
=
(
client
.
__all__
+
server
.
__all__
)
from
.common
import
Node
,
uamethod
from
.client
import
Client
from
.server
import
Server
asyncua/client/__init__.py
View file @
d285f336
from
.client
import
*
from
.client
import
Client
asyncua/client/client.py
View file @
d285f336
...
...
@@ -5,11 +5,16 @@ from urllib.parse import urlparse
from
asyncua
import
ua
from
.ua_client
import
UaClient
from
..common
import
XmlImporter
,
XmlExporter
,
Node
,
delete_nodes
,
Subscription
,
Shortcuts
,
load_type_definitions
,
\
create_nonce
,
load_enums
from
..common.xmlimporter
import
XmlImporter
from
..common.xmlexporter
import
XmlExporter
from
..common.node
import
Node
from
..common.manage_nodes
import
delete_nodes
from
..common.subscription
import
Subscription
from
..common.shortcuts
import
Shortcuts
from
..common.structures
import
load_type_definitions
,
load_enums
from
..common.utils
import
create_nonce
from
..crypto
import
uacrypto
,
security_policies
__all__
=
[
"Client"
]
_logger
=
logging
.
getLogger
(
__name__
)
...
...
asyncua/client/ua_client.py
View file @
d285f336
...
...
@@ -6,10 +6,8 @@ import logging
from
asyncua
import
ua
from
..ua.ua_binary
import
struct_from_binary
,
uatcp_to_binary
,
struct_to_binary
,
nodeid_from_binary
,
header_from_binary
from
..ua.uaerrors
import
UaError
,
BadTimeout
,
BadNoSubscription
,
BadSessionClosed
from
..common
import
SecureConnection
__all__
=
[
"UaClient"
]
from
..ua.uaerrors
import
BadTimeout
,
BadNoSubscription
,
BadSessionClosed
from
..common.connection
import
SecureConnection
class
UASocketProtocol
(
asyncio
.
Protocol
):
...
...
asyncua/common/__init__.py
View file @
d285f336
from
.callback
import
*
from
.connection
import
*
from
.copy_node_util
import
*
from
.event_objects
import
*
from
.events
import
*
from
.instantiate_util
import
*
from
.node
import
*
from
.manage_nodes
import
*
from
.methods
import
*
from
.shortcuts
import
*
from
.structures
import
*
from
.subscription
import
*
from
.ua_utils
import
*
from
.utils
import
*
from
.xmlexporter
import
*
from
.xmlimporter
import
*
from
.xmlparser
import
*
from
.node
import
Node
from
.methods
import
uamethod
__all__
=
(
callback
.
__all__
+
connection
.
__all__
+
copy_node_util
.
__all__
+
event_objects
.
__all__
+
events
.
__all__
+
instantiate_util
.
__all__
+
manage_nodes
.
__all__
+
methods
.
__all__
+
node
.
__all__
+
shortcuts
.
__all__
+
structures
.
__all__
+
subscription
.
__all__
+
ua_utils
.
__all__
+
utils
.
__all__
+
xmlexporter
.
__all__
+
xmlimporter
.
__all__
+
xmlparser
.
__all__
)
asyncua/common/callback.py
View file @
d285f336
...
...
@@ -5,17 +5,15 @@ server side implementation of callback event
from
collections
import
OrderedDict
from
enum
import
Enum
__all__
=
[
"CallbackType"
,
"ServerItemCallback"
,
"CallbackDispatcher"
]
class
CallbackType
(
Enum
):
'''
"""
The possible types of a Callback type.
:ivar Null:
:ivar MonitoredItem:
'''
"""
Null
=
0
ItemSubscriptionCreated
=
1
ItemSubscriptionModified
=
2
...
...
asyncua/common/connection.py
View file @
d285f336
...
...
@@ -7,7 +7,6 @@ from asyncua import ua
logger
=
logging
.
getLogger
(
'asyncua.uaprotocol'
)
__all__
=
[
"MessageChunk"
,
"SecureConnection"
]
class
MessageChunk
(
ua
.
FrozenClass
):
...
...
asyncua/common/copy_node_util.py
View file @
d285f336
...
...
@@ -5,7 +5,6 @@ from .node_factory import make_node
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"copy_node"
]
async
def
copy_node
(
parent
,
node
,
nodeid
=
None
,
recursive
=
True
):
...
...
asyncua/common/event_objects.py
View file @
d285f336
...
...
@@ -5,8 +5,6 @@ Autogenerated code from xml spec
from
asyncua
import
ua
from
.events
import
Event
__all__
=
[
"BaseEvent"
,
"AuditEvent"
,
"AuditSecurityEvent"
,
"AuditChannelEvent"
,
"AuditOpenSecureChannelEvent"
,
"AuditSessionEvent"
,
"AuditCreateSessionEvent"
,
"AuditActivateSessionEvent"
,
"AuditCancelEvent"
,
"AuditCertificateEvent"
,
"AuditCertificateDataMismatchEvent"
,
"AuditCertificateExpiredEvent"
,
"AuditCertificateInvalidEvent"
,
"AuditCertificateUntrustedEvent"
,
"AuditCertificateRevokedEvent"
,
"AuditCertificateMismatchEvent"
,
"AuditNodeManagementEvent"
,
"AuditAddNodesEvent"
,
"AuditDeleteNodesEvent"
,
"AuditAddReferencesEvent"
,
"AuditDeleteReferencesEvent"
,
"AuditUpdateEvent"
,
"AuditWriteUpdateEvent"
,
"AuditHistoryUpdateEvent"
,
"AuditUpdateMethodEvent"
,
"SystemEvent"
,
"DeviceFailureEvent"
,
"BaseModelChangeEvent"
,
"GeneralModelChangeEvent"
,
"TransitionEvent"
,
"AuditUpdateStateEvent"
,
"ProgramTransitionEvent"
,
"SemanticChangeEvent"
,
"AuditUrlMismatchEvent"
,
"RefreshStartEvent"
,
"RefreshEndEvent"
,
"RefreshRequiredEvent"
,
"AuditConditionEvent"
,
"AuditConditionEnableEvent"
,
"AuditConditionCommentEvent"
,
"AuditHistoryEventUpdateEvent"
,
"AuditHistoryValueUpdateEvent"
,
"AuditHistoryDeleteEvent"
,
"AuditHistoryRawModifyDeleteEvent"
,
"AuditHistoryAtTimeDeleteEvent"
,
"AuditHistoryEventDeleteEvent"
,
"EventQueueOverflowEvent"
,
"ProgramTransitionAuditEvent"
,
"AuditConditionRespondEvent"
,
"AuditConditionAcknowledgeEvent"
,
"AuditConditionConfirmEvent"
,
"AuditConditionShelvingEvent"
,
"ProgressEvent"
,
"SystemStatusChangeEvent"
,
"AuditProgramTransitionEvent"
,
"TrustListUpdatedAuditEvent"
,
"CertificateUpdatedAuditEvent"
,
"AuditConditionResetEvent"
,
"PubSubStatusEvent"
,
"PubSubTransportLimitsExceedEvent"
,
"PubSubCommunicationFailureEvent"
,
"AuditConditionSuppressEvent"
,
"AuditConditionSilenceEvent"
,
"AuditConditionOutOfServiceEvent"
,
"RoleMappingRuleChangedAuditEvent"
,
"KeyCredentialAuditEvent"
,
"KeyCredentialUpdatedAuditEvent"
,
"KeyCredentialDeletedAuditEvent"
]
class
BaseEvent
(
Event
):
"""
...
...
asyncua/common/events.py
View file @
d285f336
...
...
@@ -5,8 +5,6 @@ import asyncua
from
..ua.uaerrors
import
UaError
from
.ua_utils
import
get_node_subtypes
__all__
=
[
"Event"
,
"get_event_obj_from_type_node"
,
"get_event_properties_from_type_node"
]
class
Event
:
"""
...
...
asyncua/common/instantiate_util.py
View file @
d285f336
...
...
@@ -10,7 +10,6 @@ from .copy_node_util import _rdesc_from_node, _read_and_copy_attrs
from
.node_factory
import
make_node
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"instantiate"
]
async
def
instantiate
(
parent
,
node_type
,
nodeid
=
None
,
bname
=
None
,
dname
=
None
,
idx
=
0
,
instantiate_optional
=
True
):
...
...
asyncua/common/manage_nodes.py
View file @
d285f336
...
...
@@ -7,10 +7,6 @@ from .instantiate_util import instantiate
from
.node_factory
import
make_node
_logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
'create_folder'
,
'create_object'
,
'create_property'
,
'create_variable'
,
'create_variable_type'
,
'create_reference_type'
,
'create_object_type'
,
'create_method'
,
'create_data_type'
,
'delete_nodes'
]
def
_parse_nodeid_qname
(
*
args
):
...
...
asyncua/common/methods.py
View file @
d285f336
...
...
@@ -4,8 +4,6 @@ High level method related functions
from
asyncua
import
ua
__all__
=
[
"call_method"
,
"call_method_full"
,
"uamethod"
]
async
def
call_method
(
parent
,
methodid
,
*
args
):
"""
...
...
asyncua/common/node.py
View file @
d285f336
...
...
@@ -5,7 +5,7 @@ and browse address space
from
datetime
import
datetime
import
logging
from
typing
import
Coroutine
from
asyncua
import
ua
from
.events
import
Event
,
get_filter_from_event_type
from
.ua_utils
import
data_type_to_variant_type
...
...
@@ -14,7 +14,6 @@ from .manage_nodes import create_folder, create_object, create_object_type, crea
from
.methods
import
call_method
_logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"Node"
]
def
_check_results
(
results
,
reqlen
=
1
):
...
...
asyncua/common/shortcuts.py
View file @
d285f336
from
..ua
import
ObjectIds
from
.node
import
Node
__all__
=
[
"Shortcuts"
]
class
Shortcuts
(
object
):
"""
...
...
asyncua/common/structures.py
View file @
d285f336
...
...
@@ -14,7 +14,6 @@ from lxml import objectify
from
asyncua
import
ua
__all__
=
[
"load_type_definitions"
,
"load_enums"
]
_logger
=
logging
.
getLogger
(
__name__
)
...
...
asyncua/common/subscription.py
View file @
d285f336
...
...
@@ -4,14 +4,11 @@ high level interface to subscriptions
import
asyncio
import
logging
import
collections
import
time
from
asyncua
import
ua
from
.events
import
Event
,
get_filter_from_event_type
from
.node
import
Node
__all__
=
[
"Subscription"
]
class
SubHandler
:
"""
...
...
asyncua/common/ua_utils.py
View file @
d285f336
...
...
@@ -11,11 +11,6 @@ import logging
from
asyncua
import
ua
logger
=
logging
.
getLogger
(
'__name__'
)
__all__
=
[
"val_to_string"
,
"string_to_val"
,
"string_to_variant"
,
"get_node_children"
,
"get_node_subtypes"
,
"get_node_supertype"
,
"get_node_supertypes"
,
"get_nodes_of_namespace"
,
"get_base_data_type"
,
"is_child_present"
,
"data_type_to_variant_type"
]
def
val_to_string
(
val
,
truncate
=
False
):
...
...
asyncua/common/utils.py
View file @
d285f336
...
...
@@ -8,7 +8,6 @@ import logging
from
..ua.uaerrors
import
UaError
_logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"ServiceError"
,
"NotEnoughData"
,
"SocketClosedException"
,
"Buffer"
,
"create_nonce"
]
class
ServiceError
(
UaError
):
...
...
asyncua/common/xmlexporter.py
View file @
d285f336
...
...
@@ -2,7 +2,6 @@
from a list of nodes in the address space, build an XML file
format is the one from opc-ua specification
"""
import
asyncio
import
logging
import
functools
from
collections
import
OrderedDict
...
...
@@ -15,8 +14,6 @@ from ..ua import object_ids as o_ids
from
.ua_utils
import
get_base_data_type
from
asyncua.ua.uaerrors
import
UaError
__all__
=
[
"XmlExporter"
]
class
XmlExporter
:
"""
...
...
asyncua/common/xmlimporter.py
View file @
d285f336
...
...
@@ -12,9 +12,6 @@ from .xmlparser import XMLParser, ua_type_to_python
from
..ua.uaerrors
import
UaError
__all__
=
[
"XmlImporter"
]
class
XmlImporter
:
def
__init__
(
self
,
server
):
...
...
asyncua/common/xmlparser.py
View file @
d285f336
...
...
@@ -13,8 +13,6 @@ import xml.etree.ElementTree as ET
from
.ua_utils
import
string_to_val
from
asyncua
import
ua
__all__
=
[
"XMLParser"
]
def
ua_type_to_python
(
val
,
uatype_as_str
):
"""
...
...
asyncua/crypto/uacrypto.py
View file @
d285f336
...
...
@@ -2,7 +2,6 @@ import os
import
aiofiles
from
cryptography
import
x509
from
cryptography.exceptions
import
InvalidSignature
from
cryptography.hazmat.backends
import
default_backend
from
cryptography.hazmat.primitives
import
serialization
from
cryptography.hazmat.primitives
import
hashes
...
...
asyncua/server/__init__.py
View file @
d285f336
from
.binary_server_asyncio
import
*
from
.history
import
*
from
.history_sql
import
*
from
.internal_server
import
*
from
.internal_subscription
import
*
from
.server
import
*
from
.subscription_service
import
*
from
.uaprocessor
import
*
from
.users
import
*
from
.event_generator
import
*
__all__
=
(
binary_server_asyncio
.
__all__
+
history
.
__all__
+
history_sql
.
__all__
+
internal_server
.
__all__
+
internal_subscription
.
__all__
+
server
.
__all__
+
subscription_service
.
__all__
+
uaprocessor
.
__all__
+
users
.
__all__
+
event_generator
.
__all__
)
from
.server
import
Server
from
.event_generator
import
EventGenerator
asyncua/server/address_space.py
View file @
d285f336
...
...
@@ -8,10 +8,6 @@ from asyncua import ua
from
.users
import
User
_logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"AttributeValue"
,
"NodeData"
,
"AttributeService"
,
"ViewService"
,
"NodeManagementService"
,
"MethodService"
,
"AddressSpace"
]
class
AttributeValue
(
object
):
...
...
asyncua/server/binary_server_asyncio.py
View file @
d285f336
...
...
@@ -5,11 +5,10 @@ import logging
import
asyncio
from
..ua.ua_binary
import
header_from_binary
from
..common
import
Buffer
,
NotEnoughData
from
..common
.utils
import
Buffer
,
NotEnoughData
from
.uaprocessor
import
UaProcessor
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"BinaryServer"
]
class
OPCUAProtocol
(
asyncio
.
Protocol
):
...
...
asyncua/server/event_generator.py
View file @
d285f336
...
...
@@ -4,9 +4,7 @@ import uuid
from
asyncua
import
ua
from
asyncua
import
Node
from
asyncua.common
import
events
,
event_objects
__all__
=
[
"EventGenerator"
]
from
..common
import
events
,
event_objects
class
EventGenerator
:
...
...
asyncua/server/history.py
View file @
d285f336
import
asyncio
import
logging
from
typing
import
Coroutine
from
datetime
import
timedelta
from
datetime
import
datetime
from
asyncua
import
ua
from
..common
import
Subscription
,
Buffer
__all__
=
[
"HistoryManager"
,
"HistoryStorageInterface"
,
"HistoryDict"
]
from
..common.subscription
import
Subscription
from
..common.utils
import
Buffer
class
UaNodeAlreadyHistorizedError
(
ua
.
UaError
):
...
...
asyncua/server/history_sql.py
View file @
d285f336
import
logging
from
typing
import
Iterable
,
Coroutine
,
Optional
from
typing
import
Iterable
,
Optional
from
datetime
import
timedelta
from
datetime
import
datetime
from
asyncio
import
get_event_loop
...
...
@@ -7,11 +7,10 @@ import sqlite3
from
asyncua
import
ua
from
..ua.ua_binary
import
variant_from_binary
,
variant_to_binary
from
..common
import
Buffer
,
Event
,
get_event_properties_from_type_node
from
..common.utils
import
Buffer
from
..common.events
import
Event
,
get_event_properties_from_type_node
from
.history
import
HistoryStorageInterface
__all__
=
[
"HistorySQLite"
]
class
HistorySQLite
(
HistoryStorageInterface
):
"""
...
...
asyncua/server/internal_server.py
View file @
d285f336
...
...
@@ -7,21 +7,21 @@ from datetime import datetime, timedelta
from
copy
import
copy
from
struct
import
unpack_from
import
os
import
asyncio
import
logging
from
enum
import
Enum
from
urllib.parse
import
urlparse
from
typing
import
Coroutine
from
asyncua
import
ua
from
..common
import
CallbackType
,
ServerItemCallback
,
CallbackDispatcher
,
Node
,
create_nonce
,
ServiceError
from
..common.callback
import
CallbackType
,
ServerItemCallback
,
CallbackDispatcher
from
..common.node
import
Node
from
..common.utils
import
create_nonce
,
ServiceError
from
.history
import
HistoryManager
from
.address_space
import
AddressSpace
,
AttributeService
,
ViewService
,
NodeManagementService
,
MethodService
from
.subscription_service
import
SubscriptionService
from
.standard_address_space
import
standard_address_space
from
.users
import
User
__all__
=
[
"InternalServer"
]
use_crypto
=
True
try
:
...
...
asyncua/server/internal_subscription.py
View file @
d285f336
...
...
@@ -8,8 +8,6 @@ import inspect
from
asyncua
import
ua
__all__
=
[
"InternalSubscription"
,
"WhereClauseEvaluator"
]
class
MonitoredItemData
:
def
__init__
(
self
):
...
...
asyncua/server/server.py
View file @
d285f336
...
...
@@ -14,13 +14,19 @@ from .binary_server_asyncio import BinaryServer
from
.internal_server
import
InternalServer
from
.event_generator
import
EventGenerator
from
..client
import
Client
from
..common
import
Node
,
Subscription
,
delete_nodes
,
BaseEvent
,
Shortcuts
,
load_type_definitions
,
XmlExporter
,
\
XmlImporter
,
get_nodes_of_namespace
,
load_enums
from
..common.node
import
Node
from
..common.subscription
import
Subscription
from
..common.xmlimporter
import
XmlImporter
from
..common.xmlexporter
import
XmlExporter
from
..common.manage_nodes
import
delete_nodes
from
..common.event_objects
import
BaseEvent
from
..common.shortcuts
import
Shortcuts
from
..common.structures
import
load_type_definitions
,
load_enums
from
..common.ua_utils
import
get_nodes_of_namespace
from
..crypto
import
security_policies
,
uacrypto
_logger
=
logging
.
getLogger
(
__name__
)
__all__
=
[
"Server"
]
class
Server
:
...
...
asyncua/server/standard_address_space/__init__.py
View file @
d285f336
from
.standard_address_space
import
*
__all__
=
standard_address_space
.
__all__
from
.standard_address_space
import
fill_address_space
asyncua/server/standard_address_space/standard_address_space.py
View file @
d285f336
...
...
@@ -8,8 +8,6 @@ from .standard_address_space_part10 import create_standard_address_space_Part10
from
.standard_address_space_part11
import
create_standard_address_space_Part11
from
.standard_address_space_part13
import
create_standard_address_space_Part13
__all__
=
[
"fill_address_space"
]
class
PostponeReferences
:
def
__init__
(
self
,
server
):
...
...
asyncua/server/subscription_service.py
View file @
d285f336
...
...
@@ -8,8 +8,6 @@ import logging
from
asyncua
import
ua
from
.internal_subscription
import
InternalSubscription
__all__
=
[
"SubscriptionService"
]
class
SubscriptionService
:
"""
...
...
asyncua/server/uaprocessor.py
View file @
d285f336
...
...
@@ -6,9 +6,9 @@ from collections import deque
from
asyncua
import
ua
from
..ua.ua_binary
import
nodeid_from_binary
,
struct_from_binary
,
struct_to_binary
,
uatcp_to_binary
from
.internal_server
import
InternalServer
,
InternalSession
from
..common
import
SecureConnection
,
ServiceError
from
..common.connection
import
SecureConnection
from
..common.utils
import
ServiceError
__all__
=
[
"UaProcessor"
]
_logger
=
logging
.
getLogger
(
__name__
)
...
...
asyncua/server/users.py
View file @
d285f336
...
...
@@ -3,7 +3,6 @@ Implement user managent here
"""
from
enum
import
Enum
__all__
=
[
"User"
]
class
User
(
Enum
):
...
...
asyncua/tools.py
View file @
d285f336
...
...
@@ -16,9 +16,7 @@ except ImportError:
from
asyncua
import
ua
from
asyncua
import
Client
from
asyncua
import
Server
from
asyncua
import
Node
from
asyncua
import
uamethod
from
asyncua
import
Node
,
uamethod
from
asyncua
import
sync
from
asyncua.ua.uaerrors
import
UaStatusCodeError
...
...
examples/client-example.py
View file @
d285f336
import
time
import
asyncio
import
logging
...
...
examples/client_to_prosys.py
View file @
d285f336
...
...
@@ -3,8 +3,7 @@ import asyncio
sys
.
path
.
insert
(
0
,
".."
)
import
logging
from
asyncua
import
Client
from
asyncua
import
ua
from
asyncua
import
Client
,
ua
class
SubHandler
(
object
):
...
...
examples/server-events.py
View file @
d285f336
import
asyncio
import
logging
from
asyncua
import
ua
,
Server
,
EventGenerator
from
asyncua
import
ua
from
asyncua.server
import
Server
,
EventGenerator
logging
.
basicConfig
(
level
=
logging
.
INFO
)
_logger
=
logging
.
getLogger
(
'asyncua'
)
...
...
examples/server-instantiate-object.py
View file @
d285f336
...
...
@@ -4,7 +4,8 @@ import time
from
IPython
import
embed
from
asyncua
import
ua
,
Server
,
instantiate
from
asyncua
import
ua
,
Server
from
asyncua.common.instantiate_util
import
instantiate
if
__name__
==
"__main__"
:
...
...
examples/server-with-encryption.py
View file @
d285f336
...
...
@@ -3,7 +3,7 @@ import time
sys
.
path
.
insert
(
0
,
".."
)
from
asyncua
import
ua
,
Server
from
asyncua
import
Server
if
__name__
==
"__main__"
:
...
...
examples/server-xmlexporter.py
View file @
d285f336
import
sys
sys
.
path
.
insert
(
0
,
".."
)
import
time
from
collections
import
OrderedDict
from
asyncua
import
ua
,
Server
,
instantiate
from
asyncua
import
ua
,
Server
from
asyncua.common.instantiate_util
import
instantiate
from
asyncua.common.xmlexporter
import
XmlExporter
...
...
examples/simple-client-server-xml/client_minimal.py
View file @
d285f336
from
asyncua
import
Client
,
ua
from
asyncua.ua
import
ua_binary
as
uabin
from
asyncua.common.methods
import
call_method
from
asyncua
import
Client
class
HelloClient
:
...
...
examples/sync/client-example.py
View file @
d285f336
...
...
@@ -15,7 +15,6 @@ except ImportError:
shell
.
interact
()
from
asyncua
import
ua
from
asyncua.sync
import
Client
,
start_thread_loop
,
stop_thread_loop
...
...
tests/conftest.py
View file @
d285f336
import
asyncio
import
pytest
from
collections
import
namedtuple
from
asyncua
import
ua
,
Client
,
Server
,
HistoryDict
,
HistorySQLite
from
asyncua
import
ua
,
Client
,
Server
from
asyncua.server.history
import
HistoryDict
from
asyncua.server.history_sql
import
HistorySQLite
from
.test_common
import
add_server_methods
from
.util_enum_struct
import
add_server_custom_enum_struct
...
...
tests/test_common.py
View file @
d285f336
...
...
@@ -11,8 +11,11 @@ from datetime import datetime
from
datetime
import
timedelta
import
math
from
asyncua
import
ua
,
call_method_full
,
copy_node
,
uamethod
,
instantiate
from
asyncua
import
ua
,
uamethod
from
asyncua.common
import
ua_utils
from
asyncua.common.methods
import
call_method_full
from
asyncua.common.copy_node_util
import
copy_node
from
asyncua.common.instantiate_util
import
instantiate
pytestmark
=
pytest
.
mark
.
asyncio
...
...
tests/test_server.py
View file @
d285f336
...
...
@@ -5,13 +5,12 @@ Tests that can only be run on server side must be defined here
import
asyncio
import
pytest
import
logging
import
os
import
shelve
from
datetime
import
timedelta
from
enum
import
Enum
,
EnumMeta
import
asyncua
from
asyncua
import
Server
,
Client
,
ua
,
uamethod
,
BaseEvent
,
AuditEvent
,
AuditChannelEvent
,
AuditSecurityEvent
,
AuditOpenSecureChannelEvent
from
asyncua
import
Server
,
Client
,
ua
,
uamethod
from
asyncua.common.event_objects
import
BaseEvent
,
AuditEvent
,
AuditChannelEvent
,
AuditSecurityEvent
,
AuditOpenSecureChannelEvent
from
asyncua.common
import
ua_utils
pytestmark
=
pytest
.
mark
.
asyncio
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment