--- /srv/rebuilderd/tmp/rebuilderdHDcD1Q/inputs/python-pyasn1-lextudio-doc_1.1.2-2_all.deb +++ /srv/rebuilderd/tmp/rebuilderdHDcD1Q/out/python-pyasn1-lextudio-doc_1.1.2-2_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2023-09-15 07:08:20.000000 debian-binary │ -rw-r--r-- 0 0 0 4956 2023-09-15 07:08:20.000000 control.tar.xz │ --rw-r--r-- 0 0 0 130584 2023-09-15 07:08:20.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 130188 2023-09-15 07:08:20.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./control │ │ │ @@ -1,13 +1,13 @@ │ │ │ Package: python-pyasn1-lextudio-doc │ │ │ Source: python-pyasn1-lextudio │ │ │ Version: 1.1.2-2 │ │ │ Architecture: all │ │ │ Maintainer: Debian OpenStack │ │ │ -Installed-Size: 1868 │ │ │ +Installed-Size: 1759 │ │ │ Depends: libjs-sphinxdoc (>= 5.2) │ │ │ Section: doc │ │ │ Priority: optional │ │ │ Homepage: https://github.com/lextudio/pyasn1 │ │ │ Description: ASN.1 types and codecs - doc │ │ │ This package provides an implementation of ASN.1 types and codecs. It has been │ │ │ first written to support particular protocol (SNMP) but then generalized to be │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -118,95 +118,95 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 68533 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/genindex.html │ │ │ -rw-r--r-- 0 root (0) root (0) 5082 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/license.html │ │ │ -rw-r--r-- 0 root (0) root (0) 4889 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/objects.inv │ │ │ -rw-r--r-- 0 root (0) root (0) 3902 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/py-modindex.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/ber/ │ │ │ --rw-r--r-- 0 root (0) root (0) 15292 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/ber/contents.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 14318 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/ber/contents.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/cer/ │ │ │ --rw-r--r-- 0 root (0) root (0) 14047 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/cer/contents.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 13439 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/cer/contents.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/der/ │ │ │ --rw-r--r-- 0 root (0) root (0) 14019 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/der/contents.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 13411 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/der/contents.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/native/ │ │ │ --rw-r--r-- 0 root (0) root (0) 10129 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/native/contents.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 9881 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/native/contents.html │ │ │ -rw-r--r-- 0 root (0) root (0) 28828 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/contents.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/error/ │ │ │ --rw-r--r-- 0 root (0) root (0) 12420 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/error/contents.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 11887 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/error/contents.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/ │ │ │ --rw-r--r-- 0 root (0) root (0) 13949 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/asn1type.html │ │ │ --rw-r--r-- 0 root (0) root (0) 14622 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/constructedasn1type.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 13215 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/asn1type.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 13888 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/constructedasn1type.html │ │ │ -rw-r--r-- 0 root (0) root (0) 6118 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/contents.html │ │ │ -rw-r--r-- 0 root (0) root (0) 5424 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/novalue.html │ │ │ --rw-r--r-- 0 root (0) root (0) 17722 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/simpleasn1type.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 16014 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/simpleasn1type.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/ │ │ │ --rw-r--r-- 0 root (0) root (0) 27684 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/bmpstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 24887 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/bmpstring.html │ │ │ -rw-r--r-- 0 root (0) root (0) 9185 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 28112 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/generalstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27898 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/graphicstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27705 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/ia5string.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27998 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/iso646string.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27843 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/numericstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 28004 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/printablestring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27857 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/t61string.html │ │ │ --rw-r--r-- 0 root (0) root (0) 28008 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/teletexstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27960 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/universalstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27702 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/utf8string.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27962 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/videotexstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27908 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/visiblestring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25315 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/generalstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25101 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/graphicstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 24908 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/ia5string.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25201 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/iso646string.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25046 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/numericstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25207 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/printablestring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25060 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/t61string.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25211 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/teletexstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25163 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/universalstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 24905 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/utf8string.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25165 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/videotexstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25111 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/visiblestring.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/ │ │ │ -rw-r--r-- 0 root (0) root (0) 6995 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsexclusion.html │ │ │ --rw-r--r-- 0 root (0) root (0) 7751 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsintersection.html │ │ │ --rw-r--r-- 0 root (0) root (0) 7700 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsunion.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 7629 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsintersection.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 7578 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsunion.html │ │ │ -rw-r--r-- 0 root (0) root (0) 7352 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/containedsubtype.html │ │ │ -rw-r--r-- 0 root (0) root (0) 11146 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 10294 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/permittedalphabet.html │ │ │ --rw-r--r-- 0 root (0) root (0) 7454 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/singlevalue.html │ │ │ --rw-r--r-- 0 root (0) root (0) 7901 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuerange.html │ │ │ --rw-r--r-- 0 root (0) root (0) 10012 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuesize.html │ │ │ --rw-r--r-- 0 root (0) root (0) 13794 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/withcomponents.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 10174 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/permittedalphabet.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 7333 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/singlevalue.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 7659 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuerange.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 9770 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuesize.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 13672 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/withcomponents.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/ │ │ │ -rw-r--r-- 0 root (0) root (0) 7898 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 6928 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/defaultednamedtype.html │ │ │ --rw-r--r-- 0 root (0) root (0) 6834 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtype.html │ │ │ --rw-r--r-- 0 root (0) root (0) 23287 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtypes.html │ │ │ --rw-r--r-- 0 root (0) root (0) 6896 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/optionalnamedtype.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 6686 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/defaultednamedtype.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 6592 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtype.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 22200 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtypes.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 6654 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/optionalnamedtype.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedval/ │ │ │ -rw-r--r-- 0 root (0) root (0) 7086 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedval/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 9108 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedval/namedval.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 8383 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedval/namedval.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/opentype/ │ │ │ -rw-r--r-- 0 root (0) root (0) 12737 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/opentype/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 10628 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/opentype/opentype.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 10266 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/opentype/opentype.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/ │ │ │ -rw-r--r-- 0 root (0) root (0) 9510 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 12783 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tag.html │ │ │ --rw-r--r-- 0 root (0) root (0) 9417 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagmap.html │ │ │ --rw-r--r-- 0 root (0) root (0) 14851 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagset.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 11935 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tag.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 9054 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagmap.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 14363 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagset.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/ │ │ │ --rw-r--r-- 0 root (0) root (0) 31780 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/any.html │ │ │ --rw-r--r-- 0 root (0) root (0) 37945 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/bitstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27734 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/boolean.html │ │ │ --rw-r--r-- 0 root (0) root (0) 55891 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/choice.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 28743 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/any.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 34789 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/bitstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 25423 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/boolean.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 48924 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/choice.html │ │ │ -rw-r--r-- 0 root (0) root (0) 9346 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29723 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/enumerated.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29643 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/integer.html │ │ │ --rw-r--r-- 0 root (0) root (0) 25569 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/null.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29346 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/objectidentifier.html │ │ │ --rw-r--r-- 0 root (0) root (0) 32707 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/octetstring.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29901 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/real.html │ │ │ --rw-r--r-- 0 root (0) root (0) 47779 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/sequence.html │ │ │ --rw-r--r-- 0 root (0) root (0) 39682 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/sequenceof.html │ │ │ --rw-r--r-- 0 root (0) root (0) 54785 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/set.html │ │ │ --rw-r--r-- 0 root (0) root (0) 39331 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/setof.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 27412 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/enumerated.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 27332 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/integer.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 23378 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/null.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 26666 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/objectidentifier.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 29550 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/octetstring.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 26725 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/real.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 42405 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/sequence.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 36011 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/sequenceof.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 47817 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/set.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 35660 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/setof.html │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/ │ │ │ -rw-r--r-- 0 root (0) root (0) 5572 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/contents.html │ │ │ --rw-r--r-- 0 root (0) root (0) 30197 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/generalizedtime.html │ │ │ --rw-r--r-- 0 root (0) root (0) 27013 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/objectdescriptor.html │ │ │ --rw-r--r-- 0 root (0) root (0) 29664 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/utctime.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 26864 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/generalizedtime.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 24216 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/objectdescriptor.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 26331 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/utctime.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3451 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/search.html │ │ │ -rw-r--r-- 0 root (0) root (0) 132672 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/searchindex.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc-base/ │ │ │ -rw-r--r-- 0 root (0) root (0) 303 2023-09-15 07:08:20.000000 ./usr/share/doc-base/python-pyasn1-lextudio-doc.python-pyasn1-lextudio-doc │ │ │ lrwxrwxrwx 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/_static/_sphinx_javascript_frameworks_compat.js -> ../../../../javascript/sphinxdoc/1.0/_sphinx_javascript_frameworks_compat.js │ │ │ lrwxrwxrwx 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/_static/doctools.js -> ../../../../javascript/sphinxdoc/1.0/doctools.js │ │ │ lrwxrwxrwx 0 root (0) root (0) 0 2023-09-15 07:08:20.000000 ./usr/share/doc/python-pyasn1-lextudio-doc/html/_static/jquery.js -> ../../../../javascript/sphinxdoc/1.0/jquery.js │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/ber/contents.html │ │ │ @@ -120,20 +120,20 @@ │ │ │
Parameters:
│ │ │

value (either a Python or pyasn1 object (e.g. PyAsn1Item derivative)) – A Python or pyasn1 object to encode. If Python object is given, asnSpec │ │ │ parameter is required to guide the encoding process.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
│ │ │
│ │ │
Returns:
│ │ │ -

bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octetstream

│ │ │ +

bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octetstream

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – On encoding errors

│ │ │
│ │ │ │ │ │

Examples

│ │ │

Encode Python value into BER with ASN.1 schema

│ │ │ @@ -156,23 +156,23 @@ │ │ │ pyasn1.codec.ber.decoder.decode(substrate, asn1Spec=None) │ │ │

Turns BER octet stream into an ASN.1 object.

│ │ │

Takes BER octet-stream and decode it into an ASN.1 object │ │ │ (e.g. PyAsn1Item derivative) which │ │ │ may be a scalar or an arbitrary nested structure.

│ │ │
│ │ │
Parameters:
│ │ │ -

substrate (bytes (Python 3) or str (Python 2)) – BER octet-stream

│ │ │ +

substrate (bytes (Python 3) or str (Python 2)) – BER octet-stream

│ │ │
│ │ │
Keyword Arguments:
│ │ │

asn1Spec (any pyasn1 type object e.g. PyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. Depending on the ASN.1 structure │ │ │ being decoded, asn1Spec may or may not be required. Most common reason for │ │ │ it to require is that ASN.1 structure is encoded in IMPLICIT tagging mode.

│ │ │
│ │ │
Returns:
│ │ │ -

tuple – A tuple of pyasn1 object recovered from BER substrate (PyAsn1Item derivative) │ │ │ +

tuple – A tuple of pyasn1 object recovered from BER substrate (PyAsn1Item derivative) │ │ │ and the unprocessed trailing portion of the substrate (may be empty)

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error, SubstrateUnderrunError – On decoding errors

│ │ │
│ │ │
│ │ │

Examples

│ │ │ ├── html2text {} │ │ │ │ @@ -26,20 +26,20 @@ │ │ │ │ vvaalluuee (either a Python or pyasn1 object (e.g. PyAsn1Item │ │ │ │ derivative)) – A Python or pyasn1 object to encode. If Python │ │ │ │ object is given,asnSpecparameter is required to guide the encoding │ │ │ │ process. │ │ │ │ Keyword Arguments: │ │ │ │ * aassnn11SSppeecc – Optional ASN.1 schema or value object e.g. │ │ │ │ PyAsn1Item derivative │ │ │ │ - * ddeeffMMooddee (_b_o_o_l) – If _F_a_l_s_e, produces indefinite length │ │ │ │ + * ddeeffMMooddee (bool) – If False, produces indefinite length │ │ │ │ encoding │ │ │ │ - * mmaaxxCChhuunnkkSSiizzee (_i_n_t) – Maximum chunk size in chunked encoding │ │ │ │ + * mmaaxxCChhuunnkkSSiizzee (int) – Maximum chunk size in chunked encoding │ │ │ │ mode (0 denotes unlimited chunk size) │ │ │ │ Returns: │ │ │ │ - _b_y_t_e_s (Python 3) or _s_t_r (Python 2) – Given ASN.1 object encoded │ │ │ │ + bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded │ │ │ │ into BER octetstream │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On encoding errors │ │ │ │ Examples │ │ │ │ Encode Python value into BER with ASN.1 schema │ │ │ │ >>> seq = SequenceOf(componentType=Integer()) │ │ │ │ >>> encode([1, 2, 3], asn1Spec=seq) │ │ │ │ @@ -51,23 +51,23 @@ │ │ │ │ b'0\t\x02\x01\x01\x02\x01\x02\x02\x01\x03' │ │ │ │ pyasn1.codec.ber.decoder.decode(ssuubbssttrraattee, aassnn11SSppeecc==NNoonnee)_¶ │ │ │ │ Turns BER octet stream into an ASN.1 object. │ │ │ │ Takes BER octet-stream and decode it into an ASN.1 object (e.g. │ │ │ │ PyAsn1Item derivative) which may be a scalar or an arbitrary nested │ │ │ │ structure. │ │ │ │ Parameters: │ │ │ │ - ssuubbssttrraattee (_b_y_t_e_s (Python 3) or _s_t_r (Python 2)) – BER octet-stream │ │ │ │ + ssuubbssttrraattee (bytes (Python 3) or str (Python 2)) – BER octet-stream │ │ │ │ Keyword Arguments: │ │ │ │ aassnn11SSppeecc (any pyasn1 type object e.g. PyAsn1Item derivative) – A │ │ │ │ pyasn1 type object to act as a template guiding the decoder. │ │ │ │ Depending on the ASN.1 structure being decoded, aassnn11SSppeecc may or may │ │ │ │ not be required. Most common reason for it to require is that ASN.1 │ │ │ │ structure is encoded in IIMMPPLLIICCIITT tagging mode. │ │ │ │ Returns: │ │ │ │ - _t_u_p_l_e – A tuple of pyasn1 object recovered from BER substrate │ │ │ │ + tuple – A tuple of pyasn1 object recovered from BER substrate │ │ │ │ (PyAsn1Item derivative) and the unprocessed trailing portion of the │ │ │ │ ssuubbssttrraattee (may be empty) │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr,, _SS_uu_bb_ss_tt_rr_aa_tt_ee_UU_nn_dd_ee_rr_rr_uu_nn_EE_rr_rr_oo_rr – On decoding errors │ │ │ │ Examples │ │ │ │ Decode BER serialisation without ASN.1 schema │ │ │ │ >>> s, _ = decode(b'0\t\x02\x01\x01\x02\x01\x02\x02\x01\x03') │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/cer/contents.html │ │ │ @@ -121,15 +121,15 @@ │ │ │

value (either a Python or pyasn1 object (e.g. PyAsn1Item derivative)) – A Python or pyasn1 object to encode. If Python object is given, asnSpec │ │ │ parameter is required to guide the encoding process.

│ │ │
│ │ │
Keyword Arguments:
│ │ │

asn1Spec – Optional ASN.1 schema or value object e.g. PyAsn1Item derivative

│ │ │
│ │ │
Returns:
│ │ │ -

bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-stream

│ │ │ +

bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-stream

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – On encoding errors

│ │ │
│ │ │ │ │ │

Examples

│ │ │

Encode Python value into CER with ASN.1 schema

│ │ │ @@ -152,23 +152,23 @@ │ │ │ pyasn1.codec.cer.decoder.decode(substrate, asn1Spec=None) │ │ │

Turns CER octet stream into an ASN.1 object.

│ │ │

Takes CER octet-stream and decode it into an ASN.1 object │ │ │ (e.g. PyAsn1Item derivative) which │ │ │ may be a scalar or an arbitrary nested structure.

│ │ │
│ │ │
Parameters:
│ │ │ -

substrate (bytes (Python 3) or str (Python 2)) – CER octet-stream

│ │ │ +

substrate (bytes (Python 3) or str (Python 2)) – CER octet-stream

│ │ │
│ │ │
Keyword Arguments:
│ │ │

asn1Spec (any pyasn1 type object e.g. PyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. Depending on the ASN.1 structure │ │ │ being decoded, asn1Spec may or may not be required. Most common reason for │ │ │ it to require is that ASN.1 structure is encoded in IMPLICIT tagging mode.

│ │ │
│ │ │
Returns:
│ │ │ -

tuple – A tuple of pyasn1 object recovered from CER substrate (PyAsn1Item derivative) │ │ │ +

tuple – A tuple of pyasn1 object recovered from CER substrate (PyAsn1Item derivative) │ │ │ and the unprocessed trailing portion of the substrate (may be empty)

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error, SubstrateUnderrunError – On decoding errors

│ │ │
│ │ │
│ │ │

Examples

│ │ │ ├── html2text {} │ │ │ │ @@ -26,15 +26,15 @@ │ │ │ │ derivative)) – A Python or pyasn1 object to encode. If Python │ │ │ │ object is given,asnSpecparameter is required to guide the encoding │ │ │ │ process. │ │ │ │ Keyword Arguments: │ │ │ │ aassnn11SSppeecc – Optional ASN.1 schema or value object e.g. PyAsn1Item │ │ │ │ derivative │ │ │ │ Returns: │ │ │ │ - _b_y_t_e_s (Python 3) or _s_t_r (Python 2) – Given ASN.1 object encoded │ │ │ │ + bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded │ │ │ │ into BER octet-stream │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On encoding errors │ │ │ │ Examples │ │ │ │ Encode Python value into CER with ASN.1 schema │ │ │ │ >>> seq = SequenceOf(componentType=Integer()) │ │ │ │ >>> encode([1, 2, 3], asn1Spec=seq) │ │ │ │ @@ -46,23 +46,23 @@ │ │ │ │ b'0\x80\x02\x01\x01\x02\x01\x02\x02\x01\x03\x00\x00' │ │ │ │ pyasn1.codec.cer.decoder.decode(ssuubbssttrraattee, aassnn11SSppeecc==NNoonnee)_¶ │ │ │ │ Turns CER octet stream into an ASN.1 object. │ │ │ │ Takes CER octet-stream and decode it into an ASN.1 object (e.g. │ │ │ │ PyAsn1Item derivative) which may be a scalar or an arbitrary nested │ │ │ │ structure. │ │ │ │ Parameters: │ │ │ │ - ssuubbssttrraattee (_b_y_t_e_s (Python 3) or _s_t_r (Python 2)) – CER octet-stream │ │ │ │ + ssuubbssttrraattee (bytes (Python 3) or str (Python 2)) – CER octet-stream │ │ │ │ Keyword Arguments: │ │ │ │ aassnn11SSppeecc (any pyasn1 type object e.g. PyAsn1Item derivative) – A │ │ │ │ pyasn1 type object to act as a template guiding the decoder. │ │ │ │ Depending on the ASN.1 structure being decoded, aassnn11SSppeecc may or may │ │ │ │ not be required. Most common reason for it to require is that ASN.1 │ │ │ │ structure is encoded in IIMMPPLLIICCIITT tagging mode. │ │ │ │ Returns: │ │ │ │ - _t_u_p_l_e – A tuple of pyasn1 object recovered from CER substrate │ │ │ │ + tuple – A tuple of pyasn1 object recovered from CER substrate │ │ │ │ (PyAsn1Item derivative) and the unprocessed trailing portion of the │ │ │ │ ssuubbssttrraattee (may be empty) │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr,, _SS_uu_bb_ss_tt_rr_aa_tt_ee_UU_nn_dd_ee_rr_rr_uu_nn_EE_rr_rr_oo_rr – On decoding errors │ │ │ │ Examples │ │ │ │ Decode CER serialisation without ASN.1 schema │ │ │ │ >>> s, _ = decode(b'0\x80\x02\x01\x01\x02\x01\x02\x02\x01\x03\x00\x00') │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/der/contents.html │ │ │ @@ -121,15 +121,15 @@ │ │ │

value (either a Python or pyasn1 object (e.g. PyAsn1Item derivative)) – A Python or pyasn1 object to encode. If Python object is given, asnSpec │ │ │ parameter is required to guide the encoding process.

│ │ │
│ │ │
Keyword Arguments:
│ │ │

asn1Spec – Optional ASN.1 schema or value object e.g. PyAsn1Item derivative

│ │ │
│ │ │
Returns:
│ │ │ -

bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-stream

│ │ │ +

bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded into BER octet-stream

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – On encoding errors

│ │ │
│ │ │ │ │ │

Examples

│ │ │

Encode Python value into DER with ASN.1 schema

│ │ │ @@ -152,23 +152,23 @@ │ │ │ pyasn1.codec.der.decoder.decode(substrate, asn1Spec=None) │ │ │

Turns DER octet stream into an ASN.1 object.

│ │ │

Takes DER octet-stream and decode it into an ASN.1 object │ │ │ (e.g. PyAsn1Item derivative) which │ │ │ may be a scalar or an arbitrary nested structure.

│ │ │
│ │ │
Parameters:
│ │ │ -

substrate (bytes (Python 3) or str (Python 2)) – DER octet-stream

│ │ │ +

substrate (bytes (Python 3) or str (Python 2)) – DER octet-stream

│ │ │
│ │ │
Keyword Arguments:
│ │ │

asn1Spec (any pyasn1 type object e.g. PyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. Depending on the ASN.1 structure │ │ │ being decoded, asn1Spec may or may not be required. Most common reason for │ │ │ it to require is that ASN.1 structure is encoded in IMPLICIT tagging mode.

│ │ │
│ │ │
Returns:
│ │ │ -

tuple – A tuple of pyasn1 object recovered from DER substrate (PyAsn1Item derivative) │ │ │ +

tuple – A tuple of pyasn1 object recovered from DER substrate (PyAsn1Item derivative) │ │ │ and the unprocessed trailing portion of the substrate (may be empty)

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error, SubstrateUnderrunError – On decoding errors

│ │ │
│ │ │
│ │ │

Examples

│ │ │ ├── html2text {} │ │ │ │ @@ -26,15 +26,15 @@ │ │ │ │ derivative)) – A Python or pyasn1 object to encode. If Python │ │ │ │ object is given,asnSpecparameter is required to guide the encoding │ │ │ │ process. │ │ │ │ Keyword Arguments: │ │ │ │ aassnn11SSppeecc – Optional ASN.1 schema or value object e.g. PyAsn1Item │ │ │ │ derivative │ │ │ │ Returns: │ │ │ │ - _b_y_t_e_s (Python 3) or _s_t_r (Python 2) – Given ASN.1 object encoded │ │ │ │ + bytes (Python 3) or str (Python 2) – Given ASN.1 object encoded │ │ │ │ into BER octet-stream │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On encoding errors │ │ │ │ Examples │ │ │ │ Encode Python value into DER with ASN.1 schema │ │ │ │ >>> seq = SequenceOf(componentType=Integer()) │ │ │ │ >>> encode([1, 2, 3], asn1Spec=seq) │ │ │ │ @@ -46,23 +46,23 @@ │ │ │ │ b'0\t\x02\x01\x01\x02\x01\x02\x02\x01\x03' │ │ │ │ pyasn1.codec.der.decoder.decode(ssuubbssttrraattee, aassnn11SSppeecc==NNoonnee)_¶ │ │ │ │ Turns DER octet stream into an ASN.1 object. │ │ │ │ Takes DER octet-stream and decode it into an ASN.1 object (e.g. │ │ │ │ PyAsn1Item derivative) which may be a scalar or an arbitrary nested │ │ │ │ structure. │ │ │ │ Parameters: │ │ │ │ - ssuubbssttrraattee (_b_y_t_e_s (Python 3) or _s_t_r (Python 2)) – DER octet-stream │ │ │ │ + ssuubbssttrraattee (bytes (Python 3) or str (Python 2)) – DER octet-stream │ │ │ │ Keyword Arguments: │ │ │ │ aassnn11SSppeecc (any pyasn1 type object e.g. PyAsn1Item derivative) – A │ │ │ │ pyasn1 type object to act as a template guiding the decoder. │ │ │ │ Depending on the ASN.1 structure being decoded, aassnn11SSppeecc may or may │ │ │ │ not be required. Most common reason for it to require is that ASN.1 │ │ │ │ structure is encoded in IIMMPPLLIICCIITT tagging mode. │ │ │ │ Returns: │ │ │ │ - _t_u_p_l_e – A tuple of pyasn1 object recovered from DER substrate │ │ │ │ + tuple – A tuple of pyasn1 object recovered from DER substrate │ │ │ │ (PyAsn1Item derivative) and the unprocessed trailing portion of the │ │ │ │ ssuubbssttrraattee (may be empty) │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr,, _SS_uu_bb_ss_tt_rr_aa_tt_ee_UU_nn_dd_ee_rr_rr_uu_nn_EE_rr_rr_oo_rr – On decoding errors │ │ │ │ Examples │ │ │ │ Decode DER serialisation without ASN.1 schema │ │ │ │ >>> s, _ = decode(b'0\t\x02\x01\x01\x02\x01\x02\x02\x01\x03') │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/codec/native/contents.html │ │ │ @@ -112,15 +112,15 @@ │ │ │

