摘要:
把模块当做脚本运行,标准库和第三方库都可以 会把当前路径添加到sys.path中
阅读全文
posted @ 2021-06-04 20:24
Go_Forward
阅读(52)
推荐(0)
posted @ 2021-06-03 22:19
Go_Forward
阅读(38)
推荐(0)
摘要:
自定义列 https://groups.google.com/g/sqlalchemy/c/lZw0GipVYFw https://docs.sqlalchemy.org/en/14/core/custom_types.html#types-sql-value-processing
阅读全文
posted @ 2021-05-28 12:12
Go_Forward
阅读(110)
推荐(0)
摘要:
https://realpython.com/python-microservices-grpc/ https://github.com/saqibbutt/python-flask-microservices https://github.com/PacktPublishing/Hands-on-
阅读全文
posted @ 2021-05-26 15:17
Go_Forward
阅读(183)
推荐(0)
摘要:
insert ignore # insert ignoreinsert_stmt = TimePoint.__table__.insert().prefix_with(" ignore").values(data) session.execute(insert_stmt) # insert on d
阅读全文
posted @ 2021-05-25 10:58
Go_Forward
阅读(1237)
推荐(0)
摘要:
flask的不同部署方式 使用gevent部署,只是在不同请求之间是异步的,同一个请求之间还是串行的。 https://iximiuz.com/en/posts/flask-gevent-tutorial/
阅读全文
posted @ 2021-05-07 21:09
Go_Forward
阅读(91)
推荐(0)
摘要:
大多数情况下,对socket来说,阻塞和同步是一个东西 阻塞:调用后,等待,直到拿到结果 非阻塞:调用后,api返回一个错误,后面调用方轮训或者api通知调用方 异步:调用后,api立即返回,结果ready后,通知调用方 https://stackoverflow.com/questions/262
阅读全文
posted @ 2021-05-06 20:07
Go_Forward
阅读(65)
推荐(0)
摘要:
https://realpython.com/python-microservices-grpc/ https://www.manning.com/books/developing-microservice-apis-with-python https://www.freecodecamp.org/
阅读全文
posted @ 2021-04-11 15:26
Go_Forward
阅读(80)
推荐(0)
摘要:
使用git-pylint-commit-hook工具 pre-commit脚本 配置文件放在仓库根目录/hooks下面 git-pylint-commit-hook --limit=9.0 --pylintrc=hooks/.pylintrc 配置 [BASIC] # Regular express
阅读全文
posted @ 2021-04-09 23:45
Go_Forward
阅读(163)
推荐(0)
摘要:
https://stackoverflow.com/questions/427207/can-git-hook-scripts-be-managed-along-with-the-repository
阅读全文
posted @ 2021-04-08 21:05
Go_Forward
阅读(116)
推荐(0)