Convert style sheets to json.
Project description
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"}}'
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
css2json-0.0.1.tar.gz
(2.2 kB
view details)
File details
Details for the file css2json-0.0.1.tar.gz.
File metadata
- Download URL: css2json-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b2f160f725020e38f8daee18ac656f941dbd0ed9393c14c53f0d66109c4d952
|
|
| MD5 |
1fb36d8b6247b13c6cf5d9e8b36c9ba6
|
|
| BLAKE2b-256 |
ec9ec87426f831196a496e4ade6d08e38af9a99d76916503465c266e3fdc03fe
|