Generate Pygments CSS
Generate CSS stylesheets for each Pygments supported style.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
Generate CSS stylesheets for each Pygments supported style.
- Github Link: https://github.com/hreikin/gen-pygments-css
- PyPi Link: https://pypi.org/project/gen-pygments-css/
- PDF Documentation: https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf
Built With
Getting Started
Installation
To get a local copy up and running choose one of the below install instructions and follow the steps provided.
Install With PIP
The simplest way to install gen-pygments-css is to use pip:
pip install gen-pygments-css
Install From Source
Alternatively you can install from source by following the steps below:
- Clone the repo:
git clone https://github.com/hreikin/gen-pygments-css.git cd gen-pygments-css/
- Create and source a Python virtual environment:
python3 -m venv .venv source .venv/bin/activate
- Install requirements with
pip:pip install -r requirements.txt
Usage
CSS stylesheets for all Pygments styles are output into a created css/
directory by default, this can be overridden.
from gen_pygments_css.gen_pygments_css import gen_pygments_css
# Called with no arguments.
gen_pygments_css()
# Called with a string passed into the styles_list.
gen_pygments_css(styles_list="monokai")
# Called with a list of strings passed into the styles_list.
gen_pygments_css(styles_list=["monokai", "stata-dark"])
# Call with a CSS selector defined.
gen_pygments_css(css_selector=".highlight")
# Call with a multiple arguments defined.
gen_pygments_css(css_selector=".highlight", styles_list=["monokai", "stata-dark"])
# Call with a relative custom css_dir.
gen_pygments_css(css_dir="assets/styles/")
# Call with an absolute custome css_dir.
gen_pygments_css(css_dir="/home/user/project/assets/styles/")
# Call the function and create a list of strings containing the paths of all
# stylesheets.
my_list = gen_pygments_css()
For more examples, please refer to the Documentation
Roadmap
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Github Link: https://github.com/hreikin/gen-pygments-css
PyPi Link: https://pypi.org/project/gen-pygments-css/
PDF Documentation: https://hreikin.github.io/gen-pygments-css/pdf/gen-pygments-css-documentation-LATEST.pdf
Metadata
Release files for gen-pygments-css 0.0.3
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 | |
|---|---|---|---|---|
| gen-pygments-css-0.0.3.tar.gz | 9.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gen_pygments_css-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / gen-pygments-css-0.0.3.tar.gz
| Download URL | gen-pygments-css-0.0.3.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b64df6fe1953c7885305a62d5b3a8efc4fbe71d0cc07b67dcd89ec2dbb7116e3
|
|
BLAKE2b-256 checksum How to use checksums |
f8a3d9942c9e76021c9a3146b3e090c9cc70181475941cf6ed4e77b0aa4ef6ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / gen_pygments_css-0.0.3-py3-none-any.whl
| Download URL | gen_pygments_css-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fb4fec1b09aef178071cd8849323b8f140cff7e784676eece221f2d6495f278
|
|
BLAKE2b-256 checksum How to use checksums |
f4193cf7f712f61df13857daedcdcb692ff14efbc91bef6f28e063ffe75c9e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for gen-pygments-css 0.0.3
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.