django-redis-session-store


Namedjango-redis-session-store JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryA Django session backend with Redis storage.
upload_time2023-08-06 13:08:23
maintainer
docs_urlNone
author
requires_python
licenseMIT License Copyright (c) 2023 Ömer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords django session redis store
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Django Redis Session Store

Django Redis Session is a Django session backend that uses Redis as its session store. This package allows multiple Django applications to share user sessions by using the same Redis database as a common session store.

## Installation

You can install Django Redis Session with pip:

```bash
pip install django_redis_session_store
```
## Configuration
To use Django Redis Session, you need to configure several settings in your Django project's settings.py file:

```python

SESSION_ENGINE = 'django_redis_session_store.session_store'
SESSION_REDIS_HOST = 'localhost'
SESSION_REDIS_PORT = 6379
SESSION_REDIS_DB = 0
SESSION_REDIS_PASSWORD = 'password'
SESSION_REDIS_USER = 'user'
SESSION_REDIS_PREFIX = 'session'
SESSION_REDIS_SOCKET_TIMEOUT = 1800
SESSION_REDIS_TLS = False
```
Please replace the above settings with the actual configuration details of your Redis server.

## Usage
Once Django Redis Session is installed and configured, you can use Django sessions as you would normally. The session data is stored in Redis and can be shared between multiple Django applications.

## Use Case
Imagine that you have two Django applications, App1 and App2, both of which require user authentication. When a user logs into App1, a new session is created and stored in the Redis server. Later, the same user tries to access App2. Since App2 uses the same Redis server for session storage, it recognizes the user's session and does not require the user to log in again.

This shared session feature is particularly useful in microservices architectures, where you might have multiple services that each require user authentication.

## License
This project is licensed under the MIT license. For more details, see the LICENSE file.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-redis-session-store",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django,session,redis,store",
    "author": "",
    "author_email": "\u00d6mer Alk\u0131n <omeralkin7@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/db/d9/f5a0a37ccd8c33183e873b5440b34023f7a0dab8910b2313157914b7064e/django-redis-session-store-0.1.1.tar.gz",
    "platform": null,
    "description": "# Django Redis Session Store\n\nDjango Redis Session is a Django session backend that uses Redis as its session store. This package allows multiple Django applications to share user sessions by using the same Redis database as a common session store.\n\n## Installation\n\nYou can install Django Redis Session with pip:\n\n```bash\npip install django_redis_session_store\n```\n## Configuration\nTo use Django Redis Session, you need to configure several settings in your Django project's settings.py file:\n\n```python\n\nSESSION_ENGINE = 'django_redis_session_store.session_store'\nSESSION_REDIS_HOST = 'localhost'\nSESSION_REDIS_PORT = 6379\nSESSION_REDIS_DB = 0\nSESSION_REDIS_PASSWORD = 'password'\nSESSION_REDIS_USER = 'user'\nSESSION_REDIS_PREFIX = 'session'\nSESSION_REDIS_SOCKET_TIMEOUT = 1800\nSESSION_REDIS_TLS = False\n```\nPlease replace the above settings with the actual configuration details of your Redis server.\n\n## Usage\nOnce Django Redis Session is installed and configured, you can use Django sessions as you would normally. The session data is stored in Redis and can be shared between multiple Django applications.\n\n## Use Case\nImagine that you have two Django applications, App1 and App2, both of which require user authentication. When a user logs into App1, a new session is created and stored in the Redis server. Later, the same user tries to access App2. Since App2 uses the same Redis server for session storage, it recognizes the user's session and does not require the user to log in again.\n\nThis shared session feature is particularly useful in microservices architectures, where you might have multiple services that each require user authentication.\n\n## License\nThis project is licensed under the MIT license. For more details, see the LICENSE file.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 \u00d6mer  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A Django session backend with Redis storage.",
    "version": "0.1.1",
    "project_urls": {
        "Documentation": "https://github.com/mrlkn/django-redis-session/blob/master/README.md",
        "Home": "https://github.com/mrlkn/django-redis-session",
        "Source": "https://github.com/mrlkn/django-redis-session/tree/master/django_redis_session_store"
    },
    "split_keywords": [
        "django",
        "session",
        "redis",
        "store"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4b1e670a997e231a554165eb214db7e0c866c8c0c31c02d074f82acef68d088b",
                "md5": "67847c4894be57b14848a99e22f8b12e",
                "sha256": "b9587531efa9ef5d5b2e5b40e39b8a51dae1c792706ff6c74ac92ac52ca2f69f"
            },
            "downloads": -1,
            "filename": "django_redis_session_store-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "67847c4894be57b14848a99e22f8b12e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6786,
            "upload_time": "2023-08-06T13:08:22",
            "upload_time_iso_8601": "2023-08-06T13:08:22.058176Z",
            "url": "https://files.pythonhosted.org/packages/4b/1e/670a997e231a554165eb214db7e0c866c8c0c31c02d074f82acef68d088b/django_redis_session_store-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dbd9f5a0a37ccd8c33183e873b5440b34023f7a0dab8910b2313157914b7064e",
                "md5": "bd064e276e47a895cf6df22aa9578030",
                "sha256": "79bf3d861752c6b51f8637d68e85095b133c6159fc3e905544f0dc462f270235"
            },
            "downloads": -1,
            "filename": "django-redis-session-store-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bd064e276e47a895cf6df22aa9578030",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5105,
            "upload_time": "2023-08-06T13:08:23",
            "upload_time_iso_8601": "2023-08-06T13:08:23.864400Z",
            "url": "https://files.pythonhosted.org/packages/db/d9/f5a0a37ccd8c33183e873b5440b34023f7a0dab8910b2313157914b7064e/django-redis-session-store-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-06 13:08:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mrlkn",
    "github_project": "django-redis-session",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-redis-session-store"
}
        
Elapsed time: 0.10625s