{ "info": { "author": "Dmytro Smyk", "author_email": "porovozls@gmail.com", "bugtrack_url": null, "classifiers": [ "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": "=====\nPython Telegram Logger\n=====\n\nSimple logger which dispatch messages to a telegram in markdown format.\nUses a separate thread for a dispatching.\nSupport many chats.\nSupport big messages (over 4096 chars).\nSupport telegram API calls restrictions.\n\n\nInstallation\n-----------\n\n.. code-block::\npip install python-telegram-logger\n\n\nQuick start\n-----------\n\n1. Configure logger with dict config:\n\n.. code-block:: python\n\n config = {\n ...\n \"version\": 1,\n \"disable_existing_loggers\": False,\n \"handlers\": {\n \"telegram\": {\n \"class\": \"python_telegram_logger.Handler\",\n \"token\": \"bot_token\",\n \"chat_ids\": [123456789, -1234567891011],\n\n }\n },\n \"loggers\": {\n \"tg\": {\n \"level\": \"INFO\",\n \"handlers\": [\"telegram\",]\n }\n }\n }\n\n\n2. Use it!\n\n.. code-block:: python\n\n import logging\n logger = logging.getLogger(\"tg\")\n\n logger.info(\"test\")\n\n try:\n raise Exception(\"raise!\")\n except Exception:\n logger.exception(\"catch!\")\n\n\n3. Formatting:\n\n- Configure a formatter using dict config, example:\n\n.. code-block:: python\n\n config = {\n ...\n \"version\": 1,\n \"disable_existing_loggers\": False,\n \"formatters\": {\n \"default\": {\n \"()\": \"python_telegram_logger.MarkdownFormatter\",\n \"fmt\": \" *%(levelname)s* _%(name)s : %(funcName)s_\"\n }\n },\n \"handlers\": {\n \"telegram\": {\n \"class\": \"python_telegram_logger.Handler\",\n \"token\": \"bot_token\",\n \"chat_ids\": [123456789, -1234567891011],\n \"formatter\": \"default\"\n }\n },\n \"loggers\": {\n \"tg\": {\n \"level\": \"INFO\",\n \"handlers\": [\"telegram\",]\n }\n }\n }", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/porovozls/python-telegram-logger", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "python-telegram-logger", "package_url": "https://pypi.org/project/python-telegram-logger/", "platform": "", "project_url": "https://pypi.org/project/python-telegram-logger/", "project_urls": { "Homepage": "https://github.com/porovozls/python-telegram-logger" }, "release_url": "https://pypi.org/project/python-telegram-logger/1.4/", "requires_dist": null, "requires_python": "", "summary": "Simple telegram logger", "version": "1.4" }, "last_serial": 4349678, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4d7dd6501eb4e47d0bb9788e06033258", "sha256": "fb32a1b3f9f98f0384d74da35ea165e195f7a651618c44ec862074d888661df2" }, "downloads": -1, "filename": "python-telegram-logger-0.1.tar.gz", "has_sig": false, "md5_digest": "4d7dd6501eb4e47d0bb9788e06033258", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3347, "upload_time": "2018-09-11T20:59:50", "url": "https://files.pythonhosted.org/packages/53/3e/a910a00b6300990370e276295dc6a3b8b8149b907e5bcf57290fb5202718/python-telegram-logger-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "8a4a7f460088005abcdb5eb60776ee55", "sha256": "313ab6d4a56e6b30785fc93b2196a1c80988b5940065db6ee9bef37d974db212" }, "downloads": -1, "filename": "python-telegram-logger-0.2.tar.gz", "has_sig": false, "md5_digest": "8a4a7f460088005abcdb5eb60776ee55", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3418, "upload_time": "2018-09-11T21:12:39", "url": "https://files.pythonhosted.org/packages/1b/ef/5e5a00ecb478a3a83062be8e1295ec3c8cc2bfe3a2e06b194a41cfde078e/python-telegram-logger-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "6d2f0adb090557edb13073873451f2af", "sha256": "ed88d470ab869a79a71fb29151c3a8fc3274e9f4f4075d7c00b92618db5ca1e8" }, "downloads": -1, "filename": "python-telegram-logger-0.3.tar.gz", "has_sig": false, "md5_digest": "6d2f0adb090557edb13073873451f2af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3836, "upload_time": "2018-09-12T15:04:59", "url": "https://files.pythonhosted.org/packages/bb/c3/e86264cb4f67b1e8b74c236bd061d1d2d104524c3b920fa7da8584888b3d/python-telegram-logger-0.3.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "77a1af7e0570d01060b13ea940d3d210", "sha256": "55e7c8d69f509f68f30eccd5030de08507c759cd65cb0baaecdbaab8e94cb4cc" }, "downloads": -1, "filename": "python-telegram-logger-1.0.tar.gz", "has_sig": false, "md5_digest": "77a1af7e0570d01060b13ea940d3d210", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3840, "upload_time": "2018-09-12T15:40:54", "url": "https://files.pythonhosted.org/packages/1d/b2/9c69392cd9e9042bf7904e5573334897654ec789638625c3a68aa8390451/python-telegram-logger-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "ae8e5bec7f5a756108270402e9ff90c8", "sha256": "757c4dd7828eb8ccfc139cc1cc6a89b36df8f1685b239ae59684f4edb7fd110e" }, "downloads": -1, "filename": "python-telegram-logger-1.1.tar.gz", "has_sig": false, "md5_digest": "ae8e5bec7f5a756108270402e9ff90c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3974, "upload_time": "2018-09-12T15:56:07", "url": "https://files.pythonhosted.org/packages/50/84/2fea0bb3399df107152626f35da568602fcb3fbf346d691cb11456a63901/python-telegram-logger-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "b590ebb3a1915fb3620407f6e67b50d9", "sha256": "49ccc12dccf1560fe8f8ea3392fefbc06d116ca0bff82d226512b7a0ae765487" }, "downloads": -1, "filename": "python-telegram-logger-1.2.tar.gz", "has_sig": false, "md5_digest": "b590ebb3a1915fb3620407f6e67b50d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5056, "upload_time": "2018-10-03T11:11:14", "url": "https://files.pythonhosted.org/packages/61/33/62eabafa1aa1aba45c06baa7864e577b554cca417883aec8fbf0d909141e/python-telegram-logger-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "cb4da04d6d222bf3bb03e62ac9b78182", "sha256": "0ddf3a13658582e0262084d4b56afa717b165afaf00563d71f303f1818d9fd84" }, "downloads": -1, "filename": "python-telegram-logger-1.3.tar.gz", "has_sig": false, "md5_digest": "cb4da04d6d222bf3bb03e62ac9b78182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4959, "upload_time": "2018-10-07T17:01:54", "url": "https://files.pythonhosted.org/packages/c2/74/0d16535c9bd7fde9ccd2c245509b8a324521e7a5ae4dc9faad8bea264564/python-telegram-logger-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "3afbe23052cbf2b7d3a100766b4c0fcd", "sha256": "0242609fc5534338b2076a950a4033acf6c919a1b851077472814fa9a97e7d58" }, "downloads": -1, "filename": "python-telegram-logger-1.4.tar.gz", "has_sig": false, "md5_digest": "3afbe23052cbf2b7d3a100766b4c0fcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5081, "upload_time": "2018-10-07T17:10:32", "url": "https://files.pythonhosted.org/packages/f9/99/ea559e9a155696b1733e339e2da90960351e3694895f512ed145cc2f4d58/python-telegram-logger-1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3afbe23052cbf2b7d3a100766b4c0fcd", "sha256": "0242609fc5534338b2076a950a4033acf6c919a1b851077472814fa9a97e7d58" }, "downloads": -1, "filename": "python-telegram-logger-1.4.tar.gz", "has_sig": false, "md5_digest": "3afbe23052cbf2b7d3a100766b4c0fcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5081, "upload_time": "2018-10-07T17:10:32", "url": "https://files.pythonhosted.org/packages/f9/99/ea559e9a155696b1733e339e2da90960351e3694895f512ed145cc2f4d58/python-telegram-logger-1.4.tar.gz" } ] }