whiteprints-template-context


Namewhiteprints-template-context JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
SummaryInterpolate variables and set Copier Jinja context
upload_time2024-11-13 13:55:20
maintainerRomain Brault
docs_urlNone
authorRomain Brault
requires_python<4.0,>=3.9
licenseMIT
keywords python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            <!--
SPDX-FileCopyrightText: © 2024 The "Whiteprints template context" contributors <whiteprints@pm.me>

SPDX-License-Identifier: CC-BY-NC-SA-4.0
-->

# Whiteprints template context

![Whiteprints template context banner](docs/_static/banner.svg)
<div align="center">
    <p>
        <em>
            Interpolate variables and set Copier Jinja context
        </em>
    </p>
    <p>
        <a href="https://www.python.org"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/whiteprints-template-context.svg?logo=Python&logoColor=ffd43b"/></a>
        <a href="https://pypi.org/project/whiteprints-template-context"><img alt="PyPI - Project Version" src="https://img.shields.io/pypi/v/whiteprints-template-context.svg?logo=PyPI&logoColor=ffd43b"/></a>
        <a href="https://spdx.org/licenses/MIT"><img alt="license badge" src="https://img.shields.io/badge/📝_License-MIT-4CAF50.svg"/></a>
        <a href="https://github.com/whiteprints/whiteprints-template-context/discussions"><img alt="GitHub Discussions" src="https://img.shields.io/github/discussions/whiteprints/whiteprints-template-context.svg?logo=GitHub"></a>
        <a href="https://spdx.dev/learn/areas-of-interest/licensing/"><img alt="SPDX Licensing" src="https://img.shields.io/badge/SPDX-licensing-0080FF.svg?logo=SPDX"/></a>
        <a href="https://www.contributor-covenant.org/version/2/1/code_of_conduct/"><img alt="contributor covenant badge" src="https://img.shields.io/badge/Contributor_Covenant-2.1-4BAAAA.svg?logo=contributorcovenant"/></a>
        <a href="https://codecov.io/gh/whiteprints/whiteprints-template-context" ><img alt="codecov badge" src="https://codecov.io/gh/whiteprints/whiteprints-template-context/graph/badge.svg?token="/></a>
    </p>
</div>

## Table of contents

