[Python-modules-commits] [aiohttp-debugtoolbar] 01/03: import aiohttp-debugtoolbar_0.1.1.orig.tar.gz
Piotr Ożarowski
piotr at moszumanska.debian.org
Sat Jul 30 14:30:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
piotr pushed a commit to branch master
in repository aiohttp-debugtoolbar.
commit f0a3110b35a14bd91037bd7ee6b670eb3f7b36a2
Author: Piotr Ożarowski <ozarow at gmail.com>
Date: Sat Jul 30 16:28:09 2016 +0200
import aiohttp-debugtoolbar_0.1.1.orig.tar.gz
---
CHANGES.txt | 64 +
LICENSE | 202 +
MANIFEST.in | 5 +
PKG-INFO | 235 +
README.rst | 154 +
aiohttp_debugtoolbar.egg-info/PKG-INFO | 235 +
aiohttp_debugtoolbar.egg-info/SOURCES.txt | 95 +
aiohttp_debugtoolbar.egg-info/dependency_links.txt | 1 +
aiohttp_debugtoolbar.egg-info/requires.txt | 2 +
aiohttp_debugtoolbar.egg-info/top_level.txt | 1 +
aiohttp_debugtoolbar/__init__.py | 5 +
aiohttp_debugtoolbar/main.py | 107 +
aiohttp_debugtoolbar/middlewares.py | 171 +
aiohttp_debugtoolbar/panels/__init__.py | 15 +
aiohttp_debugtoolbar/panels/base.py | 141 +
aiohttp_debugtoolbar/panels/headers.py | 27 +
aiohttp_debugtoolbar/panels/logger.py | 69 +
aiohttp_debugtoolbar/panels/middlewares.py | 38 +
aiohttp_debugtoolbar/panels/performance.py | 198 +
aiohttp_debugtoolbar/panels/request_vars.py | 41 +
aiohttp_debugtoolbar/panels/routes.py | 36 +
aiohttp_debugtoolbar/panels/settings.py | 29 +
.../panels/templates/headers.jinja2 | 35 +
.../panels/templates/logger.jinja2 | 24 +
.../panels/templates/middlewares.jinja2 | 16 +
.../panels/templates/performance.jinja2 | 57 +
.../panels/templates/request_vars.jinja2 | 117 +
.../panels/templates/routes.jinja2 | 42 +
.../panels/templates/settings.jinja2 | 16 +
.../panels/templates/sqlalchemy_explain.jinja2 | 43 +
.../panels/templates/sqlalchemy_select.jinja2 | 47 +
.../panels/templates/traceback.jinja2 | 84 +
.../panels/templates/versions.jinja2 | 27 +
aiohttp_debugtoolbar/panels/traceback.py | 67 +
aiohttp_debugtoolbar/panels/versions.py | 57 +
aiohttp_debugtoolbar/static/css/bootstrap.min.css | 5 +
aiohttp_debugtoolbar/static/css/dashboard.css | 181 +
aiohttp_debugtoolbar/static/css/debugger.css | 107 +
.../static/css/highlightjs_default.min.css | 1 +
aiohttp_debugtoolbar/static/css/prism.css | 226 +
aiohttp_debugtoolbar/static/css/toolbar.css | 85 +
aiohttp_debugtoolbar/static/css/toolbar_button.css | 64 +
aiohttp_debugtoolbar/static/font/FONT_LICENSE | 96 +
aiohttp_debugtoolbar/static/font/ubuntu.ttf | Bin 0 -> 70220 bytes
.../static/fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20335 bytes
.../static/fonts/glyphicons-halflings-regular.svg | 229 +
.../static/fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 41280 bytes
.../static/fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23292 bytes
.../fonts/glyphicons-halflings-regular.woff2 | Bin 0 -> 18028 bytes
aiohttp_debugtoolbar/static/img/aiohttp.svg | 487 +
aiohttp_debugtoolbar/static/img/asc.gif | Bin 0 -> 54 bytes
aiohttp_debugtoolbar/static/img/back.png | Bin 0 -> 1039 bytes
aiohttp_debugtoolbar/static/img/back_hover.png | Bin 0 -> 1030 bytes
aiohttp_debugtoolbar/static/img/bg.gif | Bin 0 -> 64 bytes
aiohttp_debugtoolbar/static/img/close.png | Bin 0 -> 1045 bytes
aiohttp_debugtoolbar/static/img/close_hover.png | Bin 0 -> 1155 bytes
aiohttp_debugtoolbar/static/img/console.png | Bin 0 -> 507 bytes
aiohttp_debugtoolbar/static/img/desc.gif | Bin 0 -> 54 bytes
aiohttp_debugtoolbar/static/img/headerbg.png | Bin 0 -> 193 bytes
aiohttp_debugtoolbar/static/img/indicator.png | Bin 0 -> 607 bytes
aiohttp_debugtoolbar/static/img/less.png | Bin 0 -> 191 bytes
aiohttp_debugtoolbar/static/img/more.png | Bin 0 -> 200 bytes
aiohttp_debugtoolbar/static/img/panel_bg.png | Bin 0 -> 110 bytes
aiohttp_debugtoolbar/static/img/source.png | Bin 0 -> 818 bytes
aiohttp_debugtoolbar/static/img/tick-red.png | Bin 0 -> 1515 bytes
aiohttp_debugtoolbar/static/img/tick.png | Bin 0 -> 634 bytes
aiohttp_debugtoolbar/static/js/README.rst | 9 +
aiohttp_debugtoolbar/static/js/bootstrap.min.js | 7 +
aiohttp_debugtoolbar/static/js/debugger.js | 222 +
aiohttp_debugtoolbar/static/js/highlight.min.js | 1 +
.../static/js/jquery-1.10.2.min.js | 6 +
.../static/js/jquery-1.10.2.min.map | 1 +
aiohttp_debugtoolbar/static/js/jquery.cookie.js | 95 +
.../static/js/jquery.tablesorter.min.js | 4 +
aiohttp_debugtoolbar/static/js/prism.js | 11 +
aiohttp_debugtoolbar/static/js/r.js | 9822 ++++++++++++++++++++
aiohttp_debugtoolbar/static/js/require.js | 45 +
aiohttp_debugtoolbar/static/js/tests.html | 27 +
aiohttp_debugtoolbar/static/js/toolbar.js | 72 +
aiohttp_debugtoolbar/tbtools/__init__.py | 5 +
aiohttp_debugtoolbar/tbtools/console.py | 225 +
aiohttp_debugtoolbar/tbtools/repr.py | 266 +
aiohttp_debugtoolbar/tbtools/tbtools.py | 376 +
aiohttp_debugtoolbar/templates/console.jinja2 | 41 +
aiohttp_debugtoolbar/templates/exception.jinja2 | 107 +
.../templates/exception_summary.jinja2 | 5 +
aiohttp_debugtoolbar/templates/global_tab.jinja2 | 58 +
aiohttp_debugtoolbar/templates/history_tab.jinja2 | 63 +
aiohttp_debugtoolbar/templates/redirect.jinja2 | 19 +
aiohttp_debugtoolbar/templates/settings_tab.jinja2 | 22 +
aiohttp_debugtoolbar/templates/toolbar.jinja2 | 133 +
aiohttp_debugtoolbar/toolbar.py | 95 +
aiohttp_debugtoolbar/utils.py | 211 +
aiohttp_debugtoolbar/views.py | 187 +
setup.cfg | 5 +
setup.py | 43 +
96 files changed, 16167 insertions(+)
diff --git a/CHANGES.txt b/CHANGES.txt
new file mode 100644
index 0000000..46e571a
--- /dev/null
+++ b/CHANGES.txt
@@ -0,0 +1,64 @@
+CHANGES
+-------
+
+0.1.1 (2016-02-21)
+^^^^^^^^^^^^^^^^^^
+
+* Fixed a demo
+
+* Added syntax highlight in traceback view, switched highlighter from
+ highlight.js to prism.js #31
+
+0.1.0 (2016-02-13)
+^^^^^^^^^^^^^^^^^^
+
+* Fixed python 3.5 support (Thanks @stormandco!)
+
+* Added view source button in RoutesDebugPanel (Thanks @stormandco!)
+
+* Dropped support for Python 3.3 (Thanks @sloria!)
+
+* Add middleware in setup method (Thanks @sloria!)
+
+* Fixed bug with interactive console
+
+* Fixed support for aiohttp>=0.21.1
+
+
+0.0.5 (2015-09-13)
+^^^^^^^^^^^^^^^^^^
+
+* Fixed IPv6 socket family error (Thanks @stormandco!)
+
+
+0.0.4 (2015-09-05)
+^^^^^^^^^^^^^^^^^^
+
+* Fixed support for aiohttp>=0.17. (Thanks @himikof!)
+
+
+0.0.3 (2015-07-03)
+^^^^^^^^^^^^^^^^^^
+
+* Switched template engine from mako to jinja2. (Thanks @iho!)
+
+* Added custom *yield from* to track context switches inside coroutine.
+
+* Implemented panel for collecting request log messages.
+
+* Disable toolbar code injecting for non web.Response answers
+ (StreamResponse or WebSocketResponse for example) #12
+
+
+0.0.2 (2015-05-26)
+^^^^^^^^^^^^^^^^^^
+
+* Redesign UI look-and-feel
+
+* Rename `toolbar_middleware_factory` to just `middleware`.
+
+
+0.0.1 (2015-05-18)
+^^^^^^^^^^^^^^^^^^
+
+* Initial release.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..adb28c1
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2015-2016 Nikolai Novik
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..d1cb8e7
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,5 @@
+include LICENSE
+include CHANGES.txt
+include README.rst
+graft aiohttp_debugtoolbar
+global-exclude *.pyc *.swp
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..3cff803
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,235 @@
+Metadata-Version: 1.1
+Name: aiohttp_debugtoolbar
+Version: 0.1.1
+Summary: debugtoolbar for aiohttp
+Home-page: https://github.com/aio-libs/aiohttp_debugtoolbar
+Author: Nikolay Novik
+Author-email: nickolainovik at gmail.com
+License: Apache 2
+Description: aiohttp_debugtoolbar
+ ====================
+ .. image:: https://travis-ci.org/aio-libs/aiohttp_debugtoolbar.svg?branch=master
+ :target: https://travis-ci.org/aio-libs/aiohttp_debugtoolbar
+ :alt: |Build status|
+ .. image:: https://coveralls.io/repos/aio-libs/aiohttp_debugtoolbar/badge.svg
+ :target: https://coveralls.io/r/aio-libs/aiohttp_debugtoolbar
+ :alt: |Coverage status|
+
+
+ **aiohttp_debugtoolbar** provides a debug toolbar for your aiohttp_
+ web application. Library is port of pyramid_debugtoolbar_ and
+ still in early development stages. Basic functionality has been
+ ported:
+
+ * basic panels
+ * intercept redirects
+ * intercept and pretty print exception
+ * interactive python console
+ * show source code
+
+ .. image:: https://raw.githubusercontent.com/aio-libs/aiohttp_debugtoolbar/master/demo/aiohttp_debugtoolba_sceenshot.png
+
+
+ Ported Panels
+ -------------
+ ``HeaderDebugPanel``, ``PerformanceDebugPanel``, ``TracebackPanel``,
+ ``SettingsDebugPanel``, ``MiddlewaresDebugPanel``, ``VersionDebugPanel``,
+ ``RoutesDebugPanel``, ``RequestVarsDebugPanel``, ``LoggingPanel``
+
+
+ Help Needed
+ -----------
+ Are you coder looking for a project to contribute to
+ python/asyncio libraries? This is the project for you!
+
+
+ Install and Configuration
+ -------------------------
+ ::
+
+ $ pip install aiohttp_debugtoolbar
+
+
+ In order to plug in ``aiohttp_debugtoolbar``, call
+ ``aiohttp_debugtoolbar.setup`` on your app.
+
+ .. code:: python
+
+ import aiohttp_debugtoolbar
+ app = web.Application(loop=loop)
+ aiohttp_debugtoolbar.setup(app)
+
+
+ Full Example
+ ------------
+
+ .. code:: python
+
+ import asyncio
+ import jinja2
+ import aiohttp_debugtoolbar
+ import aiohttp_jinja2
+
+ from aiohttp import web
+
+
+ @aiohttp_jinja2.template('index.html')
+ def basic_handler(request):
+ return {'title': 'example aiohttp_debugtoolbar!',
+ 'text': 'Hello aiohttp_debugtoolbar!',
+ 'app': request.app}
+
+
+ @asyncio.coroutine
+ def exception_handler(request):
+ raise NotImplementedError
+
+
+ @asyncio.coroutine
+ def init(loop):
+ # add aiohttp_debugtoolbar middleware to you application
+ app = web.Application(loop=loop)
+ # install aiohttp_debugtoolbar
+ aiohttp_debugtoolbar.setup(app)
+
+ template = """
+ <html>
+ <head>
+ <title>{{ title }}</title>
+ </head>
+ <body>
+ <h1>{{ text }}</h1>
+ <p>
+ <a href="{{ app.router['exc_example'].url() }}">
+ Exception example</a>
+ </p>
+ </body>
+ </html>
+ """
+ # install jinja2 templates
+ loader = jinja2.DictLoader({'index.html': template})
+ aiohttp_jinja2.setup(app, loader=loader)
+
+ # init routes for index page, and page with error
+ app.router.add_route('GET', '/', basic_handler, name='index')
+ app.router.add_route('GET', '/exc', exception_handler,
+ name='exc_example')
+
+ handler = app.make_handler()
+ srv = yield from loop.create_server(handler, '127.0.0.1', 9000)
+ print("Server started at http://127.0.0.1:9000")
+ return srv, handler
+
+
+ loop = asyncio.get_event_loop()
+ srv, handler = loop.run_until_complete(init(loop))
+ try:
+ loop.run_forever()
+ except KeyboardInterrupt:
+ loop.run_until_complete(handler.finish_connections())
+
+ Thanks!
+ -------
+
+ I've borrowed a lot of code from following projects. I highly
+ recommend to check them out:
+
+ * pyramid_debugtoolbar_
+ * django-debug-toolbar_
+ * flask-debugtoolbar_
+
+ Play With Demo
+ --------------
+
+ https://github.com/aio-libs/aiohttp_debugtoolbar/tree/master/demo
+
+ Requirements
+ ------------
+
+ * Python_ 3.4+
+ * aiohttp_
+ * aiohttp_jinja2_
+
+
+ .. _Python: https://www.python.org
+ .. _asyncio: http://docs.python.org/3.4/library/asyncio.html
+ .. _aiohttp: https://github.com/KeepSafe/aiohttp
+ .. _aiopg: https://github.com/aio-libs/aiopg
+ .. _aiomysql: https://github.com/aio-libs/aiomysql
+ .. _aiohttp_jinja2: https://github.com/aio-libs/aiohttp_jinja2
+ .. _pyramid_debugtoolbar: https://github.com/Pylons/pyramid_debugtoolbar
+ .. _django-debug-toolbar: https://github.com/django-debug-toolbar/django-debug-toolbar
+ .. _flask-debugtoolbar: https://github.com/mgood/flask-debugtoolbar
+
+ CHANGES
+ -------
+
+ 0.1.1 (2016-02-21)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed a demo
+
+ * Added syntax highlight in traceback view, switched highlighter from
+ highlight.js to prism.js #31
+
+ 0.1.0 (2016-02-13)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed python 3.5 support (Thanks @stormandco!)
+
+ * Added view source button in RoutesDebugPanel (Thanks @stormandco!)
+
+ * Dropped support for Python 3.3 (Thanks @sloria!)
+
+ * Add middleware in setup method (Thanks @sloria!)
+
+ * Fixed bug with interactive console
+
+ * Fixed support for aiohttp>=0.21.1
+
+
+ 0.0.5 (2015-09-13)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed IPv6 socket family error (Thanks @stormandco!)
+
+
+ 0.0.4 (2015-09-05)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed support for aiohttp>=0.17. (Thanks @himikof!)
+
+
+ 0.0.3 (2015-07-03)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Switched template engine from mako to jinja2. (Thanks @iho!)
+
+ * Added custom *yield from* to track context switches inside coroutine.
+
+ * Implemented panel for collecting request log messages.
+
+ * Disable toolbar code injecting for non web.Response answers
+ (StreamResponse or WebSocketResponse for example) #12
+
+
+ 0.0.2 (2015-05-26)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Redesign UI look-and-feel
+
+ * Rename `toolbar_middleware_factory` to just `middleware`.
+
+
+ 0.0.1 (2015-05-18)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Initial release.
+Platform: UNKNOWN
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Intended Audience :: Developers
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Topic :: Internet :: WWW/HTTP
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..36b05b7
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,154 @@
+aiohttp_debugtoolbar
+====================
+.. image:: https://travis-ci.org/aio-libs/aiohttp_debugtoolbar.svg?branch=master
+ :target: https://travis-ci.org/aio-libs/aiohttp_debugtoolbar
+ :alt: |Build status|
+.. image:: https://coveralls.io/repos/aio-libs/aiohttp_debugtoolbar/badge.svg
+ :target: https://coveralls.io/r/aio-libs/aiohttp_debugtoolbar
+ :alt: |Coverage status|
+
+
+**aiohttp_debugtoolbar** provides a debug toolbar for your aiohttp_
+web application. Library is port of pyramid_debugtoolbar_ and
+still in early development stages. Basic functionality has been
+ported:
+
+* basic panels
+* intercept redirects
+* intercept and pretty print exception
+* interactive python console
+* show source code
+
+.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp_debugtoolbar/master/demo/aiohttp_debugtoolba_sceenshot.png
+
+
+Ported Panels
+-------------
+``HeaderDebugPanel``, ``PerformanceDebugPanel``, ``TracebackPanel``,
+``SettingsDebugPanel``, ``MiddlewaresDebugPanel``, ``VersionDebugPanel``,
+``RoutesDebugPanel``, ``RequestVarsDebugPanel``, ``LoggingPanel``
+
+
+Help Needed
+-----------
+Are you coder looking for a project to contribute to
+python/asyncio libraries? This is the project for you!
+
+
+Install and Configuration
+-------------------------
+::
+
+ $ pip install aiohttp_debugtoolbar
+
+
+In order to plug in ``aiohttp_debugtoolbar``, call
+``aiohttp_debugtoolbar.setup`` on your app.
+
+.. code:: python
+
+ import aiohttp_debugtoolbar
+ app = web.Application(loop=loop)
+ aiohttp_debugtoolbar.setup(app)
+
+
+Full Example
+------------
+
+.. code:: python
+
+ import asyncio
+ import jinja2
+ import aiohttp_debugtoolbar
+ import aiohttp_jinja2
+
+ from aiohttp import web
+
+
+ @aiohttp_jinja2.template('index.html')
+ def basic_handler(request):
+ return {'title': 'example aiohttp_debugtoolbar!',
+ 'text': 'Hello aiohttp_debugtoolbar!',
+ 'app': request.app}
+
+
+ @asyncio.coroutine
+ def exception_handler(request):
+ raise NotImplementedError
+
+
+ @asyncio.coroutine
+ def init(loop):
+ # add aiohttp_debugtoolbar middleware to you application
+ app = web.Application(loop=loop)
+ # install aiohttp_debugtoolbar
+ aiohttp_debugtoolbar.setup(app)
+
+ template = """
+ <html>
+ <head>
+ <title>{{ title }}</title>
+ </head>
+ <body>
+ <h1>{{ text }}</h1>
+ <p>
+ <a href="{{ app.router['exc_example'].url() }}">
+ Exception example</a>
+ </p>
+ </body>
+ </html>
+ """
+ # install jinja2 templates
+ loader = jinja2.DictLoader({'index.html': template})
+ aiohttp_jinja2.setup(app, loader=loader)
+
+ # init routes for index page, and page with error
+ app.router.add_route('GET', '/', basic_handler, name='index')
+ app.router.add_route('GET', '/exc', exception_handler,
+ name='exc_example')
+
+ handler = app.make_handler()
+ srv = yield from loop.create_server(handler, '127.0.0.1', 9000)
+ print("Server started at http://127.0.0.1:9000")
+ return srv, handler
+
+
+ loop = asyncio.get_event_loop()
+ srv, handler = loop.run_until_complete(init(loop))
+ try:
+ loop.run_forever()
+ except KeyboardInterrupt:
+ loop.run_until_complete(handler.finish_connections())
+
+Thanks!
+-------
+
+I've borrowed a lot of code from following projects. I highly
+recommend to check them out:
+
+* pyramid_debugtoolbar_
+* django-debug-toolbar_
+* flask-debugtoolbar_
+
+Play With Demo
+--------------
+
+https://github.com/aio-libs/aiohttp_debugtoolbar/tree/master/demo
+
+Requirements
+------------
+
+* Python_ 3.4+
+* aiohttp_
+* aiohttp_jinja2_
+
+
+.. _Python: https://www.python.org
+.. _asyncio: http://docs.python.org/3.4/library/asyncio.html
+.. _aiohttp: https://github.com/KeepSafe/aiohttp
+.. _aiopg: https://github.com/aio-libs/aiopg
+.. _aiomysql: https://github.com/aio-libs/aiomysql
+.. _aiohttp_jinja2: https://github.com/aio-libs/aiohttp_jinja2
+.. _pyramid_debugtoolbar: https://github.com/Pylons/pyramid_debugtoolbar
+.. _django-debug-toolbar: https://github.com/django-debug-toolbar/django-debug-toolbar
+.. _flask-debugtoolbar: https://github.com/mgood/flask-debugtoolbar
diff --git a/aiohttp_debugtoolbar.egg-info/PKG-INFO b/aiohttp_debugtoolbar.egg-info/PKG-INFO
new file mode 100644
index 0000000..39c892a
--- /dev/null
+++ b/aiohttp_debugtoolbar.egg-info/PKG-INFO
@@ -0,0 +1,235 @@
+Metadata-Version: 1.1
+Name: aiohttp-debugtoolbar
+Version: 0.1.1
+Summary: debugtoolbar for aiohttp
+Home-page: https://github.com/aio-libs/aiohttp_debugtoolbar
+Author: Nikolay Novik
+Author-email: nickolainovik at gmail.com
+License: Apache 2
+Description: aiohttp_debugtoolbar
+ ====================
+ .. image:: https://travis-ci.org/aio-libs/aiohttp_debugtoolbar.svg?branch=master
+ :target: https://travis-ci.org/aio-libs/aiohttp_debugtoolbar
+ :alt: |Build status|
+ .. image:: https://coveralls.io/repos/aio-libs/aiohttp_debugtoolbar/badge.svg
+ :target: https://coveralls.io/r/aio-libs/aiohttp_debugtoolbar
+ :alt: |Coverage status|
+
+
+ **aiohttp_debugtoolbar** provides a debug toolbar for your aiohttp_
+ web application. Library is port of pyramid_debugtoolbar_ and
+ still in early development stages. Basic functionality has been
+ ported:
+
+ * basic panels
+ * intercept redirects
+ * intercept and pretty print exception
+ * interactive python console
+ * show source code
+
+ .. image:: https://raw.githubusercontent.com/aio-libs/aiohttp_debugtoolbar/master/demo/aiohttp_debugtoolba_sceenshot.png
+
+
+ Ported Panels
+ -------------
+ ``HeaderDebugPanel``, ``PerformanceDebugPanel``, ``TracebackPanel``,
+ ``SettingsDebugPanel``, ``MiddlewaresDebugPanel``, ``VersionDebugPanel``,
+ ``RoutesDebugPanel``, ``RequestVarsDebugPanel``, ``LoggingPanel``
+
+
+ Help Needed
+ -----------
+ Are you coder looking for a project to contribute to
+ python/asyncio libraries? This is the project for you!
+
+
+ Install and Configuration
+ -------------------------
+ ::
+
+ $ pip install aiohttp_debugtoolbar
+
+
+ In order to plug in ``aiohttp_debugtoolbar``, call
+ ``aiohttp_debugtoolbar.setup`` on your app.
+
+ .. code:: python
+
+ import aiohttp_debugtoolbar
+ app = web.Application(loop=loop)
+ aiohttp_debugtoolbar.setup(app)
+
+
+ Full Example
+ ------------
+
+ .. code:: python
+
+ import asyncio
+ import jinja2
+ import aiohttp_debugtoolbar
+ import aiohttp_jinja2
+
+ from aiohttp import web
+
+
+ @aiohttp_jinja2.template('index.html')
+ def basic_handler(request):
+ return {'title': 'example aiohttp_debugtoolbar!',
+ 'text': 'Hello aiohttp_debugtoolbar!',
+ 'app': request.app}
+
+
+ @asyncio.coroutine
+ def exception_handler(request):
+ raise NotImplementedError
+
+
+ @asyncio.coroutine
+ def init(loop):
+ # add aiohttp_debugtoolbar middleware to you application
+ app = web.Application(loop=loop)
+ # install aiohttp_debugtoolbar
+ aiohttp_debugtoolbar.setup(app)
+
+ template = """
+ <html>
+ <head>
+ <title>{{ title }}</title>
+ </head>
+ <body>
+ <h1>{{ text }}</h1>
+ <p>
+ <a href="{{ app.router['exc_example'].url() }}">
+ Exception example</a>
+ </p>
+ </body>
+ </html>
+ """
+ # install jinja2 templates
+ loader = jinja2.DictLoader({'index.html': template})
+ aiohttp_jinja2.setup(app, loader=loader)
+
+ # init routes for index page, and page with error
+ app.router.add_route('GET', '/', basic_handler, name='index')
+ app.router.add_route('GET', '/exc', exception_handler,
+ name='exc_example')
+
+ handler = app.make_handler()
+ srv = yield from loop.create_server(handler, '127.0.0.1', 9000)
+ print("Server started at http://127.0.0.1:9000")
+ return srv, handler
+
+
+ loop = asyncio.get_event_loop()
+ srv, handler = loop.run_until_complete(init(loop))
+ try:
+ loop.run_forever()
+ except KeyboardInterrupt:
+ loop.run_until_complete(handler.finish_connections())
+
+ Thanks!
+ -------
+
+ I've borrowed a lot of code from following projects. I highly
+ recommend to check them out:
+
+ * pyramid_debugtoolbar_
+ * django-debug-toolbar_
+ * flask-debugtoolbar_
+
+ Play With Demo
+ --------------
+
+ https://github.com/aio-libs/aiohttp_debugtoolbar/tree/master/demo
+
+ Requirements
+ ------------
+
+ * Python_ 3.4+
+ * aiohttp_
+ * aiohttp_jinja2_
+
+
+ .. _Python: https://www.python.org
+ .. _asyncio: http://docs.python.org/3.4/library/asyncio.html
+ .. _aiohttp: https://github.com/KeepSafe/aiohttp
+ .. _aiopg: https://github.com/aio-libs/aiopg
+ .. _aiomysql: https://github.com/aio-libs/aiomysql
+ .. _aiohttp_jinja2: https://github.com/aio-libs/aiohttp_jinja2
+ .. _pyramid_debugtoolbar: https://github.com/Pylons/pyramid_debugtoolbar
+ .. _django-debug-toolbar: https://github.com/django-debug-toolbar/django-debug-toolbar
+ .. _flask-debugtoolbar: https://github.com/mgood/flask-debugtoolbar
+
+ CHANGES
+ -------
+
+ 0.1.1 (2016-02-21)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed a demo
+
+ * Added syntax highlight in traceback view, switched highlighter from
+ highlight.js to prism.js #31
+
+ 0.1.0 (2016-02-13)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed python 3.5 support (Thanks @stormandco!)
+
+ * Added view source button in RoutesDebugPanel (Thanks @stormandco!)
+
+ * Dropped support for Python 3.3 (Thanks @sloria!)
+
+ * Add middleware in setup method (Thanks @sloria!)
+
+ * Fixed bug with interactive console
+
+ * Fixed support for aiohttp>=0.21.1
+
+
+ 0.0.5 (2015-09-13)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed IPv6 socket family error (Thanks @stormandco!)
+
+
+ 0.0.4 (2015-09-05)
+ ^^^^^^^^^^^^^^^^^^
+
+ * Fixed support for aiohttp>=0.17. (Thanks @himikof!)
... 15814 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/aiohttp-debugtoolbar.git
More information about the Python-modules-commits
mailing list