实用的Python库
一.Django
1.自动实现图片压缩: pip install easy-thumbnails / https://pypi.org/project/easy-thumbnails/
2.实现定时任务执行: pip install django-crontab
3.django使用mongoengine对数据进行快速的序列化(类似drf): http://umutbozkurt.github.io/django-rest-framework-mongoengine
4.uWSGI,与 django 契合最好的服务器: https://uwsgi-docs-zh.readthedocs.io/zh_CN/latest/tutorials/Django_and_nginx.html
5.DRF,api 的快速开发与迭代: https://www.django-rest-framework.org/tutorial/1-serialization/
6.异步实现: http://docs.celeryproject.org/en/latest/index.html
7.django 接口性能监测工具: https://github.com/jazzband/django-silk pip install django-silk
8.django html 页面性能监控工具: pip install django-debug-toolbar
9.django admin 美化插件: pip install django-simpleui https://gitee.com/forgo/simpleui/blob/master/README.md
10.django admin 美化插件:https://github.com/sshwsfc/xadmin
11.django 数据导入导出(可在admin操作): pip install django-import-export https://github.com/django-import-export/django-import-export https://django-import-export.readthedocs.io/en/stable/import_workflow.html
12.django 支持多选框(admin): pip install django-multiselectfield https://pypi.org/project/django-multiselectfield/
13.django 实现rpc: https://github.com/alorence/django-modern-rpc https://django-modern-rpc.readthedocs.io/en/latest/quickstart.html
14.django admin 选择框联动修改:https://github.com/jazzband/django-smart-selects#grouped-selects
二.Python通用
1. APNs python3 实现: pip install apns2 / https://github.com/Pr0Ger/PyAPNs2
2. http2.0 python 实现: https://github.com/Lukasa/hyper
3. http2.0协议中英文对照版: https://github.com/fex-team/http2-spec
4. 与mongodb实现orm形式的交互: pip install mongoengine
5. 谷歌开源的rpc框架,gRPC: pip install grpcio && pip install protobuf && pip install grpcio-tool / https://grpc.github.io/grpc/python/index.html
https://grpc.io/docs/guides/
6. 比 json包 性能更好的 json 数据转换工具: pip install ujson
7. python 生成/解析 jwt 工具: pip install jwt
8. python 生成二维码: pip install qrcode
9. python 制作词云: pip install wordcloud
10: 异步实现: http://docs.celeryproject.org/en/latest/index.html
11. python 与 elastic search 进行交互: pip install elasticsearch-dsl(注意:根据ES的版本选择对应版本安装) https://elasticsearch-dsl.readthedocs.io/en/latest/, https://github.com/elastic/elasticsearch-dsl-py/
12. python 与 elastic search 进行交互: pip install pyelasticsearch(是dsl的基础,根据ES的版本选择对应版本安装) https://elasticsearch-py.readthedocs.io/en/master/, https://github.com/elastic/elasticsearch-py
13. python 判断文件的真实格式是否为图片: https://github.com/ahupp/python-magic
14. python 生成rsa公钥私钥: https://www.pycryptodome.org/en/latest/src/examples.html#generate-an-rsa-key
15. python 实现grpc: https://grpc.io/docs/ https://grpc.github.io/grpc/python/index.html http://doc.oschina.net/grpc?t=60138
16. 很好用的 ORM 库: pip install sqlalchemy,可结合 alembic 工具进行数据库的迁移:https://alembic.sqlalchemy.org/en/latest/tutorial.html
17. 更好用的虚拟环境工具:pip install pipenv
整理中...
当我仰望星空, 看见了涛涛江水, 闻到了人声鼎沸;可当我蓦然回望,再也触摸不到那逝去的时光,再也看不到那夕阳下的少年!