{ "info": { "author": "Vince Veselosky", "author_email": "vince@veselosky.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "==============================================================\njinja2_s3loader: A Jinja2 template loader for AWS S3.\n==============================================================\n\n**Project Status:** Beta. It's pretty simple and works for me, but not heavily\ntested in production use. Caveat Emptor.\n\nUsage\n--------------------------------\n\nThis library relies on the `boto3`_ library for S3 access, so you will need to\n`configure your AWS credentials`_ first. Then, provide your S3 bucket name and\noptional template directory name when instantiating the loader::\n\n #!python\n from jinja2 import Environment\n from jinja2_s3loader import S3loader\n\n s3template_dir = \"test/templates\" # trailing slash not required, but ok\n j2 = Environment(loader=S3loader('my-s3-bucket-name', s3template_dir))\n t = j2.get_template('mytemplate.j2') # loads test/templates/mytemplate.j2\n print(t.render({}))\n\n.. _boto3: https://boto3.readthedocs.org/en/latest/index.html\n.. _configure your AWS credentials: https://boto3.readthedocs.org/en/latest/guide/configuration.html\n\nNote that, although S3 does not have real directories and treats the prefix\nstring as purely a sub-string, this S3loader will treat the prefix as a\nsubdirectory. That is, it will add a trailing slash if none is provided.\n\nRemember, accessing files over S3 costs money. The loader currently does not\nsupport live reloading. I built this to support accessing S3 templates from AWS\nLambda functions, so those constraints are fine with me, but your use case may\nbe different. \n\nContributions welcome. File a Github issue to report a bug.\n\nKnown Issues\n--------------------------------\n* The loader blindly attempts to decode all templates as UTF-8. If your template\n is encoded with an incompatible encoding, it WILL be broken. PR's welcome.\n\nLicense\n--------------------------------\n\nCopyright 2015 Vince Veselosky and contributors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/veselosky/jinja2_s3loader", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "jinja2-s3loader", "package_url": "https://pypi.org/project/jinja2-s3loader/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jinja2-s3loader/", "project_urls": { "Homepage": "https://github.com/veselosky/jinja2_s3loader" }, "release_url": "https://pypi.org/project/jinja2-s3loader/0.3.0/", "requires_dist": [ "boto3", "jinja2" ], "requires_python": "", "summary": "A Jinja2 template loader for AWS S3.", "version": "0.3.0" }, "last_serial": 2021716, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1720c273648291dd8e941177f60625c0", "sha256": "f73966acc4fbc9f126c3bda2fef00a0d3043e2e3489b1335c2aeaa671684e1c7" }, "downloads": -1, "filename": "jinja2_s3loader-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1720c273648291dd8e941177f60625c0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5589, "upload_time": "2015-11-15T15:36:29", "url": "https://files.pythonhosted.org/packages/5e/f2/9720d38ca07dfc0fe8c05295a98805ddf9b2f14ae712ab35f654a3fe33c8/jinja2_s3loader-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d423cb2ef9577da795933455698cd3", "sha256": "13773597cc6b9c9673ae637c720efa6cc1155db830934b1a5fd30db61bed9ed2" }, "downloads": -1, "filename": "jinja2_s3loader-0.1.0.tar.gz", "has_sig": false, "md5_digest": "23d423cb2ef9577da795933455698cd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7177, "upload_time": "2015-11-15T15:36:44", "url": "https://files.pythonhosted.org/packages/af/32/f48e45699ceeb360385aa9d2934e5e5e1092c41b191e44c6070212368122/jinja2_s3loader-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1b98532edcdc0199f0573f2995567263", "sha256": "52b4316d81e3599794c8fa5fd296bfc4ff9c9ffa9c372103fe323e87d1b97387" }, "downloads": -1, "filename": "jinja2_s3loader-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b98532edcdc0199f0573f2995567263", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5980, "upload_time": "2015-11-23T02:51:26", "url": "https://files.pythonhosted.org/packages/6a/84/2e7d8981718c9e3241f5297555f71591ad5895a7e1d588cc4a22fece1b1e/jinja2_s3loader-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44d85d5dbd4d7e547c2b08ede731e57f", "sha256": "f62610e50b62a78428b2593848d2d1ea0f57f715f24a03b53a0eaf3a11d24dd5" }, "downloads": -1, "filename": "jinja2_s3loader-0.2.0.tar.gz", "has_sig": false, "md5_digest": "44d85d5dbd4d7e547c2b08ede731e57f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7518, "upload_time": "2015-11-23T02:51:36", "url": "https://files.pythonhosted.org/packages/8b/42/626eb981ccf59f72d5bf5a39ace0acf5d89b5569ccc32578538729ba469e/jinja2_s3loader-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "c971f0088191eff7ac208eb2090523a4", "sha256": "27d2b34217056cf0a8f85d7628d84858860b5355176808d5f4fa490fa3670b1c" }, "downloads": -1, "filename": "jinja2_s3loader-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c971f0088191eff7ac208eb2090523a4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6363, "upload_time": "2016-03-22T23:28:14", "url": "https://files.pythonhosted.org/packages/32/6b/dad91b62c8e23c56f16a36d9145652d7a5c4fe561c3a8f6154fd4307216c/jinja2_s3loader-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1a249eedf412e083495f3c4d1c6cf17", "sha256": "86f305bec5936a85b1c9ef926e2809b2004fd5c9aba04a6597fc71126a300c7d" }, "downloads": -1, "filename": "jinja2_s3loader-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a1a249eedf412e083495f3c4d1c6cf17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7815, "upload_time": "2016-03-22T23:28:24", "url": "https://files.pythonhosted.org/packages/ea/b4/0003d70404e3242b9be2d196d50eac0a7d8174b1610b95a74b8903a130c2/jinja2_s3loader-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c971f0088191eff7ac208eb2090523a4", "sha256": "27d2b34217056cf0a8f85d7628d84858860b5355176808d5f4fa490fa3670b1c" }, "downloads": -1, "filename": "jinja2_s3loader-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c971f0088191eff7ac208eb2090523a4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6363, "upload_time": "2016-03-22T23:28:14", "url": "https://files.pythonhosted.org/packages/32/6b/dad91b62c8e23c56f16a36d9145652d7a5c4fe561c3a8f6154fd4307216c/jinja2_s3loader-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1a249eedf412e083495f3c4d1c6cf17", "sha256": "86f305bec5936a85b1c9ef926e2809b2004fd5c9aba04a6597fc71126a300c7d" }, "downloads": -1, "filename": "jinja2_s3loader-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a1a249eedf412e083495f3c4d1c6cf17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7815, "upload_time": "2016-03-22T23:28:24", "url": "https://files.pythonhosted.org/packages/ea/b4/0003d70404e3242b9be2d196d50eac0a7d8174b1610b95a74b8903a130c2/jinja2_s3loader-0.3.0.tar.gz" } ] }