{"id":13491042,"url":"https://github.com/nigma/django-session-activity","last_synced_at":"2025-03-21T22:31:41.849Z","repository":{"id":13468984,"uuid":"16158939","full_name":"nigma/django-session-activity","owner":"nigma","description":"List recent account activity and sign-out from all sessions opened on other computers","archived":false,"fork":false,"pushed_at":"2018-03-03T16:17:35.000Z","size":318,"stargazers_count":62,"open_issues_count":4,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-14T08:22:36.602Z","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/nigma.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-23T01:50:18.000Z","updated_at":"2023-05-24T10:08:56.000Z","dependencies_parsed_at":"2022-07-30T15:08:09.138Z","dependency_job_id":null,"html_url":"https://github.com/nigma/django-session-activity","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-session-activity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-session-activity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-session-activity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fdjango-session-activity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigma","download_url":"https://codeload.github.com/nigma/django-session-activity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880281,"owners_count":20525505,"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-07-31T19:00:53.049Z","updated_at":"2025-03-21T22:31:41.397Z","avatar_url":"https://github.com/nigma.png","language":"Python","funding_links":[],"categories":["Libs"],"sub_categories":["Session management"],"readme":"=======================\ndjango-session-activity\n=======================\n\n.. image:: https://pypip.in/v/django-session-activity/badge.png\n    :target: https://pypi.python.org/pypi/django-session-activity/\n    :alt: Latest Version\n\n.. image:: https://pypip.in/d/django-session-activity/badge.png\n    :target: https://pypi.python.org/pypi/django-session-activity/\n    :alt: Downloads\n\n.. image:: https://pypip.in/license/django-session-activity/badge.png\n    :target: https://pypi.python.org/pypi/django-session-activity/\n    :alt: License\n\n.. image:: http://b.repl.ca/v1/created_by-nigma-72a4b1.png\n    :target: http://en.ig.ma/\n    :alt: Built by\n\nList all active sessions and sign-out from all sessions opened on other computers.\n\nDeveloped at `en.ig.ma software shop \u003chttp://en.ig.ma\u003e`_.\n\nOverview\n--------\n\nThis app records and shows last session activity and allows users to\nsign-out from all active sessions, even remote ones.\n\nIn other words, it handles the following use case:\n\n.. pull-quote::\n\n    You come back home and realize that you forgot to\n    log out on your work/university/other remote computer. What now?\n\n    You take a look at the recent active sessions for your account\n    and click a single button to deactivate all sessions\n    opened on other computers.\n\n.. image:: http://i.imgur.com/7LOMmJL.png\n\n\nQuickstart\n----------\n\n1. Include ``django-session-activity`` in your ``requirements.txt`` file.\n\n2. Add ``session_activity`` to ``INSTALLED_APPS`` and migrate/syncdb.\n\n3. Add ``session_activity.middleware.SessionActivityMiddleware`` to ``MIDDLEWARE_CLASSES``\n   after the ``django.contrib.sessions.middleware.SessionMiddleware`` and\n   ``django.contrib.auth.middleware.AuthenticationMiddleware`` middleware classes.\n\n4. Add url config for session list and sign-out views:\n\n    .. code-block:: python\n\n        url(r'^sessions/', include('session_activity.urls')),\n\n   Then link to the main view using ``{% url \"session_activity_list\" %}`` template tag.\n\n5. Optionally copy \u0026 modify the ``session_list.html`` template\n   to match your look and feel expectations.\n\nDependencies\n------------\n\n``django-session-activity`` depends on ``django\u003e=1.5.0``, ``django-appconf\u003e=0.6``\nand ``python-dateutil``.\n\nDocumentation\n-------------\n\nThe full documentation is at http://django-session-activity.rtfd.org (TODO).\n\nThere's also an instant demo example that can be run from the cloned repository::\n\n    python demo.py\n\nLicense\n-------\n\n`django-session-activity` is released under the MIT license.\n\nOther Resources\n---------------\n\n- GitHub repository - https://github.com/nigma/django-session-activity\n- PyPi Package site - http://pypi.python.org/pypi/django-session-activity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigma%2Fdjango-session-activity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigma%2Fdjango-session-activity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigma%2Fdjango-session-activity/lists"}