dec_ansi_parser
Pure-python terminal control sequence parser, based on Paul Williams' DEC-compatible parser.
Changes from Williams' parser:
- Handles subparameters
- Allows UTF-8 encoded strings (treated as normal text)
- Ignores the backslash (0x5C) in a 7-bit string terminator when exiting an OSC or DCS control string
Any invalid UTF-8 sequences are parsed as individual raw bytes.
Installation
$ pip install dec_ansi_parser
Usage
- TODO
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
dec_ansi_parser was created by yut23. It is licensed under the terms of the BSD 3-Clause license.
Credits
dec_ansi_parser was created with cookiecutter and the py-pkgs-cookiecutter template.
Metadata
Release files for dec-ansi-parser 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dec_ansi_parser-0.2.0.tar.gz | 14.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dec_ansi_parser-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.3 kB
Release files / dec_ansi_parser-0.2.0.tar.gz
| Download URL | dec_ansi_parser-0.2.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e10b2be486ecfa073f1ca743b6ee2a2178f8d7eeefb6714ce9a409af9553562a
|
|
BLAKE2b-256 checksum How to use checksums |
92fd3a7ac83b22024f9f656874576f2d61e42154fb20501f23353559fd8a9437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.8 Linux/6.2.8-200.fc37.x86_64
|
Release files / dec_ansi_parser-0.2.0-py3-none-any.whl
| Download URL | dec_ansi_parser-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cab55eb4ccf170876e3052a74f2de2f12064b694c8b9430ae1167956888cb11d
|
|
BLAKE2b-256 checksum How to use checksums |
29f9511d339e96b85e636aae3607e30daf638f4f82be75e9e9a2c60974825b23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.8 Linux/6.2.8-200.fc37.x86_64
|