{"id":19715660,"url":"https://github.com/pyx/sanic-cookiesession","last_synced_at":"2025-04-29T20:30:39.802Z","repository":{"id":20340788,"uuid":"89644996","full_name":"pyx/sanic-cookiesession","owner":"pyx","description":"Simple Cookie-based Session for Sanic","archived":false,"fork":false,"pushed_at":"2023-10-06T06:03:58.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T02:19:50.753Z","etag":null,"topics":["sanic","session"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyx.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":"2017-04-27T22:20:52.000Z","updated_at":"2022-03-29T02:54:00.000Z","dependencies_parsed_at":"2022-07-25T12:33:52.238Z","dependency_job_id":null,"html_url":"https://github.com/pyx/sanic-cookiesession","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/pyx%2Fsanic-cookiesession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fsanic-cookiesession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fsanic-cookiesession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fsanic-cookiesession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyx","download_url":"https://codeload.github.com/pyx/sanic-cookiesession/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251578254,"owners_count":21612000,"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":["sanic","session"],"created_at":"2024-11-11T22:39:05.524Z","updated_at":"2025-04-29T20:30:39.488Z","avatar_url":"https://github.com/pyx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========================================================\nSanic-CookieSession - Simple Cookie-based Session for Sanic\n===========================================================\n\nSanic-CookieSession implements a client side only, cookie-based session to be\nused with `Sanic`_.  Similar to the built-in session in Flask.\n\n.. warning::\n\n  The session cookie is signed cryptographically to prevent modification, but\n  the content is not encrypted, NEVER store information that need to be kept\n  secret.\n\n.. _Sanic: https://github.com/channelcat/sanic\n\n\nQuick Start\n===========\n\n\nInstallation\n------------\n\n.. code-block:: sh\n\n  pip install Sanic-CookieSession\n\n\nHow to use it\n-------------\n\n.. code-block:: python\n\n  from sanic import Sanic, response\n  import sanic_cookiesession\n\n  app = Sanic(__name__)\n  app.config['SESSION_COOKIE_SECRET_KEY'] = 'abcd'\n\n  sanic_cookiesession.setup(app)\n\n  @app.route('/')\n  def index(request):\n      session = request.ctx.session\n      session.setdefault('c', 0)\n      session['c'] += 1\n      return response.text(session['c'])\n\n  if __name__ == '__main__':\n      app.run(debug=True)\n\nThat's it.\n\nFor more details, please see documentation.\n\n\nLicense\n=======\n\nBSD New, see LICENSE for details.\n\n\nLinks\n=====\n\n- `Documentation \u003chttp://sanic-cookiesession.readthedocs.org/\u003e`_\n\n- `Issue Tracker \u003chttps://github.com/pyx/sanic-cookiesession/issues/\u003e`_\n\n- `Source Package @ PyPI \u003chttps://pypi.python.org/pypi/sanic-cookiesession/\u003e`_\n\n- `Mercurial Repository @ bitbucket\n  \u003chttps://bitbucket.org/pyx/sanic-cookiesession/\u003e`_\n\n- `Git Repository @ Github\n  \u003chttps://github.com/pyx/sanic-cookiesession/\u003e`_\n\n- `Git Repository @ Gitlab\n  \u003chttps://gitlab.com/pyx/sanic-cookiesession/\u003e`_\n\n- `Development Version\n  \u003chttp://github.com/pyx/sanic-cookiesession/zipball/master#egg=sanic-cookiesession-dev\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fsanic-cookiesession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyx%2Fsanic-cookiesession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fsanic-cookiesession/lists"}