{ "info": { "author": "Hodur Sigurdor Heidarsson", "author_email": "hodur@temposoftware.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-rest-sessions\n=======================\nRest based sessions backend for Django.\n\nPrerequisites\n-------------\nThis backend relies on `rest-sessions`_ for storing and managing sessions.\nNpm rest-sessions needs to be running and accessible at SESSION_URL.\n\n.. _rest-sessions: https://www.npmjs.com/package/rest-sessions\n\nRequirements\n------------\nThis package relies on the `requests`_ package. Make sure it is installed in your Django project:\n ``pip install requests``\n\n.. _requests: https://github.com/kennethreitz/requests\n\nInstall\n-------\nInstall with pip:\n ``pip install django-rest-sessions``\n\nConfigure\n---------\nAfter installing django-rest-sessions you must add a few settings to your\nsettings.py\n\n* Add ``rest_sessions`` as your session engine::\n\n SESSION_ENGINE = 'rest_sessions'\n\n* Add ``django.contrib.sessions.middleware.SessionMiddleware`` to\n MIDDLEWARE_CLASSES\n* Add the name of the session cookie for Django's session middleware::\n\n SESSION_COOKIE_NAME = 'session-cookie'\n\n* Add the path where npm rest-sessions is running::\n\n SESSION_URL = 'example.com/path/to/rest-sessions'\n\n* Add the app that is used in npm rest-sessions::\n\n SESSION_APP = 'mywebapp'\n\nUsage\n-----\nThis session backend is mostly intended to be used in a microservice\narchitecture and thus does not handle creating sessions since npm rest-sessions\nrequires a user key so it would only be possible to create a session within\nthe microservice that takes care of the users for your application.\nBecause this is intended to add sessions to requests to all microservices\nwritten in Django it is more applicable to create sessions once a user logs in\nor requests a web page and use this for services handling RESTful requests that\nsaid web page makes.\n\nTesting\n-------\nTo run tests the following packages are needed:\n\n * django\n\n * requests\n\n * requests_mock\n\nInstall them with:\n `pip install -r requirements.txt`\n\nRun the tests with:\n `python setup.py test` or\n `python setup.py xml_test` which generates an xml report", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://stash.temposoftware.com/projects/TMC/repos/django-rest-sessions/browse", "keywords": "django,sessions,", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-rest-sessions", "package_url": "https://pypi.org/project/django-rest-sessions/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-rest-sessions/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://stash.temposoftware.com/projects/TMC/repos/django-rest-sessions/browse" }, "release_url": "https://pypi.org/project/django-rest-sessions/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Rest Session Backend For Django", "version": "0.2.2" }, "last_serial": 2014139, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ab5612c81bd6bfc1d0adb7df61603fc3", "sha256": "be769df007b5f315cefd7a32e065cf73a18e5457271c05226629aab5fd92d753" }, "downloads": -1, "filename": "django-rest-sessions-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ab5612c81bd6bfc1d0adb7df61603fc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3737, "upload_time": "2015-09-04T16:13:54", "url": "https://files.pythonhosted.org/packages/c8/95/a84d2580d0ce86354ae25d83c66ed00e67b76430460138bca24dbd3dc07c/django-rest-sessions-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6a096abd7ce851a154e52be6d9dbf719", "sha256": "29370e8a8d3de62e6da3aeb4137c35d28ec02d676d1a4c2757ffa03adc489e72" }, "downloads": -1, "filename": "django-rest-sessions-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6a096abd7ce851a154e52be6d9dbf719", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3708, "upload_time": "2015-09-08T10:45:00", "url": "https://files.pythonhosted.org/packages/42/7f/8b25b129730e679c1cc91b39add81f0639ce8165cc421ac9bcf780e45665/django-rest-sessions-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b202322706c46de257d0675560ef8587", "sha256": "67db94d0f68c82055599e1f6ea3e1de24d79233a5992ff6d2e054ca883819c98" }, "downloads": -1, "filename": "django-rest-sessions-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b202322706c46de257d0675560ef8587", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3860, "upload_time": "2015-09-24T11:05:28", "url": "https://files.pythonhosted.org/packages/54/23/eb87da4745f3f2fbeebdd5a8f34221f9b03c3b56f83b9b00973220696f4e/django-rest-sessions-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "516e14f188d6bff6cd4b5af5f6c8a20f", "sha256": "9d4a47cf0c4a30e8dee29b09f566280bc9b4193794239b47eb1ebc85b53bd1d3" }, "downloads": -1, "filename": "django-rest-sessions-0.1.3.tar.gz", "has_sig": false, "md5_digest": "516e14f188d6bff6cd4b5af5f6c8a20f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3692, "upload_time": "2015-10-21T10:38:59", "url": "https://files.pythonhosted.org/packages/56/6e/5b2fd1d102b46f5894646d052c7fae1fd0bae031b847a5a7c3c1be51a072/django-rest-sessions-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "75ce1e257dbc5f0bb511a490c10874b0", "sha256": "5c0f62868adf5c8999038c1d6d75bcd963fde83db0bf9b379975311fd0878783" }, "downloads": -1, "filename": "django-rest-sessions-0.1.4.tar.gz", "has_sig": false, "md5_digest": "75ce1e257dbc5f0bb511a490c10874b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3859, "upload_time": "2015-11-12T15:34:13", "url": "https://files.pythonhosted.org/packages/54/12/c916a15704a800250344eb3792ade4e570bee8db7931902ffe83e21ba671/django-rest-sessions-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9a6de420bb5b82bdf89df05b59ae0184", "sha256": "44c0c92747b3e25333968d064657dfe857d7af3a9c4270326b33db473088ee29" }, "downloads": -1, "filename": "django-rest-sessions-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9a6de420bb5b82bdf89df05b59ae0184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3934, "upload_time": "2015-12-01T09:07:19", "url": "https://files.pythonhosted.org/packages/25/6d/3720a80cf46f96375bfb3995a0628bed5ed1b35c0e7d637ae59dfbadf78b/django-rest-sessions-0.2.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "a58bee223652d2bd38f841abef9d55f8", "sha256": "fe7f2debe5bb72cc764b2820eb6b5a355a0c1c9aa21ca5885ff002615827f350" }, "downloads": -1, "filename": "django-rest-sessions-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a58bee223652d2bd38f841abef9d55f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4168, "upload_time": "2016-03-18T11:58:36", "url": "https://files.pythonhosted.org/packages/6e/cd/564ba82f7df099b79a58630f47bb5452a7e27e92b22780a7a6121e9e5e0f/django-rest-sessions-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a58bee223652d2bd38f841abef9d55f8", "sha256": "fe7f2debe5bb72cc764b2820eb6b5a355a0c1c9aa21ca5885ff002615827f350" }, "downloads": -1, "filename": "django-rest-sessions-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a58bee223652d2bd38f841abef9d55f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4168, "upload_time": "2016-03-18T11:58:36", "url": "https://files.pythonhosted.org/packages/6e/cd/564ba82f7df099b79a58630f47bb5452a7e27e92b22780a7a6121e9e5e0f/django-rest-sessions-0.2.2.tar.gz" } ] }