{ "info": { "author": "Praekelt Foundation", "author_email": "dev@praekeltfoundation.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking" ], "description": "Django-Mxit\n===========\n\nMiddleware for writing Mxit apps with Django.\n\n|django-mxit|_\n\n.. |django-mxit| image:: https://travis-ci.org/praekelt/django-mxit.png?branch=develop\n.. _django-mxit: https://travis-ci.org/praekelt/django-mxit\n\n::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'mxit.middleware.RemoteUserMiddleware',\n ...\n )\n\n\n AUTHENTICATION_BACKENDS = (\n ...\n 'django.contrib.auth.backends.RemoteUserBackend',\n ...\n )\n\n\nHit it with the correct headers and you'll be authenticated immediately:\n\n::\n\n $ curl -XGET 'http://localhost:8000/' \\\n -H 'X-Device-User-Agent: user-agent' \\\n -H 'X-Mxit-CONTACT: contact' \\\n -H 'X-Mxit-USERID-R: userid-r' \\\n -H 'X-Mxit-NICK: nick' \\\n -H 'X-Mxit-LOCATION: za,south africa,,,ct,cape town,,,,' \\\n -H 'X-Mxit-PROFILE: en,za,01-01-2013,,,' \\\n -H 'X-Mxit-USER-INPUT: <b>foo</b>' \\\n\n {\n \"username\": \"userid-r\",\n \"mxit\": {\n \"MXIT_NICK\": \"nick\",\n \"MXIT_PROFILE\": {\n \"gender\": \"\",\n \"date_of_birth\": \"01-01-2013\",\n \"tariff_plan\": \"\",\n \"country_code\": \"za\",\n \"language_code\": \"en\"\n },\n \"DEVICE_USER_AGENT\": \"user-agent\",\n \"MXIT_CONTACT\": \"contact\",\n \"MXIT_LOCATION\": {\n \"city\": \"cape town\",\n \"cell_id\": \"\",\n \"network_operator_id\": \"\",\n \"subdivision_code\": \"\",\n \"client_features_bitset\": \"\",\n \"country_code\": \"za\",\n \"subdivision_name\": \"\",\n \"country_name\": \"south africa\",\n \"city_code\": \"ct\"\n },\n \"MXIT_USER_INPUT\": \"foo\",\n \"MXIT_USERID_R\": \"userid-r\"\n }\n }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/praekelt/django-mxit", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-mxit", "package_url": "https://pypi.org/project/django-mxit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-mxit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/praekelt/django-mxit" }, "release_url": "https://pypi.org/project/django-mxit/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Simple helpers for writing Mxit apps with Django", "version": "0.0.1" }, "last_serial": 863856, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cfefbbc394857072bf9480a836dd8094", "sha256": "c043c310df916ecff55fb7e4e09f3f7481a38d7ab25d6ff193899291ddc99323" }, "downloads": -1, "filename": "django-mxit-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cfefbbc394857072bf9480a836dd8094", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2743, "upload_time": "2013-09-12T15:13:47", "url": "https://files.pythonhosted.org/packages/a4/3c/89119b304f279f82ec764c2404491fbfdd2e016be1361cbc8ab3a7277b3a/django-mxit-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cfefbbc394857072bf9480a836dd8094", "sha256": "c043c310df916ecff55fb7e4e09f3f7481a38d7ab25d6ff193899291ddc99323" }, "downloads": -1, "filename": "django-mxit-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cfefbbc394857072bf9480a836dd8094", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2743, "upload_time": "2013-09-12T15:13:47", "url": "https://files.pythonhosted.org/packages/a4/3c/89119b304f279f82ec764c2404491fbfdd2e016be1361cbc8ab3a7277b3a/django-mxit-0.0.1.tar.gz" } ] }