A μ-library for constructing cascading style sheets from Python dictionaries.
Project description
A μ-library for constructing cascading style sheets from Python dictionaries.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
dict2css provides an API similar to the json and toml modules, with dump and load functions. The dump function takes a mapping of CSS selectors to mappings of CSS properties. Each property value may, optionally, be a two-element tuple containing the value and the string “important”. The load function returns a mapping with the same structure.
For more information see the documentation.
Installation
dict2css can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install dict2css
To install with conda:
First add the required channels
$ conda config --add channels https://conda.anaconda.org/conda-forge $ conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
$ conda install dict2css
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
Built Distribution
File details
Details for the file dict2css-0.3.0.post1.tar.gz
.
File metadata
- Download URL: dict2css-0.3.0.post1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c544c21c4ca7472c3fffb9d37d3d926f606329afdb751dc1de67a411b70719 |
|
MD5 | edacb08d0010fe42accdbe1c9214ca8d |
|
BLAKE2b-256 | 24eb776eef1f1aa0188c0fc165c3a60b71027539f71f2eedc43ad21b060e9c39 |
File details
Details for the file dict2css-0.3.0.post1-py3-none-any.whl
.
File metadata
- Download URL: dict2css-0.3.0.post1-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f006a6b774c3e31869015122ae82c491fd25e7de4a75607a62aa3e798f837e0d |
|
MD5 | 32ad218260b08c981dc65ff281f32582 |
|
BLAKE2b-256 | fe47290daabcf91628f4fc0e17c75a1690b354ba067066cd14407712600e609f |