Skip to content

Commit 14a599e

Browse files
committed
Change name again to httpea
1 parent 213357a commit 14a599e

25 files changed

+25
-26
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SOURCE_DIR = http_kit
1+
SOURCE_DIR = httpea
22
TEST_DIR = tests
33
PROJECT_DIRS = $(SOURCE_DIR) $(TEST_DIR)
44
PWD := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# httpkit
1+
# Httpea
22

3-
Httpkit is an abstraction library which provides a set of classes that represent different parts of the http communication process. These classes can be used to build custom http clients and servers, or to extend existing ones.
3+
Httpea is an abstraction library which provides a set of classes that represent different parts of the http communication process. These classes can be used to build custom http clients and servers, or to extend existing ones.
44

55
The idea behind this library is to provide an interface for manipulating http requests and responses in a way that is easy to use and understand.
66

@@ -14,14 +14,14 @@ The idea behind this library is to provide an interface for manipulating http re
1414

1515
## Installation
1616

17-
You can install httpkit using pip:
17+
You can install Httpea using pip:
1818
```bash
19-
pip install httpkit
19+
pip install httpea
2020
```
2121

2222
,or with poetry:
2323
```bash
24-
poetry add httpkit
24+
poetry add httpea
2525
```
2626

2727
## Usage
@@ -33,7 +33,7 @@ This is an example guide of how basic usage of the library looks like. More deta
3333
HttpRequest objects can be compared, they support query string parsing, cookies, headers and body parsing, including multipart body parsing.
3434

3535
```python
36-
from httpkit import HttpRequest, HttpCookie
36+
from httpea import HttpRequest, HttpCookie
3737

3838
request = HttpRequest(HttpRequest.GET, "/" ,query_string="name=John&age=30")
3939
# set headers
@@ -54,7 +54,7 @@ assert str(request.query_string) == "name=John&age=30"
5454
Same like HttpRequest, HttpResponse objects can be compared, they support cookies, headers and body writing.
5555

5656
```python
57-
from httpkit import HttpResponse, HttpCookie, HttpStatus
57+
from httpea import HttpResponse, HttpCookie, HttpStatus
5858

5959
response = HttpResponse("Example response", HttpStatus.OK)
6060

@@ -68,7 +68,7 @@ response.cookies.append(HttpCookie("cookie-name", "cookie-value", secure=True, h
6868
### Route and Router
6969

7070
```python
71-
from httpkit import Route
71+
from httpea import Route
7272

7373
route = Route("/example/{pattern}")
7474
result = route.match("/example/test")
@@ -85,7 +85,7 @@ assert not route.match("/invalid")
8585
```
8686

8787
```python
88-
from httpkit import Router, HttpRequest, HttpNotFoundError
88+
from httpea import Router, HttpRequest, HttpNotFoundError
8989

9090
router = Router()
9191
router.append("/users/{user_id}", lambda request, response, user_id: response.write(user_id), HttpRequest.GET)

http_kit/__init__.py renamed to httpea/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from .http_status import HttpStatus
1515
from .router import Route, Router
1616

17-
1817
__all__ = [
1918
"HttpBadRequestError",
2019
"HttpCookie",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)