File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ Copyright 2016 OpenC2 Forum
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
Original file line number Diff line number Diff line change 1
1
import json , re
2
2
from functools import reduce
3
3
4
+ """
5
+ Abstract Object Encoder/Decoder
6
+
7
+ Classes used to define Datatypes using an abstract syntax, and
8
+ encode/decode instances of those types using a concrete message format.
9
+
10
+ Datatypes are specified in JSON Abstract Syntax Notation (JASN) schemas,
11
+ or Python classes, or "Pseudo ASN" documemnts, all of which represent and can
12
+ be generated from the same abstract schema.
13
+
14
+ Currently supports three JSON-based concrete message formats (verbose, concise,
15
+ and minimized) but can be extended to support XML-based and binary formats.
16
+
17
+ Copyright 2016 David Kemp
18
+ Licensed under the Apache License, Version 2.0
19
+ http://www.apache.org/licenses/LICENSE-2.0
20
+ """
21
+
22
+ # TOTO: replace static classes with dynamically loaded JASN schemas
4
23
# TODO: replace error messages with ValidationError exceptions
5
24
# TODO: parse field options at initialization
6
25
You can’t perform that action at this time.
0 commit comments