What is this?
This package includes lexers for JSX and TSX files for Pygment, as well as RSX, a language called "Toolscript" developed by retool that was syntactically close enough to add in. Pull requests are requested, and the code is released under the Creative Commons Non-Commercial License (CC BY-NC-ND 4.0).
To use
Either:
pip install pygments-tsx
or add us to your requirements wherever they may be these days. (Looking at you, SetupTools, Poetry, PyPi... get it together.)
Acknowledgments
This includes Flavio Curella's awesome package JSX Lexer, and includes the ideas and some code from Igor Hatarist's stab at this same problem pygments-tsx. Flaws were introduced by StartupOS, good stuff came from them.
There's also a hack in here for forcing pygments to accept classes programatically. That was based on discussions in this thread, and specifically suggestions from Vincent Bernat and Jean Abou-Samra
Metadata
Release files for pygments-tsx 1.0.4
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 |
|---|---|---|---|---|
| pygments_tsx-1.0.4.tar.gz | 12.9 kB | Without provenance | Details for pygments_tsx-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygments_tsx-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for pygments_tsx-1.0.4-py3-none-any.whl |
Total release size: 21.8 kB
Release files / pygments_tsx-1.0.4.tar.gz
| Download URL | pygments_tsx-1.0.4.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7213eb0df4a3f929cfec8a1f2e741446a889a2aad780d708e38bd64dbeaddf3
|
|
BLAKE2b-256 checksum How to use checksums |
11e38bc5a99ab41d0a036cf96caf2f4a43bcb7ebd838b0567830d75695b6ab6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / pygments_tsx-1.0.4-py3-none-any.whl
| Download URL | pygments_tsx-1.0.4-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abc25be6354198950e315939c3f792b3d00bba42508a8d5a2fa2569576cc6bd5
|
|
BLAKE2b-256 checksum How to use checksums |
26c5da46a02c3486baaacdeaddba563004ec30560f6cfd53baa2bc55fad59d12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for pygments-tsx 1.0.4
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.