Skip to main content

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:

$ conda install -c conda-forge dict2css

Release files for dict2css 0.6.0

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

Source distribution (sdist)

Source distribution for dict2css 0.6.0
File Size Uploaded
dict2css-0.6.0.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dict2css 0.6.0
File Interpreter ABI Platform
dict2css-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / dict2css-0.6.0.tar.gz

Download URL dict2css-0.6.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
143e55cb71c98a88c79f2c41e08a5fa4d875659275756f794e31ccd69936ce88
BLAKE2b-256 checksum
How to use checksums
83ae242596e550f79aa85ab6b5310caadd0b592063dc0c20c397d25707981f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / dict2css-0.6.0-py3-none-any.whl

Download URL dict2css-0.6.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5251f1df1c78ffdf09313657a7f88add0ad219127d9aeb18fb343b052d6bfbbe
BLAKE2b-256 checksum
How to use checksums
f7680fbc6124cdd4f5a92599d18345bd24c67977988d0bb277f3ea284321d836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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