-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2260f66
commit dff3db8
Showing
32 changed files
with
264 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Asn1Family: | ||
GSMA_SGP_22 = 'GSMA_SGP_22' | ||
GSMA_SGP_32 = 'GSMA_SGP_32' | ||
TCA_EPP = 'TCA_EPP' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class ConfigConst: | ||
TOOL_VERSION = '6.1.0' | ||
TOOL_VERSION = '6.1.2' | ||
TOOL_VERSION_DETAILED = f'v{TOOL_VERSION}' | ||
TOOL_NAME = 'asn1play' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
from python_helpers.ph_modes_error_handling import PhErrorHandlingModes | ||
from python_helpers.ph_util import PhUtil | ||
|
||
from asn1_play.generated_code.asn1.asn1_versions import Asn1Versions | ||
from asn1_play.main.data_type.data_type_master import DataTypeMaster | ||
from asn1_play.main.helper.data import Data | ||
|
||
raw_data = 'Welcome To AsnPlay !!!' | ||
input_format = 'ascii' | ||
output_format = 'hex' | ||
|
||
data_type = DataTypeMaster() | ||
data_type.set_data_pool(data_pool=[Data(raw_data=raw_data, input_format=input_format, output_format=output_format)]) | ||
data_type.parse_safe(PhErrorHandlingModes.CONTINUE_ON_ERROR) | ||
print(f'raw_data {raw_data}') | ||
print(f'input_format {input_format}') | ||
print(f'output_format {output_format}') | ||
print(f'output_data {data_type.meta_data_pool[0]}') | ||
class Test(): | ||
|
||
@classmethod | ||
def test_data(self): | ||
raw_data = 'Welcome To AsnPlay !!!' | ||
input_format = 'ascii' | ||
output_format = 'hex' | ||
|
||
data_type = DataTypeMaster() | ||
data_type.set_data_pool( | ||
data_pool=[Data(raw_data=raw_data, input_format=input_format, output_format=output_format)]) | ||
data_type.parse_safe(PhErrorHandlingModes.CONTINUE_ON_ERROR) | ||
print(f'raw_data {raw_data}') | ||
print(f'input_format {input_format}') | ||
print(f'output_format {output_format}') | ||
print(f'output_data {data_type.get_output_data()}') | ||
PhUtil.print_separator() | ||
data = Asn1Versions._get_list_of_supported_versions() | ||
PhUtil.print_iter(data, header='All Supported Versions') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.