Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrading aiohttp and correcting README #2561

Merged
merged 1 commit into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 16 additions & 28 deletions frameworks/Python/aiohttp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@ separately [asyncpg](https://magicstack.github.io/asyncpg/current/) for database

### Database

PostgreSQL
PostgreSQL.

Two variants:
* ORM using [aiopg + sqlalchemy](http://aiopg.readthedocs.io/en/stable/sa.html)
* RAW using [asyncpg](https://magicstack.github.io/asyncpg/current/)

**To enabled "RAW" mode set the following environment variable:**

```
export CONNECTION=RAW
```

This will switch which database engine the app uses to execute queries with tests 2, 3, 4 & 5.

### Server

Expand All @@ -33,44 +45,20 @@ gunicorn+uvloop on CPython

### Test 2: Single Row Query

With ORM:

http://localhost:8080/db

Without ORM (raw):

http://localhost:8080/raw/db

### Test 3: Multi Row Query

With ORM:

http://localhost:8080/queries?queries=20

Without ORM (raw):

http://localhost:8080/raw/queries?queries=20
http://localhost:8080/queries/20

### Test 4: Fortunes (Template rendering)

With ORM:

http://localhost:8080/fortunes

Without ORM (raw):

http://localhost:8080/raw/fortunes

### Test 5: Update Query

With ORM:

http://localhost:8080/updates?queries=20

Without ORM (raw):

http://localhost:8080/raw/updates?queries=20
http://localhost:8080/updates/20

### Test6: Plaintext
### Test 6: Plaintext

http://localhost:8080/plaintext
2 changes: 1 addition & 1 deletion frameworks/Python/aiohttp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aiohttp==1.2.0
aiohttp==1.3.1
aiohttp-jinja2==0.13.0
aiopg==0.13.0
asyncpg==0.8.4
Expand Down