Native Python types

│ │ │
│ │ │
│ │ │ pyasn1.codec.native.encoder.encode(asn1Value)
│ │ │

pyasn1 object to encode (or a tree of them)

│ │ │
│ │ │
Returns:
│ │ │ -

object – Python built-in type instance (or a tree of them)

│ │ │ +

object – Python built-in type instance (or a tree of them)

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – On encoding errors

│ │ │
│ │ │
│ │ │

Examples

│ │ │

Encode ASN.1 value object into native Python types

│ │ │ @@ -137,15 +137,15 @@ │ │ │ pyasn1.codec.native.decoder.decode(pyObject, asn1Spec) │ │ │

Turns Python objects of built-in types into ASN.1 objects.

│ │ │

Takes Python objects of built-in types and turns them into a tree of │ │ │ ASN.1 objects (e.g. PyAsn1Item derivative) which │ │ │ may be a scalar or an arbitrary nested structure.

│ │ │
│ │ │
Parameters:
│ │ │ -

pyObject (object) – A scalar or nested Python objects

│ │ │ +

pyObject (object) – A scalar or nested Python objects

│ │ │
│ │ │
Keyword Arguments:
│ │ │

asn1Spec (any pyasn1 type object e.g. PyAsn1Item derivative) – A pyasn1 type object to act as a template guiding the decoder. It is required │ │ │ for successful interpretation of Python objects mapping into their ASN.1 │ │ │ representations.

│ │ │
│ │ │
Returns:
│ │ │ ├── html2text {} │ │ │ │ @@ -16,30 +16,30 @@ │ │ │ │ # Next: _P_y_A_s_n_1_E_r_r_o_r │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ NNaattiivvee PPyytthhoonn ttyyppeess_?¶ ************ │ │ │ │ pyasn1.codec.native.encoder.encode(aassnn11VVaalluuee)_¶ │ │ │ │ pyasn1 object to encode (or a tree of them) │ │ │ │ Returns: │ │ │ │ - _o_b_j_e_c_t – Python built-in type instance (or a tree of them) │ │ │ │ + object – Python built-in type instance (or a tree of them) │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On encoding errors │ │ │ │ Examples │ │ │ │ Encode ASN.1 value object into native Python types │ │ │ │ >>> seq = SequenceOf(componentType=Integer()) │ │ │ │ >>> seq.extend([1, 2, 3]) │ │ │ │ >>> encode(seq) │ │ │ │ [1, 2, 3] │ │ │ │ pyasn1.codec.native.decoder.decode(ppyyOObbjjeecctt, aassnn11SSppeecc)_¶ │ │ │ │ Turns Python objects of built-in types into ASN.1 objects. │ │ │ │ Takes Python objects of built-in types and turns them into a tree of │ │ │ │ ASN.1 objects (e.g. PyAsn1Item derivative) which may be a scalar or an │ │ │ │ arbitrary nested structure. │ │ │ │ Parameters: │ │ │ │ - ppyyOObbjjeecctt (_o_b_j_e_c_t) – A scalar or nested Python objects │ │ │ │ + ppyyOObbjjeecctt (object) – A scalar or nested Python objects │ │ │ │ Keyword Arguments: │ │ │ │ aassnn11SSppeecc (any pyasn1 type object e.g. PyAsn1Item derivative) – A │ │ │ │ pyasn1 type object to act as a template guiding the decoder. It is │ │ │ │ required for successful interpretation of Python objects mapping │ │ │ │ into their ASN.1 representations. │ │ │ │ Returns: │ │ │ │ PyAsn1Item derivative – A scalar or constructed pyasn1 object │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/error/contents.html │ │ │ @@ -111,15 +111,15 @@ │ │ │
│ │ │

PyAsn1Error

│ │ │
│ │ │
│ │ │ class pyasn1.error.PyAsn1Error
│ │ │

Base pyasn1 exception

│ │ │

PyAsn1Error is the base exception class (based on │ │ │ -Exception) that represents all possible ASN.1 related │ │ │ +Exception) that represents all possible ASN.1 related │ │ │ errors.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │

ValueConstraintError

│ │ │
│ │ │ @@ -149,42 +149,42 @@ │ │ │
│ │ │
│ │ │ class pyasn1.error.PyAsn1UnicodeError(message, unicode_error=None)
│ │ │

Unicode text processing error

│ │ │

The PyAsn1UnicodeError exception is a base class for errors relating to │ │ │ unicode text de/serialization.

│ │ │

Apart from inheriting from PyAsn1Error, it also inherits from │ │ │ -UnicodeError to help the caller catching unicode-related errors.

│ │ │ +UnicodeError to help the caller catching unicode-related errors.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │

PyAsn1UnicodeDecodeError

│ │ │
│ │ │
│ │ │ class pyasn1.error.PyAsn1UnicodeDecodeError(message, unicode_error=None)
│ │ │

Unicode text decoding error

│ │ │

The PyAsn1UnicodeDecodeError exception represents a failure to │ │ │ deserialize unicode text.

│ │ │

Apart from inheriting from PyAsn1UnicodeError, it also inherits │ │ │ -from UnicodeDecodeError to help the caller catching unicode-related │ │ │ +from UnicodeDecodeError to help the caller catching unicode-related │ │ │ errors.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │

PyAsn1UnicodeEncodeError

│ │ │
│ │ │
│ │ │ class pyasn1.error.PyAsn1UnicodeEncodeError(message, unicode_error=None)
│ │ │

Unicode text encoding error

│ │ │

The PyAsn1UnicodeEncodeError exception represents a failure to │ │ │ serialize unicode text.

│ │ │

Apart from inheriting from PyAsn1UnicodeError, it also inherits │ │ │ -from UnicodeEncodeError to help the caller catching │ │ │ +from UnicodeEncodeError to help the caller catching │ │ │ unicode-related errors.

│ │ │
│ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -15,15 +15,15 @@ │ │ │ │ # Previous: _N_a_t_i_v_e_ _P_y_t_h_o_n_ _t_y_p_e_s │ │ │ │ # Next: _E_x_a_m_p_l_e_ _u_s_e_ _c_a_s_e │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ PPyyAAssnn11EErrrroorr_?¶ ************ │ │ │ │ ccllaassss pyasn1.error.PyAsn1Error_¶ │ │ │ │ Base pyasn1 exception │ │ │ │ - PyAsn1Erroris the base exception class (based on _E_x_c_e_p_t_i_o_n) that │ │ │ │ + PyAsn1Erroris the base exception class (based on Exception) that │ │ │ │ represents all possible ASN.1 related errors. │ │ │ │ ************ VVaalluueeCCoonnssttrraaiinnttEErrrroorr_?¶ ************ │ │ │ │ ccllaassss pyasn1.error.ValueConstraintError_¶ │ │ │ │ ASN.1 type constraints violation exception │ │ │ │ TheValueConstraintErrorexception indicates an ASN.1 value constraint │ │ │ │ violation. │ │ │ │ It might happen on value object instantiation (for scalar types) or on │ │ │ │ @@ -35,24 +35,24 @@ │ │ │ │ on input of a de-serialization codec. │ │ │ │ ************ PPyyAAssnn11UUnniiccooddeeEErrrroorr_?¶ ************ │ │ │ │ ccllaassss pyasn1.error.PyAsn1UnicodeError(mmeessssaaggee, uunniiccooddee__eerrrroorr==NNoonnee)_¶ │ │ │ │ Unicode text processing error │ │ │ │ ThePyAsn1UnicodeErrorexception is a base class for errors relating to │ │ │ │ unicode text de/serialization. │ │ │ │ Apart from inheriting from _P_y_A_s_n_1_E_r_r_o_r, it also inherits from │ │ │ │ - _U_n_i_c_o_d_e_E_r_r_o_r to help the caller catching unicode-related errors. │ │ │ │ + UnicodeError to help the caller catching unicode-related errors. │ │ │ │ ************ PPyyAAssnn11UUnniiccooddeeDDeeccooddeeEErrrroorr_?¶ ************ │ │ │ │ ccllaassss pyasn1.error.PyAsn1UnicodeDecodeError(mmeessssaaggee, uunniiccooddee__eerrrroorr==NNoonnee)_¶ │ │ │ │ Unicode text decoding error │ │ │ │ ThePyAsn1UnicodeDecodeErrorexception represents a failure to deserialize │ │ │ │ unicode text. │ │ │ │ Apart from inheriting from _P_y_A_s_n_1_U_n_i_c_o_d_e_E_r_r_o_r, it also inherits from │ │ │ │ - _U_n_i_c_o_d_e_D_e_c_o_d_e_E_r_r_o_r to help the caller catching unicode-related errors. │ │ │ │ + UnicodeDecodeError to help the caller catching unicode-related errors. │ │ │ │ ************ PPyyAAssnn11UUnniiccooddeeEEnnccooddeeEErrrroorr_?¶ ************ │ │ │ │ ccllaassss pyasn1.error.PyAsn1UnicodeEncodeError(mmeessssaaggee, uunniiccooddee__eerrrroorr==NNoonnee)_¶ │ │ │ │ Unicode text encoding error │ │ │ │ ThePyAsn1UnicodeEncodeErrorexception represents a failure to serialize │ │ │ │ unicode text. │ │ │ │ Apart from inheriting from _P_y_A_s_n_1_U_n_i_c_o_d_e_E_r_r_o_r, it also inherits from │ │ │ │ - _U_n_i_c_o_d_e_E_n_c_o_d_e_E_r_r_o_r to help the caller catching unicode-related errors. │ │ │ │ + UnicodeEncodeError to help the caller catching unicode-related errors. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/asn1type.html │ │ │ @@ -158,16 +158,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Asn1Type type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Asn1Type type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -177,16 +177,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Asn1Type type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Asn1Type type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -42,22 +42,22 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Asn1Type type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Asn1Type type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Asn1Type type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Asn1Type type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Asn1Type type, False │ │ │ │ otherwise. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/constructedasn1type.html │ │ │ @@ -134,16 +134,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is ConstructedAsn1Type type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is ConstructedAsn1Type type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │ │ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -153,16 +153,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of ConstructedAsn1Type type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of ConstructedAsn1Type type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ tagSet = <TagSet object, untagged>
│ │ │ ├── html2text {} │ │ │ │ @@ -34,28 +34,28 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is ConstructedAsn1Type type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is ConstructedAsn1Type type, False │ │ │ │ otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine ConstructedAsn1Type type for subtype relationship with │ │ │ │ other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of ConstructedAsn1Type │ │ │ │ - type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of ConstructedAsn1Type │ │ │ │ + type, False otherwise. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set or return a _T_a_g_S_e_t object representing ASN.1 tag(s) associated │ │ │ │ with ConstructedAsn1Type type. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For ConstructedAsn1Type type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/base/simpleasn1type.html │ │ │ @@ -125,23 +125,23 @@ │ │ │

For as long as ASN.1 is concerned, a way to compare ASN.1 types │ │ │ is to use isSameTypeWith() and isSuperTypeOf() methods.

│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that SimpleAsn1Type object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -161,16 +161,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is SimpleAsn1Type type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is SimpleAsn1Type type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -180,16 +180,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of SimpleAsn1Type type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of SimpleAsn1Type type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ tagSet = <TagSet object, untagged>
│ │ │ ├── html2text {} │ │ │ │ @@ -26,20 +26,20 @@ │ │ │ │ In the user code, SimpleAsn1Type class is normally used only for telling │ │ │ │ ASN.1 objects from others. │ │ │ │ Note │ │ │ │ For as long as ASN.1 is concerned, a way to compare ASN.1 types is to use │ │ │ │ _i_s_S_a_m_e_T_y_p_e_W_i_t_h_(_) and _i_s_S_u_p_e_r_T_y_p_e_O_f_(_) methods. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that SimpleAsn1Type object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -53,27 +53,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is SimpleAsn1Type type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is SimpleAsn1Type type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine SimpleAsn1Type type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of SimpleAsn1Type type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of SimpleAsn1Type type, │ │ │ │ + False otherwise. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set or return a _T_a_g_S_e_t object representing ASN.1 tag(s) associated │ │ │ │ with SimpleAsn1Type type. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For SimpleAsn1Type type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/bmpstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

BMPString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.BMPString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates BMPString schema or value object.

│ │ │

BMPString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, BMPString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, BMPString type assumes │ │ │ “utf-16-be” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or BMPString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or BMPString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or BMPString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for BMPString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when BMPString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when BMPString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -212,23 +212,23 @@ │ │ │ associated with BMPString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that BMPString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is BMPString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is BMPString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -267,16 +267,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of BMPString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of BMPString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ BBMMPPSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.BMPString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates BMPString schema or value object. │ │ │ │ BMPString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, BMPString type assumes “utf-16-be” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or BMPString object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or BMPString object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ BMPString class instance. Ifvalueis not given, schema object │ │ │ │ will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for BMPString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when BMPString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when BMPString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The BMPString type models a Unicode (ISO10646-1) character string │ │ │ │ implicitly serialised into UTF-16 big endian. │ │ │ │ @@ -91,20 +91,20 @@ │ │ │ │ arguments are supplied, no new BMPString object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with BMPString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that BMPString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -118,26 +118,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is BMPString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is BMPString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine BMPString type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of BMPString type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of BMPString type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For BMPString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/generalstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

GeneralString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.GeneralString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates GeneralString schema or value object.

│ │ │

GeneralString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, GeneralString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, GeneralString type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or GeneralString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or GeneralString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or GeneralString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for GeneralString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when GeneralString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when GeneralString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -213,23 +213,23 @@ │ │ │ associated with GeneralString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that GeneralString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is GeneralString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is GeneralString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -268,16 +268,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of GeneralString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of GeneralString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ GGeenneerraallSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.GeneralString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates GeneralString schema or value object. │ │ │ │ GeneralString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, GeneralString type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or GeneralString object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or GeneralString object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ GeneralString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for GeneralString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when GeneralString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when GeneralString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The GeneralString type models a character string similar to _G_r_a_p_h_i_c_S_t_r_i_n_g │ │ │ │ but additionally including control characters. │ │ │ │ @@ -91,20 +91,20 @@ │ │ │ │ arguments are supplied, no new GeneralString object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with GeneralString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that GeneralString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -118,27 +118,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is GeneralString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is GeneralString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine GeneralString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of GeneralString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of GeneralString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For GeneralString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/graphicstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

GraphicString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.GraphicString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates GraphicString schema or value object.

│ │ │

GraphicString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, GraphicString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, GraphicString type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or GraphicString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or GraphicString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or GraphicString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for GraphicString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when GraphicString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when GraphicString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -213,23 +213,23 @@ │ │ │ associated with GraphicString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that GraphicString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is GraphicString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is GraphicString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -268,16 +268,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of GraphicString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of GraphicString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ GGrraapphhiiccSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.GraphicString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates GraphicString schema or value object. │ │ │ │ GraphicString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, GraphicString type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or GraphicString object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or GraphicString object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ GraphicString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for GraphicString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when GraphicString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when GraphicString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The GraphicString type models a character string that can hold any │ │ │ │ “graphical” characters mixed with control ones to select particular │ │ │ │ @@ -92,20 +92,20 @@ │ │ │ │ arguments are supplied, no new GraphicString object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with GraphicString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that GraphicString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -119,27 +119,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is GraphicString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is GraphicString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine GraphicString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of GraphicString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of GraphicString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For GraphicString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/ia5string.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

