Skip to main content

A μ-library for constructing cascading style sheets from Python dictionaries.

Project description

A μ-library for constructing cascading style sheets from Python dictionaries.

Docs

Documentation Build Status Docs Check Status

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Anaconda

Conda - Package Version Conda - Platform

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

License GitHub top language Requirements Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dict2css-0.3.0.post1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

dict2css-0.3.0.post1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

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

Hashes for dict2css-0.3.0.post1.tar.gz
Algorithm Hash digest
SHA256 89c544c21c4ca7472c3fffb9d37d3d926f606329afdb751dc1de67a411b70719
MD5 edacb08d0010fe42accdbe1c9214ca8d
BLAKE2b-256 24eb776eef1f1aa0188c0fc165c3a60b71027539f71f2eedc43ad21b060e9c39

See more details on using hashes here.

File details

Details for the file dict2css-0.3.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for dict2css-0.3.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 f006a6b774c3e31869015122ae82c491fd25e7de4a75607a62aa3e798f837e0d
MD5 32ad218260b08c981dc65ff281f32582
BLAKE2b-256 fe47290daabcf91628f4fc0e17c75a1690b354ba067066cd14407712600e609f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page