Metadata-Version: 2.1
Name: css-sprite
Version: 0.1.1
Summary: A simple css sprite generator.
Home-page: https://github.com/ionelmc/python-css-sprite
Author: Ionel Cristian Mărieș
Author-email: contact@ionelmc.ro
License: BSD-2-Clause
Project-URL: Documentation, https://python-css-sprite.readthedocs.io/
Project-URL: Changelog, https://python-css-sprite.readthedocs.io/en/latest/changelog.html
Project-URL: Issue Tracker, https://github.com/ionelmc/python-css-sprite/issues
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Utilities
Requires-Python: >=3.8
License-File: LICENSE
License-File: AUTHORS.rst

========
Overview
========



A simple css sprite generator.

* Free software: BSD 2-Clause License

Installation
============

::

    pip install css-sprite

You can also install the in-development version with::

    pip install https://github.com/ionelmc/python-css-sprite/archive/main.zip

Usage
=====

To generate a css sprite from images::

    css-sprite [-h] [--grid GRID] --output OUTPUT
        [--mode MODE] [--vertical] [--background BACKGROUND]
        [--template TEMPLATE | --template-path TEMPLATE_PATH]
        [--verbose] [--version] image [image ...]

Output is mainly a new image but you can also generate the accompanying css.

Positional arguments:
  image                 Path to image to include in sprite.

Options:
  -h, --help            show this help message and exit
  --grid GRID, -g GRID  Grid cell size to use. One of: auto, X:Y.
  --output OUTPUT, -o OUTPUT
                        Output file.
  --mode MODE, -m MODE  Force a certain image mode in the output, see: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#modes.
  --vertical, -v        Stack the images vertically (they are stacked horizontally by default).
  --background BACKGROUND, -b BACKGROUND
                        Background color.
  --template TEMPLATE, -t TEMPLATE
                        Jinja template for CSS output on stdout.
  --template-path TEMPLATE_PATH, -p TEMPLATE_PATH
                        Jinja template path for CSS output on stdout.
  --verbose             Make output verbose.
  --version             show program's version number and exit


Documentation
=============


https://python-css-sprite.readthedocs.io/


Development
===========

To run all the tests run::

    tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
    :widths: 10 90
    :stub-columns: 1

    - - Windows
      - ::

            set PYTEST_ADDOPTS=--cov-append
            tox

    - - Other
      - ::

            PYTEST_ADDOPTS=--cov-append tox


Changelog
=========

0.1.1 (2022-04-18)
------------------

* Remove the universal flag (don't produce py2.py3 wheels since
  py2 isn't supported anyway).

0.1.0 (2022-04-18)
------------------

* First release on PyPI.


