Skip to main content

Traversal based asyncronious web framework

Project description

https://api.travis-ci.org/zzzsochi/aiotraversal.svg https://coveralls.io/repos/zzzsochi/aiotraversal/badge.svg

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


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.1.tar.bz2 (5.7 kB view details)

Uploaded Source

File details

Details for the file aiotraversal-0.8.1.tar.bz2.

File metadata

File hashes

Hashes for aiotraversal-0.8.1.tar.bz2
Algorithm Hash digest
SHA256 377eb30f5de641700ec7c843a237c3535acd56475b532795178fd456abc0f2f5
MD5 c4aa394d36ac317884419c6ca11d181a
BLAKE2b-256 284a439021b0543f95524035b3b75691a0b6122970fc98334292062f9b460d7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page