{ "info": { "author": "Tomaz Muraus", "author_email": "tomaz+pypi@tomaz.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django Visitor Information Middleware\n=====================================\n\nThis module contains a collection of middleware classes which make writing\ntimezone and location aware applications easier.\n\nInformation provided by this middleware can be used to do things like:\n\n* Display a cookie consent message if visitor is coming from the country\n within the EU\n* Display timezone change notification if a user's location timezone doesn't\n match a timezone which is currently set in the profile\n* ...\n\nInstallation\n------------\n\n.. sourcecode:: bash\n\n pip install django-visitor-information-middleware\n\nGeolocation Database\n--------------------\n\nTo determine location information based on the user IP address, this module\nuses GEO IP database.\n\nBy default, it ships with a free GeoLite2 database\n(http://dev.maxmind.com/geoip/geoip2/geolite2/).\n\nIf you want to use a custom database file, simply set\n``VISITOR_INFO_GEOIP_DATABASE_PATH`` setting to point to your geoip database\nfile. Keep in mind that this file needs to be readable by a process under\nwhich your Django application is running.\n\nIncluded Middleware\n-------------------\n\nTimezoneMiddleware\n~~~~~~~~~~~~~~~~~~\n\nThe middleware activates a timezone for an authenticated user.\n\nVisitorInformationMiddleware\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis middleware adds the following keys to the ``request.visitor`` dictionary:\n\n* ``country`` - country the visitor is based in\n* ``city`` - city the visitor is based in\n* ``location.timezone`` - timezone used in the location visitor is based in\n* ``location.unit_system`` - unit system used in the location visitor is based\n in\n* ``user.timezone`` - timezone of the currently authenticated user\n* ``user.unit_system`` - unit system of the currently authenticated user.\n* ``cookie_notice`` - True if a cookie consent notice should be displayed for\n the current visitor.\n\nNote: Location of the user is determined based on the user's IP address.\n\n\n.. :changelog:\n\nChangelog\n=========\n\n0.1.0 - 2013-10-25\n------------------\n\n* Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Kami/django-visitor-information-middleware/", "keywords": null, "license": "Apache License (2.0)", "maintainer": null, "maintainer_email": null, "name": "django-visitor-information-middleware", "package_url": "https://pypi.org/project/django-visitor-information-middleware/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-visitor-information-middleware/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Kami/django-visitor-information-middleware/" }, "release_url": "https://pypi.org/project/django-visitor-information-middleware/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A collection of Django middleware classes which make writing timezone and location aware applications easier", "version": "0.1.0" }, "last_serial": 903331, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cfe8b5b11b3df1c059cd582936e38f26", "sha256": "da7b925225f8e8779ac2a4e61d80c8e1fc168ed75e5fb0f9b4b1490ec2807664" }, "downloads": -1, "filename": "django-visitor-information-middleware-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cfe8b5b11b3df1c059cd582936e38f26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10319548, "upload_time": "2013-10-25T16:26:57", "url": "https://files.pythonhosted.org/packages/11/f8/5e431446aff0f1ce100474105ec7cc35a1736e456471c444c145d4e1fcdc/django-visitor-information-middleware-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cfe8b5b11b3df1c059cd582936e38f26", "sha256": "da7b925225f8e8779ac2a4e61d80c8e1fc168ed75e5fb0f9b4b1490ec2807664" }, "downloads": -1, "filename": "django-visitor-information-middleware-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cfe8b5b11b3df1c059cd582936e38f26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10319548, "upload_time": "2013-10-25T16:26:57", "url": "https://files.pythonhosted.org/packages/11/f8/5e431446aff0f1ce100474105ec7cc35a1736e456471c444c145d4e1fcdc/django-visitor-information-middleware-0.1.0.tar.gz" } ] }