内容哪里来:
- 内容基本都来官方文档和自己的实践总结
- 介绍的东西确实好用和实用
能带来什么:
- 给您带来的: 花最少的时间掌握最常用的东西
- 性价比高:学习成本不高 VS 收获不少
sh
pip install <name>
pip freeze -r \
> requirements.txt
poetry new pydaily
tree pydaily
poetry shell
poetry add requests
poetry add pytest -D
[tool.poetry.dependencies]
# Get the latest revision on the branch named "next"
requests = { git = "https://github.com/kennethreitz/requests.git", branch = "next" }
poetry add "https://github.com/myorg/mypackage_with_subdirs.git#subdirectory=subdir"
[tool.poetry.dependencies]
# directory
my-package = { path = "../my-package/", develop = false }
# file
my-package = { path = "../my-package/dist/my-package-0.1.0.tar.gz" }