dullbananas
/
phosphorus
Archived
1
0
Fork 0
Basic regex-based WSGI framework
This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Dull Bananas b870213352 Add unit test 2019-08-11 01:14:36 +00:00
phosphorus Improve efficiency 2019-08-11 00:58:35 +00:00
.gitignore Initial commit 2019-08-10 09:42:21 -07:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2019-08-10 17:47:21 -07:00
LICENSE Initial commit 2019-08-10 09:42:21 -07:00
README.md Update README.md 2019-08-10 17:41:05 -07:00
setup.py Implement stuff 2019-08-11 00:36:52 +00:00
test_phosphorus.py Add unit test 2019-08-11 01:14:36 +00:00

README.md

Phosphorus

Phosphorus is a simple WSGI framework that uses regular expressions for URL endpoints. Here is an example of a simple application implemented in Phosphorus:

import phosphorus

app = phosphorus.App()

@app.add_endpoint('/(.)')
def single_char(match, environ):
    content = f'<html><head></head><body>Character: {match.group(1)}<br/>Environ: {environ}</body></html>'
    return phosphorus.Response(content)