Skip to main content

Convert style sheets to json. Python clone of kesla/css2json

Install

pip install css2json

Usage

>>> import css2json
>>> css2json.css2json("""
... p {
...     color: #222;
...     margin: 10px;
... }
... """)
'{"p": {"color": "#222", "margin": "10px"}}'
>>>

Release files for css2json 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for css2json 0.0.1
File Size Uploaded
css2json-0.0.1.tar.gz 2.2 kB Details

Release files / css2json-0.0.1.tar.gz

Download URL css2json-0.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1b2f160f725020e38f8daee18ac656f941dbd0ed9393c14c53f0d66109c4d952
BLAKE2b-256 checksum
How to use checksums
ec9ec87426f831196a496e4ade6d08e38af9a99d76916503465c266e3fdc03fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page