IA5String type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.IA5String(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates IA5String schema or value object.

│ │ │

IA5String class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, IA5String type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, IA5String type assumes │ │ │ “us-ascii” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or IA5String object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or IA5String object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or IA5String class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for IA5String type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when IA5String object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when IA5String object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -212,23 +212,23 @@ │ │ │ associated with IA5String type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that IA5String object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is IA5String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is IA5String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -267,16 +267,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of IA5String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of IA5String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ IIAA55SSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.IA5String(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates IA5String schema or value object. │ │ │ │ IA5String class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, IA5String type assumes “us-ascii” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or IA5String object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or IA5String object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ IA5String class instance. Ifvalueis not given, schema object │ │ │ │ will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for IA5String type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when IA5String │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when IA5String │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The IA5String type models a basic character string first published in │ │ │ │ 1963 as an ISO/ITU standard, then it turned into ASCII. │ │ │ │ @@ -91,20 +91,20 @@ │ │ │ │ arguments are supplied, no new IA5String object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with IA5String type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that IA5String object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -118,26 +118,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is IA5String type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is IA5String type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine IA5String type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of IA5String type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of IA5String type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For IA5String type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/iso646string.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

ISO646String type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.ISO646String(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates ISO646String schema or value object.

│ │ │

ISO646String class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, ISO646String type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, ISO646String type assumes │ │ │ “us-ascii” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or ISO646String object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or ISO646String object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or ISO646String class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for ISO646String type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when ISO646String object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when ISO646String object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -204,23 +204,23 @@ │ │ │ │ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that ISO646String object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -240,16 +240,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is ISO646String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is ISO646String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -259,16 +259,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of ISO646String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of ISO646String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ tagSet = <TagSet object, tags 0:0:26>
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ IISSOO664466SSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.ISO646String(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates ISO646String schema or value object. │ │ │ │ ISO646String class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, ISO646String type assumes “us-ascii” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or ISO646String object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or ISO646String object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ ISO646String class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for ISO646String type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when ISO646String │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when ISO646String │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The ISO646String type is an alias to the _V_i_s_i_b_l_e_S_t_r_i_n_g type │ │ │ │ clone(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ @@ -87,20 +87,20 @@ │ │ │ │ new instance of ISO646String schema or value object │ │ │ │ Note │ │ │ │ Due to the immutable nature of the ISO646String object, if no │ │ │ │ arguments are supplied, no new ISO646String object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that ISO646String object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -114,26 +114,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is ISO646String type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is ISO646String type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine ISO646String type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of ISO646String type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of ISO646String type, False │ │ │ │ otherwise. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with ISO646String type. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For ISO646String type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/numericstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

NumericString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.NumericString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates NumericString schema or value object.

│ │ │

NumericString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, NumericString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, NumericString type assumes │ │ │ “us-ascii” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or NumericString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or NumericString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or NumericString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for NumericString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when NumericString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when NumericString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -212,23 +212,23 @@ │ │ │ associated with NumericString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that NumericString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is NumericString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is NumericString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -267,16 +267,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of NumericString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of NumericString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ NNuummeerriiccSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.NumericString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates NumericString schema or value object. │ │ │ │ NumericString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, NumericString type assumes “us-ascii” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or NumericString object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or NumericString object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ NumericString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for NumericString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when NumericString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when NumericString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The NumericString models character string that can be entered from a │ │ │ │ telephone handset. │ │ │ │ @@ -91,20 +91,20 @@ │ │ │ │ arguments are supplied, no new NumericString object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with NumericString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that NumericString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -118,27 +118,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is NumericString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is NumericString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine NumericString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of NumericString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of NumericString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For NumericString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/printablestring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

PrintableString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.PrintableString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates PrintableString schema or value object.

│ │ │

PrintableString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, PrintableString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, PrintableString type assumes │ │ │ “us-ascii” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or PrintableString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or PrintableString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or PrintableString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for PrintableString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when PrintableString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when PrintableString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -213,23 +213,23 @@ │ │ │ associated with PrintableString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that PrintableString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is PrintableString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is PrintableString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -268,16 +268,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of PrintableString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of PrintableString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ PPrriinnttaabblleeSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.PrintableString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates PrintableString schema or value object. │ │ │ │ PrintableString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are │ │ │ │ - immutable and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in │ │ │ │ + immutable and duck-type Python 2 str or Python 3 bytes. When used in │ │ │ │ octet-stream context, PrintableString type assumes “us-ascii” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or PrintableString object) – │ │ │ │ - unicode object (Python 2) or _s_t_r (Python 3), alternatively │ │ │ │ - _s_t_r (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream │ │ │ │ + * vvaalluuee (unicode, str, bytes or PrintableString object) – │ │ │ │ + unicode object (Python 2) or str (Python 3), alternatively │ │ │ │ + str (Python 2) or bytes (Python 3) representing octet-stream │ │ │ │ of serialised unicode string (noteencodingparameter) or │ │ │ │ PrintableString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for PrintableString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when PrintableString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when PrintableString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The PrintableString models character string that can be entered from a │ │ │ │ very rudimentary terminals featuring letters, digits and punctuation │ │ │ │ @@ -93,20 +93,20 @@ │ │ │ │ arguments are supplied, no new PrintableString object will be │ │ │ │ created andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with PrintableString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that PrintableString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -120,28 +120,28 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is PrintableString type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is PrintableString type, False │ │ │ │ otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine PrintableString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of PrintableString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of PrintableString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For PrintableString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/t61string.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

T61String type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.T61String(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates T61String schema or value object.

│ │ │

T61String class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, T61String type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, T61String type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or T61String object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or T61String object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or T61String class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for T61String type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when T61String object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when T61String object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -204,23 +204,23 @@ │ │ │ │ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that T61String object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -240,16 +240,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is T61String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is T61String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -259,16 +259,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of T61String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of T61String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ tagSet = <TagSet object, tags 0:0:20>
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ TT6611SSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.T61String(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates T61String schema or value object. │ │ │ │ T61String class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, T61String type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or T61String object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or T61String object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ T61String class instance. Ifvalueis not given, schema object │ │ │ │ will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for T61String type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when T61String │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when T61String │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The T61String type is an alias to _T_e_l_e_t_e_x_S_t_r_i_n_g type. │ │ │ │ clone(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ @@ -87,20 +87,20 @@ │ │ │ │ new instance of T61String schema or value object │ │ │ │ Note │ │ │ │ Due to the immutable nature of the T61String object, if no │ │ │ │ arguments are supplied, no new T61String object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that T61String object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -114,26 +114,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is T61String type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is T61String type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine T61String type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of T61String type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of T61String type, False │ │ │ │ otherwise. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with T61String type. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For T61String type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/teletexstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

TeletexString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.TeletexString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates TeletexString schema or value object.

│ │ │

TeletexString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, TeletexString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, TeletexString type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or TeletexString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or TeletexString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or TeletexString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for TeletexString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when TeletexString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when TeletexString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -214,23 +214,23 @@ │ │ │ associated with TeletexString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that TeletexString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -250,16 +250,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is TeletexString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is TeletexString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -269,16 +269,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of TeletexString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of TeletexString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ TTeelleetteexxSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.TeletexString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates TeletexString schema or value object. │ │ │ │ TeletexString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, TeletexString type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or TeletexString object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or TeletexString object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ TeletexString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for TeletexString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when TeletexString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when TeletexString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The TeletexString type models character string that can be entered from a │ │ │ │ sophisticated text processing machines (by 20-th century standards) │ │ │ │ @@ -93,20 +93,20 @@ │ │ │ │ arguments are supplied, no new TeletexString object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with TeletexString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that TeletexString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -120,27 +120,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is TeletexString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is TeletexString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine TeletexString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of TeletexString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of TeletexString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For TeletexString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/universalstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

UniversalString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.UniversalString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates UniversalString schema or value object.

│ │ │

UniversalString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, UniversalString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, UniversalString type assumes │ │ │ “utf-32-be” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or UniversalString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or UniversalString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or UniversalString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for UniversalString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when UniversalString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when UniversalString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -212,23 +212,23 @@ │ │ │ associated with UniversalString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that UniversalString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is UniversalString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is UniversalString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -267,16 +267,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of UniversalString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of UniversalString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ UUnniivveerrssaallSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.UniversalString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates UniversalString schema or value object. │ │ │ │ UniversalString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are │ │ │ │ - immutable and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in │ │ │ │ + immutable and duck-type Python 2 str or Python 3 bytes. When used in │ │ │ │ octet-stream context, UniversalString type assumes “utf-32-be” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or UniversalString object) – │ │ │ │ - unicode object (Python 2) or _s_t_r (Python 3), alternatively │ │ │ │ - _s_t_r (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream │ │ │ │ + * vvaalluuee (unicode, str, bytes or UniversalString object) – │ │ │ │ + unicode object (Python 2) or str (Python 3), alternatively │ │ │ │ + str (Python 2) or bytes (Python 3) representing octet-stream │ │ │ │ of serialised unicode string (noteencodingparameter) or │ │ │ │ UniversalString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for UniversalString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when UniversalString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when UniversalString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The UniversalString type models a Unicode (ISO10646-1) character string │ │ │ │ implicitly serialised into UTF-32 big endian. │ │ │ │ @@ -92,20 +92,20 @@ │ │ │ │ arguments are supplied, no new UniversalString object will be │ │ │ │ created andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with UniversalString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that UniversalString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -119,28 +119,28 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is UniversalString type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is UniversalString type, False │ │ │ │ otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine UniversalString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of UniversalString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of UniversalString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For UniversalString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/utf8string.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

UTF8String type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.UTF8String(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates UTF8String schema or value object.

│ │ │

UTF8String class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, UTF8String type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, UTF8String type assumes │ │ │ “utf-8” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or UTF8String object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or UTF8String object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or UTF8String class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for UTF8String type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when UTF8String object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when UTF8String object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -212,23 +212,23 @@ │ │ │ associated with UTF8String type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that UTF8String object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -248,16 +248,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is UTF8String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is UTF8String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -267,16 +267,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of UTF8String type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of UTF8String type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ UUTTFF88SSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.UTF8String(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates UTF8String schema or value object. │ │ │ │ UTF8String class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, UTF8String type assumes “utf-8” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or UTF8String object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or UTF8String object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ UTF8String class instance. Ifvalueis not given, schema object │ │ │ │ will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for UTF8String type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when UTF8String │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when UTF8String │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The UTF8String type models a Unicode (ISO10646-1) character string │ │ │ │ implicitly serialised into UTF-8. │ │ │ │ @@ -91,20 +91,20 @@ │ │ │ │ arguments are supplied, no new UTF8String object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with UTF8String type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that UTF8String object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -118,26 +118,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is UTF8String type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is UTF8String type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine UTF8String type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of UTF8String type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of UTF8String type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For UTF8String type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/videotexstring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

VideotexString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.VideotexString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates VideotexString schema or value object.

│ │ │

VideotexString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, VideotexString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, VideotexString type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or VideotexString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or VideotexString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or VideotexString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for VideotexString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when VideotexString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when VideotexString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -213,23 +213,23 @@ │ │ │ associated with VideotexString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that VideotexString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is VideotexString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is VideotexString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -268,16 +268,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of VideotexString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of VideotexString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ VViiddeeootteexxSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.VideotexString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates VideotexString schema or value object. │ │ │ │ VideotexString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are │ │ │ │ - immutable and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in │ │ │ │ + immutable and duck-type Python 2 str or Python 3 bytes. When used in │ │ │ │ octet-stream context, VideotexString type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or VideotexString object) – │ │ │ │ - unicode object (Python 2) or _s_t_r (Python 3), alternatively │ │ │ │ - _s_t_r (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream │ │ │ │ + * vvaalluuee (unicode, str, bytes or VideotexString object) – │ │ │ │ + unicode object (Python 2) or str (Python 3), alternatively │ │ │ │ + str (Python 2) or bytes (Python 3) representing octet-stream │ │ │ │ of serialised unicode string (noteencodingparameter) or │ │ │ │ VideotexString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for VideotexString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when VideotexString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when VideotexString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The VideotexString type models character string that can be consumed by │ │ │ │ sophisticated video terminals (by 20-th century standards) to render │ │ │ │ @@ -92,20 +92,20 @@ │ │ │ │ arguments are supplied, no new VideotexString object will be │ │ │ │ created andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with VideotexString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that VideotexString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -119,27 +119,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is VideotexString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is VideotexString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine VideotexString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of VideotexString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of VideotexString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For VideotexString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/char/visiblestring.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

VisibleString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.char.VisibleString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates VisibleString schema or value object.

│ │ │

VisibleString class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, VisibleString type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, VisibleString type assumes │ │ │ “us-ascii” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or VisibleString object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or VisibleString object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or VisibleString class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for VisibleString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when VisibleString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when VisibleString object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -213,23 +213,23 @@ │ │ │ associated with VisibleString type.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that VisibleString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -249,16 +249,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is VisibleString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is VisibleString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -268,16 +268,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of VisibleString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of VisibleString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ VViissiibblleeSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.char.VisibleString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates VisibleString schema or value object. │ │ │ │ VisibleString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, VisibleString type assumes “us-ascii” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or VisibleString object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or VisibleString object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or │ │ │ │ VisibleString class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for VisibleString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when VisibleString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when VisibleString │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The VisibleString type models a character string that can hold any │ │ │ │ “graphical” characters mixed with control ones to select particular │ │ │ │ @@ -92,20 +92,20 @@ │ │ │ │ arguments are supplied, no new VisibleString object will be created │ │ │ │ andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with VisibleString type. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that VisibleString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -119,27 +119,27 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is VisibleString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is VisibleString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine VisibleString type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of VisibleString type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of VisibleString type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For VisibleString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsintersection.html │ │ │ @@ -117,15 +117,15 @@ │ │ │ class pyasn1.type.constraint.ConstraintsIntersection(*constraints) │ │ │

Create a ConstraintsIntersection logic operator object.

│ │ │

The ConstraintsIntersection logic operator only succeeds │ │ │ if all its operands succeed.

│ │ │

The ConstraintsIntersection object can be applied to │ │ │ any constraint and logic operator objects.

│ │ │

The ConstraintsIntersection object duck-types the immutable │ │ │ -container object like Python tuple.

│ │ │ +container object like Python tuple.

│ │ │
│ │ │
Parameters:
│ │ │

*constraints – Constraint or logic operator objects.

│ │ │
│ │ │
│ │ │

Examples

│ │ │
class CapitalAndSmall(IA5String):
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,15 +21,15 @@
│ │ │ │    ccllaassss pyasn1.type.constraint.ConstraintsIntersection(**ccoonnssttrraaiinnttss)_¶
│ │ │ │        Create a ConstraintsIntersection logic operator object.
│ │ │ │        The ConstraintsIntersection logic operator only succeeds if aallll its
│ │ │ │        operands succeed.
│ │ │ │        The ConstraintsIntersection object can be applied to any constraint and
│ │ │ │        logic operator objects.
│ │ │ │        The ConstraintsIntersection object duck-types the immutable container
│ │ │ │ -      object like Python _t_u_p_l_e.
│ │ │ │ +      object like Python tuple.
│ │ │ │          Parameters:
│ │ │ │              **ccoonnssttrraaiinnttss – Constraint or logic operator objects.
│ │ │ │        Examples
│ │ │ │        class CapitalAndSmall(IA5String):
│ │ │ │            '''
│ │ │ │            ASN.1 specification:
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/constraintsunion.html
│ │ │ @@ -117,15 +117,15 @@
│ │ │  class pyasn1.type.constraint.ConstraintsUnion(*constraints)
│ │ │  

Create a ConstraintsUnion logic operator object.

│ │ │

The ConstraintsUnion logic operator succeeds if │ │ │ at least a single operand succeeds.

│ │ │

The ConstraintsUnion object can be applied to │ │ │ any constraint and logic operator objects.

│ │ │

The ConstraintsUnion object duck-types the immutable │ │ │ -container object like Python tuple.

│ │ │ +container object like Python tuple.

│ │ │
│ │ │
Parameters:
│ │ │

*constraints – Constraint or logic operator objects.

│ │ │
│ │ │
│ │ │

Examples

│ │ │
class CapitalOrSmall(IA5String):
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,15 +21,15 @@
│ │ │ │    ccllaassss pyasn1.type.constraint.ConstraintsUnion(**ccoonnssttrraaiinnttss)_¶
│ │ │ │        Create a ConstraintsUnion logic operator object.
│ │ │ │        The ConstraintsUnion logic operator succeeds if aatt lleeaasstt a single operand
│ │ │ │        succeeds.
│ │ │ │        The ConstraintsUnion object can be applied to any constraint and logic
│ │ │ │        operator objects.
│ │ │ │        The ConstraintsUnion object duck-types the immutable container object
│ │ │ │ -      like Python _t_u_p_l_e.
│ │ │ │ +      like Python tuple.
│ │ │ │          Parameters:
│ │ │ │              **ccoonnssttrraaiinnttss – Constraint or logic operator objects.
│ │ │ │        Examples
│ │ │ │        class CapitalOrSmall(IA5String):
│ │ │ │            '''
│ │ │ │            ASN.1 specification:
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/permittedalphabet.html
│ │ │ @@ -123,15 +123,15 @@
│ │ │  can act as operands for some arithmetic operations e.g. addition
│ │ │  and subtraction.

│ │ │

The PermittedAlphabetConstraint object can only be applied │ │ │ to the character ASN.1 types such as │ │ │ IA5String.

│ │ │
│ │ │
Parameters:
│ │ │ -

*alphabet (str) – Full set of characters permitted by this constraint object.

│ │ │ +

*alphabet (str) – Full set of characters permitted by this constraint object.

│ │ │
│ │ │
│ │ │

Example

│ │ │
class BooleanValue(IA5String):
│ │ │      '''
│ │ │      ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -25,15 +25,15 @@
│ │ │ │        characters.
│ │ │ │        Objects of this type are iterable (emitting constraint values) and can
│ │ │ │        act as operands for some arithmetic operations e.g. addition and
│ │ │ │        subtraction.
│ │ │ │        The PermittedAlphabetConstraint object can only be applied to the
│ │ │ │        _c_h_a_r_a_c_t_e_r_ _A_S_N_._1_ _t_y_p_e_s such as _I_A_5_S_t_r_i_n_g.
│ │ │ │          Parameters:
│ │ │ │ -            **aallpphhaabbeett (_s_t_r) – Full set of characters permitted by this
│ │ │ │ +            **aallpphhaabbeett (str) – Full set of characters permitted by this
│ │ │ │              constraint object.
│ │ │ │        Example
│ │ │ │        class BooleanValue(IA5String):
│ │ │ │            '''
│ │ │ │            ASN.1 specification:
│ │ │ │  
│ │ │ │            BooleanValue ::= IA5String (FROM ('T' | 'F'))
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/singlevalue.html
│ │ │ @@ -122,15 +122,15 @@
│ │ │  can act as operands for some arithmetic operations e.g. addition
│ │ │  and subtraction. The latter can be used for combining multiple
│ │ │  SingleValueConstraint objects into one.

│ │ │

The SingleValueConstraint object can be applied to │ │ │ any ASN.1 type.

│ │ │
│ │ │
Parameters:
│ │ │ -

*values (int) – Full set of values permitted by this constraint object.

│ │ │ +

*values (int) – Full set of values permitted by this constraint object.

│ │ │
│ │ │
│ │ │

Examples

│ │ │
class DivisorOfSix(Integer):
│ │ │      '''
│ │ │      ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -24,15 +24,15 @@
│ │ │ │        of permitted values.
│ │ │ │        Objects of this type are iterable (emitting constraint values) and can
│ │ │ │        act as operands for some arithmetic operations e.g. addition and
│ │ │ │        subtraction. The latter can be used for combining multiple
│ │ │ │        SingleValueConstraint objects into one.
│ │ │ │        The SingleValueConstraint object can be applied to any ASN.1 type.
│ │ │ │          Parameters:
│ │ │ │ -            **vvaalluueess (_i_n_t) – Full set of values permitted by this constraint
│ │ │ │ +            **vvaalluueess (int) – Full set of values permitted by this constraint
│ │ │ │              object.
│ │ │ │        Examples
│ │ │ │        class DivisorOfSix(Integer):
│ │ │ │            '''
│ │ │ │            ASN.1 specification:
│ │ │ │  
│ │ │ │            Divisor-Of-6 ::= INTEGER (1 | 2 | 3 | 6)
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuerange.html
│ │ │ @@ -120,16 +120,16 @@
│ │ │  falls in the range of permitted values.

│ │ │

The ValueRangeConstraint object can only be applied │ │ │ to Integer and │ │ │ Real types.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • start (int) – Minimum permitted value in the range (inclusive)

  • │ │ │ -
  • end (int) – Maximum permitted value in the range (inclusive)

  • │ │ │ +
  • start (int) – Minimum permitted value in the range (inclusive)

  • │ │ │ +
  • end (int) – Maximum permitted value in the range (inclusive)

  • │ │ │
│ │ │
│ │ │
│ │ │

Examples

│ │ │
class TeenAgeYears(Integer):
│ │ │      '''
│ │ │      ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,17 +21,17 @@
│ │ │ │    ccllaassss pyasn1.type.constraint.ValueRangeConstraint(ssttaarrtt, eenndd)_¶
│ │ │ │        Create a ValueRangeConstraint object.
│ │ │ │        The ValueRangeConstraint satisfies any value that falls in the range of
│ │ │ │        permitted values.
│ │ │ │        The ValueRangeConstraint object can only be applied to _I_n_t_e_g_e_r and _R_e_a_l
│ │ │ │        types.
│ │ │ │          Parameters:
│ │ │ │ -                * ssttaarrtt (_i_n_t) – Minimum permitted value in the range
│ │ │ │ +                * ssttaarrtt (int) – Minimum permitted value in the range
│ │ │ │                    (inclusive)
│ │ │ │ -                * eenndd (_i_n_t) – Maximum permitted value in the range (inclusive)
│ │ │ │ +                * eenndd (int) – Maximum permitted value in the range (inclusive)
│ │ │ │        Examples
│ │ │ │        class TeenAgeYears(Integer):
│ │ │ │            '''
│ │ │ │            ASN.1 specification:
│ │ │ │  
│ │ │ │            TeenAgeYears ::= INTEGER (13 .. 19)
│ │ │ │            '''
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/valuesize.html
│ │ │ @@ -124,16 +124,16 @@
│ │ │  OctetString (including
│ │ │  all character ASN.1 types),
│ │ │  SequenceOf
│ │ │  and SetOf types.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • minimum (int) – Minimum permitted size of the value (inclusive)

  • │ │ │ -
  • maximum (int) – Maximum permitted size of the value (inclusive)

  • │ │ │ +
  • minimum (int) – Minimum permitted size of the value (inclusive)

  • │ │ │ +
  • maximum (int) – Maximum permitted size of the value (inclusive)

  • │ │ │
│ │ │
│ │ │
│ │ │

Examples

│ │ │
class BaseballTeamRoster(SetOf):
│ │ │      '''
│ │ │      ASN.1 specification:
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,17 +21,17 @@
│ │ │ │    ccllaassss pyasn1.type.constraint.ValueSizeConstraint(mmiinniimmuumm, mmaaxxiimmuumm)_¶
│ │ │ │        Create a ValueSizeConstraint object.
│ │ │ │        The ValueSizeConstraint satisfies any value for as long as its size falls
│ │ │ │        within the range of permitted sizes.
│ │ │ │        The ValueSizeConstraint object can be applied to _B_i_t_S_t_r_i_n_g, _O_c_t_e_t_S_t_r_i_n_g
│ │ │ │        (including all _c_h_a_r_a_c_t_e_r_ _A_S_N_._1_ _t_y_p_e_s), _S_e_q_u_e_n_c_e_O_f and _S_e_t_O_f types.
│ │ │ │          Parameters:
│ │ │ │ -                * mmiinniimmuumm (_i_n_t) – Minimum permitted size of the value
│ │ │ │ +                * mmiinniimmuumm (int) – Minimum permitted size of the value
│ │ │ │                    (inclusive)
│ │ │ │ -                * mmaaxxiimmuumm (_i_n_t) – Maximum permitted size of the value
│ │ │ │ +                * mmaaxxiimmuumm (int) – Maximum permitted size of the value
│ │ │ │                    (inclusive)
│ │ │ │        Examples
│ │ │ │        class BaseballTeamRoster(SetOf):
│ │ │ │            '''
│ │ │ │            ASN.1 specification:
│ │ │ │  
│ │ │ │            BaseballTeamRoster ::= SET SIZE (1..25) OF PlayerNames
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/constraint/withcomponents.html
│ │ │ @@ -121,15 +121,15 @@
│ │ │  ComponentPresentConstraint and ComponentAbsentConstraint
│ │ │  objects respectively.

│ │ │

The WithComponentsConstraint object is typically applied │ │ │ to Set or │ │ │ Sequence types.

│ │ │
│ │ │
Parameters:
│ │ │ -

*fields (tuple) – Zero or more tuples of (field, constraint) indicating constrained │ │ │ +

*fields (tuple) – Zero or more tuples of (field, constraint) indicating constrained │ │ │ fields.

│ │ │
│ │ │
│ │ │

Notes

│ │ │

On top of the primary use of WithComponentsConstraint (ensuring presence │ │ │ or absence of particular components of a Set or │ │ │ Sequence), it is also possible to pass any other │ │ │ ├── html2text {} │ │ │ │ @@ -23,15 +23,15 @@ │ │ │ │ TheWithComponentsConstraintsatisfies any mapping object that has │ │ │ │ constrained fields present or absent, what is indicated │ │ │ │ byComponentPresentConstraintandComponentAbsentConstraintobjects │ │ │ │ respectively. │ │ │ │ TheWithComponentsConstraintobject is typically applied to _S_e_t or _S_e_q_u_e_n_c_e │ │ │ │ types. │ │ │ │ Parameters: │ │ │ │ - **ffiieellddss (_t_u_p_l_e) – Zero or more tuples of (field,constraint) │ │ │ │ + **ffiieellddss (tuple) – Zero or more tuples of (field,constraint) │ │ │ │ indicating constrained fields. │ │ │ │ Notes │ │ │ │ On top of the primary use ofWithComponentsConstraint(ensuring presence or │ │ │ │ absence of particular components of a _S_e_t or _S_e_q_u_e_n_c_e), it is also │ │ │ │ possible to pass any other constraint objects or their combinations. In │ │ │ │ case of scalar fields, these constraints will be verified in addition to │ │ │ │ the constraints belonging to scalar components themselves. However, │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/defaultednamedtype.html │ │ │ @@ -113,20 +113,20 @@ │ │ │

│ │ │

DefaultedNamedType

│ │ │
│ │ │
│ │ │ class pyasn1.type.namedtype.DefaultedNamedType(name, asn1Object, openType=None)
│ │ │

Create named field object for a constructed ASN.1 type.

│ │ │

The DefaultedNamedType object represents a single name and ASN.1 type of a constructed ASN.1 type.

│ │ │ -

DefaultedNamedType objects are immutable and duck-type Python tuple objects │ │ │ +

DefaultedNamedType objects are immutable and duck-type Python tuple objects │ │ │ holding name and asn1Object components.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • name (str) – Field name

  • │ │ │ +
  • name (str) – Field name

  • │ │ │
  • asn1Object – ASN.1 type object

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

The DefaultedNamedType class models named field of a constructed │ │ │ ├── html2text {} │ │ │ │ @@ -19,18 +19,18 @@ │ │ │ │ [q ][Go] │ │ │ │ ************ DDeeffaauulltteeddNNaammeeddTTyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.namedtype.DefaultedNamedType(nnaammee, aassnn11OObbjjeecctt, │ │ │ │ ooppeennTTyyppee==NNoonnee)_¶ │ │ │ │ Create named field object for a constructed ASN.1 type. │ │ │ │ The DefaultedNamedType object represents a single name and ASN.1 type of │ │ │ │ a constructed ASN.1 type. │ │ │ │ - DefaultedNamedType objects are immutable and duck-type Python _t_u_p_l_e │ │ │ │ + DefaultedNamedType objects are immutable and duck-type Python tuple │ │ │ │ objects holding nnaammee and aassnn11OObbjjeecctt components. │ │ │ │ Parameters: │ │ │ │ - * nnaammee (_s_t_r) – Field name │ │ │ │ + * nnaammee (str) – Field name │ │ │ │ * aassnn11OObbjjeecctt – ASN.1 type object │ │ │ │ Note │ │ │ │ The DDeeffaauulltteeddNNaammeeddTTyyppee class models named field of a constructed ASN.1 │ │ │ │ type which has a default value. │ │ │ │ The DDeeffaauulltteeddNNaammeeddTTyyppee objects are normally utilized by the _N_a_m_e_d_T_y_p_e_s │ │ │ │ objects to model individual fields of the constructed ASN.1 types. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtype.html │ │ │ @@ -113,20 +113,20 @@ │ │ │

│ │ │

NamedType

│ │ │
│ │ │
│ │ │ class pyasn1.type.namedtype.NamedType(name, asn1Object, openType=None)
│ │ │

Create named field object for a constructed ASN.1 type.

│ │ │

The NamedType object represents a single name and ASN.1 type of a constructed ASN.1 type.

│ │ │ -

NamedType objects are immutable and duck-type Python tuple objects │ │ │ +

NamedType objects are immutable and duck-type Python tuple objects │ │ │ holding name and asn1Object components.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • name (str) – Field name

  • │ │ │ +
  • name (str) – Field name

  • │ │ │
  • asn1Object – ASN.1 type object

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

The NamedType class models a mandatory field of a constructed │ │ │ ├── html2text {} │ │ │ │ @@ -18,18 +18,18 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ NNaammeeddTTyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.namedtype.NamedType(nnaammee, aassnn11OObbjjeecctt, ooppeennTTyyppee==NNoonnee)_¶ │ │ │ │ Create named field object for a constructed ASN.1 type. │ │ │ │ The NamedType object represents a single name and ASN.1 type of a │ │ │ │ constructed ASN.1 type. │ │ │ │ - NamedType objects are immutable and duck-type Python _t_u_p_l_e objects │ │ │ │ + NamedType objects are immutable and duck-type Python tuple objects │ │ │ │ holding nnaammee and aassnn11OObbjjeecctt components. │ │ │ │ Parameters: │ │ │ │ - * nnaammee (_s_t_r) – Field name │ │ │ │ + * nnaammee (str) – Field name │ │ │ │ * aassnn11OObbjjeecctt – ASN.1 type object │ │ │ │ Note │ │ │ │ The NNaammeeddTTyyppee class models a mandatory field of a constructed ASN.1 type. │ │ │ │ The NNaammeeddTTyyppee objects are normally utilized by the the _N_a_m_e_d_T_y_p_e_s objects │ │ │ │ to model individual fields of the constructed ASN.1 types. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/namedtypes.html │ │ │ @@ -113,15 +113,15 @@ │ │ │

│ │ │

NamedTypes

│ │ │
│ │ │
│ │ │ class pyasn1.type.namedtype.NamedTypes(*namedTypes, **kwargs)
│ │ │

Create a collection of named fields for a constructed ASN.1 type.

│ │ │

The NamedTypes object represents a collection of named fields of a constructed ASN.1 type.

│ │ │ -

NamedTypes objects are immutable and duck-type Python dict objects │ │ │ +

NamedTypes objects are immutable and duck-type Python dict objects │ │ │ holding name as keys and ASN.1 type object as values.

│ │ │
│ │ │
Parameters:
│ │ │

*namedTypes (NamedType)

│ │ │
│ │ │
│ │ │

Examples

│ │ │ @@ -155,15 +155,15 @@ │ │ │
│ │ │
│ │ │
│ │ │ getTypeByPosition(idx)
│ │ │

Return ASN.1 type object by its position in fields set.

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Field index

│ │ │ +

idx (int) – Field index

│ │ │
│ │ │
Returns:
│ │ │

ASN.1 type

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – If given position is out of fields range

│ │ │
│ │ │ @@ -175,15 +175,15 @@ │ │ │ getPositionByType(tagSet) │ │ │

Return field position by its ASN.1 type.

│ │ │
│ │ │
Parameters:
│ │ │

tagSet (TagSet) – ASN.1 tag set distinguishing one ASN.1 type from others.

│ │ │
│ │ │
Returns:
│ │ │ -

int – ASN.1 type position in fields set

│ │ │ +

int – ASN.1 type position in fields set

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – If tagSet is not present or ASN.1 types are not unique within callee NamedTypes

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │ @@ -192,32 +192,32 @@ │ │ │ getNameByPosition(idx) │ │ │

Return field name by its position in fields set.

│ │ │
│ │ │
Parameters:
│ │ │

idx (idx) – Field index

│ │ │
│ │ │
Returns:
│ │ │ -

str – Field name

│ │ │ +

str – Field name

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – If given field name is not present in callee NamedTypes

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ getPositionByName(name)
│ │ │

Return field position by filed name.

│ │ │
│ │ │
Parameters:
│ │ │ -

name (str) – Field name

│ │ │ +

name (str) – Field name

│ │ │
│ │ │
Returns:
│ │ │ -

int – Field position in fields set

│ │ │ +

int – Field position in fields set

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – If name is not present or not unique within callee NamedTypes

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │ @@ -227,15 +227,15 @@ │ │ │

Return ASN.1 types that are allowed at or past given field position.

│ │ │

Some ASN.1 serialisation allow for skipping optional and defaulted fields. │ │ │ Some constructed ASN.1 types allow reordering of the fields. When recovering │ │ │ such objects it may be important to know which types can possibly be │ │ │ present at any given position in the field sets.

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Field index

│ │ │ +

idx (int) – Field index

│ │ │
│ │ │
Returns:
│ │ │

TagMap – Map if ASN.1 types allowed at given field position

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – If given position is out of fields range

│ │ │
│ │ │ @@ -250,19 +250,19 @@ │ │ │ Some constructed ASN.1 types allow reordering of the fields. When recovering │ │ │ such objects it may be important to know at which field position, in field set, │ │ │ given tagSet is allowed at or past idx position.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │
  • tagSet (TagSet) – ASN.1 type which field position to look up

  • │ │ │ -
  • idx (int) – Field position at or past which to perform ASN.1 type look up

  • │ │ │ +
  • idx (int) – Field position at or past which to perform ASN.1 type look up

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │ -

int – Field position in fields set

│ │ │ +

int – Field position in fields set

│ │ │
│ │ │
Raises:
│ │ │

PyAsn1Error – If tagSet is not present or not unique within callee NamedTypes │ │ │ or idx is out of fields range

│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ NNaammeeddTTyyppeess_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.namedtype.NamedTypes(**nnaammeeddTTyyppeess, ****kkwwaarrggss)_¶ │ │ │ │ Create a collection of named fields for a constructed ASN.1 type. │ │ │ │ The NamedTypes object represents a collection of named fields of a │ │ │ │ constructed ASN.1 type. │ │ │ │ - NNaammeeddTTyyppeess objects are immutable and duck-type Python _d_i_c_t objects │ │ │ │ + NNaammeeddTTyyppeess objects are immutable and duck-type Python dict objects │ │ │ │ holding nnaammee as keys and ASN.1 type object as values. │ │ │ │ Parameters: │ │ │ │ **nnaammeeddTTyyppeess (_N_a_m_e_d_T_y_p_e) │ │ │ │ Examples │ │ │ │ class Description(Sequence): │ │ │ │ ''' │ │ │ │ ASN.1 specification: │ │ │ │ @@ -49,57 +49,57 @@ │ │ │ │ Note │ │ │ │ The NNaammeeddTTyyppeess objects are normally utilized by the constructed ASN.1 │ │ │ │ types (e.g. _S_e_q_u_e_n_c_e, _S_e_t and _C_h_o_i_c_e) to model the set of fields of those │ │ │ │ types. │ │ │ │ getTypeByPosition(iiddxx)_¶ │ │ │ │ Return ASN.1 type object by its position in fields set. │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Field index │ │ │ │ + iiddxx (int) – Field index │ │ │ │ Returns: │ │ │ │ ASN.1 type │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If given position is out of fields range │ │ │ │ getPositionByType(ttaaggSSeett)_¶ │ │ │ │ Return field position by its ASN.1 type. │ │ │ │ Parameters: │ │ │ │ ttaaggSSeett (TagSet) – ASN.1 tag set distinguishing one ASN.1 type │ │ │ │ from others. │ │ │ │ Returns: │ │ │ │ - _i_n_t – ASN.1 type position in fields set │ │ │ │ + int – ASN.1 type position in fields set │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If ttaaggSSeett is not present or ASN.1 types are not │ │ │ │ unique within callee NNaammeeddTTyyppeess │ │ │ │ getNameByPosition(iiddxx)_¶ │ │ │ │ Return field name by its position in fields set. │ │ │ │ Parameters: │ │ │ │ iiddxx (idx) – Field index │ │ │ │ Returns: │ │ │ │ - _s_t_r – Field name │ │ │ │ + str – Field name │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If given field name is not present in callee │ │ │ │ NNaammeeddTTyyppeess │ │ │ │ getPositionByName(nnaammee)_¶ │ │ │ │ Return field position by filed name. │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Field name │ │ │ │ + nnaammee (str) – Field name │ │ │ │ Returns: │ │ │ │ - _i_n_t – Field position in fields set │ │ │ │ + int – Field position in fields set │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If nnaammee is not present or not unique within │ │ │ │ callee NNaammeeddTTyyppeess │ │ │ │ getTagMapNearPosition(iiddxx)_¶ │ │ │ │ Return ASN.1 types that are allowed at or past given field │ │ │ │ position. │ │ │ │ Some ASN.1 serialisation allow for skipping optional and defaulted │ │ │ │ fields. Some constructed ASN.1 types allow reordering of the │ │ │ │ fields. When recovering such objects it may be important to know │ │ │ │ which types can possibly be present at any given position in the │ │ │ │ field sets. │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Field index │ │ │ │ + iiddxx (int) – Field index │ │ │ │ Returns: │ │ │ │ _T_a_g_M_a_p – Map if ASN.1 types allowed at given field position │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If given position is out of fields range │ │ │ │ getPositionNearType(ttaaggSSeett, iiddxx)_¶ │ │ │ │ Return the closest field position where given ASN.1 type is │ │ │ │ allowed. │ │ │ │ @@ -107,18 +107,18 @@ │ │ │ │ fields. Some constructed ASN.1 types allow reordering of the │ │ │ │ fields. When recovering such objects it may be important to know at │ │ │ │ which field position, in field set, given ttaaggSSeett is allowed at or │ │ │ │ past iiddxx position. │ │ │ │ Parameters: │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – ASN.1 type which field position to │ │ │ │ look up │ │ │ │ - * iiddxx (_i_n_t) – Field position at or past which to perform │ │ │ │ + * iiddxx (int) – Field position at or past which to perform │ │ │ │ ASN.1 type look up │ │ │ │ Returns: │ │ │ │ - _i_n_t – Field position in fields set │ │ │ │ + int – Field position in fields set │ │ │ │ Raises: │ │ │ │ _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – If ttaaggSSeett is not present or not unique within │ │ │ │ callee NNaammeeddTTyyppeess or iiddxx is out of fields range │ │ │ │ pprrooppeerrttyy minTagSet_¶ │ │ │ │ Return the minimal TagSet among ASN.1 type in callee NNaammeeddTTyyppeess. │ │ │ │ Some ASN.1 types/serialisation protocols require ASN.1 types to be │ │ │ │ arranged based on their numerical tag value. The mmiinnTTaaggSSeett property │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedtype/optionalnamedtype.html │ │ │ @@ -113,20 +113,20 @@ │ │ │
│ │ │

OptionalNamedType

│ │ │
│ │ │
│ │ │ class pyasn1.type.namedtype.OptionalNamedType(name, asn1Object, openType=None)
│ │ │

Create named field object for a constructed ASN.1 type.

│ │ │

The OptionalNamedType object represents a single name and ASN.1 type of a constructed ASN.1 type.

│ │ │ -

OptionalNamedType objects are immutable and duck-type Python tuple objects │ │ │ +

OptionalNamedType objects are immutable and duck-type Python tuple objects │ │ │ holding name and asn1Object components.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • name (str) – Field name

  • │ │ │ +
  • name (str) – Field name

  • │ │ │
  • asn1Object – ASN.1 type object

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

The OptionalNamedType class models an optional field of │ │ │ ├── html2text {} │ │ │ │ @@ -19,18 +19,18 @@ │ │ │ │ [q ][Go] │ │ │ │ ************ OOppttiioonnaallNNaammeeddTTyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.namedtype.OptionalNamedType(nnaammee, aassnn11OObbjjeecctt, │ │ │ │ ooppeennTTyyppee==NNoonnee)_¶ │ │ │ │ Create named field object for a constructed ASN.1 type. │ │ │ │ The OptionalNamedType object represents a single name and ASN.1 type of a │ │ │ │ constructed ASN.1 type. │ │ │ │ - OptionalNamedType objects are immutable and duck-type Python _t_u_p_l_e │ │ │ │ + OptionalNamedType objects are immutable and duck-type Python tuple │ │ │ │ objects holding nnaammee and aassnn11OObbjjeecctt components. │ │ │ │ Parameters: │ │ │ │ - * nnaammee (_s_t_r) – Field name │ │ │ │ + * nnaammee (str) – Field name │ │ │ │ * aassnn11OObbjjeecctt – ASN.1 type object │ │ │ │ Note │ │ │ │ The OOppttiioonnaallNNaammeeddTTyyppee class models an optional field of a constructed │ │ │ │ ASN.1 type. │ │ │ │ The OOppttiioonnaallNNaammeeddTTyyppee objects are normally utilized by the _N_a_m_e_d_T_y_p_e_s │ │ │ │ objects to model individual fields of the constructed ASN.1 types. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/namedval/namedval.html │ │ │ @@ -118,29 +118,29 @@ │ │ │

│ │ │ class pyasn1.type.namedval.NamedValues(*args, **kwargs)
│ │ │

Create named values object.

│ │ │

The NamedValues object represents a collection of string names │ │ │ associated with numeric IDs. These objects are used for giving │ │ │ names to otherwise numerical values.

│ │ │

NamedValues objects are immutable and duck-type Python │ │ │ -dict object mapping ID to name and vice-versa.

│ │ │ +dict object mapping ID to name and vice-versa.

│ │ │
│ │ │
Parameters:
│ │ │ -

*args (variable number of two-element tuple) –

│ │ │ +

*args (variable number of two-element tuple) –

│ │ │
│ │ │ -
name: str

Value label

│ │ │ +
name: str

Value label

│ │ │
│ │ │ -
value: int

Numeric value

│ │ │ +
value: int

Numeric value

│ │ │
│ │ │
│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • name (str) – Value label

  • │ │ │ -
  • value (int) – Numeric value

  • │ │ │ +
  • name (str) – Value label

  • │ │ │ +
  • value (int) – Numeric value

  • │ │ │
│ │ │
│ │ │
│ │ │

Examples

│ │ │
>>> nv = NamedValues('a', 'b', ('c', 0), d=1)
│ │ │  >>> nv
│ │ │  >>> {'c': 0, 'd': 1, 'a': 2, 'b': 3}
│ │ │ ├── html2text {}
│ │ │ │ @@ -21,25 +21,25 @@
│ │ │ │  The NamedValues class associates human-friendly names to a set of numbers or
│ │ │ │  bits.
│ │ │ │    ccllaassss pyasn1.type.namedval.NamedValues(**aarrggss, ****kkwwaarrggss)_¶
│ │ │ │        Create named values object.
│ │ │ │        The NamedValues object represents a collection of string names associated
│ │ │ │        with numeric IDs. These objects are used for giving names to otherwise
│ │ │ │        numerical values.
│ │ │ │ -      NamedValues objects are immutable and duck-type Python _d_i_c_t object
│ │ │ │ +      NamedValues objects are immutable and duck-type Python dict object
│ │ │ │        mapping ID to name and vice-versa.
│ │ │ │          Parameters:
│ │ │ │ -            **aarrggss (variable number of two-element _t_u_p_l_e) –
│ │ │ │ -              name: _s_t_r
│ │ │ │ +            **aarrggss (variable number of two-element tuple) –
│ │ │ │ +              name: str
│ │ │ │                    Value label
│ │ │ │ -              value: _i_n_t
│ │ │ │ +              value: int
│ │ │ │                    Numeric value
│ │ │ │          Keyword Arguments:
│ │ │ │ -                * nnaammee (_s_t_r) – Value label
│ │ │ │ -                * vvaalluuee (_i_n_t) – Numeric value
│ │ │ │ +                * nnaammee (str) – Value label
│ │ │ │ +                * vvaalluuee (int) – Numeric value
│ │ │ │        Examples
│ │ │ │        >>> nv = NamedValues('a', 'b', ('c', 0), d=1)
│ │ │ │        >>> nv
│ │ │ │        >>> {'c': 0, 'd': 1, 'a': 2, 'b': 3}
│ │ │ │        >>> nv[0]
│ │ │ │        'c'
│ │ │ │        >>> nv['a']
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/opentype/opentype.html
│ │ │ @@ -117,28 +117,28 @@
│ │ │  class pyasn1.type.opentype.OpenType(name, typeMap=None)
│ │ │  

Create ASN.1 type map indexed by a value

│ │ │

The OpenType object models an untyped field of a constructed ASN.1 │ │ │ type. In ASN.1 syntax it is usually represented by the │ │ │ ANY DEFINED BY for scalars or SET OF ANY DEFINED BY, │ │ │ SEQUENCE OF ANY DEFINED BY for container types clauses. Typically │ │ │ used together with Any object.

│ │ │ -

OpenType objects duck-type a read-only Python dict objects, │ │ │ +

OpenType objects duck-type a read-only Python dict objects, │ │ │ however the passed typeMap is not copied, but stored by reference. │ │ │ That means the user can manipulate typeMap at run time having this │ │ │ reflected on OpenType object behavior.

│ │ │

The OpenType class models an untyped field of a constructed ASN.1 │ │ │ type. In ASN.1 syntax it is usually represented by the │ │ │ ANY DEFINED BY for scalars or SET OF ANY DEFINED BY, │ │ │ SEQUENCE OF ANY DEFINED BY for container types clauses. Typically │ │ │ used with Any type.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • name (str) – Field name

  • │ │ │ -
  • typeMap (dict) – A map of value->ASN.1 type. It’s stored by reference and can be │ │ │ +

  • name (str) – Field name

  • │ │ │ +
  • typeMap (dict) – A map of value->ASN.1 type. It’s stored by reference and can be │ │ │ mutated later to register new mappings.

  • │ │ │
│ │ │
│ │ │
│ │ │

Examples

│ │ │

For untyped scalars:

│ │ │
openType = OpenType(
│ │ │ ├── html2text {}
│ │ │ │ @@ -20,25 +20,25 @@
│ │ │ │  ************ OOppeennTTyyppee_?¶ ************
│ │ │ │    ccllaassss pyasn1.type.opentype.OpenType(nnaammee, ttyyppeeMMaapp==NNoonnee)_¶
│ │ │ │        Create ASN.1 type map indexed by a value
│ │ │ │        The OOppeennTTyyppee object models an untyped field of a constructed ASN.1 type.
│ │ │ │        In ASN.1 syntax it is usually represented by theANY DEFINED BYfor scalars
│ │ │ │        orSET OF ANY DEFINED BY,SEQUENCE OF ANY DEFINED BYfor container types
│ │ │ │        clauses. Typically used together with _A_n_y object.
│ │ │ │ -      OpenType objects duck-type a read-only Python _d_i_c_t objects, however the
│ │ │ │ +      OpenType objects duck-type a read-only Python dict objects, however the
│ │ │ │        passedtypeMapis not copied, but stored by reference. That means the user
│ │ │ │        can manipulatetypeMapat run time having this reflected on OOppeennTTyyppee object
│ │ │ │        behavior.
│ │ │ │        The OpenType class models an untyped field of a constructed ASN.1 type.
│ │ │ │        In ASN.1 syntax it is usually represented by theANY DEFINED BYfor scalars
│ │ │ │        orSET OF ANY DEFINED BY,SEQUENCE OF ANY DEFINED BYfor container types
│ │ │ │        clauses. Typically used with _A_n_y type.
│ │ │ │          Parameters:
│ │ │ │ -                * nnaammee (_s_t_r) – Field name
│ │ │ │ -                * ttyyppeeMMaapp (_d_i_c_t) – A map of value->ASN.1 type. It’s stored by
│ │ │ │ +                * nnaammee (str) – Field name
│ │ │ │ +                * ttyyppeeMMaapp (dict) – A map of value->ASN.1 type. It’s stored by
│ │ │ │                    reference and can be mutated later to register new mappings.
│ │ │ │        Examples
│ │ │ │        For untyped scalars:
│ │ │ │        openType = OpenType(
│ │ │ │            'id', {1: Integer(),
│ │ │ │                   2: OctetString()}
│ │ │ │        )
│ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tag.html
│ │ │ @@ -150,22 +150,22 @@
│ │ │  
│ │ │  
│ │ │
│ │ │ class pyasn1.type.tag.Tag(tagClass, tagFormat, tagId)
│ │ │

Create ASN.1 tag

│ │ │

Represents ASN.1 tag that can be attached to a ASN.1 type to make │ │ │ types distinguishable from each other.

│ │ │ -

Tag objects are immutable and duck-type Python tuple objects │ │ │ +

Tag objects are immutable and duck-type Python tuple objects │ │ │ holding three integer components of a tag.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • tagClass (int) – Tag class value

  • │ │ │ -
  • tagFormat (int) – Tag format value

  • │ │ │ -
  • tagId (int) – Tag ID value

  • │ │ │ +
  • tagClass (int) – Tag class value

  • │ │ │ +
  • tagFormat (int) – Tag format value

  • │ │ │ +
  • tagId (int) – Tag ID value

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

The Tag objects are normally used by the │ │ │ TagSet, objects to model a collection │ │ │ @@ -173,37 +173,37 @@ │ │ │

│ │ │
│ │ │
│ │ │ property tagClass
│ │ │

ASN.1 tag class

│ │ │
│ │ │
Returns:
│ │ │ -

int – Tag class

│ │ │ +

int – Tag class

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property tagFormat
│ │ │

ASN.1 tag format

│ │ │
│ │ │
Returns:
│ │ │ -

int – Tag format

│ │ │ +

int – Tag format

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property tagId
│ │ │

ASN.1 tag ID

│ │ │
│ │ │
Returns:
│ │ │ -

int – Tag ID

│ │ │ +

int – Tag ID

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ │ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -31,30 +31,30 @@ │ │ │ │ pyasn1.type.tag.tagFormatConstructed == 3322_¶ │ │ │ │ Identifier for “constructed” ASN.1 structure (e.g. may have inner │ │ │ │ components) │ │ │ │ ccllaassss pyasn1.type.tag.Tag(ttaaggCCllaassss, ttaaggFFoorrmmaatt, ttaaggIIdd)_¶ │ │ │ │ Create ASN.1 tag │ │ │ │ Represents ASN.1 tag that can be attached to a ASN.1 type to make types │ │ │ │ distinguishable from each other. │ │ │ │ - TTaagg objects are immutable and duck-type Python _t_u_p_l_e objects holding │ │ │ │ + TTaagg objects are immutable and duck-type Python tuple objects holding │ │ │ │ three integer components of a tag. │ │ │ │ Parameters: │ │ │ │ - * ttaaggCCllaassss (_i_n_t) – Tag ccllaassss value │ │ │ │ - * ttaaggFFoorrmmaatt (_i_n_t) – Tag ffoorrmmaatt value │ │ │ │ - * ttaaggIIdd (_i_n_t) – Tag ID value │ │ │ │ + * ttaaggCCllaassss (int) – Tag ccllaassss value │ │ │ │ + * ttaaggFFoorrmmaatt (int) – Tag ffoorrmmaatt value │ │ │ │ + * ttaaggIIdd (int) – Tag ID value │ │ │ │ Note │ │ │ │ The TTaagg objects are normally used by the _T_a_g_S_e_t, objects to model a │ │ │ │ collection of ASN.1 tags. │ │ │ │ pprrooppeerrttyy tagClass_¶ │ │ │ │ ASN.1 tag class │ │ │ │ Returns: │ │ │ │ - _i_n_t – Tag class │ │ │ │ + int – Tag class │ │ │ │ pprrooppeerrttyy tagFormat_¶ │ │ │ │ ASN.1 tag format │ │ │ │ Returns: │ │ │ │ - _i_n_t – Tag format │ │ │ │ + int – Tag format │ │ │ │ pprrooppeerrttyy tagId_¶ │ │ │ │ ASN.1 tag ID │ │ │ │ Returns: │ │ │ │ - _i_n_t – Tag ID │ │ │ │ + int – Tag ID │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagmap.html │ │ │ @@ -114,22 +114,22 @@ │ │ │

Tag->type map

│ │ │
│ │ │
│ │ │ class pyasn1.type.tagmap.TagMap(presentTypes=None, skipTypes=None, defaultType=None)
│ │ │

Map TagSet objects to ASN.1 types

│ │ │

Create an object mapping TagSet object to ASN.1 type.

│ │ │

TagMap objects are immutable and duck-type read-only Python │ │ │ -dict objects holding TagSet objects as keys and ASN.1 │ │ │ +dict objects holding TagSet objects as keys and ASN.1 │ │ │ type objects as values.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │ -
  • presentTypes (dict) – Map of TagSet to ASN.1 objects considered │ │ │ +

  • presentTypes (dict) – Map of TagSet to ASN.1 objects considered │ │ │ as being unconditionally present in the TagMap.

  • │ │ │ -
  • skipTypes (dict) – A collection of TagSet objects considered │ │ │ +

  • skipTypes (dict) – A collection of TagSet objects considered │ │ │ as absent in the TagMap even when defaultType is present.

  • │ │ │
  • defaultType (ASN.1 type object) – An ASN.1 type object callee TagMap returns for any TagSet key not present │ │ │ in presentTypes (unless given key is present in skipTypes).

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,20 +18,20 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ TTaagg-->>ttyyppee mmaapp_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.tagmap.TagMap(pprreesseennttTTyyppeess==NNoonnee, sskkiippTTyyppeess==NNoonnee, │ │ │ │ ddeeffaauullttTTyyppee==NNoonnee)_¶ │ │ │ │ Map TTaaggSSeett objects to ASN.1 types │ │ │ │ Create an object mapping TTaaggSSeett object to ASN.1 type. │ │ │ │ - TTaaggMMaapp objects are immutable and duck-type read-only Python _d_i_c_t objects │ │ │ │ + TTaaggMMaapp objects are immutable and duck-type read-only Python dict objects │ │ │ │ holding TTaaggSSeett objects as keys and ASN.1 type objects as values. │ │ │ │ Parameters: │ │ │ │ - * pprreesseennttTTyyppeess (_d_i_c_t) – Map of _T_a_g_S_e_t to ASN.1 objects │ │ │ │ + * pprreesseennttTTyyppeess (dict) – Map of _T_a_g_S_e_t to ASN.1 objects │ │ │ │ considered as being unconditionally present in the TTaaggMMaapp. │ │ │ │ - * sskkiippTTyyppeess (_d_i_c_t) – A collection of _T_a_g_S_e_t objects considered │ │ │ │ + * sskkiippTTyyppeess (dict) – A collection of _T_a_g_S_e_t objects considered │ │ │ │ as absent in the TTaaggMMaapp even when ddeeffaauullttTTyyppee is present. │ │ │ │ * ddeeffaauullttTTyyppee (AASSNN..11 ttyyppee oobbjjeecctt) – An ASN.1 type object callee │ │ │ │ TTaaggMMaapp returns for any TTaaggSSeett key not present in pprreesseennttTTyyppeess │ │ │ │ (unless given key is present in sskkiippTTyyppeess). │ │ │ │ Note │ │ │ │ The TTaaggMMaapp objects are used by the _T_a_g_S_e_t, objects for looking up │ │ │ │ components of constructed ASN.1 types by _T_a_g. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/tag/tagset.html │ │ │ @@ -115,15 +115,15 @@ │ │ │
│ │ │
│ │ │ class pyasn1.type.tag.TagSet(baseTag=(), *superTags)
│ │ │

Create a collection of ASN.1 tags

│ │ │

Represents a combination of Tag objects │ │ │ that can be attached to a ASN.1 type to make types distinguishable │ │ │ from each other.

│ │ │ -

TagSet objects are immutable and duck-type Python tuple objects │ │ │ +

TagSet objects are immutable and duck-type Python tuple objects │ │ │ holding arbitrary number of Tag objects.

│ │ │
│ │ │
Parameters:
│ │ │
    │ │ │
  • baseTag (Tag) – Base Tag object. This tag survives IMPLICIT tagging.

  • │ │ │
  • *superTags (Tag) – Additional Tag objects taking part in subtyping.

  • │ │ │
│ │ │ @@ -163,15 +163,15 @@ │ │ │ │ │ │
│ │ │
│ │ │ property superTags
│ │ │

Return ASN.1 tags

│ │ │
│ │ │
Returns:
│ │ │ -

tuple – Tuple of Tag objects that this TagSet contains

│ │ │ +

tuple – Tuple of Tag objects that this TagSet contains

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ tagExplicitly(superTag)
│ │ │ @@ -214,15 +214,15 @@ │ │ │ tag-wise if all tags in TagSet are present in the callee and │ │ │ they are in the same order.

│ │ │
│ │ │
Parameters:
│ │ │

tagSet (TagSet) – TagSet object to evaluate against the callee

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if callee is a supertype of tagSet

│ │ │ +

boolTrue if callee is a supertype of tagSet

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ │ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ TTaagg sseett_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.tag.TagSet(bbaasseeTTaagg==(()), **ssuuppeerrTTaaggss)_¶ │ │ │ │ Create a collection of ASN.1 tags │ │ │ │ Represents a combination of _T_a_g objects that can be attached to a ASN.1 │ │ │ │ type to make types distinguishable from each other. │ │ │ │ - TTaaggSSeett objects are immutable and duck-type Python _t_u_p_l_e objects holding │ │ │ │ + TTaaggSSeett objects are immutable and duck-type Python tuple objects holding │ │ │ │ arbitrary number of _T_a_g objects. │ │ │ │ Parameters: │ │ │ │ * bbaasseeTTaagg (_T_a_g) – Base TTaagg object. This tag survives IMPLICIT │ │ │ │ tagging. │ │ │ │ * **ssuuppeerrTTaaggss (_T_a_g) – Additional TTaagg objects taking part in │ │ │ │ subtyping. │ │ │ │ Examples │ │ │ │ @@ -48,15 +48,15 @@ │ │ │ │ pprrooppeerrttyy baseTag_¶ │ │ │ │ Return base ASN.1 tag │ │ │ │ Returns: │ │ │ │ _T_a_g – Base tag of this TTaaggSSeett │ │ │ │ pprrooppeerrttyy superTags_¶ │ │ │ │ Return ASN.1 tags │ │ │ │ Returns: │ │ │ │ - _t_u_p_l_e – Tuple of _T_a_g objects that this TTaaggSSeett contains │ │ │ │ + tuple – Tuple of _T_a_g objects that this TTaaggSSeett contains │ │ │ │ tagExplicitly(ssuuppeerrTTaagg)_¶ │ │ │ │ Return explicitly tagged TTaaggSSeett │ │ │ │ Create a new TTaaggSSeett representing callee TTaaggSSeett explicitly tagged │ │ │ │ with passed tag(s). With explicit tagging mode, new tags are │ │ │ │ appended to existing tag(s). │ │ │ │ Parameters: │ │ │ │ ssuuppeerrTTaagg (_T_a_g) – TTaagg object to tag this TTaaggSSeett │ │ │ │ @@ -76,10 +76,10 @@ │ │ │ │ The callee is considered to be a supertype of given TTaaggSSeett tag-wise │ │ │ │ if all tags in TTaaggSSeett are present in the callee and they are in the │ │ │ │ same order. │ │ │ │ Parameters: │ │ │ │ ttaaggSSeett (_T_a_g_S_e_t) – TTaaggSSeett object to evaluate against the │ │ │ │ callee │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if callee is a supertype of ttaaggSSeett │ │ │ │ + bool – True if callee is a supertype of ttaaggSSeett │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/any.html │ │ │ @@ -113,35 +113,35 @@ │ │ │
│ │ │

Any type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Any(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='iso-8859-1', binValue=NoValue(), hexValue=NoValue())
│ │ │

Create Any schema or value object.

│ │ │

Any class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in Unicode context, Any type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in Unicode context, Any type assumes │ │ │ “iso-8859-1” serialisation.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or Any object) – str (Python 2) or bytes (Python 3), alternatively │ │ │ -unicode object (Python 2) or str (Python 3) │ │ │ +

  • value (unicode, str, bytes or Any object) – str (Python 2) or bytes (Python 3), alternatively │ │ │ +unicode object (Python 2) or str (Python 3) │ │ │ representing character string to be serialised into octets (note │ │ │ encoding parameter) or Any object. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Any type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when Any object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when Any object is used │ │ │ in text string context.

  • │ │ │ -
  • binValue (str) – Binary string initializer to use instead of the value. │ │ │ +

  • binValue (str) – Binary string initializer to use instead of the value. │ │ │ Example: ‘10110011’.

  • │ │ │ -
  • hexValue (str) – Hexadecimal string initializer to use instead of the value. │ │ │ +

  • hexValue (str) – Hexadecimal string initializer to use instead of the value. │ │ │ Example: ‘DEADBEEF’.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -249,23 +249,23 @@ │ │ │ imposing constraints on Any type initialization values.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Any object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -285,16 +285,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Any type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Any type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -304,16 +304,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Any type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Any type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -19,34 +19,34 @@ │ │ │ │ [q ][Go] │ │ │ │ ************ AAnnyy ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Any(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''iissoo--88885599--11'', │ │ │ │ bbiinnVVaalluuee==NNooVVaalluuee(()), hheexxVVaalluuee==NNooVVaalluuee(()))_¶ │ │ │ │ Create Any schema or value object. │ │ │ │ Any class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and duck- │ │ │ │ - type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in Unicode context, Any │ │ │ │ + type Python 2 str or Python 3 bytes. When used in Unicode context, Any │ │ │ │ type assumes “iso-8859-1” serialisation. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or Any object) – _s_t_r (Python 2) or │ │ │ │ - _b_y_t_e_s (Python 3), alternatively unicode object (Python 2) or │ │ │ │ - _s_t_r (Python 3) representing character string to be serialised │ │ │ │ + * vvaalluuee (unicode, str, bytes or Any object) – str (Python 2) or │ │ │ │ + bytes (Python 3), alternatively unicode object (Python 2) or │ │ │ │ + str (Python 3) representing character string to be serialised │ │ │ │ into octets (noteencodingparameter) or Any object. Ifvalueis │ │ │ │ not given, schema object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for Any type occurs automatically on object │ │ │ │ instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when Any object is │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when Any object is │ │ │ │ used in text string context. │ │ │ │ - * bbiinnVVaalluuee (_s_t_r) – Binary string initializer to use instead of │ │ │ │ + * bbiinnVVaalluuee (str) – Binary string initializer to use instead of │ │ │ │ the vvaalluuee. Example: ‘10110011’. │ │ │ │ - * hheexxVVaalluuee (_s_t_r) – Hexadecimal string initializer to use │ │ │ │ + * hheexxVVaalluuee (str) – Hexadecimal string initializer to use │ │ │ │ instead of the vvaalluuee. Example: ‘DEADBEEF’. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Examples │ │ │ │ class Error(Sequence): │ │ │ │ ''' │ │ │ │ @@ -119,20 +119,20 @@ │ │ │ │ Set (on class, not on instance) or return a _T_a_g_S_e_t object │ │ │ │ representing ASN.1 tag(s) associated with Any type. │ │ │ │ subtypeSpec == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Any type initialization values. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Any object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -146,25 +146,25 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Any type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Any type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Any type for subtype relationship with other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Any type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Any type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Any type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ “Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects │ │ │ │ contained within callee. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/bitstring.html │ │ │ @@ -113,30 +113,30 @@ │ │ │
│ │ │

BitString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.BitString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), namedValues=NamedValues(), binValue=NoValue(), hexValue=NoValue())
│ │ │

Create BitString schema or value object.

│ │ │

BitString class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type both Python tuple (as a tuple │ │ │ -of bits) and int objects.

│ │ │ +objects are immutable and duck-type both Python tuple (as a tuple │ │ │ +of bits) and int objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (int, str or BitString object) – Python int or str literal representing binary │ │ │ +

  • value (int, str or BitString object) – Python int or str literal representing binary │ │ │ or hexadecimal number or sequence of integer bits or BitString object. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for BitString type occurs automatically on object │ │ │ instantiation.

  • │ │ │
  • namedValues (NamedValues) – Object representing non-default symbolic aliases for numbers

  • │ │ │ -
  • binValue (str) – Binary string initializer to use instead of the value. │ │ │ +

  • binValue (str) – Binary string initializer to use instead of the value. │ │ │ Example: ‘10110011’.

  • │ │ │ -
  • hexValue (str) – Hexadecimal string initializer to use instead of the value. │ │ │ +

  • hexValue (str) – Hexadecimal string initializer to use instead of the value. │ │ │ Example: ‘DEADBEEF’.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -273,54 +273,54 @@ │ │ │ │ │ │
│ │ │
│ │ │ classmethod fromHexString(value, internalFormat=False, prepend=None)
│ │ │

Create a BitString object initialized from the hex string.

│ │ │
│ │ │
Parameters:
│ │ │ -

value (str) – Text string like ‘DEADBEEF’

│ │ │ +

value (str) – Text string like ‘DEADBEEF’

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ classmethod fromBinaryString(value, internalFormat=False, prepend=None)
│ │ │

Create a BitString object initialized from a string of ‘0’ and ‘1’.

│ │ │
│ │ │
Parameters:
│ │ │ -

value (str) – Text string like ‘1010111’

│ │ │ +

value (str) – Text string like ‘1010111’

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ classmethod fromOctetString(value, internalFormat=False, prepend=None, padding=0)
│ │ │

Create a BitString object initialized from a string.

│ │ │
│ │ │
Parameters:
│ │ │ -

value (str (Py2) or bytes (Py3)) – Text string like ‘\x01\xff’ (Py2) or b’\x01\xff’ (Py3)

│ │ │ +

value (str (Py2) or bytes (Py3)) – Text string like ‘\x01\xff’ (Py2) or b’\x01\xff’ (Py3)

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that BitString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -340,16 +340,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is BitString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is BitString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -359,16 +359,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of BitString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of BitString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -19,31 +19,31 @@ │ │ │ │ [q ][Go] │ │ │ │ ************ BBiittSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.BitString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), nnaammeeddVVaalluueess==NNaammeeddVVaalluueess(()), │ │ │ │ bbiinnVVaalluuee==NNooVVaalluuee(()), hheexxVVaalluuee==NNooVVaalluuee(()))_¶ │ │ │ │ Create BitString schema or value object. │ │ │ │ BitString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type both Python _t_u_p_l_e (as a tuple of bits) and _i_n_t objects. │ │ │ │ + duck-type both Python tuple (as a tuple of bits) and int objects. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_i_n_t, _s_t_r or BitString object) – Python _i_n_t or _s_t_r │ │ │ │ + * vvaalluuee (int, str or BitString object) – Python int or str │ │ │ │ literal representing binary or hexadecimal number or sequence │ │ │ │ of integer bits or BitString object. Ifvalueis not given, │ │ │ │ schema object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for BitString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ * nnaammeeddVVaalluueess (_N_a_m_e_d_V_a_l_u_e_s) – Object representing non-default │ │ │ │ symbolic aliases for numbers │ │ │ │ - * bbiinnVVaalluuee (_s_t_r) – Binary string initializer to use instead of │ │ │ │ + * bbiinnVVaalluuee (str) – Binary string initializer to use instead of │ │ │ │ the vvaalluuee. Example: ‘10110011’. │ │ │ │ - * hheexxVVaalluuee (_s_t_r) – Hexadecimal string initializer to use │ │ │ │ + * hheexxVVaalluuee (str) – Hexadecimal string initializer to use │ │ │ │ instead of the vvaalluuee. Example: ‘DEADBEEF’. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Examples │ │ │ │ class Rights(BitString): │ │ │ │ ''' │ │ │ │ @@ -132,34 +132,34 @@ │ │ │ │ asInteger()_¶ │ │ │ │ Get BitString value as a single integer value. │ │ │ │ asBinary()_¶ │ │ │ │ Get BitString value as a text string of bits. │ │ │ │ ccllaassssmmeetthhoodd fromHexString(vvaalluuee, iinntteerrnnaallFFoorrmmaatt==FFaallssee, pprreeppeenndd==NNoonnee)_¶ │ │ │ │ Create a BitString object initialized from the hex string. │ │ │ │ Parameters: │ │ │ │ - vvaalluuee (_s_t_r) – Text string like ‘DEADBEEF’ │ │ │ │ + vvaalluuee (str) – Text string like ‘DEADBEEF’ │ │ │ │ ccllaassssmmeetthhoodd fromBinaryString(vvaalluuee, iinntteerrnnaallFFoorrmmaatt==FFaallssee, │ │ │ │ pprreeppeenndd==NNoonnee)_¶ │ │ │ │ Create a BitString object initialized from a string of ‘0’ and ‘1’. │ │ │ │ Parameters: │ │ │ │ - vvaalluuee (_s_t_r) – Text string like ‘1010111’ │ │ │ │ + vvaalluuee (str) – Text string like ‘1010111’ │ │ │ │ ccllaassssmmeetthhoodd fromOctetString(vvaalluuee, iinntteerrnnaallFFoorrmmaatt==FFaallssee, pprreeppeenndd==NNoonnee, │ │ │ │ ppaaddddiinngg==00)_¶ │ │ │ │ Create a BitString object initialized from a string. │ │ │ │ Parameters: │ │ │ │ - vvaalluuee (_s_t_r (Py2) or _b_y_t_e_s (Py3)) – Text string like │ │ │ │ + vvaalluuee (str (Py2) or bytes (Py3)) – Text string like │ │ │ │ ‘\x01\xff’ (Py2) or b’\x01\xff’ (Py3) │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that BitString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -173,26 +173,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is BitString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is BitString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine BitString type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of BitString type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of BitString type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For BitString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/boolean.html │ │ │ @@ -113,19 +113,19 @@ │ │ │
│ │ │

Boolean type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Boolean(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create Boolean schema or value object.

│ │ │

Boolean class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python int objects.

│ │ │ +objects are immutable and duck-type Python int objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (int, str or Boolean object) – Python int or str literal or Boolean class │ │ │ +

  • value (int, str or Boolean object) – Python int or str literal or Boolean class │ │ │ instance. If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s).Constraints │ │ │ verification for Boolean type occurs automatically on object │ │ │ instantiation.

  • │ │ │
  • namedValues (NamedValues) – Object representing non-default symbolic aliases for numbers

  • │ │ │
│ │ │ @@ -227,23 +227,23 @@ │ │ │ imposing constraints on Boolean type initialization values.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Boolean object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -263,16 +263,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Boolean type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Boolean type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -282,16 +282,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Boolean type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Boolean type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,17 +18,17 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ BBoooolleeaann ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Boolean(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create Boolean schema or value object. │ │ │ │ Boolean class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python _i_n_t objects. │ │ │ │ + duck-type Python int objects. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_i_n_t, _s_t_r or Boolean object) – Python _i_n_t or _s_t_r │ │ │ │ + * vvaalluuee (int, str or Boolean object) – Python int or str │ │ │ │ literal or Boolean class instance. Ifvalueis not given, │ │ │ │ schema object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s).Constraints │ │ │ │ verification for Boolean type occurs automatically on object │ │ │ │ @@ -101,20 +101,20 @@ │ │ │ │ representing ASN.1 tag(s) associated with Boolean type. │ │ │ │ subtypeSpec == <>>>_¶ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Boolean type initialization values. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Boolean object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -128,26 +128,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Boolean type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Boolean type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Boolean type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Boolean type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Boolean type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Boolean type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/choice.html │ │ │ @@ -113,15 +113,15 @@ │ │ │
│ │ │

Choice type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Choice(componentType=None, tagSet=tagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create Choice schema or value object.

│ │ │

Choice class is based on ConstructedAsn1Type, │ │ │ -its objects are mutable and duck-type Python list objects.

│ │ │ +its objects are mutable and duck-type Python list objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │
  • componentType (NamedType) – Object holding named ASN.1 types allowed within this collection

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Choice type can only occur on explicit │ │ │ @@ -241,25 +241,25 @@ │ │ │

    │ │ │
    │ │ │ getComponentByPosition(idx, default=<NoValue object>, instantiate=True)
    │ │ │

    Returns Choice type component by index.

    │ │ │

    Equivalent to Python sequence subscription operation (e.g. []).

    │ │ │
    │ │ │
    Parameters:
    │ │ │ -

    idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ +

    idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ component or (if componentType is set) new ASN.1 schema object gets │ │ │ instantiated.

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • default (object) – If set and requested component is a schema object, return the default │ │ │ +

    • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

    • │ │ │ -
    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the NoValue │ │ │ +If False either existing component or the NoValue │ │ │ object will be returned.

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    PyAsn1Item – a PyASN1 object

    │ │ │
    │ │ │
    │ │ │ @@ -304,28 +304,28 @@ │ │ │
    │ │ │
    │ │ │ setComponentByPosition(idx, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
    │ │ │

    Assign Choice type component by position.

    │ │ │

    Equivalent to Python sequence item assignment operation (e.g. []).

    │ │ │
    │ │ │
    Parameters:
    │ │ │ -

    idx (int) – Component index (zero-based). Must either refer to existing │ │ │ +

    idx (int) – Component index (zero-based). Must either refer to existing │ │ │ component or to N+1 component. In the latter case a new component │ │ │ type gets instantiated (if componentType is set, or given ASN.1 │ │ │ object is taken otherwise) and appended to the Choice sequence.

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • value (object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set) │ │ │ +

    • value (object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Choice component. Once a new value is │ │ │ set to idx component, previous value is dropped. │ │ │ If value is not given, schema object will be set as a component.

    • │ │ │ -
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ -
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ -
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │ +
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ +
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ +
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    self

    │ │ │
    │ │ │
    │ │ │
    │ │ │ @@ -356,31 +356,31 @@ │ │ │ │ │ │
    │ │ │
    │ │ │ getName(innerFlag=False)
    │ │ │

    Return the name of currently assigned component of the Choice object.

    │ │ │
    │ │ │
    Returns:
    │ │ │ -

    str – Choice component name

    │ │ │ +

    str – Choice component name

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ property isValue
    │ │ │

    Indicate that Choice object represents ASN.1 value.

    │ │ │ -

    If isValue is False then this object represents just ASN.1 schema.

    │ │ │ -

    If isValue is True then, in addition to its ASN.1 schema features, │ │ │ +

    If isValue is False then this object represents just ASN.1 schema.

    │ │ │ +

    If isValue is True then, in addition to its ASN.1 schema features, │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ -int, str, dict etc.).

    │ │ │ +int, str, dict etc.).

    │ │ │
    │ │ │
    Returns:
    │ │ │ -

    boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal │ │ │ +

    boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal │ │ │ value.

    │ │ │
    │ │ │
    │ │ │
    │ │ │

    Note

    │ │ │

    There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ @@ -401,16 +401,16 @@ │ │ │ out ASN.1 types comparison.

    │ │ │

    Python class inheritance relationship is NOT considered.

    │ │ │
    │ │ │
    Parameters:
    │ │ │

    other (a pyasn1 type object) – Class instance representing ASN.1 type.

    │ │ │
    │ │ │
    Returns:
    │ │ │ -

    boolTrue if other is Choice type, │ │ │ -False otherwise.

    │ │ │ +

    boolTrue if other is Choice type, │ │ │ +False otherwise.

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
    │ │ │ @@ -420,63 +420,63 @@ │ │ │ out ASN.1 types comparison.

    │ │ │

    Python class inheritance relationship is NOT considered.

    │ │ │
    │ │ │
    Parameters:
    │ │ │

    other (a pyasn1 type object) – Class instance representing ASN.1 type.

    │ │ │
    │ │ │
    Returns:
    │ │ │ -

    boolTrue if other is a subtype of Choice type, │ │ │ -False otherwise.

    │ │ │ +

    boolTrue if other is a subtype of Choice type, │ │ │ +False otherwise.

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ getComponentByName(name, default=<NoValue object>, instantiate=True)
    │ │ │

    Returns Choice type component by name.

    │ │ │ -

    Equivalent to Python dict subscription operation (e.g. []).

    │ │ │ +

    Equivalent to Python dict subscription operation (e.g. []).

    │ │ │
    │ │ │
    Parameters:
    │ │ │ -

    name (str) – Choice type component name

    │ │ │ +

    name (str) – Choice type component name

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • default (object) – If set and requested component is a schema object, return the default │ │ │ +

    • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

    • │ │ │ -
    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the NoValue │ │ │ +If False either existing component or the NoValue │ │ │ object will be returned.

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    PyAsn1Item – Instantiate Choice component type or return existing │ │ │ component value

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ setComponentByName(name, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
    │ │ │

    Assign Choice type component by name.

    │ │ │ -

    Equivalent to Python dict item assignment operation (e.g. []).

    │ │ │ +

    Equivalent to Python dict item assignment operation (e.g. []).

    │ │ │
    │ │ │
    Parameters:
    │ │ │ -

    name (str) – Choice type component name

    │ │ │ +

    name (str) – Choice type component name

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • value (object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set) │ │ │ +

    • value (object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Choice component. │ │ │ If value is not given, schema object will be set as a component.

    • │ │ │ -
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ -
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ -
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │ +
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ +
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ +
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    self

    │ │ │
    │ │ │
    │ │ │
    │ │ │ @@ -488,19 +488,19 @@ │ │ │
    │ │ │
    Parameters:
    │ │ │

    tagSet (TagSet) – Object representing ASN.1 tags to identify one of │ │ │ Choice object component

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • default (object) – If set and requested component is a schema object, return the default │ │ │ +

    • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

    • │ │ │ -
    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the noValue │ │ │ +If False either existing component or the noValue │ │ │ object will be returned.

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    PyAsn1Item – a pyasn1 object

    │ │ │
    │ │ │
    │ │ │ @@ -513,21 +513,21 @@ │ │ │
    │ │ │
    Parameters:
    │ │ │

    tagSet (TagSet) – Object representing ASN.1 tags to identify one of │ │ │ Choice object component

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • value (object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set) │ │ │ +

    • value (object or PyAsn1Item derivative) – A Python value to initialize Choice component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Choice component. │ │ │ If value is not given, schema object will be set as a component.

    • │ │ │ -
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ -
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ -
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │ -
    • innerFlag (bool) – If True, search for matching tagSet recursively.

    • │ │ │ +
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ +
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ +
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │ +
    • innerFlag (bool) – If True, search for matching tagSet recursively.

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    self

    │ │ │
    │ │ │
    │ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ CChhooiiccee ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Choice(ccoommppoonneennttTTyyppee==NNoonnee, ttaaggSSeett==ttaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create Choice schema or value object. │ │ │ │ Choice class is based on _C_o_n_s_t_r_u_c_t_e_d_A_s_n_1_T_y_p_e, its objects are mutable and │ │ │ │ - duck-type Python _l_i_s_t objects. │ │ │ │ + duck-type Python list objects. │ │ │ │ Keyword Arguments: │ │ │ │ * ccoommppoonneennttTTyyppee (_N_a_m_e_d_T_y_p_e) – Object holding named ASN.1 types │ │ │ │ allowed within this collection │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ @@ -110,23 +110,23 @@ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Choice type initialization values. │ │ │ │ getComponentByPosition(iiddxx, ddeeffaauulltt==<>, │ │ │ │ iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Returns Choice type component by index. │ │ │ │ Equivalent to Python sequence subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to an existing component or (if ccoommppoonneennttTTyyppee is set) new │ │ │ │ ASN.1 schema object gets instantiated. │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – a PyASN1 object │ │ │ │ Examples │ │ │ │ # can also be Set │ │ │ │ class MySequence(Sequence): │ │ │ │ @@ -162,31 +162,31 @@ │ │ │ │ # returns noValue │ │ │ │ s.getComponentByPosition(0, instantiate=False) │ │ │ │ setComponentByPosition(iiddxx, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign Choice type component by position. │ │ │ │ Equivalent to Python sequence item assignment operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to existing component or to N+1 component. In the latter case │ │ │ │ a new component type gets instantiated (if ccoommppoonneennttTTyyppee is │ │ │ │ set, or given ASN.1 object is taken otherwise) and appended │ │ │ │ to the Choice sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Choice component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Choice component. Once a new value is set to iiddxx │ │ │ │ component, previous value is dropped. Ifvalueis not │ │ │ │ given, schema object will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ Return a _T_a_g_S_e_t object of the currently initialized component or │ │ │ │ self (if Choice is tagged). │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ @@ -196,23 +196,23 @@ │ │ │ │ Return currently assigned component of the Choice object. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – a PyASN1 object │ │ │ │ getName(iinnnneerrFFllaagg==FFaallssee)_¶ │ │ │ │ Return the name of currently assigned component of the Choice │ │ │ │ object. │ │ │ │ Returns: │ │ │ │ - _s_t_r – Choice component name │ │ │ │ + str – Choice component name │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Choice object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -226,98 +226,98 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Choice type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Choice type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Choice type for subtype relationship with other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Choice type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Choice type, False │ │ │ │ otherwise. │ │ │ │ getComponentByName(nnaammee, ddeeffaauulltt==<>, iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Returns Choice type component by name. │ │ │ │ - Equivalent to Python _d_i_c_t subscription operation (e.g.[]). │ │ │ │ + Equivalent to Python dict subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Choice type component name │ │ │ │ + nnaammee (str) – Choice type component name │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – Instantiate Choice component type or return │ │ │ │ existing component value │ │ │ │ setComponentByName(nnaammee, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign Choice type component by name. │ │ │ │ - Equivalent to Python _d_i_c_t item assignment operation (e.g.[]). │ │ │ │ + Equivalent to Python dict item assignment operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Choice type component name │ │ │ │ + nnaammee (str) – Choice type component name │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Choice component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Choice component. Ifvalueis not given, schema object │ │ │ │ will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ getComponentByType(ttaaggSSeett, ddeeffaauulltt==<>, iinnssttaannttiiaattee==TTrruuee, │ │ │ │ iinnnneerrFFllaagg==FFaallssee)_¶ │ │ │ │ Returns Choice type component by ASN.1 tag. │ │ │ │ Parameters: │ │ │ │ ttaaggSSeett (_T_a_g_S_e_t) – Object representing ASN.1 tags to identify │ │ │ │ one of Choice object component │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the noValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – a pyasn1 object │ │ │ │ setComponentByType(ttaaggSSeett, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee, │ │ │ │ iinnnneerrFFllaagg==FFaallssee)_¶ │ │ │ │ Assign Choice type component by ASN.1 tag. │ │ │ │ Parameters: │ │ │ │ ttaaggSSeett (_T_a_g_S_e_t) – Object representing ASN.1 tags to identify │ │ │ │ one of Choice object component │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Choice component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Choice component. Ifvalueis not given, schema object │ │ │ │ will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ - * iinnnneerrFFllaagg (_b_o_o_l) – If _T_r_u_e, search for matching ttaaggSSeett │ │ │ │ + * iinnnneerrFFllaagg (bool) – If True, search for matching ttaaggSSeett │ │ │ │ recursively. │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ pprrooppeerrttyy isInconsistent_¶ │ │ │ │ Run necessary checks to ensure Choice object consistency. │ │ │ │ Default action is to verify Choice object against constraints │ │ │ │ imposed bysubtypeSpec. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/enumerated.html │ │ │ @@ -113,19 +113,19 @@ │ │ │
│ │ │

Enumerated type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Enumerated(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), namedValues=NamedValues())
│ │ │

Create Enumerated schema or value object.

│ │ │

Enumerated class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python int objects.

│ │ │ +objects are immutable and duck-type Python int objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (int, str or Enumerated object) – Python int or str literal or Enumerated object. │ │ │ +

  • value (int, str or Enumerated object) – Python int or str literal or Enumerated object. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Enumerated type occurs automatically on object │ │ │ instantiation.

  • │ │ │
  • namedValues (NamedValues) – Object representing non-default symbolic aliases for numbers

  • │ │ │
│ │ │ @@ -239,23 +239,23 @@ │ │ │ representing symbolic aliases for numbers

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Enumerated object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -275,16 +275,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Enumerated type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Enumerated type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -294,16 +294,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Enumerated type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Enumerated type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,17 +18,17 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ EEnnuummeerraatteedd ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Enumerated(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), nnaammeeddVVaalluueess==NNaammeeddVVaalluueess(()))_¶ │ │ │ │ Create Enumerated schema or value object. │ │ │ │ Enumerated class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python _i_n_t objects. │ │ │ │ + and duck-type Python int objects. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_i_n_t, _s_t_r or Enumerated object) – Python _i_n_t or _s_t_r │ │ │ │ + * vvaalluuee (int, str or Enumerated object) – Python int or str │ │ │ │ literal or Enumerated object. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for Enumerated type occurs automatically on │ │ │ │ @@ -109,20 +109,20 @@ │ │ │ │ object imposing constraints on Enumerated type initialization │ │ │ │ values. │ │ │ │ namedValues == <>_¶ │ │ │ │ Default _N_a_m_e_d_V_a_l_u_e_s object representing symbolic aliases for │ │ │ │ numbers │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Enumerated object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -136,26 +136,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Enumerated type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Enumerated type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Enumerated type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Enumerated type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Enumerated type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Enumerated type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/integer.html │ │ │ @@ -113,19 +113,19 @@ │ │ │
│ │ │

Integer type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Integer(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), namedValues=NamedValues())
│ │ │

Create Integer schema or value object.

│ │ │

Integer class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python int objects.

│ │ │ +objects are immutable and duck-type Python int objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (int, str or Integer object) – Python int or str literal or Integer class │ │ │ +

  • value (int, str or Integer object) – Python int or str literal or Integer class │ │ │ instance. If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Integer type occurs automatically on object │ │ │ instantiation.

  • │ │ │
  • namedValues (NamedValues) – Object representing non-default symbolic aliases for numbers

  • │ │ │
│ │ │ @@ -240,23 +240,23 @@ │ │ │ representing symbolic aliases for numbers

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Integer object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -276,16 +276,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Integer type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Integer type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -295,16 +295,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Integer type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Integer type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,17 +18,17 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ IInntteeggeerr ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Integer(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), nnaammeeddVVaalluueess==NNaammeeddVVaalluueess(()))_¶ │ │ │ │ Create Integer schema or value object. │ │ │ │ Integer class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python _i_n_t objects. │ │ │ │ + duck-type Python int objects. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_i_n_t, _s_t_r or Integer object) – Python _i_n_t or _s_t_r │ │ │ │ + * vvaalluuee (int, str or Integer object) – Python int or str │ │ │ │ literal or Integer class instance. Ifvalueis not given, │ │ │ │ schema object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for Integer type occurs automatically on object │ │ │ │ @@ -109,20 +109,20 @@ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Integer type initialization values. │ │ │ │ namedValues == <>_¶ │ │ │ │ Default _N_a_m_e_d_V_a_l_u_e_s object representing symbolic aliases for │ │ │ │ numbers │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Integer object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -136,26 +136,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Integer type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Integer type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Integer type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Integer type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Integer type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Integer type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/null.html │ │ │ @@ -113,20 +113,20 @@ │ │ │
│ │ │

Null type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Null(value=NoValue(), tagSet=TagSet())
│ │ │

Create Null schema or value object.

│ │ │

Null class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python str objects │ │ │ +objects are immutable and duck-type Python str objects │ │ │ (always empty).

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (str or Null object) – Python empty str literal or any object that evaluates to False │ │ │ +

  • value (str or Null object) – Python empty str literal or any object that evaluates to False │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │ @@ -220,23 +220,23 @@ │ │ │ imposing constraints on Null type initialization values.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Null object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -256,16 +256,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Null type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Null type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -275,16 +275,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Null type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Null type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -17,18 +17,18 @@ │ │ │ │ # Next: _O_b_j_e_c_t_I_d_e_n_t_i_f_i_e_r_ _t_y_p_e │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ NNuullll ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Null(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()))_¶ │ │ │ │ Create Null schema or value object. │ │ │ │ Null class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python _s_t_r objects (always empty). │ │ │ │ + duck-type Python str objects (always empty). │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_s_t_r or Null object) – Python empty _s_t_r literal or any │ │ │ │ - object that evaluates to _F_a_l_s_e Ifvalueis not given, schema │ │ │ │ + * vvaalluuee (str or Null object) – Python empty str literal or any │ │ │ │ + object that evaluates to False Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Examples │ │ │ │ @@ -88,20 +88,20 @@ │ │ │ │ representing ASN.1 tag(s) associated with Null type. │ │ │ │ subtypeSpec == <>>>_¶ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Null type initialization values. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Null object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -115,25 +115,25 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Null type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Null type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Null type for subtype relationship with other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Null type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Null type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Null type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/objectidentifier.html │ │ │ @@ -113,20 +113,20 @@ │ │ │
│ │ │

ObjectIdentifier type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.ObjectIdentifier(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create ObjectIdentifier schema or value object.

│ │ │

ObjectIdentifier class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python tuple objects │ │ │ +objects are immutable and duck-type Python tuple objects │ │ │ (tuple of non-negative integers).

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (tuple, str or ObjectIdentifier object) – Python sequence of int or str literal or ObjectIdentifier object. │ │ │ +

  • value (tuple, str or ObjectIdentifier object) – Python sequence of int or str literal or ObjectIdentifier object. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for ObjectIdentifier type occurs automatically on object │ │ │ instantiation.

  • │ │ │
│ │ │
│ │ │ @@ -232,33 +232,33 @@ │ │ │ isPrefixOf(other) │ │ │

Indicate if this ObjectIdentifier object is a prefix of other ObjectIdentifier object.

│ │ │
│ │ │
Parameters:
│ │ │

other (|ASN.1| object) – ObjectIdentifier object

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if this ObjectIdentifier object is a parent (e.g. prefix) of the other ObjectIdentifier object │ │ │ -or False otherwise.

│ │ │ +

boolTrue if this ObjectIdentifier object is a parent (e.g. prefix) of the other ObjectIdentifier object │ │ │ +or False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that ObjectIdentifier object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -278,16 +278,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is ObjectIdentifier type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is ObjectIdentifier type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -297,16 +297,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of ObjectIdentifier type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of ObjectIdentifier type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,19 +18,19 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ OObbjjeeccttIIddeennttiiffiieerr ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.ObjectIdentifier(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create ObjectIdentifier schema or value object. │ │ │ │ ObjectIdentifier class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are │ │ │ │ - immutable and duck-type Python _t_u_p_l_e objects (tuple of non-negative │ │ │ │ + immutable and duck-type Python tuple objects (tuple of non-negative │ │ │ │ integers). │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_t_u_p_l_e, _s_t_r or ObjectIdentifier object) – Python │ │ │ │ - sequence of _i_n_t or _s_t_r literal or ObjectIdentifier object. │ │ │ │ + * vvaalluuee (tuple, str or ObjectIdentifier object) – Python │ │ │ │ + sequence of int or str literal or ObjectIdentifier object. │ │ │ │ Ifvalueis not given, schema object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for ObjectIdentifier type occurs automatically │ │ │ │ on object instantiation. │ │ │ │ @@ -106,25 +106,25 @@ │ │ │ │ values. │ │ │ │ isPrefixOf(ootthheerr)_¶ │ │ │ │ Indicate if this ObjectIdentifier object is a prefix of other │ │ │ │ ObjectIdentifier object. │ │ │ │ Parameters: │ │ │ │ ootthheerr (||AASSNN..11|| oobbjjeecctt) – ObjectIdentifier object │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if this ObjectIdentifier object is a parent (e.g. │ │ │ │ - prefix) of the other ObjectIdentifier object or _F_a_l_s_e │ │ │ │ + bool – True if this ObjectIdentifier object is a parent (e.g. │ │ │ │ + prefix) of the other ObjectIdentifier object or False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that ObjectIdentifier object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -138,28 +138,28 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is ObjectIdentifier type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is ObjectIdentifier type, False │ │ │ │ otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine ObjectIdentifier type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of ObjectIdentifier type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of ObjectIdentifier type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For ObjectIdentifier type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/octetstring.html │ │ │ @@ -113,35 +113,35 @@ │ │ │
│ │ │

OctetString type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.OctetString(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='iso-8859-1', binValue=NoValue(), hexValue=NoValue())
│ │ │

Create OctetString schema or value object.

│ │ │

OctetString class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python 2 str or │ │ │ -Python 3 bytes. When used in Unicode context, OctetString type │ │ │ +objects are immutable and duck-type Python 2 str or │ │ │ +Python 3 bytes. When used in Unicode context, OctetString type │ │ │ assumes “iso-8859-1” serialisation.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or OctetString object) – class:str (Python 2) or bytes (Python 3), alternatively │ │ │ -class:unicode object (Python 2) or str (Python 3) │ │ │ +

  • value (unicode, str, bytes or OctetString object) – class:str (Python 2) or bytes (Python 3), alternatively │ │ │ +class:unicode object (Python 2) or str (Python 3) │ │ │ representing character string to be serialised into octets │ │ │ (note encoding parameter) or OctetString object. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for OctetString type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when OctetString object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when OctetString object is used │ │ │ in text string context.

  • │ │ │ -
  • binValue (str) – Binary string initializer to use instead of the value. │ │ │ +

  • binValue (str) – Binary string initializer to use instead of the value. │ │ │ Example: ‘10110011’.

  • │ │ │ -
  • hexValue (str) – Hexadecimal string initializer to use instead of the value. │ │ │ +

  • hexValue (str) – Hexadecimal string initializer to use instead of the value. │ │ │ Example: ‘DEADBEEF’.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -240,43 +240,43 @@ │ │ │ │ │ │
│ │ │
│ │ │ static fromBinaryString(value)
│ │ │

Create a OctetString object initialized from a string of ‘0’ and ‘1’.

│ │ │
│ │ │
Parameters:
│ │ │ -

value (str) – Text string like ‘1010111’

│ │ │ +

value (str) – Text string like ‘1010111’

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ static fromHexString(value)
│ │ │

Create a OctetString object initialized from the hex string.

│ │ │
│ │ │
Parameters:
│ │ │ -

value (str) – Text string like ‘DEADBEEF’

│ │ │ +

value (str) – Text string like ‘DEADBEEF’

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that OctetString object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -296,16 +296,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is OctetString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is OctetString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -315,16 +315,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of OctetString type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of OctetString type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -19,35 +19,35 @@ │ │ │ │ [q ][Go] │ │ │ │ ************ OOcctteettSSttrriinngg ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.OctetString(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''iissoo--88885599--11'', │ │ │ │ bbiinnVVaalluuee==NNooVVaalluuee(()), hheexxVVaalluuee==NNooVVaalluuee(()))_¶ │ │ │ │ Create OctetString schema or value object. │ │ │ │ OctetString class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable │ │ │ │ - and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in Unicode │ │ │ │ + and duck-type Python 2 str or Python 3 bytes. When used in Unicode │ │ │ │ context, OctetString type assumes “iso-8859-1” serialisation. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or OctetString object) – class:str │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3), alternatively class: │ │ │ │ - unicodeobject (Python 2) or _s_t_r (Python 3) representing │ │ │ │ + * vvaalluuee (unicode, str, bytes or OctetString object) – class:str │ │ │ │ + (Python 2) or bytes (Python 3), alternatively class: │ │ │ │ + unicodeobject (Python 2) or str (Python 3) representing │ │ │ │ character string to be serialised into octets │ │ │ │ (noteencodingparameter) or OctetString object. Ifvalueis not │ │ │ │ given, schema object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for OctetString type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when OctetString │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when OctetString │ │ │ │ object is used in text string context. │ │ │ │ - * bbiinnVVaalluuee (_s_t_r) – Binary string initializer to use instead of │ │ │ │ + * bbiinnVVaalluuee (str) – Binary string initializer to use instead of │ │ │ │ the vvaalluuee. Example: ‘10110011’. │ │ │ │ - * hheexxVVaalluuee (_s_t_r) – Hexadecimal string initializer to use │ │ │ │ + * hheexxVVaalluuee (str) – Hexadecimal string initializer to use │ │ │ │ instead of the vvaalluuee. Example: ‘DEADBEEF’. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Examples │ │ │ │ class Icon(OctetString): │ │ │ │ ''' │ │ │ │ @@ -114,27 +114,27 @@ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on OctetString type initialization │ │ │ │ values. │ │ │ │ ssttaattiicc fromBinaryString(vvaalluuee)_¶ │ │ │ │ Create a OctetString object initialized from a string of ‘0’ and │ │ │ │ ‘1’. │ │ │ │ Parameters: │ │ │ │ - vvaalluuee (_s_t_r) – Text string like ‘1010111’ │ │ │ │ + vvaalluuee (str) – Text string like ‘1010111’ │ │ │ │ ssttaattiicc fromHexString(vvaalluuee)_¶ │ │ │ │ Create a OctetString object initialized from the hex string. │ │ │ │ Parameters: │ │ │ │ - vvaalluuee (_s_t_r) – Text string like ‘DEADBEEF’ │ │ │ │ + vvaalluuee (str) – Text string like ‘DEADBEEF’ │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that OctetString object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -148,26 +148,26 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is OctetString type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is OctetString type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine OctetString type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of OctetString type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of OctetString type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For OctetString type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/real.html │ │ │ @@ -113,22 +113,22 @@ │ │ │
│ │ │

Real type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Real(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create Real schema or value object.

│ │ │

Real class is based on SimpleAsn1Type, its │ │ │ -objects are immutable and duck-type Python float objects. │ │ │ -Additionally, Real objects behave like a tuple in which case its │ │ │ +objects are immutable and duck-type Python float objects. │ │ │ +Additionally, Real objects behave like a tuple in which case its │ │ │ elements are mantissa, base and exponent.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (tuple, float or Real object) – Python sequence of int (representing mantissa, base and │ │ │ -exponent) or float instance or Real object. │ │ │ +

  • value (tuple, float or Real object) – Python sequence of int (representing mantissa, base and │ │ │ +exponent) or float instance or Real object. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Real type occurs automatically on object │ │ │ instantiation.

  • │ │ │
│ │ │
│ │ │ @@ -230,45 +230,45 @@ │ │ │ │ │ │
│ │ │
│ │ │ property isPlusInf
│ │ │

Indicate PLUS-INFINITY object value

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if calling object represents plus infinity │ │ │ -or False otherwise.

│ │ │ +

boolTrue if calling object represents plus infinity │ │ │ +or False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isMinusInf
│ │ │

Indicate MINUS-INFINITY object value

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if calling object represents minus infinity │ │ │ -or False otherwise.

│ │ │ +

boolTrue if calling object represents minus infinity │ │ │ +or False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Real object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -288,16 +288,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Real type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Real type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -307,16 +307,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Real type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Real type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ ├── html2text {} │ │ │ │ @@ -18,19 +18,19 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ RReeaall ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Real(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create Real schema or value object. │ │ │ │ Real class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python _f_l_o_a_t objects. Additionally, Real objects behave like a │ │ │ │ - _t_u_p_l_e in which case its elements are mantissa, base and exponent. │ │ │ │ + duck-type Python float objects. Additionally, Real objects behave like a │ │ │ │ + tuple in which case its elements are mantissa, base and exponent. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_t_u_p_l_e, _f_l_o_a_t or Real object) – Python sequence of _i_n_t │ │ │ │ - (representing mantissa, base and exponent) or _f_l_o_a_t instance │ │ │ │ + * vvaalluuee (tuple, float or Real object) – Python sequence of int │ │ │ │ + (representing mantissa, base and exponent) or float instance │ │ │ │ or Real object. Ifvalueis not given, schema object will be │ │ │ │ created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for Real type occurs automatically on object │ │ │ │ @@ -100,29 +100,29 @@ │ │ │ │ representing ASN.1 tag(s) associated with Real type. │ │ │ │ subtypeSpec == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Real type initialization values. │ │ │ │ pprrooppeerrttyy isPlusInf_¶ │ │ │ │ Indicate PLUS-INFINITY object value │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if calling object represents plus infinity or │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if calling object represents plus infinity or │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy isMinusInf_¶ │ │ │ │ Indicate MINUS-INFINITY object value │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if calling object represents minus infinity or │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if calling object represents minus infinity or │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Real object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -136,25 +136,25 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Real type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Real type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Real type for subtype relationship with other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Real type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Real type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Real type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ ©2005-2023, Ilya Etingof │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/sequence.html │ │ │ @@ -113,15 +113,15 @@ │ │ │
│ │ │

Sequence type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Sequence(componentType=NamedTypes(), tagSet=tagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create Sequence schema or value object.

│ │ │

Sequence class is based on ConstructedAsn1Type, │ │ │ -its objects are mutable and duck-type Python dict objects.

│ │ │ +its objects are mutable and duck-type Python dict objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │
  • componentType (NamedType) – Object holding named ASN.1 types allowed within this collection

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Sequence type can only occur on explicit │ │ │ @@ -238,22 +238,22 @@ │ │ │ object imposing size constraint on Sequence objects

    │ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Sequence object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ +

If isValue is False then this object represents just ASN.1 schema.

│ │ │ +

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ -int, str, dict etc.).

│ │ │ +int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a │ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a │ │ │ normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ @@ -279,16 +279,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Sequence type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Sequence type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -298,16 +298,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Sequence type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Sequence type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ @@ -323,25 +323,25 @@ │ │ │
│ │ │
│ │ │ getComponentByPosition(idx, default=<NoValue object>, instantiate=True)
│ │ │

Returns Sequence type component by index.

│ │ │

Equivalent to Python sequence subscription operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ component or (if componentType is set) new ASN.1 schema object gets │ │ │ instantiated.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • default (object) – If set and requested component is a schema object, return the default │ │ │ +

  • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

  • │ │ │ -
  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the NoValue │ │ │ +If False either existing component or the NoValue │ │ │ object will be returned.

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

PyAsn1Item – a PyASN1 object

│ │ │
│ │ │
│ │ │ @@ -386,91 +386,91 @@ │ │ │
│ │ │
│ │ │ setComponentByPosition(idx, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
│ │ │

Assign Sequence type component by position.

│ │ │

Equivalent to Python sequence item assignment operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ component (if componentType is set) or to N+1 component │ │ │ otherwise. In the latter case a new component of given ASN.1 │ │ │ type gets instantiated and appended to Sequence sequence.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set) │ │ │ +

  • value (object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Sequence component. │ │ │ If value is not given, schema object will be set as a component.

  • │ │ │ -
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ -
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ -
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │ +
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ +
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ +
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

self

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ getComponentByName(name, default=<NoValue object>, instantiate=True)
│ │ │

Returns Sequence type component by name.

│ │ │ -

Equivalent to Python dict subscription operation (e.g. []).

│ │ │ +

Equivalent to Python dict subscription operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

name (str) – Sequence type component name

│ │ │ +

name (str) – Sequence type component name

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • default (object) – If set and requested component is a schema object, return the default │ │ │ +

  • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

  • │ │ │ -
  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the NoValue │ │ │ +If False either existing component or the NoValue │ │ │ object will be returned.

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

PyAsn1Item – Instantiate Sequence component type or return existing │ │ │ component value

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ setComponentByName(name, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
│ │ │

Assign Sequence type component by name.

│ │ │ -

Equivalent to Python dict item assignment operation (e.g. []).

│ │ │ +

Equivalent to Python dict item assignment operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

name (str) – Sequence type component name

│ │ │ +

name (str) – Sequence type component name

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set) │ │ │ +

  • value (object or PyAsn1Item derivative) – A Python value to initialize Sequence component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Sequence component. │ │ │ If value is not given, schema object will be set as a component.

  • │ │ │ -
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ -
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ -
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │ +
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ +
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ +
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

self

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ clear()
│ │ │

Remove all components and become an empty Sequence value object.

│ │ │ -

Has the same effect on Sequence object as it does on dict │ │ │ +

Has the same effect on Sequence object as it does on dict │ │ │ built-in.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ reset()
│ │ │

Remove all components and become a Sequence schema object.

│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ SSeeqquueennccee ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Sequence(ccoommppoonneennttTTyyppee==NNaammeeddTTyyppeess(()), ttaaggSSeett==ttaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create Sequence schema or value object. │ │ │ │ Sequence class is based on _C_o_n_s_t_r_u_c_t_e_d_A_s_n_1_T_y_p_e, its objects are mutable │ │ │ │ - and duck-type Python _d_i_c_t objects. │ │ │ │ + and duck-type Python dict objects. │ │ │ │ Keyword Arguments: │ │ │ │ * ccoommppoonneennttTTyyppee (_N_a_m_e_d_T_y_p_e) – Object holding named ASN.1 types │ │ │ │ allowed within this collection │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ @@ -105,20 +105,20 @@ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on Sequence type initialization values. │ │ │ │ componentType == <>_¶ │ │ │ │ Default collection of ASN.1 types of component (e.g. _N_a_m_e_d_T_y_p_e) │ │ │ │ object imposing size constraint on Sequence objects │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Sequence object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -138,46 +138,46 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Sequence type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Sequence type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Sequence type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Sequence type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Sequence type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Sequence type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ getComponentByPosition(iiddxx, ddeeffaauulltt==<>, │ │ │ │ iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Returns Sequence type component by index. │ │ │ │ Equivalent to Python sequence subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to an existing component or (if ccoommppoonneennttTTyyppee is set) new │ │ │ │ ASN.1 schema object gets instantiated. │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – a PyASN1 object │ │ │ │ Examples │ │ │ │ # can also be Set │ │ │ │ class MySequence(Sequence): │ │ │ │ @@ -213,72 +213,72 @@ │ │ │ │ # returns noValue │ │ │ │ s.getComponentByPosition(0, instantiate=False) │ │ │ │ setComponentByPosition(iiddxx, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign Sequence type component by position. │ │ │ │ Equivalent to Python sequence item assignment operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to existing component (if ccoommppoonneennttTTyyppee is set) or to N+1 │ │ │ │ component otherwise. In the latter case a new component of │ │ │ │ given ASN.1 type gets instantiated and appended to Sequence │ │ │ │ sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Sequence component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Sequence component. Ifvalueis not given, schema │ │ │ │ object will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ getComponentByName(nnaammee, ddeeffaauulltt==<>, iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Returns Sequence type component by name. │ │ │ │ - Equivalent to Python _d_i_c_t subscription operation (e.g.[]). │ │ │ │ + Equivalent to Python dict subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Sequence type component name │ │ │ │ + nnaammee (str) – Sequence type component name │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – Instantiate Sequence component type or return │ │ │ │ existing component value │ │ │ │ setComponentByName(nnaammee, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign Sequence type component by name. │ │ │ │ - Equivalent to Python _d_i_c_t item assignment operation (e.g.[]). │ │ │ │ + Equivalent to Python dict item assignment operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Sequence type component name │ │ │ │ + nnaammee (str) – Sequence type component name │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Sequence component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Sequence component. Ifvalueis not given, schema │ │ │ │ object will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ clear()_¶ │ │ │ │ Remove all components and become an empty Sequence value object. │ │ │ │ - Has the same effect on Sequence object as it does on _d_i_c_t built-in. │ │ │ │ + Has the same effect on Sequence object as it does on dict built-in. │ │ │ │ reset()_¶ │ │ │ │ Remove all components and become a Sequence schema object. │ │ │ │ See _i_s_V_a_l_u_e_(_) property for more information on the distinction │ │ │ │ between value and schema objects. │ │ │ │ pprrooppeerrttyy isInconsistent_¶ │ │ │ │ Run necessary checks to ensure Sequence object consistency. │ │ │ │ Default action is to verify Sequence object against constraints │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/sequenceof.html │ │ │ @@ -113,15 +113,15 @@ │ │ │
│ │ │

SequenceOf type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.SequenceOf(componentType=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create SequenceOf schema or value object.

│ │ │

SequenceOf class is based on ConstructedAsn1Type, │ │ │ -its objects are mutable and duck-type Python list objects.

│ │ │ +its objects are mutable and duck-type Python list objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │
  • componentType (PyAsn1Item derivative) – A pyasn1 object representing ASN.1 type allowed within SequenceOf type

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for SequenceOf type can only occur on explicit │ │ │ @@ -229,22 +229,22 @@ │ │ │ imposing constraints on SequenceOf type initialization values.

    │ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that SequenceOf object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ +

If isValue is False then this object represents just ASN.1 schema.

│ │ │ +

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -264,16 +264,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is SequenceOf type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is SequenceOf type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -283,16 +283,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of SequenceOf type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of SequenceOf type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ @@ -308,25 +308,25 @@ │ │ │
│ │ │
│ │ │ getComponentByPosition(idx, default=<NoValue object>, instantiate=True)
│ │ │

Return SequenceOf type component value by position.

│ │ │

Equivalent to Python sequence subscription operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ component or to N+1 component (if componentType is set). In the latter │ │ │ case a new component type gets instantiated and appended to the SequenceOf │ │ │ sequence.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • default (object) – If set and requested component is a schema object, return the default │ │ │ +

  • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

  • │ │ │ -
  • instantiate (bool) – If True (default), inner component will be automatically instantiated. │ │ │ -If False either existing component or the NoValue object will be │ │ │ +

  • instantiate (bool) – If True (default), inner component will be automatically instantiated. │ │ │ +If False either existing component or the NoValue object will be │ │ │ returned.

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

PyAsn1Item – Instantiate SequenceOf component type or return existing component value

│ │ │
│ │ │
│ │ │ @@ -370,46 +370,46 @@ │ │ │
│ │ │ setComponentByPosition(idx, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
│ │ │

Assign SequenceOf type component by position.

│ │ │

Equivalent to Python sequence item assignment operation (e.g. []) │ │ │ or list.append() (when idx == len(self)).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ component or to N+1 component. In the latter case a new component │ │ │ type gets instantiated (if componentType is set, or given ASN.1 │ │ │ object is taken otherwise) and appended to the SequenceOf sequence.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (object or PyAsn1Item derivative) – A Python value to initialize SequenceOf component with (if componentType is set) │ │ │ +

  • value (object or PyAsn1Item derivative) – A Python value to initialize SequenceOf component with (if componentType is set) │ │ │ or ASN.1 value object to assign to SequenceOf component. │ │ │ If value is not given, schema object will be set as a component.

  • │ │ │ -
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ -
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ -
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │ +
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ +
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ +
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

self

│ │ │
│ │ │
Raises:
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ clear()
│ │ │

Remove all components and become an empty SequenceOf value object.

│ │ │ -

Has the same effect on SequenceOf object as it does on list │ │ │ +

Has the same effect on SequenceOf object as it does on list │ │ │ built-in.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ reset()
│ │ │

Remove all components and become a SequenceOf schema object.

│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ SSeeqquueenncceeOOff ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.SequenceOf(ccoommppoonneennttTTyyppee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create SequenceOf schema or value object. │ │ │ │ SequenceOf class is based on _C_o_n_s_t_r_u_c_t_e_d_A_s_n_1_T_y_p_e, its objects are mutable │ │ │ │ - and duck-type Python _l_i_s_t objects. │ │ │ │ + and duck-type Python list objects. │ │ │ │ Keyword Arguments: │ │ │ │ * ccoommppoonneennttTTyyppee (PyAsn1Item derivative) – A pyasn1 object │ │ │ │ representing ASN.1 type allowed within SequenceOf type │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ @@ -97,20 +97,20 @@ │ │ │ │ allowed within SequenceOf type │ │ │ │ subtypeSpec == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on SequenceOf type initialization │ │ │ │ values. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that SequenceOf object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -124,48 +124,48 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is SequenceOf type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is SequenceOf type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine SequenceOf type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of SequenceOf type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of SequenceOf type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For SequenceOf type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ getComponentByPosition(iiddxx, ddeeffaauulltt==<>, │ │ │ │ iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Return SequenceOf type component value by position. │ │ │ │ Equivalent to Python sequence subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to an existing component or to N+1 component (if │ │ │ │ ccoommppoonneennttTTyyppee is set). In the latter case a new component │ │ │ │ type gets instantiated and appended to the SequenceOf │ │ │ │ sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – Instantiate SequenceOf component type or return │ │ │ │ existing component value │ │ │ │ Examples │ │ │ │ # can also be SetOf │ │ │ │ @@ -201,40 +201,40 @@ │ │ │ │ s.getComponentByPosition(0, instantiate=False) │ │ │ │ setComponentByPosition(iiddxx, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign SequenceOf type component by position. │ │ │ │ Equivalent to Python sequence item assignment operation (e.g.[]) or │ │ │ │ list.append() (when idx == len(self)). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to existing component or to N+1 component. In the latter case │ │ │ │ a new component type gets instantiated (if ccoommppoonneennttTTyyppee is │ │ │ │ set, or given ASN.1 object is taken otherwise) and appended │ │ │ │ to the SequenceOf sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize SequenceOf component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to SequenceOf component. Ifvalueis not given, schema │ │ │ │ object will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ Raises: │ │ │ │ * _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint │ │ │ │ violation or bad initializer │ │ │ │ - * _II_nn_dd_ee_xx_EE_rr_rr_oo_rr – When idx > len(self) │ │ │ │ + * IInnddeexxEErrrroorr – When idx > len(self) │ │ │ │ clear()_¶ │ │ │ │ Remove all components and become an empty SequenceOf value object. │ │ │ │ - Has the same effect on SequenceOf object as it does on _l_i_s_t built- │ │ │ │ + Has the same effect on SequenceOf object as it does on list built- │ │ │ │ in. │ │ │ │ reset()_¶ │ │ │ │ Remove all components and become a SequenceOf schema object. │ │ │ │ See _i_s_V_a_l_u_e_(_) property for more information on the distinction │ │ │ │ between value and schema objects. │ │ │ │ pprrooppeerrttyy isInconsistent_¶ │ │ │ │ Run necessary checks to ensure SequenceOf object consistency. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/set.html │ │ │ @@ -113,15 +113,15 @@ │ │ │
│ │ │

Set type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.Set(componentType=NamedTypes(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create Set schema or value object.

│ │ │

Set class is based on ConstructedAsn1Type, │ │ │ -its objects are mutable and duck-type Python dict objects.

│ │ │ +its objects are mutable and duck-type Python dict objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │
  • componentType (NamedType) – Object holding named ASN.1 types allowed within this collection

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for Set type can only occur on explicit │ │ │ @@ -245,19 +245,19 @@ │ │ │

    │ │ │
    Parameters:
    │ │ │

    tagSet (TagSet) – Object representing ASN.1 tags to identify one of │ │ │ Set object component

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • default (object) – If set and requested component is a schema object, return the default │ │ │ +

    • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

    • │ │ │ -
    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

    • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the noValue │ │ │ +If False either existing component or the noValue │ │ │ object will be returned.

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    PyAsn1Item – a pyasn1 object

    │ │ │
    │ │ │
    │ │ │ @@ -270,41 +270,41 @@ │ │ │
    │ │ │
    Parameters:
    │ │ │

    tagSet (TagSet) – Object representing ASN.1 tags to identify one of │ │ │ Set object component

    │ │ │
    │ │ │
    Keyword Arguments:
    │ │ │
      │ │ │ -
    • value (object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set) │ │ │ +

    • value (object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Set component. │ │ │ If value is not given, schema object will be set as a component.

    • │ │ │ -
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ -
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ -
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │ -
    • innerFlag (bool) – If True, search for matching tagSet recursively.

    • │ │ │ +
    • verifyConstraints (bool) – If False, skip constraints validation

    • │ │ │ +
    • matchTags (bool) – If False, skip component tags matching

    • │ │ │ +
    • matchConstraints (bool) – If False, skip component constraints matching

    • │ │ │ +
    • innerFlag (bool) – If True, search for matching tagSet recursively.

    • │ │ │
    │ │ │
    │ │ │
    Returns:
    │ │ │

    self

    │ │ │
    │ │ │
    │ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that Set object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ +

If isValue is False then this object represents just ASN.1 schema.

│ │ │ +

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ -int, str, dict etc.).

│ │ │ +int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a │ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a │ │ │ normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ @@ -330,16 +330,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is Set type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is Set type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -349,16 +349,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of Set type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of Set type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ @@ -374,25 +374,25 @@ │ │ │
│ │ │
│ │ │ getComponentByPosition(idx, default=<NoValue object>, instantiate=True)
│ │ │

Returns Set type component by index.

│ │ │

Equivalent to Python sequence subscription operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ component or (if componentType is set) new ASN.1 schema object gets │ │ │ instantiated.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • default (object) – If set and requested component is a schema object, return the default │ │ │ +

  • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

  • │ │ │ -
  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the NoValue │ │ │ +If False either existing component or the NoValue │ │ │ object will be returned.

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

PyAsn1Item – a PyASN1 object

│ │ │
│ │ │
│ │ │ @@ -437,91 +437,91 @@ │ │ │
│ │ │
│ │ │ setComponentByPosition(idx, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
│ │ │

Assign Set type component by position.

│ │ │

Equivalent to Python sequence item assignment operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ component (if componentType is set) or to N+1 component │ │ │ otherwise. In the latter case a new component of given ASN.1 │ │ │ type gets instantiated and appended to Set sequence.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set) │ │ │ +

  • value (object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Set component. │ │ │ If value is not given, schema object will be set as a component.

  • │ │ │ -
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ -
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ -
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │ +
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ +
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ +
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

self

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ getComponentByName(name, default=<NoValue object>, instantiate=True)
│ │ │

Returns Set type component by name.

│ │ │ -

Equivalent to Python dict subscription operation (e.g. []).

│ │ │ +

Equivalent to Python dict subscription operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

name (str) – Set type component name

│ │ │ +

name (str) – Set type component name

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • default (object) – If set and requested component is a schema object, return the default │ │ │ +

  • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

  • │ │ │ -
  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ +

  • instantiate (bool) – If True (default), inner component will be automatically │ │ │ instantiated. │ │ │ -If False either existing component or the NoValue │ │ │ +If False either existing component or the NoValue │ │ │ object will be returned.

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

PyAsn1Item – Instantiate Set component type or return existing │ │ │ component value

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ setComponentByName(name, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
│ │ │

Assign Set type component by name.

│ │ │ -

Equivalent to Python dict item assignment operation (e.g. []).

│ │ │ +

Equivalent to Python dict item assignment operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

name (str) – Set type component name

│ │ │ +

name (str) – Set type component name

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set) │ │ │ +

  • value (object or PyAsn1Item derivative) – A Python value to initialize Set component with (if componentType is set) │ │ │ or ASN.1 value object to assign to Set component. │ │ │ If value is not given, schema object will be set as a component.

  • │ │ │ -
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ -
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ -
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │ +
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ +
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ +
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

self

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ clear()
│ │ │

Remove all components and become an empty Set value object.

│ │ │ -

Has the same effect on Set object as it does on dict │ │ │ +

Has the same effect on Set object as it does on dict │ │ │ built-in.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ reset()
│ │ │

Remove all components and become a Set schema object.

│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ SSeett ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.Set(ccoommppoonneennttTTyyppee==NNaammeeddTTyyppeess(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create Set schema or value object. │ │ │ │ Set class is based on _C_o_n_s_t_r_u_c_t_e_d_A_s_n_1_T_y_p_e, its objects are mutable and │ │ │ │ - duck-type Python _d_i_c_t objects. │ │ │ │ + duck-type Python dict objects. │ │ │ │ Keyword Arguments: │ │ │ │ * ccoommppoonneennttTTyyppee (_N_a_m_e_d_T_y_p_e) – Object holding named ASN.1 types │ │ │ │ allowed within this collection │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ @@ -108,54 +108,54 @@ │ │ │ │ getComponentByType(ttaaggSSeett, ddeeffaauulltt==<>, iinnssttaannttiiaattee==TTrruuee, │ │ │ │ iinnnneerrFFllaagg==FFaallssee)_¶ │ │ │ │ Returns Set type component by ASN.1 tag. │ │ │ │ Parameters: │ │ │ │ ttaaggSSeett (_T_a_g_S_e_t) – Object representing ASN.1 tags to identify │ │ │ │ one of Set object component │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the noValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – a pyasn1 object │ │ │ │ setComponentByType(ttaaggSSeett, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee, │ │ │ │ iinnnneerrFFllaagg==FFaallssee)_¶ │ │ │ │ Assign Set type component by ASN.1 tag. │ │ │ │ Parameters: │ │ │ │ ttaaggSSeett (_T_a_g_S_e_t) – Object representing ASN.1 tags to identify │ │ │ │ one of Set object component │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Set component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Set component. Ifvalueis not given, schema object │ │ │ │ will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ - * iinnnneerrFFllaagg (_b_o_o_l) – If _T_r_u_e, search for matching ttaaggSSeett │ │ │ │ + * iinnnneerrFFllaagg (bool) – If True, search for matching ttaaggSSeett │ │ │ │ recursively. │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that Set object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -175,45 +175,45 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is Set type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is Set type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine Set type for subtype relationship with other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of Set type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of Set type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For Set type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ getComponentByPosition(iiddxx, ddeeffaauulltt==<>, │ │ │ │ iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Returns Set type component by index. │ │ │ │ Equivalent to Python sequence subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to an existing component or (if ccoommppoonneennttTTyyppee is set) new │ │ │ │ ASN.1 schema object gets instantiated. │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – a PyASN1 object │ │ │ │ Examples │ │ │ │ # can also be Set │ │ │ │ class MySequence(Sequence): │ │ │ │ @@ -249,72 +249,72 @@ │ │ │ │ # returns noValue │ │ │ │ s.getComponentByPosition(0, instantiate=False) │ │ │ │ setComponentByPosition(iiddxx, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign Set type component by position. │ │ │ │ Equivalent to Python sequence item assignment operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to existing component (if ccoommppoonneennttTTyyppee is set) or to N+1 │ │ │ │ component otherwise. In the latter case a new component of │ │ │ │ given ASN.1 type gets instantiated and appended to Set │ │ │ │ sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Set component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Set component. Ifvalueis not given, schema object │ │ │ │ will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ getComponentByName(nnaammee, ddeeffaauulltt==<>, iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Returns Set type component by name. │ │ │ │ - Equivalent to Python _d_i_c_t subscription operation (e.g.[]). │ │ │ │ + Equivalent to Python dict subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Set type component name │ │ │ │ + nnaammee (str) – Set type component name │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – Instantiate Set component type or return │ │ │ │ existing component value │ │ │ │ setComponentByName(nnaammee, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign Set type component by name. │ │ │ │ - Equivalent to Python _d_i_c_t item assignment operation (e.g.[]). │ │ │ │ + Equivalent to Python dict item assignment operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - nnaammee (_s_t_r) – Set type component name │ │ │ │ + nnaammee (str) – Set type component name │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize Set component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to Set component. Ifvalueis not given, schema object │ │ │ │ will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ clear()_¶ │ │ │ │ Remove all components and become an empty Set value object. │ │ │ │ - Has the same effect on Set object as it does on _d_i_c_t built-in. │ │ │ │ + Has the same effect on Set object as it does on dict built-in. │ │ │ │ reset()_¶ │ │ │ │ Remove all components and become a Set schema object. │ │ │ │ See _i_s_V_a_l_u_e_(_) property for more information on the distinction │ │ │ │ between value and schema objects. │ │ │ │ pprrooppeerrttyy isInconsistent_¶ │ │ │ │ Run necessary checks to ensure Set object consistency. │ │ │ │ Default action is to verify Set object against constraints imposed │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/univ/setof.html │ │ │ @@ -113,15 +113,15 @@ │ │ │
│ │ │

SetOf type

│ │ │
│ │ │
│ │ │ class pyasn1.type.univ.SetOf(componentType=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection())
│ │ │

Create SetOf schema or value object.

│ │ │

SetOf class is based on ConstructedAsn1Type, │ │ │ -its objects are mutable and duck-type Python list objects.

│ │ │ +its objects are mutable and duck-type Python list objects.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │
  • componentType (PyAsn1Item derivative) – A pyasn1 object representing ASN.1 type allowed within SetOf type

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for SetOf type can only occur on explicit │ │ │ @@ -229,22 +229,22 @@ │ │ │ imposing constraints on SetOf type initialization values.

    │ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that SetOf object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ +

If isValue is False then this object represents just ASN.1 schema.

│ │ │ +

If isValue is True then, in addition to its ASN.1 schema features, │ │ │ this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -264,16 +264,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is SetOf type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is SetOf type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -283,16 +283,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of SetOf type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of SetOf type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property effectiveTagSet
│ │ │ @@ -308,25 +308,25 @@ │ │ │
│ │ │
│ │ │ getComponentByPosition(idx, default=<NoValue object>, instantiate=True)
│ │ │

Return SetOf type component value by position.

│ │ │

Equivalent to Python sequence subscription operation (e.g. []).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to an existing │ │ │ component or to N+1 component (if componentType is set). In the latter │ │ │ case a new component type gets instantiated and appended to the SetOf │ │ │ sequence.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • default (object) – If set and requested component is a schema object, return the default │ │ │ +

  • default (object) – If set and requested component is a schema object, return the default │ │ │ object instead of the requested component.

  • │ │ │ -
  • instantiate (bool) – If True (default), inner component will be automatically instantiated. │ │ │ -If False either existing component or the NoValue object will be │ │ │ +

  • instantiate (bool) – If True (default), inner component will be automatically instantiated. │ │ │ +If False either existing component or the NoValue object will be │ │ │ returned.

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

PyAsn1Item – Instantiate SetOf component type or return existing component value

│ │ │
│ │ │
│ │ │ @@ -370,46 +370,46 @@ │ │ │
│ │ │ setComponentByPosition(idx, value=<NoValue object>, verifyConstraints=True, matchTags=True, matchConstraints=True)
│ │ │

Assign SetOf type component by position.

│ │ │

Equivalent to Python sequence item assignment operation (e.g. []) │ │ │ or list.append() (when idx == len(self)).

│ │ │
│ │ │
Parameters:
│ │ │ -

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ +

idx (int) – Component index (zero-based). Must either refer to existing │ │ │ component or to N+1 component. In the latter case a new component │ │ │ type gets instantiated (if componentType is set, or given ASN.1 │ │ │ object is taken otherwise) and appended to the SetOf sequence.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (object or PyAsn1Item derivative) – A Python value to initialize SetOf component with (if componentType is set) │ │ │ +

  • value (object or PyAsn1Item derivative) – A Python value to initialize SetOf component with (if componentType is set) │ │ │ or ASN.1 value object to assign to SetOf component. │ │ │ If value is not given, schema object will be set as a component.

  • │ │ │ -
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ -
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ -
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │ +
  • verifyConstraints (bool) – If False, skip constraints validation

  • │ │ │ +
  • matchTags (bool) – If False, skip component tags matching

  • │ │ │ +
  • matchConstraints (bool) – If False, skip component constraints matching

  • │ │ │
│ │ │
│ │ │
Returns:
│ │ │

self

│ │ │
│ │ │
Raises:
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ clear()
│ │ │

Remove all components and become an empty SetOf value object.

│ │ │ -

Has the same effect on SetOf object as it does on list │ │ │ +

Has the same effect on SetOf object as it does on list │ │ │ built-in.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ reset()
│ │ │

Remove all components and become a SetOf schema object.

│ │ │ ├── html2text {} │ │ │ │ @@ -18,15 +18,15 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ SSeettOOff ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.univ.SetOf(ccoommppoonneennttTTyyppee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()))_¶ │ │ │ │ Create SetOf schema or value object. │ │ │ │ SetOf class is based on _C_o_n_s_t_r_u_c_t_e_d_A_s_n_1_T_y_p_e, its objects are mutable and │ │ │ │ - duck-type Python _l_i_s_t objects. │ │ │ │ + duck-type Python list objects. │ │ │ │ Keyword Arguments: │ │ │ │ * ccoommppoonneennttTTyyppee (PyAsn1Item derivative) – A pyasn1 object │ │ │ │ representing ASN.1 type allowed within SetOf type │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ @@ -94,20 +94,20 @@ │ │ │ │ Default PyAsn1Item derivative object representing ASN.1 type │ │ │ │ allowed within SetOf type │ │ │ │ subtypeSpec == <>_¶ │ │ │ │ Set (on class, not on instance) or return a _C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n │ │ │ │ object imposing constraints on SetOf type initialization values. │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that SetOf object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -121,46 +121,46 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is SetOf type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is SetOf type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine SetOf type for subtype relationship with other ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of SetOf type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of SetOf type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy effectiveTagSet_¶ │ │ │ │ For SetOf type is equivalent to ttaaggSSeett │ │ │ │ pprrooppeerrttyy tagMap_¶ │ │ │ │ Return a _T_a_g_M_a_p object mapping ASN.1 tags to ASN.1 objects within │ │ │ │ callee object. │ │ │ │ getComponentByPosition(iiddxx, ddeeffaauulltt==<>, │ │ │ │ iinnssttaannttiiaattee==TTrruuee)_¶ │ │ │ │ Return SetOf type component value by position. │ │ │ │ Equivalent to Python sequence subscription operation (e.g.[]). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to an existing component or to N+1 component (if │ │ │ │ ccoommppoonneennttTTyyppee is set). In the latter case a new component │ │ │ │ type gets instantiated and appended to the SetOf sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * ddeeffaauulltt (_o_b_j_e_c_t) – If set and requested component is a │ │ │ │ + * ddeeffaauulltt (object) – If set and requested component is a │ │ │ │ schema object, return thedefaultobject instead of the │ │ │ │ requested component. │ │ │ │ - * iinnssttaannttiiaattee (_b_o_o_l) – If _T_r_u_e (default), inner component │ │ │ │ - will be automatically instantiated. If _F_a_l_s_e either │ │ │ │ + * iinnssttaannttiiaattee (bool) – If True (default), inner component │ │ │ │ + will be automatically instantiated. If False either │ │ │ │ existing component or the NoValue object will be │ │ │ │ returned. │ │ │ │ Returns: │ │ │ │ PyAsn1Item – Instantiate SetOf component type or return │ │ │ │ existing component value │ │ │ │ Examples │ │ │ │ # can also be SetOf │ │ │ │ @@ -196,40 +196,40 @@ │ │ │ │ s.getComponentByPosition(0, instantiate=False) │ │ │ │ setComponentByPosition(iiddxx, vvaalluuee==<>, │ │ │ │ vveerriiffyyCCoonnssttrraaiinnttss==TTrruuee, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Assign SetOf type component by position. │ │ │ │ Equivalent to Python sequence item assignment operation (e.g.[]) or │ │ │ │ list.append() (when idx == len(self)). │ │ │ │ Parameters: │ │ │ │ - iiddxx (_i_n_t) – Component index (zero-based). Must either refer │ │ │ │ + iiddxx (int) – Component index (zero-based). Must either refer │ │ │ │ to existing component or to N+1 component. In the latter case │ │ │ │ a new component type gets instantiated (if ccoommppoonneennttTTyyppee is │ │ │ │ set, or given ASN.1 object is taken otherwise) and appended │ │ │ │ to the SetOf sequence. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (_o_b_j_e_c_t or PyAsn1Item derivative) – A Python │ │ │ │ + * vvaalluuee (object or PyAsn1Item derivative) – A Python │ │ │ │ value to initialize SetOf component with (if │ │ │ │ ccoommppoonneennttTTyyppee is set) or ASN.1 value object to assign │ │ │ │ to SetOf component. Ifvalueis not given, schema object │ │ │ │ will be set as a component. │ │ │ │ - * vveerriiffyyCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip constraints │ │ │ │ + * vveerriiffyyCCoonnssttrraaiinnttss (bool) – If False, skip constraints │ │ │ │ validation │ │ │ │ - * mmaattcchhTTaaggss (_b_o_o_l) – If _F_a_l_s_e, skip component tags │ │ │ │ + * mmaattcchhTTaaggss (bool) – If False, skip component tags │ │ │ │ matching │ │ │ │ - * mmaattcchhCCoonnssttrraaiinnttss (_b_o_o_l) – If _F_a_l_s_e, skip component │ │ │ │ + * mmaattcchhCCoonnssttrraaiinnttss (bool) – If False, skip component │ │ │ │ constraints matching │ │ │ │ Returns: │ │ │ │ sseellff │ │ │ │ Raises: │ │ │ │ * _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint │ │ │ │ violation or bad initializer │ │ │ │ - * _II_nn_dd_ee_xx_EE_rr_rr_oo_rr – When idx > len(self) │ │ │ │ + * IInnddeexxEErrrroorr – When idx > len(self) │ │ │ │ clear()_¶ │ │ │ │ Remove all components and become an empty SetOf value object. │ │ │ │ - Has the same effect on SetOf object as it does on _l_i_s_t built-in. │ │ │ │ + Has the same effect on SetOf object as it does on list built-in. │ │ │ │ reset()_¶ │ │ │ │ Remove all components and become a SetOf schema object. │ │ │ │ See _i_s_V_a_l_u_e_(_) property for more information on the distinction │ │ │ │ between value and schema objects. │ │ │ │ pprrooppeerrttyy isInconsistent_¶ │ │ │ │ Run necessary checks to ensure SetOf object consistency. │ │ │ │ Default action is to verify SetOf object against constraints │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/generalizedtime.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

GeneralizedTime type

│ │ │
│ │ │
│ │ │ class pyasn1.type.useful.GeneralizedTime(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates GeneralizedTime schema or value object.

│ │ │

GeneralizedTime class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, GeneralizedTime type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, GeneralizedTime type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or GeneralizedTime object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or GeneralizedTime object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or GeneralizedTime class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for GeneralizedTime type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when GeneralizedTime object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when GeneralizedTime object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -224,23 +224,23 @@ │ │ │

Default TagSet object for GeneralizedTime objects

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that GeneralizedTime object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -260,16 +260,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is GeneralizedTime type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is GeneralizedTime type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -279,38 +279,38 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of GeneralizedTime type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of GeneralizedTime type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property asDateTime
│ │ │ -

Create datetime.datetime object from a GeneralizedTime object.

│ │ │ +

Create datetime.datetime object from a GeneralizedTime object.

│ │ │
│ │ │
Returns:
│ │ │ -

new instance of datetime.datetime object

│ │ │ +

new instance of datetime.datetime object

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ classmethod fromDateTime(dt)
│ │ │ -

Create GeneralizedTime object from a datetime.datetime object.

│ │ │ +

Create GeneralizedTime object from a datetime.datetime object.

│ │ │
│ │ │
Parameters:
│ │ │ -

dt (datetime.datetime object) – The datetime.datetime object to initialize the GeneralizedTime object │ │ │ +

dt (datetime.datetime object) – The datetime.datetime object to initialize the GeneralizedTime object │ │ │ from

│ │ │
│ │ │
Returns:
│ │ │

new instance of GeneralizedTime value

│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ GGeenneerraalliizzeeddTTiimmee ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.useful.GeneralizedTime(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates GeneralizedTime schema or value object. │ │ │ │ GeneralizedTime class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are │ │ │ │ - immutable and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in │ │ │ │ + immutable and duck-type Python 2 str or Python 3 bytes. When used in │ │ │ │ octet-stream context, GeneralizedTime type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or GeneralizedTime object) – │ │ │ │ - unicode object (Python 2) or _s_t_r (Python 3), alternatively │ │ │ │ - _s_t_r (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream │ │ │ │ + * vvaalluuee (unicode, str, bytes or GeneralizedTime object) – │ │ │ │ + unicode object (Python 2) or str (Python 3), alternatively │ │ │ │ + str (Python 2) or bytes (Python 3) representing octet-stream │ │ │ │ of serialised unicode string (noteencodingparameter) or │ │ │ │ GeneralizedTime class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for GeneralizedTime type occurs automatically on │ │ │ │ object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when GeneralizedTime │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when GeneralizedTime │ │ │ │ object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The GeneralizedTime type models a character string representing date and │ │ │ │ time in many different formats. │ │ │ │ @@ -102,20 +102,20 @@ │ │ │ │ Due to the immutable nature of the GeneralizedTime object, if no │ │ │ │ arguments are supplied, no new GeneralizedTime object will be │ │ │ │ created andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Default _T_a_g_S_e_t object for GeneralizedTime objects │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that GeneralizedTime object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -129,34 +129,34 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is GeneralizedTime type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is GeneralizedTime type, False │ │ │ │ otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine GeneralizedTime type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of GeneralizedTime type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of GeneralizedTime type, │ │ │ │ + False otherwise. │ │ │ │ pprrooppeerrttyy asDateTime_¶ │ │ │ │ - Create _d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object from a GeneralizedTime object. │ │ │ │ + Create datetime.datetime object from a GeneralizedTime object. │ │ │ │ Returns: │ │ │ │ - new instance of _d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object │ │ │ │ + new instance of datetime.datetime object │ │ │ │ ccllaassssmmeetthhoodd fromDateTime(ddtt)_¶ │ │ │ │ - Create GeneralizedTime object from a _d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object. │ │ │ │ + Create GeneralizedTime object from a datetime.datetime object. │ │ │ │ Parameters: │ │ │ │ - ddtt (_d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object) – Thedatetime.datetimeobject to │ │ │ │ + ddtt (datetime.datetime object) – Thedatetime.datetimeobject to │ │ │ │ initialize the GeneralizedTime object from │ │ │ │ Returns: │ │ │ │ new instance of GeneralizedTime value │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/objectdescriptor.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

ObjectDescriptor type

│ │ │
│ │ │
│ │ │ class pyasn1.type.useful.ObjectDescriptor(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates ObjectDescriptor schema or value object.

│ │ │

ObjectDescriptor class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, ObjectDescriptor type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, ObjectDescriptor type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or ObjectDescriptor object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or ObjectDescriptor object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or ObjectDescriptor class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for ObjectDescriptor type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when ObjectDescriptor object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when ObjectDescriptor object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -211,23 +211,23 @@ │ │ │

Default TagSet object for ObjectDescriptor objects

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that ObjectDescriptor object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -247,16 +247,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is ObjectDescriptor type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is ObjectDescriptor type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -266,16 +266,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of ObjectDescriptor type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of ObjectDescriptor type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ │ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,32 +18,32 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ OObbjjeeccttDDeessccrriippttoorr ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.useful.ObjectDescriptor(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates ObjectDescriptor schema or value object. │ │ │ │ ObjectDescriptor class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are │ │ │ │ - immutable and duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in │ │ │ │ + immutable and duck-type Python 2 str or Python 3 bytes. When used in │ │ │ │ octet-stream context, ObjectDescriptor type assumes “iso-8859-1” │ │ │ │ encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or ObjectDescriptor object) – │ │ │ │ - unicode object (Python 2) or _s_t_r (Python 3), alternatively │ │ │ │ - _s_t_r (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream │ │ │ │ + * vvaalluuee (unicode, str, bytes or ObjectDescriptor object) – │ │ │ │ + unicode object (Python 2) or str (Python 3), alternatively │ │ │ │ + str (Python 2) or bytes (Python 3) representing octet-stream │ │ │ │ of serialised unicode string (noteencodingparameter) or │ │ │ │ ObjectDescriptor class instance. Ifvalueis not given, schema │ │ │ │ object will be created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for ObjectDescriptor type occurs automatically │ │ │ │ on object instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when │ │ │ │ ObjectDescriptor object is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The ObjectDescriptor type models a character string that can accompany │ │ │ │ the OObbjjeeccttIIddeennttiiffiieerr type to serve as a human-friendly annotation for an │ │ │ │ @@ -93,20 +93,20 @@ │ │ │ │ Due to the immutable nature of the ObjectDescriptor object, if no │ │ │ │ arguments are supplied, no new ObjectDescriptor object will be │ │ │ │ created andselfwill be returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Default _T_a_g_S_e_t object for ObjectDescriptor objects │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that ObjectDescriptor object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -120,23 +120,23 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is ObjectDescriptor type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is ObjectDescriptor type, False │ │ │ │ otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine ObjectDescriptor type for subtype relationship with other │ │ │ │ ASN.1 type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of ObjectDescriptor type, │ │ │ │ - _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is a subtype of ObjectDescriptor type, │ │ │ │ + False otherwise. │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>. │ │ ├── ./usr/share/doc/python-pyasn1-lextudio-doc/html/pyasn1/type/useful/utctime.html │ │ │ @@ -113,31 +113,31 @@ │ │ │
│ │ │

UTCTime type

│ │ │
│ │ │
│ │ │ class pyasn1.type.useful.UTCTime(value=NoValue(), tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), encoding='us-ascii')
│ │ │

Creates UTCTime schema or value object.

│ │ │

UTCTime class is based on SimpleAsn1Type, │ │ │ -its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ -bytes. When used in octet-stream context, UTCTime type assumes │ │ │ +its objects are immutable and duck-type Python 2 str or Python 3 │ │ │ +bytes. When used in octet-stream context, UTCTime type assumes │ │ │ “iso-8859-1” encoding.

│ │ │
│ │ │
Keyword Arguments:
│ │ │
    │ │ │ -
  • value (unicode, str, bytes or UTCTime object) – unicode object (Python 2) or str (Python 3), │ │ │ -alternatively str (Python 2) or bytes (Python 3) │ │ │ +

  • value (unicode, str, bytes or UTCTime object) – unicode object (Python 2) or str (Python 3), │ │ │ +alternatively str (Python 2) or bytes (Python 3) │ │ │ representing octet-stream of serialised unicode string │ │ │ (note encoding parameter) or UTCTime class instance. │ │ │ If value is not given, schema object will be created.

  • │ │ │
  • tagSet (TagSet) – Object representing non-default ASN.1 tag(s)

  • │ │ │
  • subtypeSpec (ConstraintsIntersection) – Object representing non-default ASN.1 subtype constraint(s). Constraints │ │ │ verification for UTCTime type occurs automatically on object │ │ │ instantiation.

  • │ │ │ -
  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ -str (Python 3) the payload when UTCTime object is used │ │ │ +

  • encoding (str) – Unicode codec ID to encode/decode unicode (Python 2) or │ │ │ +str (Python 3) the payload when UTCTime object is used │ │ │ in octet-stream context.

  • │ │ │
│ │ │
│ │ │
Raises:
│ │ │

ValueConstraintError, PyAsn1Error – On constraint violation or bad initializer.

│ │ │
│ │ │
│ │ │ @@ -222,23 +222,23 @@ │ │ │

Default TagSet object for UTCTime objects

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property isValue
│ │ │

Indicate that UTCTime object represents ASN.1 value.

│ │ │ -

If isValue is False then this object represents just │ │ │ +

If isValue is False then this object represents just │ │ │ ASN.1 schema.

│ │ │ -

If isValue is True then, in addition to its ASN.1 schema │ │ │ +

If isValue is True then, in addition to its ASN.1 schema │ │ │ features, this object can also be used like a Python built-in object │ │ │ -(e.g. int, str, dict etc.).

│ │ │ +(e.g. int, str, dict etc.).

│ │ │
│ │ │
Returns:
│ │ │ -

boolFalse if object represents just ASN.1 schema. │ │ │ -True if object represents ASN.1 schema and can be used as a normal value.

│ │ │ +

boolFalse if object represents just ASN.1 schema. │ │ │ +True if object represents ASN.1 schema and can be used as a normal value.

│ │ │
│ │ │
│ │ │
│ │ │

Note

│ │ │

There is an important distinction between PyASN1 schema and value objects. │ │ │ The PyASN1 schema objects can only participate in ASN.1 schema-related │ │ │ operations (e.g. defining or testing the structure of the data). Most │ │ │ @@ -258,16 +258,16 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is UTCTime type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is UTCTime type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ isSuperTypeOf(other, matchTags=True, matchConstraints=True)
│ │ │ @@ -277,38 +277,38 @@ │ │ │ out ASN.1 types comparison.

│ │ │

Python class inheritance relationship is NOT considered.

│ │ │
│ │ │
Parameters:
│ │ │

other (a pyasn1 type object) – Class instance representing ASN.1 type.

│ │ │
│ │ │
Returns:
│ │ │ -

boolTrue if other is a subtype of UTCTime type, │ │ │ -False otherwise.

│ │ │ +

boolTrue if other is a subtype of UTCTime type, │ │ │ +False otherwise.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ property asDateTime
│ │ │ -

Create datetime.datetime object from a UTCTime object.

│ │ │ +

Create datetime.datetime object from a UTCTime object.

│ │ │
│ │ │
Returns:
│ │ │ -

new instance of datetime.datetime object

│ │ │ +

new instance of datetime.datetime object

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ classmethod fromDateTime(dt)
│ │ │ -

Create UTCTime object from a datetime.datetime object.

│ │ │ +

Create UTCTime object from a datetime.datetime object.

│ │ │
│ │ │
Parameters:
│ │ │ -

dt (datetime.datetime object) – The datetime.datetime object to initialize the UTCTime object │ │ │ +

dt (datetime.datetime object) – The datetime.datetime object to initialize the UTCTime object │ │ │ from

│ │ │
│ │ │
Returns:
│ │ │

new instance of UTCTime value

│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -18,31 +18,31 @@ │ │ │ │ ******** QQuuiicckk sseeaarrcchh ******** │ │ │ │ [q ][Go] │ │ │ │ ************ UUTTCCTTiimmee ttyyppee_?¶ ************ │ │ │ │ ccllaassss pyasn1.type.useful.UTCTime(vvaalluuee==NNooVVaalluuee(()), ttaaggSSeett==TTaaggSSeett(()), │ │ │ │ ssuubbttyyppeeSSppeecc==CCoonnssttrraaiinnttssIInntteerrsseeccttiioonn(()), eennccooddiinngg==''uuss--aasscciiii'')_¶ │ │ │ │ Creates UTCTime schema or value object. │ │ │ │ UTCTime class is based on _S_i_m_p_l_e_A_s_n_1_T_y_p_e, its objects are immutable and │ │ │ │ - duck-type Python 2 _s_t_r or Python 3 _b_y_t_e_s. When used in octet-stream │ │ │ │ + duck-type Python 2 str or Python 3 bytes. When used in octet-stream │ │ │ │ context, UTCTime type assumes “iso-8859-1” encoding. │ │ │ │ Keyword Arguments: │ │ │ │ - * vvaalluuee (unicode, _s_t_r, _b_y_t_e_s or UTCTime object) – unicode │ │ │ │ - object (Python 2) or _s_t_r (Python 3), alternatively _s_t_r │ │ │ │ - (Python 2) or _b_y_t_e_s (Python 3) representing octet-stream of │ │ │ │ + * vvaalluuee (unicode, str, bytes or UTCTime object) – unicode │ │ │ │ + object (Python 2) or str (Python 3), alternatively str │ │ │ │ + (Python 2) or bytes (Python 3) representing octet-stream of │ │ │ │ serialised unicode string (noteencodingparameter) or UTCTime │ │ │ │ class instance. Ifvalueis not given, schema object will be │ │ │ │ created. │ │ │ │ * ttaaggSSeett (_T_a_g_S_e_t) – Object representing non-default ASN.1 tag │ │ │ │ (s) │ │ │ │ * ssuubbttyyppeeSSppeecc (_C_o_n_s_t_r_a_i_n_t_s_I_n_t_e_r_s_e_c_t_i_o_n) – Object representing │ │ │ │ non-default ASN.1 subtype constraint(s). Constraints │ │ │ │ verification for UTCTime type occurs automatically on object │ │ │ │ instantiation. │ │ │ │ - * eennccooddiinngg (_s_t_r) – Unicode codec ID to encode/decode unicode │ │ │ │ - (Python 2) or _s_t_r (Python 3) the payload when UTCTime object │ │ │ │ + * eennccooddiinngg (str) – Unicode codec ID to encode/decode unicode │ │ │ │ + (Python 2) or str (Python 3) the payload when UTCTime object │ │ │ │ is used in octet-stream context. │ │ │ │ Raises: │ │ │ │ _VV_aa_ll_uu_ee_CC_oo_nn_ss_tt_rr_aa_ii_nn_tt_EE_rr_rr_oo_rr,, _PP_yy_AA_ss_nn_11_EE_rr_rr_oo_rr – On constraint violation or bad │ │ │ │ initializer. │ │ │ │ Note │ │ │ │ The UTCTime type models a character string representing date and time. │ │ │ │ Formal syntax for the UUTTCCTTiimmee value is: │ │ │ │ @@ -98,20 +98,20 @@ │ │ │ │ Due to the immutable nature of the UTCTime object, if no arguments │ │ │ │ are supplied, no new UTCTime object will be created andselfwill be │ │ │ │ returned instead. │ │ │ │ tagSet == <>_¶ │ │ │ │ Default _T_a_g_S_e_t object for UTCTime objects │ │ │ │ pprrooppeerrttyy isValue_¶ │ │ │ │ Indicate that UTCTime object represents ASN.1 value. │ │ │ │ - If iissVVaalluuee is _F_a_l_s_e then this object represents just ASN.1 schema. │ │ │ │ - If iissVVaalluuee is _T_r_u_e then, in addition to its ASN.1 schema features, │ │ │ │ + If iissVVaalluuee is False then this object represents just ASN.1 schema. │ │ │ │ + If iissVVaalluuee is True then, in addition to its ASN.1 schema features, │ │ │ │ this object can also be used like a Python built-in object (e.g. │ │ │ │ - _i_n_t, _s_t_r, _d_i_c_t etc.). │ │ │ │ + int, str, dict etc.). │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _F_a_l_s_e if object represents just ASN.1 schema. _T_r_u_e if │ │ │ │ + bool – False if object represents just ASN.1 schema. True if │ │ │ │ object represents ASN.1 schema and can be used as a normal │ │ │ │ value. │ │ │ │ Note │ │ │ │ There is an important distinction between PyASN1 schema and value │ │ │ │ objects. The PyASN1 schema objects can only participate in ASN.1 │ │ │ │ schema-related operations (e.g. defining or testing the structure │ │ │ │ of the data). Most obvious uses of ASN.1 schema is to guide │ │ │ │ @@ -125,33 +125,33 @@ │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is UTCTime type, _F_a_l_s_e otherwise. │ │ │ │ + bool – True if ootthheerr is UTCTime type, False otherwise. │ │ │ │ isSuperTypeOf(ootthheerr, mmaattcchhTTaaggss==TTrruuee, mmaattcchhCCoonnssttrraaiinnttss==TTrruuee)_¶ │ │ │ │ Examine UTCTime type for subtype relationship with other ASN.1 │ │ │ │ type. │ │ │ │ ASN.1 tags (_t_a_g) and constraints (constraint) are examined when │ │ │ │ carrying out ASN.1 types comparison. │ │ │ │ Python class inheritance relationship is NOT considered. │ │ │ │ Parameters: │ │ │ │ ootthheerr (aa ppyyaassnn11 ttyyppee oobbjjeecctt) – Class instance representing │ │ │ │ ASN.1 type. │ │ │ │ Returns: │ │ │ │ - _b_o_o_l – _T_r_u_e if ootthheerr is a subtype of UTCTime type, _F_a_l_s_e │ │ │ │ + bool – True if ootthheerr is a subtype of UTCTime type, False │ │ │ │ otherwise. │ │ │ │ pprrooppeerrttyy asDateTime_¶ │ │ │ │ - Create _d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object from a UTCTime object. │ │ │ │ + Create datetime.datetime object from a UTCTime object. │ │ │ │ Returns: │ │ │ │ - new instance of _d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object │ │ │ │ + new instance of datetime.datetime object │ │ │ │ ccllaassssmmeetthhoodd fromDateTime(ddtt)_¶ │ │ │ │ - Create UTCTime object from a _d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object. │ │ │ │ + Create UTCTime object from a datetime.datetime object. │ │ │ │ Parameters: │ │ │ │ - ddtt (_d_a_t_e_t_i_m_e_._d_a_t_e_t_i_m_e object) – Thedatetime.datetimeobject to │ │ │ │ + ddtt (datetime.datetime object) – Thedatetime.datetimeobject to │ │ │ │ initialize the UTCTime object from │ │ │ │ Returns: │ │ │ │ new instance of UTCTime value │ │ │ │ ©2005-2023, Ilya Etingof │ │ │ │ gmail.com>.