renderj2


Namerenderj2 JSON
Version 1.2.2 PyPI version JSON
download
home_page
SummarySimplate template rensder usesd jinja2
upload_time2023-11-20 08:56:42
maintainer
docs_urlNone
authorKAWAI Shun
requires_python>=3.9,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyrender

jinja2を使った簡単なテンプレートレンダー
パッケージングの練習に利用

``` console
$ renderj2 --help
Usage: renderj2 [OPTIONS] TEMPLATE_FILE

  Rendre Jinja2 tempalte

Options:
  -v, --varsfile PATH  vars file path for jinja2
  -o, --output PATH    output file
  --loglevel LVL       Either CRITICAL, ERROR, WARNING, INFO or DEBUG
                       [default: INFO]
  -h, --help           Show this message and exit.
  -V, --version        Show the version and exit.
```

# 使い方

``` console
# renderj2 --vars vars.yml template.j2
```

上記のように実行すると、Jinja2の形式で書かれた`tempalte.j2`を
`vars.yml`の変数を用いてレンダリングします。

レンダリング結果はデフォルトで標準出力に出力されます。
`--output` オプションを指定することで指定のファイルに出力することも可能です。

[Jinja2公式ドキュメント](http://jinja.pocoo.org/docs/2.10/templates/)

# 開発

## Require

  * python3
  * Poetry

## テスト

``` console
$ poetry poe test
```

## ビルド

``` console
$ poetry build
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "renderj2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "KAWAI Shun",
    "author_email": "mypaceshun@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/62/78/25e6de379799138087405e0a50dba934fe81bf28dff1cc5541e38827c34e/renderj2-1.2.2.tar.gz",
    "platform": null,
    "description": "# pyrender\n\njinja2\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30ec\u30f3\u30c0\u30fc\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u306e\u7df4\u7fd2\u306b\u5229\u7528\n\n``` console\n$ renderj2 --help\nUsage: renderj2 [OPTIONS] TEMPLATE_FILE\n\n  Rendre Jinja2 tempalte\n\nOptions:\n  -v, --varsfile PATH  vars file path for jinja2\n  -o, --output PATH    output file\n  --loglevel LVL       Either CRITICAL, ERROR, WARNING, INFO or DEBUG\n                       [default: INFO]\n  -h, --help           Show this message and exit.\n  -V, --version        Show the version and exit.\n```\n\n# \u4f7f\u3044\u65b9\n\n``` console\n# renderj2 --vars vars.yml template.j2\n```\n\n\u4e0a\u8a18\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308b\u3068\u3001Jinja2\u306e\u5f62\u5f0f\u3067\u66f8\u304b\u308c\u305f`tempalte.j2`\u3092\n`vars.yml`\u306e\u5909\u6570\u3092\u7528\u3044\u3066\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\n\n\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7d50\u679c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6a19\u6e96\u51fa\u529b\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\n`--output` \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u6307\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\n\n[Jinja2\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8](http://jinja.pocoo.org/docs/2.10/templates/)\n\n# \u958b\u767a\n\n## Require\n\n  * python3\n  * Poetry\n\n## \u30c6\u30b9\u30c8\n\n``` console\n$ poetry poe test\n```\n\n## \u30d3\u30eb\u30c9\n\n``` console\n$ poetry build\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simplate template rensder usesd jinja2",
    "version": "1.2.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f8276b730af972f15c92adc99f09f157f036b53e818869f514ce003e28607a6",
                "md5": "d07d82fae2e7dd921bd3cf4418e2ff79",
                "sha256": "9939ba41725d8595a54586bef4b67d2835d36376a802dfce1e684e4deb1c1a5a"
            },
            "downloads": -1,
            "filename": "renderj2-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d07d82fae2e7dd921bd3cf4418e2ff79",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 3911,
            "upload_time": "2023-11-20T08:56:41",
            "upload_time_iso_8601": "2023-11-20T08:56:41.600916Z",
            "url": "https://files.pythonhosted.org/packages/6f/82/76b730af972f15c92adc99f09f157f036b53e818869f514ce003e28607a6/renderj2-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "627825e6de379799138087405e0a50dba934fe81bf28dff1cc5541e38827c34e",
                "md5": "53eb03cf48931dcc4aaa961f9996646b",
                "sha256": "a83d9d5dc647798c1b41db5245194c4d9157ed385bc55efc77819cf75a2b100b"
            },
            "downloads": -1,
            "filename": "renderj2-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "53eb03cf48931dcc4aaa961f9996646b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 3483,
            "upload_time": "2023-11-20T08:56:42",
            "upload_time_iso_8601": "2023-11-20T08:56:42.864498Z",
            "url": "https://files.pythonhosted.org/packages/62/78/25e6de379799138087405e0a50dba934fe81bf28dff1cc5541e38827c34e/renderj2-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-20 08:56:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "renderj2"
}
        
Elapsed time: 0.16524s