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
2dea5f9f
Commit
2dea5f9f
authored
Jun 14, 2020
by
Andreas
Committed by
oroulet
Jun 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Datetime
parent
61b5aea0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
9 deletions
+13
-9
asyncua/common/event_objects.py
asyncua/common/event_objects.py
+1
-1
asyncua/ua/attribute_ids.py
asyncua/ua/attribute_ids.py
+1
-1
asyncua/ua/status_codes.py
asyncua/ua/status_codes.py
+1
-1
asyncua/ua/uaerrors/_auto.py
asyncua/ua/uaerrors/_auto.py
+1
-1
schemas/generate_event_objects.py
schemas/generate_event_objects.py
+2
-1
schemas/generate_ids.py
schemas/generate_ids.py
+2
-1
schemas/generate_statuscode.py
schemas/generate_statuscode.py
+2
-1
schemas/generate_uaerrors.py
schemas/generate_uaerrors.py
+3
-2
No files found.
asyncua/common/event_objects.py
View file @
2dea5f9f
"""
Autogenerated code from xml spec
Autogenerated code from xml spec
. Date: 2020-06-14 12:29:12.030807
"""
from
asyncua
import
ua
...
...
asyncua/ua/attribute_ids.py
View file @
2dea5f9f
#AUTOGENERATED!!!
#AUTOGENERATED!!!
Date: 2020-06-14 12:30:30.245399
from
enum
import
IntEnum
...
...
asyncua/ua/status_codes.py
View file @
2dea5f9f
#AUTOGENERATED!!!
#AUTOGENERATED!!!
Date: 2020-06-14 12:32:16.236231
from
asyncua.ua.uaerrors
import
UaStatusCodeError
...
...
asyncua/ua/uaerrors/_auto.py
View file @
2dea5f9f
#AUTOGENERATED!!!
#AUTOGENERATED!!!
Date: 2020-06-14 12:34:33.358021
from
asyncua.ua.uaerrors
import
UaStatusCodeError
...
...
schemas/generate_event_objects.py
View file @
2dea5f9f
...
...
@@ -3,6 +3,7 @@ import xml.etree.ElementTree as ET
import
asyncua.ua.object_ids
as
obIds
import
generate_model_event
as
gme
import
os
import
datetime
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
...
...
@@ -28,7 +29,7 @@ class EventsCodeGenerator:
def
make_header
(
self
,
events
:
list
):
self
.
write
(
'"""'
)
self
.
write
(
"Autogenerated code from xml spec
"
)
self
.
write
(
f"Autogenerated code from xml spec. Date:
{
datetime
.
datetime
.
now
()
}
"
)
self
.
write
(
'"""'
)
self
.
write
(
""
)
self
.
write
(
"from asyncua import ua"
)
...
...
schemas/generate_ids.py
View file @
2dea5f9f
import
os
import
datetime
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
if
__name__
==
"__main__"
:
...
...
@@ -25,7 +26,7 @@ if __name__ == "__main__":
inputfile
=
open
(
os
.
path
.
join
(
BASE_DIR
,
"schemas"
,
"UA-Nodeset-master"
,
"Schema"
,
"AttributeIds.csv"
))
outputfile
=
open
(
os
.
path
.
join
(
BASE_DIR
,
"asyncua"
,
"ua"
,
"attribute_ids.py"
),
"w"
)
outputfile
.
write
(
"#AUTOGENERATED!!!
\
n
"
)
outputfile
.
write
(
f"#AUTOGENERATED!!! Date:
{
datetime
.
datetime
.
now
()
}
\
n
"
)
outputfile
.
write
(
"
\
n
"
)
outputfile
.
write
(
"from enum import IntEnum
\
n
"
)
outputfile
.
write
(
"
\
n
"
)
...
...
schemas/generate_statuscode.py
View file @
2dea5f9f
import
os
import
datetime
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
def
status_codes
():
...
...
@@ -26,7 +27,7 @@ def status_codes():
if
__name__
==
"__main__"
:
codes
=
status_codes
()
with
open
(
os
.
path
.
join
(
BASE_DIR
,
"asyncua"
,
"ua"
,
"status_codes.py"
),
"w"
)
as
outputfile
:
outputfile
.
write
(
"#AUTOGENERATED!!!
\
n
"
)
outputfile
.
write
(
f"#AUTOGENERATED!!! Date:
{
datetime
.
datetime
.
now
()
}
\
n
"
)
outputfile
.
write
(
"
\
n
"
)
outputfile
.
write
(
"from asyncua.ua.uaerrors import UaStatusCodeError
\
n
"
)
# outputfile.write("from enum import Enum\n")
...
...
schemas/generate_uaerrors.py
View file @
2dea5f9f
...
...
@@ -2,14 +2,15 @@ from textwrap import dedent
from
generate_statuscode
import
status_codes
from
string
import
Template
import
os
import
datetime
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
if
__name__
==
"__main__"
:
codes
=
status_codes
()
with
open
(
os
.
path
.
join
(
BASE_DIR
,
"asyncua"
,
"ua"
,
"uaerrors"
,
"_auto.py"
),
"w"
)
as
f
:
preamble
=
"""
\
#AUTOGENERATED!!!
preamble
=
f
"""
\
#AUTOGENERATED!!!
Date:
{
datetime
.
datetime
.
now
()
}
from asyncua.ua.uaerrors import UaStatusCodeError
...
...
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