{ "info": { "author": "OCHIAI, Gouji", "author_email": "gjo.ext@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Pyramid", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": ".. -*- coding: utf-8 -*-\n\n=============\npyramid_boto3\n=============\n\nAdapt ``boto3`` to ``pyramid`` with ``pyramid_services``\n\n\nInstall\n=======\n\nfrom PyPI::\n\n pip install pyramid_boto3\n\n\nHow to use\n==========\n\nIn configuration phase, include ``pyramid_boto3`` after ``pyramid_services``::\n\n from pyramid.config import Configurator\n\n def main(global_config, **settings):\n config = Configurator(settings=settings)\n config.include('pyramid_boto3')\n\n # Your configuration\n\n return config.make_wsgi_app()\n\n\nIn view or traversing, you can get predefined ``boto3``'s ``Client`` or\n``Resource`` instances through ``request.find_service()``::\n\n @view_config()\n def some_view(request):\n client = request.find_service(name='boto3.client.filepot')\n client.list_buckets()\n\n\nYou need to define servie's name (ex/ ``'boto3.client.filepot'``) and\narguments in your config file::\n\n [app:main]\n\n # your-config\n\n boto3.cache_factory = threading.local\n boto3.sessions = mysession\n boto3.session.mysession.core.config_file = /path/to/aws/config.ini\n boto3.session.mysession.core.credentials_file = /path/to/aws/credentials.ini\n boto3.session.mysession.core.profile = prof1\n boto3.clients = filepot\n boto3.client.filepot.session = mysession\n boto3.client.filepot.service_name = s3\n\n\nConfiguration Keys\n==================\n\n+-----------------------------+-----------------------------------------------+\n| boto3. | namespace prefix |\n+-----------------------------+-----------------------------------------------+\n| boto3.cache_factory | full qualified callable name. |\n| | default is ``threading.local``. |\n| | if you would like to disable, set blank |\n+-----------------------------+-----------------------------------------------+\n| boto3.sessions | list of session's names |\n+-----------------------------+-----------------------------------------------+\n| boto3.session.NAME.* | See: ``boto3.session.Session``'s docs. |\n| | param ``botocore_session`` are created from |\n| | blow ``core.`` sub params. |\n+-----------------------------+-----------------------------------------------+\n| boto3.session.NAME.core. | See: ``botocore.session.Session``'s docs. |\n+-----------------------------+-----------------------------------------------+\n| boto3.configs | list of client config's names |\n+-----------------------------+-----------------------------------------------+\n| boto3.config.NAME.* | See: ``botocore.config.Config``'s docs. |\n+-----------------------------+-----------------------------------------------+\n| boto3.config.NAME.s3.* | See: ``s3`` parameter in |\n| | ``botocore.config.Config``'s docs. |\n+-----------------------------+-----------------------------------------------+\n| boto3.clients | list of client's names |\n+-----------------------------+-----------------------------------------------+\n| boto3.client.NAME.session | name of session to create client. |\n+-----------------------------+-----------------------------------------------+\n| boto3.client.NAME.config | (optional) name of config to create client. |\n+-----------------------------+-----------------------------------------------+\n| boto3.client.NAME.* | See: ``boto3.session.Session.client()``'s |\n| | docs. |\n+-----------------------------+-----------------------------------------------+\n| boto3.resources | list of resource's names. |\n+-----------------------------+-----------------------------------------------+\n| boto3.resource.NAME.session | name of session to create resource. |\n+-----------------------------+-----------------------------------------------+\n| boto3.resource.NAME.config | (optional) name of config to create resource. |\n+-----------------------------+-----------------------------------------------+\n| boto3.resource.NAME.* | See: ``boto3.session.Session.resource()``'s |\n| | docs. |\n+-----------------------------+-----------------------------------------------+\n\n\nChange History\n==============\n\n0.3 - 2018-11-06\n----------------\n- fixes imcompatibilities with botocore-1.12.38 later (#1)\n- include pre-requirements (``pyramid_services``)\n- drop python-3.3 support, add python-3.7 support\n- blackify and linted\n\n0.2.1 - 2017-06-14\n------------------\n- fixes resource cache\n\n0.2 - 2017-06-14\n----------------\n- ``botocore.session.Session.create_client`` does not support threading. See: boto/botocore#1033\n- per-thread cache.\n- tox support.\n- universal wheel support.\n\n0.1 - 2016-04-09\n----------------\n- Initial release.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gjo/pyramid_boto3", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pyramid_boto3", "package_url": "https://pypi.org/project/pyramid_boto3/", "platform": "", "project_url": "https://pypi.org/project/pyramid_boto3/", "project_urls": { "Homepage": "https://github.com/gjo/pyramid_boto3" }, "release_url": "https://pypi.org/project/pyramid_boto3/0.3/", "requires_dist": [ "boto3", "botocore", "pyramid", "pyramid-services (<2.0); python_version<\"3.4\"", "pyramid-services; python_version>=\"3.4\"" ], "requires_python": "", "summary": "Adapt boto3 to pyramid", "version": "0.3" }, "last_serial": 4457477, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d1f8eccb43d78dcd333570a107ac384a", "sha256": "50a547fa32135cf46b878695c838ee4d2c152717483a6815e6159abd6428d378" }, "downloads": -1, "filename": "pyramid_boto3-0.1.tar.gz", "has_sig": false, "md5_digest": "d1f8eccb43d78dcd333570a107ac384a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5863, "upload_time": "2016-04-09T09:35:49", "url": "https://files.pythonhosted.org/packages/62/b0/587bc341f1fd92e450761c0a7364f41b19638f91137a0f907c1d025ed444/pyramid_boto3-0.1.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "bcbe5222e5b1496094bb6270c4d80125", "sha256": "cc65742f274be859d6186dcbf11ab43030c3ab97bd9675c529e7c63b2cff2997" }, "downloads": -1, "filename": "pyramid_boto3-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bcbe5222e5b1496094bb6270c4d80125", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7958, "upload_time": "2017-06-14T04:00:06", "url": "https://files.pythonhosted.org/packages/80/ea/ea449edb39d6859abb2f972a8d498ed84832702440cb972934c484974fb9/pyramid_boto3-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "08f12cf6b585dee54e17c034c16e8f4e", "sha256": "a1904392da82843eb59d3926ab0396bab136c27d659fea044b5205a468cfe9d0" }, "downloads": -1, "filename": "pyramid_boto3-0.2.1.tar.gz", "has_sig": false, "md5_digest": "08f12cf6b585dee54e17c034c16e8f4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6738, "upload_time": "2017-06-14T04:00:04", "url": "https://files.pythonhosted.org/packages/bb/29/56b75bd1ebe92cb1a4d99446f7e2255f4c81521f634996a0a87bf6552399/pyramid_boto3-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c8e4616f5c8904c664a79debbaed7d3c", "sha256": "41eef273f127411d24f825215a9c01eb7bc3e3d5150188be64585c30528491f1" }, "downloads": -1, "filename": "pyramid_boto3-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c8e4616f5c8904c664a79debbaed7d3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8146, "upload_time": "2018-11-06T13:52:32", "url": "https://files.pythonhosted.org/packages/93/01/b849bb7fffae93bee4f0049d91d58336361d02f66fda809953a3a50d6010/pyramid_boto3-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc4fb7c2c26a60ba03a52fd31261d72b", "sha256": "929a67d6e1d1351f6ae861fa5242e60924e21b453df1d600e3e365f7a074cbd0" }, "downloads": -1, "filename": "pyramid_boto3-0.3.tar.gz", "has_sig": false, "md5_digest": "bc4fb7c2c26a60ba03a52fd31261d72b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7836, "upload_time": "2018-11-06T13:52:34", "url": "https://files.pythonhosted.org/packages/8c/ce/40171657e0db0ad3dee85c2f4b2e1e1d638bb39b40d69f750f7d09571de5/pyramid_boto3-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c8e4616f5c8904c664a79debbaed7d3c", "sha256": "41eef273f127411d24f825215a9c01eb7bc3e3d5150188be64585c30528491f1" }, "downloads": -1, "filename": "pyramid_boto3-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c8e4616f5c8904c664a79debbaed7d3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8146, "upload_time": "2018-11-06T13:52:32", "url": "https://files.pythonhosted.org/packages/93/01/b849bb7fffae93bee4f0049d91d58336361d02f66fda809953a3a50d6010/pyramid_boto3-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc4fb7c2c26a60ba03a52fd31261d72b", "sha256": "929a67d6e1d1351f6ae861fa5242e60924e21b453df1d600e3e365f7a074cbd0" }, "downloads": -1, "filename": "pyramid_boto3-0.3.tar.gz", "has_sig": false, "md5_digest": "bc4fb7c2c26a60ba03a52fd31261d72b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7836, "upload_time": "2018-11-06T13:52:34", "url": "https://files.pythonhosted.org/packages/8c/ce/40171657e0db0ad3dee85c2f4b2e1e1d638bb39b40d69f750f7d09571de5/pyramid_boto3-0.3.tar.gz" } ] }