Skip to content

Commit f014b34

Browse files
author
davaya
committed
Add Apache License Version 2.0
1 parent f32f84d commit f014b34

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

LICENSE.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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.

working/dod/codec.py

+19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
import json, re
22
from functools import reduce
33

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
423
# TODO: replace error messages with ValidationError exceptions
524
# TODO: parse field options at initialization
625

0 commit comments

Comments
 (0)