Traversal based asyncronious web framework
Project description
This is framework, around aiohttp_traversal.
Tests
$ pip install pytest
$ py.test
CHANGES
0.8.0 (2016-01-10)
Started CHANGES;
New configuration process:
def main(): loop = asyncio.get_event_loop() app = Application() with app.configure(loop=loop) as config: config.include(func) app.start() def func(config): work_configure()
Add Configure.include_deferred;
Add modules for command line:
aiotraversal.cmd;
aiotraversal.logger;
aiotraversal.serve;
import asyncio from aiotraversal import Application from aiotraversal.cmd import run def main(): loop = asyncio.get_event_loop() app = Application() with app.configure(loop=loop) as config: config.include('aiotraversal.cmd') config.include('aiotraversal.logger') config.include('aiotraversal.serve') run(app, loop) if __name__ == '__main__': main()
$ cmd usage: cmd [--loglevel WARNING] {help,serve} ... positional arguments: {help,serve} help Print this help serve Start web server optional arguments: --loglevel WARNING Set log level $ cmd --loglevel=DEBUG serve INFO:aiotraversal.app:listening - localhost:8080 ^CDEBUG:aiotraversal.cmd:finishing application DEBUG:aiotraversal.cmd:closing loop
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiotraversal-0.8.2.tar.bz2
(5.7 kB
view details)
File details
Details for the file aiotraversal-0.8.2.tar.bz2
.
File metadata
- Download URL: aiotraversal-0.8.2.tar.bz2
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219e8d365f3d9cbd9777799b6ccb00f733815e260e2503ccb5dfe28a3cfefa44 |
|
MD5 | 1f1cd128fd067dd84bdb1218b26a9b08 |
|
BLAKE2b-256 | 51f7fae08e18da2c46081f6e36c9bf3e3a8664d1e7b474d36603d8658cc5cf78 |