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:

$ conda install -c conda-forge 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.4.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dict2css-0.4.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file dict2css-0.4.0.tar.gz.

File metadata

  • Download URL: dict2css-0.4.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dict2css-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fbb01ebf86c5b667aa9d0348294ef7141a1ee0b64df75d468ea423e1aaef561a
MD5 7cac8d87e954062f761d6121208dbc30
BLAKE2b-256 89c2f059d1f54dbaa369ed0bf93cc71581d3f7b081c05b71296b3205c4cb1a11

See more details on using hashes here.

File details

Details for the file dict2css-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: dict2css-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dict2css-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6058b953a35bd56c0574e8b85540df8da26348d16a21063d9063dd6fd1cd188
MD5 723670b5fc219148d36d9ac0ff29e99e
BLAKE2b-256 88b30627c8ce444d6167c67481ce96482d7670e0241d004e405b862e7ad9fc4d

See more details on using hashes here.

Supported by

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