struct_parse
struct_parse builds on the struct module in the standard library. struct
lets you parse buffers by describing the format similarly to C struct
definitions. struct_parse aims to comply with the struct module's format
strings, but instead returns a (very flat) abstract syntax tree (AST).
Example
import struct_parse
field_list = struct_parse.parse('hhl')
print(field_list.fields)
This will print
[<FieldType.FLOAT: 16>, <FieldType.FLOAT: 16>, <FieldType.LONG: 9>]
Use cases
For simply unpack packed data, the struct module does the trick. The goal of
this module is to enable the user to do other stuff with the format string--
we return a sequence of types instead of a sequence of values.
Compatibility
This library supports only Python 3.
Metadata
Release files for struct-parse 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| struct_parse-0.0.1.tar.gz | 3.3 kB | Without provenance | Details for struct_parse-0.0.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| struct_parse-0.0.1-py3.7.egg | Legacy Egg format | - | - | Details for struct_parse-0.0.1-py3.7.egg |
| struct_parse-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for struct_parse-0.0.1-py3-none-any.whl |
Total release size: 11.2 kB
Release files / struct_parse-0.0.1.tar.gz
| Download URL | struct_parse-0.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be9539451f34b15605dfe2c57b7005107f8838d4db7947d06e8e7d967f3fa13b
|
|
BLAKE2b-256 checksum How to use checksums |
5db656a056086c85d99e193028cbc0df8b9a61f69b8221cc3c94a7ca76f1d99a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2
|
Release files / struct_parse-0.0.1-py3.7.egg
| Download URL | struct_parse-0.0.1-py3.7.egg |
|---|---|
| Size | 4.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
b4b2c57ffaa5540a8a04e2cc627eae7f6aab2ec3003256526c5945bb6b884ac9
|
|
BLAKE2b-256 checksum How to use checksums |
093489619cdfd94308fec865450269dc49594b834a92cafba8223109c1e88af2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2
|
Release files / struct_parse-0.0.1-py3-none-any.whl
| Download URL | struct_parse-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab525f1fed48ebbe6eae02a49043a3891419d0febf1ca7843c87e95bbdfa112b
|
|
BLAKE2b-256 checksum How to use checksums |
82625f842758dc0982215ff50b44d5ec882780ac0ac87d2f94574f902b1acd3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2
|
Security for struct-parse 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.