{ "info": { "author": "Arnulfo Solis", "author_email": "arnulfojr94@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Sanic Apache Access Logs\n\nSanic Plugin to log access logs in common or combined format\n\n## How to use\n\n\n```python\nfrom sanic import Sanic\nfrom sanic.response import json\nfrom sanic_apache_accesslogs import AccessLogPlugin\n\n\napp = Sanic(__name__, configure_logging=False)\n\nAccessLogPlugin(app)\n\n\n@app.route('/', methods=['GET'])\nasync def hello(request):\n return json({'hello': 'world'})\n\n\nif __name__ == '__main__':\n app.run(host='localhost', port=5000, access_log=False)\n```\n\n\n## Common or Combined?\n\n\nFor choosing the format set the environment variable `ACCESSLOG_USE_COMBINED` to choose combined over common.\n\n\n## TODO(s)\n\n* Use Sanic configuration context to choose between the logging format.\n\n\n## Contact\n\nArnulfo Solis\narnulfojr94@gmail.com\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/arnulfojr/sanic_apache_accesslogs/archive/0.2.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/arnulfojr/sanic_apache_accesslogs", "keywords": "accesslog", "license": "", "maintainer": "", "maintainer_email": "", "name": "sanic_apache_accesslogs", "package_url": "https://pypi.org/project/sanic_apache_accesslogs/", "platform": "any", "project_url": "https://pypi.org/project/sanic_apache_accesslogs/", "project_urls": { "Download": "https://github.com/arnulfojr/sanic_apache_accesslogs/archive/0.2.1.tar.gz", "Homepage": "https://github.com/arnulfojr/sanic_apache_accesslogs" }, "release_url": "https://pypi.org/project/sanic_apache_accesslogs/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Apache Access Logs for Sanic", "version": "0.2.1" }, "last_serial": 3829969, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "2897d5268d1e1f7268882c4294e46315", "sha256": "2ab7d4ceea54dda959d8503d96b415635e06e9d6aaf75c0ff3f3ee02af19d8cc" }, "downloads": -1, "filename": "sanic_apache_accesslogs-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2897d5268d1e1f7268882c4294e46315", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4634, "upload_time": "2018-05-03T08:08:05", "url": "https://files.pythonhosted.org/packages/a0/86/4638cb03aeec6f6c8c87d887e00539b7cef245044858054b86c1bd4021d3/sanic_apache_accesslogs-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2897d5268d1e1f7268882c4294e46315", "sha256": "2ab7d4ceea54dda959d8503d96b415635e06e9d6aaf75c0ff3f3ee02af19d8cc" }, "downloads": -1, "filename": "sanic_apache_accesslogs-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2897d5268d1e1f7268882c4294e46315", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4634, "upload_time": "2018-05-03T08:08:05", "url": "https://files.pythonhosted.org/packages/a0/86/4638cb03aeec6f6c8c87d887e00539b7cef245044858054b86c1bd4021d3/sanic_apache_accesslogs-0.2.1.tar.gz" } ] }