ݺߣ

ݺߣShare a Scribd company logo
????? ???? ???
Jung Winter
Index
01 02 03
Index
01 02 03
Index
01 02 03
Index
01 02 03
Index
01 02 03
1 !
Disclaimer
01
01
(Lean) ?
01
?
 !
01
?
?
?
01
IO MSA
01
IO MSA
01
gevent
?
gevent
01
01
01
01
3.7
01
Python 3.5
New syntax
async/await
a @ b
*, ** unpacking (e.g. {'x': 1, **{'y': 2}})
New modules
typing
?
?
01
Python 3.6
New syntax
F f'Answer is {value}'

async
?
?
01
Python 3.7
New modules
dataclasses
Enhancement
typing
asyncio
CPython
?
?
02
02
?
02
02
02
02
02 -
Sanic -
sanic
02 -
aiohttp flask
sanic
02 -
sanic
02 -
sanic
02 -
,
sanic
02 -
... ... append...? @=(^o^)@
sanic
02 -
sanic
02 -
sanic
02 -
02 -
WHY?
02 -
02 -
02 -
Service A Service B
02 -
DB ?
? data repository
?
? entity
?
? service
?
? route / presentation / http
02 -
entity + dataclass = ?
02 -
entity
?
dataclass
02 -
dict
entity + dataclass = ?
02 -
docker
? Docker
02 -
docker
02 -
docker
!
300 MB ? 100 MB
02 -
docker
02
02
02 -
pytest
unittest + nose < pytest
fixture
pytest
02 -
pytest
unittest + nose < pytest
fixture
pytest
unittest pytest
02 -
The cleaning hand of pytest
pytest
02 -
The cleaning hand of pytest
pytest
assertXXX
02 -
The cleaning hand of pytest
setUp, tearDown
pytest
assertXXX
02 -
pytest
02 -
pytest fixture
fixture pytest
02 -
pytest fixture
Pytest Flask DB
Python pytest ?xture
Switching from nose to py.test at Mozilla
02 -
DBpytest
Mocking repository
service mocked repository
02 -
API
aioresponses mocking
pytest
02 -
API
URL
pytest
02 -
API
mocking
pytest
02 -
API
API
pytest
02 -
API
mocking ?
API
pytest
02 -
Coverage
pytest-cov ?
02 -
isort
pylint
Optional[black]
02 -
isort
? -
02 -
Git hook
Git hook
$ ./bin/install_hooks.sh
02 -
Git hook
Git hook
bin/pre-push
03
03
isort
pylint
Optional[black]
?
Rainist/styleguide
03
, 1 , indent,
03
PR
03
docker, CI , , hook,
Rainist/python
03
? ? Rainist Python project template based on Cookiecutter
?
Rainist/python
03
? ? Rainist Python project template based on Cookiecutter
? ?
03
GitHub
GitHub?
ISSUE_TEMPLATE.md?
? + +
PULL_REQUEST_TEMPLATE.md?
? +
03
GitHub Issue / PR
03
GitHub Issue / PR
03
GitHub Issue / PR
03
GitHub
03
GitHub
03
GitHub
03
GitHub
03
(c) 2008 Focus Shift/OSNews/Thom Holwerda
03
500
03
500
03
03
-??
03
Remind
01 02 03
Remind
01 02 03
MSA
Remind
01 02 03
MSA
sanic
docker pytest lint
Remind
01 02 03
MSA
sanic
docker pytest lint
?
GitHub
????? ???? ???
Thank You

More Related Content

????? ???? ???