{"id":18264468,"url":"https://github.com/pylons/plaster_pastedeploy","last_synced_at":"2025-04-04T21:30:29.333Z","repository":{"id":57453336,"uuid":"60292293","full_name":"Pylons/plaster_pastedeploy","owner":"Pylons","description":"A PasteDeploy binding to the plaster configuration loader.","archived":false,"fork":false,"pushed_at":"2024-04-13T19:28:42.000Z","size":132,"stargazers_count":7,"open_issues_count":2,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-14T13:41:35.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pylons.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-02T19:40:32.000Z","updated_at":"2024-06-18T21:36:12.728Z","dependencies_parsed_at":"2024-04-13T01:24:15.288Z","dependency_job_id":"5cafce3a-5f12-4a0b-8db6-97b74bce7100","html_url":"https://github.com/Pylons/plaster_pastedeploy","commit_stats":{"total_commits":86,"total_committers":6,"mean_commits":"14.333333333333334","dds":0.2093023255813954,"last_synced_commit":"c0a146cdfac61781057ecaaa1b7938ef53dae9af"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fplaster_pastedeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fplaster_pastedeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fplaster_pastedeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fplaster_pastedeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pylons","download_url":"https://codeload.github.com/Pylons/plaster_pastedeploy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247251957,"owners_count":20908599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:14:43.293Z","updated_at":"2025-04-04T21:30:28.959Z","avatar_url":"https://github.com/Pylons.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===================\nplaster_pastedeploy\n===================\n\n.. image:: https://img.shields.io/pypi/v/plaster_pastedeploy.svg\n        :target: https://pypi.python.org/pypi/plaster_pastedeploy\n\n.. image:: https://github.com/Pylons/plaster_pastedeploy/workflows/Build%20and%20test/badge.svg?branch=main\n        :target: https://github.com/Pylons/plaster_pastedeploy/actions?query=workflow%3A%22Build+and+test%22\n        :alt: main CI Status\n\n``plaster_pastedeploy`` is a plaster_ plugin that provides a ``plaster.Loader``\nthat can parse ini files according to the standard set by PasteDeploy_. It\nsupports the ``wsgi`` plaster protocol, implementing the\n``plaster.protocols.IWSGIProtocol`` interface.\n\nUsage\n=====\n\nApplications should use ``plaster_pastedeploy`` to load settings from named\nsections in a configuration source (usually a file).\n\n- Please look at the documentation for plaster_ on how to integrate this\n  loader into your application.\n\n- Please look at the documentation for PasteDeploy_ on the specifics of the\n  supported INI file format.\n\nMost applications will want to use\n``plaster.get_loader(uri, protocols=['wsgi'])`` to get this loader. It then\nexposes ``get_wsgi_app``, ``get_wsgi_app_settings``, ``get_wsgi_filter`` and\n``get_wsgi_server``.\n\n.. code-block:: python\n\n    import plaster\n\n    loader = plaster.get_loader('development.ini', protocols=['wsgi'])\n    # to get any section out of the config file\n    settings = loader.get_settings('app:main')\n\n    # to get settings for a WSGI app\n    app_config = loader.get_wsgi_app_settings()  # defaults to main\n\n    # to get an actual WSGI app\n    app = loader.get_wsgi_app()  # defaults to main\n\n    # to get a filter and compose it with an app\n    filter = loader.get_wsgi_filter('filt')\n    app = filter(app)\n\n    # to get a WSGI server\n    server = loader.get_wsgi_server()  # defaults to main\n\n    # to start the WSGI server\n    server(app)\n\nAny ``plaster.PlasterURL`` options are forwarded as defaults to the loader.\nSome examples are below:\n\n- ``development.ini#myapp``\n\n- ``development.ini?http_port=8080#main``\n\n- ``pastedeploy+ini:///path/to/development.ini``\n\n- ``pastedeploy+ini://development.ini#foo``\n\n- ``egg:MyApp?debug=false#foo``\n\n.. _PasteDeploy: https://pastedeploy.readthedocs.io/en/latest/\n.. _plaster: https://docs.pylonsproject.org/projects/plaster/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpylons%2Fplaster_pastedeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpylons%2Fplaster_pastedeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpylons%2Fplaster_pastedeploy/lists"}