{"id":18937468,"url":"https://github.com/bottlepy/bottle-beaker","last_synced_at":"2025-04-15T18:32:06.389Z","repository":{"id":15415093,"uuid":"18147250","full_name":"bottlepy/bottle-beaker","owner":"bottlepy","description":"  Bottle plugin to session and caching library with WSGI Middleware","archived":false,"fork":false,"pushed_at":"2016-07-20T19:29:02.000Z","size":6,"stargazers_count":18,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T00:28:36.770Z","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/bottlepy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-26T17:36:00.000Z","updated_at":"2024-03-03T03:12:20.000Z","dependencies_parsed_at":"2022-07-22T15:48:09.920Z","dependency_job_id":null,"html_url":"https://github.com/bottlepy/bottle-beaker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-beaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-beaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-beaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-beaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bottlepy","download_url":"https://codeload.github.com/bottlepy/bottle-beaker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129235,"owners_count":21217312,"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-08T12:11:17.474Z","updated_at":"2025-04-15T18:32:01.380Z","avatar_url":"https://github.com/bottlepy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============\nbottle-beaker\n=============\n\nBottle plugin to session and caching library with WSGI Middleware\n\n\nExample\n-------\n\n.. code-block:: python\n\n    import bottle\n    from bottle.ext import beaker\n\n    session_opts = {\n        'session.type': 'file',\n        'session.cookie_expires': 300,\n        'session.data_dir': './data',\n        'session.auto': True\n    }\n\n    app = beaker.middleware.SessionMiddleware(bottle.app(), session_opts)\n\n    @bottle.route('/test')\n    def test():\n        s = bottle.request.environ.get('beaker.session')\n        s['test'] = s.get('test',0) + 1\n        s.save()\n        return 'Test counter: %d' % s['test']\n\n    bottle.run(app=app)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlepy%2Fbottle-beaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbottlepy%2Fbottle-beaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlepy%2Fbottle-beaker/lists"}