{ "info": { "author": "hellysmile", "author_email": "hellysmile@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP" ], "description": "django-mongo-sessions\n=====================\n\n:info: mongodb as Django sessions backend\n\n.. image:: https://api.travis-ci.org/hellysmile/django-mongo-sessions.png\n :target: https://travis-ci.org/hellysmile/django-mongo-sessions\n\nfeatures\n********\n\n* fast NoSQL Django sessions backend\n* invalidation via `TTL `_\n\ninstallation\n------------\n\nrun ``pip install django-mongo-sessions``\n\nset ``mongo_sessions.session`` as session engine::\n\n SESSION_ENGINE = 'mongo_sessions.session'\n\nsettings\n--------\n\nthere is two ways to setup mongodb connection at ``settings.py``\n\n\nfirst, if already have mongo connection, like::\n\n import pymongo\n from pymongo import MongoClient\n connection = MongoClient()\n MONGO_CLIENT = connection.your_database\n MONGO_SESSIONS_COLLECTION = 'mongo_sessions' # default option\n\nsecond, if you need to connect to mongodb, like::\n\n MONGO_PORT = 27017\n MONGO_HOST = 'localhost'\n MONGO_DB_NAME = 'test'\n MONGO_DB_USER = False\n MONGO_DB_PASSWORD = False\n MONGO_SESSIONS_COLLECTION = 'mongo_sessions'\n\n # all this settings are defaults, you can skip any\n\n``expireAfterSeconds`` index value by default is ``SESSION_COOKIE_AGE``\nyou can change::\n\n MONGO_SESSIONS_TTL = 60 * 60 # one hour\n\nbe sure, that you know what are you doing with it, ``SESSION_COOKIE_AGE``\nwill get different expiration time\n\nevery time you change one of this values, ``expireAfterSeconds`` index\nwill be dropped and then will be indexed with ``ensureIndex`` again,\nbe careful here\n\n*it is good way to change expireAfterSeconds only by 1 running instance*\n\ntests\n-----\n\n::\n\n pip install tox\n tox\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hellysmile/django-mongo-sessions", "keywords": "django", "license": "http://www.apache.org/licenses/LICENSE-2.0", "maintainer": "", "maintainer_email": "", "name": "django-mongo-sessions", "package_url": "https://pypi.org/project/django-mongo-sessions/", "platform": "", "project_url": "https://pypi.org/project/django-mongo-sessions/", "project_urls": { "Homepage": "https://github.com/hellysmile/django-mongo-sessions" }, "release_url": "https://pypi.org/project/django-mongo-sessions/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "mongodb as Django sessions backend", "version": "0.0.4" }, "last_serial": 2534681, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c60f009bc3577fb044e8d09f763ae125", "sha256": "4b6536352496b8d25657b0f6e0aa2ffe941bdfd3b163cb74b1a717449a893d45" }, "downloads": -1, "filename": "django-mongo-sessions-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c60f009bc3577fb044e8d09f763ae125", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7512, "upload_time": "2013-03-01T18:22:21", "url": "https://files.pythonhosted.org/packages/d8/92/967e6fbd257a0b3def0c5e936a4ea2935dd4ca445430a85c8b9bb9f0c9e4/django-mongo-sessions-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7075de708dcaffb1a3e527607086556c", "sha256": "2a865c5723129da378de87115684738bd86d4cb219caaf6be090cd7f604183a5" }, "downloads": -1, "filename": "django-mongo-sessions-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7075de708dcaffb1a3e527607086556c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7539, "upload_time": "2013-03-02T16:14:57", "url": "https://files.pythonhosted.org/packages/0b/04/51554548ff6cc7361ddb842ed4394c764ec10c87e8eb896cec00c9a8c93d/django-mongo-sessions-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8616cf5ac78eb3e672e1c22945e26afe", "sha256": "b62a3012d6eafeaa72a0563c9257c7c290bf62a46102339dff568d1a3003f75c" }, "downloads": -1, "filename": "django-mongo-sessions-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8616cf5ac78eb3e672e1c22945e26afe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7845, "upload_time": "2013-03-03T14:18:04", "url": "https://files.pythonhosted.org/packages/00/84/d8cede431b25b1e7e452cf9a36e9ff30ffec799d1a47de2889addf4db440/django-mongo-sessions-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "cb717194c60306986a8312e2f06bf416", "sha256": "b9e2b5661b12dd984af4a6e26a38e3054846ad3ea06af60bca878522f5599ced" }, "downloads": -1, "filename": "django-mongo-sessions-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cb717194c60306986a8312e2f06bf416", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7830, "upload_time": "2016-12-22T12:53:13", "url": "https://files.pythonhosted.org/packages/5b/4b/bb66c268f7f417360eb29b2f3244aaf9f9c1b7110b07b8a9528e97ee8148/django-mongo-sessions-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb717194c60306986a8312e2f06bf416", "sha256": "b9e2b5661b12dd984af4a6e26a38e3054846ad3ea06af60bca878522f5599ced" }, "downloads": -1, "filename": "django-mongo-sessions-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cb717194c60306986a8312e2f06bf416", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7830, "upload_time": "2016-12-22T12:53:13", "url": "https://files.pythonhosted.org/packages/5b/4b/bb66c268f7f417360eb29b2f3244aaf9f9c1b7110b07b8a9528e97ee8148/django-mongo-sessions-0.0.4.tar.gz" } ] }