Skip to content

pyos/dogeweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dogeweb

asyncio + anonymous functions + the best language ever.

Usage

import '/dogeweb'
import '/dogeweb/r'
import '/dogeweb/property'  # allows to use `~> @stuff` instead of `req -> req.stuff`


app = dogeweb.app $ r.path
  '/', ~> 'Hello, World!'

See this example for something slightly more complex.

Usage, decorator-style

import dg
import dogeweb

root = dogeweb.r.path()

@root.route('/')
def hello(request):
    return 'Hello, World!'

app = dogeweb.app(root)

Running in development

app.run '0.0.0.0' 8000  # dg
app.run('0.0.0.0', 8000)  # python

Running in production

gunicorn -k dogeweb.gunicorn.Worker helloworld:app

About

A functional web framework atop asyncio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages