Skip to content

Commit

Permalink
s/Pythonic/Stupid/
Browse files Browse the repository at this point in the history
  • Loading branch information
0x67757300 committed Dec 15, 2023
1 parent 3e2d050 commit b91a519
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# µHTTP - Pythonic web development
# µHTTP - Stupid web development

µHTTP emerged from the need of a **simple** web framework. It's great for micro-services, small applications, AND monolithic monsters.

_In µHTTP there is no hidden logic. Everything is what it seems._
µHTTP emerged from the need of a simple web framework. It's great for micro-services, small applications, AND monolithic monsters.

### Why

- Stupid simple, seriously, there are maybe 15 lines of "real" code in it. _No external dependencies._
- Extremely modular, entire extensions can just follow the simple App pattern.
- Very flexible, because of decisions like being able to raise Responses.
- Quite fast, because it doesn't do much.
- Very flexible, you can even raise responses.
- Quite fast, because size matters.
- Great learning device.

[The rant.](https://lobste.rs/s/ukh5id/uhttp_pythonic_web_development#c_9jln1d)
Expand All @@ -31,17 +29,13 @@ pip install uvicorn
### Hello, world!

```python
#!/usr/bin/env python3

from uhttp import App


app = App()


@app.get('/')
def hello(request):
return f'Hello, {request.ip or "World"}!'
return f'Hello, {request.ip}!'


if __name__ == '__main__':
Expand All @@ -51,7 +45,7 @@ if __name__ == '__main__':

### Documentation

First, you should read the [tutorial](https://github.com/0x67757300/uHTTP-Tutorial). It will show you how to write and deploy a link aggregation platform (read: Hacker News clone).
First, read the [tutorial](https://github.com/0x67757300/uHTTP-Tutorial). It'll show you how to write and deploy a link aggregation platform (read: Hacker News clone).

Then, take look at the [API reference](https://0x67757300.github.io/uHTTP/uhttp.html).

Expand All @@ -61,11 +55,11 @@ Finally, enjoy the source code. ;)

_µHTTP doesn't come with bells and whistles._

If you want more, search for [µHTTP extensions](https://github.com/topics/uhttp). No luck? Write your own?!
If you want more, search for [µHTTP extensions](https://github.com/topics/uhttp).

### Contributing

All contributions are welcome.
Feel free to contribute in any way you'd like. :D

### License

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "uHTTP"
version = "1.3.2"
description = "Pythonic web development"
version = "1.3.3"
description = "Stupid web development"
authors = ["gus <[email protected]>"]
license = "MIT"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion uhttp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""µHTTP - Pythonic web development"""
"""µHTTP - Stupid web development"""

import re
import json
Expand Down

0 comments on commit b91a519

Please sign in to comment.