Chapter 5. ASN.1 Type to Python Class Mappings

Table of Contents

BIT STRING
BOOLEAN
INTEGER
ENUMERATED
OCTET STRING
Character String Types
Time String Types
REAL
OBJECT IDENTIFIER and RELATIVE-OID

The following sections discuss the specific mappings of ASN.1 types to Python classes. In the case of most primitive types, classes are not generated. Values in the supported value formats are encoded directly.

For all types a class is generated if the type is tagged; e.g.:

TaggedBMP ::= [APPLICATION 2] BMPString

This statement is true even if the description below for a particular type says no class is generated for the type or doesn't mention the type being tagged as a condition that will cause a class to be generated.