{ "info": { "author": "Dmytro Smyk", "author_email": "porovozls@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\nDjango Telethon Authorization\n=====\n\nProvide REST API for authorizing telethon sessions\n\nQuick start\n-----------\n\n1. Add \"django-telethon-authorization\" to your INSTALLED_APPS setting::\n\n INSTALLED_APPS = [\n ...\n 'django-telethon-authorization',\n ]\n\n2. Include django-telethon-authorization URL's in your project urls.py like this::\n\n path('telegram-auth/', include('django_telethon_authorization.urls')),\n\n\n3. Add environment variables::\n\n* TG_API_ID = 111111\n* TG_API_HASH = api_hash\n* TG_SESSION_PATH = /path/to/sessions\n\nProvide `TG_SESSION_PATH` only if you use SQLite as a session backend (Telethon default)\n\n4. Run `python manage.py migrate` to create the models.\n\nWay of work\n------------\n\n- When you request a telegram code - `TelegramAuthorization` model will be created.\n- It will be automatically linked to `request.user`\n\nEndpoints\n------------\n\nAll endpoints accept JSON payloads.::\nUsually response has status code `200` with a JSON.::\nEach response contains boolean `success` property which indicates if request was successfull.::\nIf `success` == `False` -> variable `message` will be present inside JSON response with explanation.::\n\n\n* POST /request_code/\n* payload: {phone: }\n* POST /submit/\n* payload: {phone: , code: , password: }\n* POST /logout/\n* payload: {phone: }", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/porovozls/django-telethon-authorization", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-telethon-authorization", "package_url": "https://pypi.org/project/django-telethon-authorization/", "platform": "", "project_url": "https://pypi.org/project/django-telethon-authorization/", "project_urls": { "Homepage": "https://github.com/porovozls/django-telethon-authorization" }, "release_url": "https://pypi.org/project/django-telethon-authorization/0.2.6/", "requires_dist": null, "requires_python": "", "summary": "Provide REST API for Telethon authorization", "version": "0.2.6" }, "last_serial": 4140750, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "2beb6de7b0663340f41b8e597d50fe0d", "sha256": "6397b06d01557332dc84197441eaf4f42758e83492d54386a01d1062ae756642" }, "downloads": -1, "filename": "django-telethon-authorization-0.1.tar.gz", "has_sig": false, "md5_digest": "2beb6de7b0663340f41b8e597d50fe0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4854, "upload_time": "2018-06-14T15:04:59", "url": "https://files.pythonhosted.org/packages/14/e6/59f8e9007751b645bfdc7bac54c1cdbc2187a89a8f3253fd8f3affe70734/django-telethon-authorization-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6b99f55ce295c2d4322c80bd0f0238f9", "sha256": "5e0c803bc5e876853665bac1ca44e856cef54737a5f8e69aa47b40a6a46d1746" }, "downloads": -1, "filename": "django-telethon-authorization-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6b99f55ce295c2d4322c80bd0f0238f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5123, "upload_time": "2018-06-14T15:32:59", "url": "https://files.pythonhosted.org/packages/df/7a/86549cca6061ff8b591658bd9fdc6071bb48292d7f8943310144354174ef/django-telethon-authorization-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a36b5f9eb006c146a6266a903ce44e2f", "sha256": "b5af75fb53cb3adb9b6548ab368625a795a5f8de5807b33a244ebc4b70a86044" }, "downloads": -1, "filename": "django-telethon-authorization-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a36b5f9eb006c146a6266a903ce44e2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5670, "upload_time": "2018-07-01T10:13:56", "url": "https://files.pythonhosted.org/packages/c8/8d/225a30dcd202f77c496b81828593f1807342be722b88942c5f19c13c49ae/django-telethon-authorization-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "b63ced2de5c716a8d0199656e7a01240", "sha256": "126e92373aa7d08f20a87a8675833272a25e0cf701ee620daeb02a5470543d40" }, "downloads": -1, "filename": "django-telethon-authorization-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b63ced2de5c716a8d0199656e7a01240", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5672, "upload_time": "2018-07-01T10:15:29", "url": "https://files.pythonhosted.org/packages/0f/81/d277406754d07d88f8cee4337872dcd3450998d25163d46bdb5e50b6e8f5/django-telethon-authorization-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "eb9687e713d11cc0daaea503d782cf35", "sha256": "77bdddbd2aff3c4d40558efc21f430665701107b30ab2b5dc40aae59a1acdf86" }, "downloads": -1, "filename": "django-telethon-authorization-0.1.4.tar.gz", "has_sig": false, "md5_digest": "eb9687e713d11cc0daaea503d782cf35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5699, "upload_time": "2018-07-15T12:59:00", "url": "https://files.pythonhosted.org/packages/ad/d6/eb1492d9c3a066984a3bfd395ebbc76fba999161baff6f8f263f219992f5/django-telethon-authorization-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "16dc8d8f628f6824017057e0463b2c69", "sha256": "3adf9f6ae54c2c2be5e362f4fa9c247b4b06a2a67a1dcd4c9be5be458b07c1d4" }, "downloads": -1, "filename": "django-telethon-authorization-0.1.5.tar.gz", "has_sig": false, "md5_digest": "16dc8d8f628f6824017057e0463b2c69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5773, "upload_time": "2018-07-18T20:10:56", "url": "https://files.pythonhosted.org/packages/30/59/dee2e8a2069d744f54dbc6987c357e73ba756176fc9ce43e23a73d445c79/django-telethon-authorization-0.1.5.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "263747b8299489e1758f450be6856e88", "sha256": "010e807cd74b71154ead34ece5ea9c947090f3c2df725cc33eed3578e5a544ac" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.tar.gz", "has_sig": false, "md5_digest": "263747b8299489e1758f450be6856e88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5839, "upload_time": "2018-07-25T21:09:24", "url": "https://files.pythonhosted.org/packages/c8/23/d0582bfb137fc549f29d11e0cccfa78b9339d309b88eaac421b01c4a2e32/django-telethon-authorization-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ebef30b52fa3c93a72d231347246c2f0", "sha256": "c9683c7fd1de5f9f772e9159cb92152fcf0d8d26191654a7e4270c6b07a11050" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ebef30b52fa3c93a72d231347246c2f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2018-08-04T19:32:45", "url": "https://files.pythonhosted.org/packages/3b/d2/205fcfa5492d0d1223998457483ffe3ef4641e5cf4c2ffc56af9e7576d1e/django-telethon-authorization-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "09570c9a0e2b9a41c963d043e7f70d58", "sha256": "867bebbfedc948c51e49350d3bd58c87d1758a1b7e888ab8bc8320e8a5d61097" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.2.tar.gz", "has_sig": false, "md5_digest": "09570c9a0e2b9a41c963d043e7f70d58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6120, "upload_time": "2018-08-04T19:37:22", "url": "https://files.pythonhosted.org/packages/53/d1/e58dd7d9e2d9448d9923a41a1118e41e4f2579daca8d222fd689e5811050/django-telethon-authorization-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "ebe47acebf8d195f81311ae542969afb", "sha256": "759cce58d059fb58153b42cc6a419dc89d3f12b6d9b0e2470a3bc8891aa10071" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ebe47acebf8d195f81311ae542969afb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6197, "upload_time": "2018-08-04T19:55:53", "url": "https://files.pythonhosted.org/packages/56/a7/d9ca7ea73f990d5b14792b0c3f7f21c64f5cdeacf8c257b09b572b627dba/django-telethon-authorization-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "69f84deb10345c59b54f039eccad16a1", "sha256": "c292f6f00074fbadb65cdd1c379f7403c90507977a0a7d5de8695c1b5bfdf255" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.4.tar.gz", "has_sig": false, "md5_digest": "69f84deb10345c59b54f039eccad16a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6182, "upload_time": "2018-08-06T14:43:22", "url": "https://files.pythonhosted.org/packages/b4/34/024e61585e831d6eb0840357c32de94201331341ba4ff50be66b2f34f9d0/django-telethon-authorization-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "55f8f36c814bcd895482f7fc6e89d69c", "sha256": "0707099fb50244da31f2405666a706bf47457bdfb5a7a0855a6a1c42b041f45c" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.5.tar.gz", "has_sig": false, "md5_digest": "55f8f36c814bcd895482f7fc6e89d69c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6172, "upload_time": "2018-08-06T14:45:21", "url": "https://files.pythonhosted.org/packages/3a/07/127afffe5ffc72980dbd4e3aa9dc64b332b1668154548fe6ee7f9481f017/django-telethon-authorization-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "559e76e061281d33fe9dbe3b26c46696", "sha256": "5564dad18300c38afb1515196e3cd035f34c76a08617beea1d08366d3ef227f8" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.6.tar.gz", "has_sig": false, "md5_digest": "559e76e061281d33fe9dbe3b26c46696", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6077, "upload_time": "2018-08-06T15:02:56", "url": "https://files.pythonhosted.org/packages/c1/cf/b85c152c13e0c096227989c7e070113dc7f79135ef5a94735ce40ed5308b/django-telethon-authorization-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "559e76e061281d33fe9dbe3b26c46696", "sha256": "5564dad18300c38afb1515196e3cd035f34c76a08617beea1d08366d3ef227f8" }, "downloads": -1, "filename": "django-telethon-authorization-0.2.6.tar.gz", "has_sig": false, "md5_digest": "559e76e061281d33fe9dbe3b26c46696", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6077, "upload_time": "2018-08-06T15:02:56", "url": "https://files.pythonhosted.org/packages/c1/cf/b85c152c13e0c096227989c7e070113dc7f79135ef5a94735ce40ed5308b/django-telethon-authorization-0.2.6.tar.gz" } ] }