This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vlad Prud
committed
Nov 28, 2020
1 parent
e4ace4e
commit da2bec8
Showing
13 changed files
with
659 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,12 @@ dmypy.json | |
*.jpg | ||
*.tiff | ||
|
||
# Text files | ||
*.txt | ||
*.csv | ||
*.dsv | ||
*.tsv | ||
|
||
# Excel-files | ||
*.xlsx | ||
*.xlsm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
run: | ||
python -m aiohttp.web -H localhost -P 8080 api.main:init | ||
python3 -m api --host localhost --port 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import asyncio | ||
import argparse | ||
import logging | ||
|
||
from aiohttp import web | ||
from api.routes import setup_routes | ||
|
||
parser = argparse.ArgumentParser(description="aiohttp server example") | ||
parser.add_argument('--host') | ||
parser.add_argument('--port') | ||
|
||
def main(): | ||
logging.basicConfig(level=logging.DEBUG) | ||
args = parser.parse_args() | ||
app = web.Application() | ||
|
||
setup_routes(app) | ||
|
||
web.run_app(app, host=args.host, port=args.port) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Worker: | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def print(self): | ||
print('KK') |
Empty file.
Empty file.
Empty file.
Oops, something went wrong.