- [Background](#background)
- [Usage](#usage)
- [Install](#install)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [Licensing](#licensing)

## Background

This package is an internal dependencies of Whiteprints template. It uses
Jinja2 extentions to prepare [Copier](https://github.com/copier-org/copier).
It also defines useful Jinja filters.

## Usage

To activate the template just add the following to copier.yml:

```yaml
_jinja_extensions:
  - whiteprints_template_context.context.ContextUpdater
  - whiteprints_template_context.filters.WhiteprintsFilters
```

This will enhance copier's context with additional variables and filters that
are required by Whiteprints templates.

## Install

See [INSTALL.md](https://github.com/whiteprints/whiteprints-template-context/blob/main/INSTALL.md).

## Maintainers

See [MAINTAINERS.md](https://github.com/whiteprints/whiteprints-template-context/blob/main/MAINTAINERS.md).

## Contributing

See [CONTRIBUTING.md](https://github.com/whiteprints/whiteprints-template-context/blob/main/CONTRIBUTING.md).

## Licensing

The _[Python]_ **code** of this project is distributed under license [MIT](https://spdx.org/licenses/MIT).

In case of doubt, please check the [SPDX] header of each individual source code file.

[Python]: https://www.python.org/
[SPDX]: https://spdx.dev/
[REUSE]: https://reuse.software/

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "whiteprints-template-context",
    "maintainer": "Romain Brault",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "Python",
    "author": "Romain Brault",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/56/fb/8498508eb141fd664aa11240b069103014ed9fbceac7205aca18519f06d1/whiteprints_template_context-0.3.0.tar.gz",
    "platform": null,
    "description": "<!--\nSPDX-FileCopyrightText: \u00a9 2024 The \"Whiteprints template context\" contributors <whiteprints@pm.me>\n\nSPDX-License-Identifier: CC-BY-NC-SA-4.0\n-->\n\n# Whiteprints template context\n\n![Whiteprints template context banner](docs/_static/banner.svg)\n<div align=\"center\">\n    <p>\n        <em>\n            Interpolate variables and set Copier Jinja context\n        </em>\n    </p>\n    <p>\n        <a href=\"https://www.python.org\"><img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/whiteprints-template-context.svg?logo=Python&logoColor=ffd43b\"/></a>\n        <a href=\"https://pypi.org/project/whiteprints-template-context\"><img alt=\"PyPI - Project Version\" src=\"https://img.shields.io/pypi/v/whiteprints-template-context.svg?logo=PyPI&logoColor=ffd43b\"/></a>\n        <a href=\"https://spdx.org/licenses/MIT\"><img alt=\"license badge\" src=\"https://img.shields.io/badge/\ud83d\udcdd_License-MIT-4CAF50.svg\"/></a>\n        <a href=\"https://github.com/whiteprints/whiteprints-template-context/discussions\"><img alt=\"GitHub Discussions\" src=\"https://img.shields.io/github/discussions/whiteprints/whiteprints-template-context.svg?logo=GitHub\"></a>\n        <a href=\"https://spdx.dev/learn/areas-of-interest/licensing/\"><img alt=\"SPDX Licensing\" src=\"https://img.shields.io/badge/SPDX-licensing-0080FF.svg?logo=SPDX\"/></a>\n        <a href=\"https://www.contributor-covenant.org/version/2/1/code_of_conduct/\"><img alt=\"contributor covenant badge\" src=\"https://img.shields.io/badge/Contributor_Covenant-2.1-4BAAAA.svg?logo=contributorcovenant\"/></a>\n        <a href=\"https://codecov.io/gh/whiteprints/whiteprints-template-context\" ><img alt=\"codecov badge\" src=\"https://codecov.io/gh/whiteprints/whiteprints-template-context/graph/badge.svg?token=\"/></a>\n    </p>\n</div>\n\n## Table of contents\n\n- [Background](#background)\n- [Usage](#usage)\n- [Install](#install)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [Licensing](#licensing)\n\n## Background\n\nThis package is an internal dependencies of Whiteprints template. It uses\nJinja2 extentions to prepare [Copier](https://github.com/copier-org/copier).\nIt also defines useful Jinja filters.\n\n## Usage\n\nTo activate the template just add the following to copier.yml:\n\n```yaml\n_jinja_extensions:\n  - whiteprints_template_context.context.ContextUpdater\n  - whiteprints_template_context.filters.WhiteprintsFilters\n```\n\nThis will enhance copier's context with additional variables and filters that\nare required by Whiteprints templates.\n\n## Install\n\nSee [INSTALL.md](https://github.com/whiteprints/whiteprints-template-context/blob/main/INSTALL.md).\n\n## Maintainers\n\nSee [MAINTAINERS.md](https://github.com/whiteprints/whiteprints-template-context/blob/main/MAINTAINERS.md).\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/whiteprints/whiteprints-template-context/blob/main/CONTRIBUTING.md).\n\n## Licensing\n\nThe _[Python]_ **code** of this project is distributed under license [MIT](https://spdx.org/licenses/MIT).\n\nIn case of doubt, please check the [SPDX] header of each individual source code file.\n\n[Python]: https://www.python.org/\n[SPDX]: https://spdx.dev/\n[REUSE]: https://reuse.software/\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Interpolate variables and set Copier Jinja context",
    "version": "0.3.0",
    "project_urls": {
        "changelog": "https://github.com/whiteprints/whiteprints-template-context/releases",
        "discussions": "https://github.com/whiteprints/whiteprints-template-context/discussions",
        "documentation": "https://github.com/whiteprints/whiteprints-template-context",
        "download": "https://github.com/whiteprints/whiteprints-template-context/releases",
        "homepage": "https://github.com/whiteprints/whiteprints-template-context",
        "integration": "https://github.com/whiteprints/whiteprints-template-context/actions",
        "issues": "https://github.com/whiteprints/whiteprints-template-context/issues",
        "pypi": "https://pypi.org/project/whiteprints-template-context",
        "repository": "https://github.com/whiteprints/whiteprints-template-context"
    },
    "split_keywords": [
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d376eab34cd69c409417928a6b93ec5432232ea05ac581693cd4e4730c91d6e8",
                "md5": "45082454bfb04b150ca71b2b7627dcb4",
                "sha256": "d0a444d75ea967b93942c4f83d9441f30fa53e29364e2c96f31fb32b754a0a83"
            },
            "downloads": -1,
            "filename": "whiteprints_template_context-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "45082454bfb04b150ca71b2b7627dcb4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 14312,
            "upload_time": "2024-11-13T13:55:18",
            "upload_time_iso_8601": "2024-11-13T13:55:18.729837Z",
            "url": "https://files.pythonhosted.org/packages/d3/76/eab34cd69c409417928a6b93ec5432232ea05ac581693cd4e4730c91d6e8/whiteprints_template_context-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56fb8498508eb141fd664aa11240b069103014ed9fbceac7205aca18519f06d1",
                "md5": "a50fc77ece2c0a3066fa173f25d8b6a2",
                "sha256": "e67c3e3d8496b628f838fc1f4a6d34c35a785e442485a1420c6216ffd19e762e"
            },
            "downloads": -1,
            "filename": "whiteprints_template_context-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a50fc77ece2c0a3066fa173f25d8b6a2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 12867,
            "upload_time": "2024-11-13T13:55:20",
            "upload_time_iso_8601": "2024-11-13T13:55:20.670455Z",
            "url": "https://files.pythonhosted.org/packages/56/fb/8498508eb141fd664aa11240b069103014ed9fbceac7205aca18519f06d1/whiteprints_template_context-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 13:55:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "whiteprints",
    "github_project": "whiteprints-template-context",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "whiteprints-template-context"
}
        
Elapsed time: 0.97258s