0.常用功能库一览

予早 2025-08-31 14:59:18
Categories: Tags:
__future__
abc
aiomysql
argparse
asyncio

bisect
bson
calendar
code
codecs
collections
copy
csv
datetime
dateutil
decimal
dingle
distutils
flask
functools
gc
getopt
gsdb
gzip

itertools
jieba
json
logging
math
matplotlib
memcache
mongoengine
multiprocessing
numpy
openpyxl
opensearch
operator
os
pandas
phone  Phone
pickle
pprint
pymongo
pymssql
pymysql
pyquery
random
re
redis
requests

shutil
six
sys
sys, os
threading
time
traceback
urllib
uuid
xlrd
xlwt
zlib
import mimetypes
from PIL import Image
xpinyin

qrcode






rsa
hashlib
base64
hmac












APScheduler
Cython
Django
Flask
Flask-Session
Jinja
MarkupSafe
Paste
Pillow
PyMySQL
PyPDF
PyYAML
Pygments
SQLAlchemy
Werkzeug
__future__
abc
aiofiles
aiomysql
alita
amqp
argparse
asyncio
attrdict
attrs
awsutil
baidu-aip
base64
bcrypt
beautifulsoup
billiard
bisect
blinker
blueprint-decr
boto
botocore
bottle
bson
business-calendar
calendar
captcha
celery
certifi
cffi
chardet
click
code
codecs
collections
copy
crcmod
cryptography
cssselect
csv
cycler
datetime
dateutil
decimal
decorator
deprecation
dingle
dingtalk-sdk
distutils
django-rundirect
django-url-decr
docutils
ephem
et-xmlfile
flask
fluent-logger
fonttools
fpdf
from PIL import Image
functools
gatool
gc
getopt
gevent
greenlet
gsasync
gscache
gsconfig
gscrypto
gsdb
gshundsun
gsqiniu
gsutil
gsweb
gunicorn
gzip
hashlib
hjson
hmac
httplib
httptools
idna
imgkit
import mimetypes
importlib-metadata
importreqs
infinity
intervals
ipython-genutils
itertools
itsdangerous
jdcal
jedi
jieba
jmespath
jplephem
json
kiwisolver
kombu
logging
lunardate
lxml
math
matplotlib
meld
memcache
mongoengine
msgpack-python
multidict
multiprocessing
mysqlclient
nacos-sdk-python
numpy
olefile
openpyxl
opensearch
operator
optionaldict
packaging
pandas
parso
pdfkit
pexpect
phone
pickle
pickleshare
pikepdf
pinyin
pip
pluggy
portalutils
pprint
prompt-toolkit
psutil
ptyprocess
py
py-dateutil
pyCalverter
pyDes
pyaml
pyasn
pycallgraph
pycparser
pycrypto
pycryptodome
pycryptodomex
pycurl
pyluach
pymemcache
pymongo
pymssql
pymysql
pyparsing
pyquery
pysls
python-dateutil
python-docx
python-dotenv
python-memcached
python-redis-lock
pytz
qiniu
qrcode
random
ravenmsg
re
redis
reportlab
requests
rsa
rtconfig
setuptools
sgp
shutil
simplegeneric
simplejson
sitemap-python
six
skyfield
skyfield-data
snowflake.py
suds-py
sys
os
threading
time
toolz
tox
traceback
traitlets
typing_extensions
tzlocal
uritemplate
urllib
uuid
uvloop
uwsgidecorators
validate-email
vine
virtualenv
wcwidth
websockets
wheel
workalendar
wsgi-request-logger
xlrd
xlwt
xpinyin
ynm
zipp
zlib


traceback
aiomysql
pymysql
asyncio

toolz
gevent
abc
unittest
base64



三方服务工具包
redis
mongoengine
boto3
elasticsearch
opensearch
pymongo
pymysql
pymssql
pyquery
awsutil
pymemcache

框架相关
Django
django_rundirect
Jinja2
flask


时间相关
time
datetime
calendar
dateutil

数据结构与算法
collections  Counter\OrderedDict
re
decimal
enum
hashlib

数学
random
math
uuid
numpy
pandas

密码相关
hmac

异常
traceback

日志
logging

测试
unittest


IO与文件
csv
pickle
simplejson
xlrd
xlwt
json
bson
openpyxl
yaml

系统
sys
os
argparse
gc


网络编程
Werkzeug
requests
urllib


并发编程
multiprocessing
threading

语言相关
six
copy
dataclasses
functools
itertools
typing
abc
operator




pinyin
base64
conf
jieba
bisect
phone
itsdangerous
MarkupSafe
click
codecs
httplib2
services
zlib



Kong


https://docs.python.org/3/contents.html


awsutil
gatool
gsasync
gscache
gsconfig
gscrypto
gsdb
gshundsun
gsopensearch
gsqiniu
gsutil
gsweb
ravenmsg



或许后续可以考虑总结一下工具类类别,三方包类别
关于worker和定时任务的梳理总结
gbm的url有crm的前缀,gbm实际上是一个crm和cms结合系统
两种rest封装
Click 相比于 Argparse,就好比 requests 相比于 urllib




三方组件接口


http://docs.mongoengine.org/tutorial.html

流程控制
IO、标准IO、文件IO、IO模型
字符串
元组
字典
编解码、字符集

装饰器
生成器
列表推导式、集合推导式、字典推导式

时间
系统
json
异常

类和对象
反射


并发编程
fastapi==0.111.1
fastapi-utils==0.2.1
pydantic==1.10.12
python-multipart==0.0.7
PyMySQL==1.0.3
python-jose[cryptography]==3.3.0
redis==5.0.1
requests==2.31.0
SQLAlchemy==1.4.48
user-agents==2.2.0
# pydantic==1.10.18
python-dotenv==1.0.1
uvicorn==0.30.6
tenacity==9.0.0
# celery
kombu==5.3.5
celery==5.3.1
celery-redbeat==2.1.1
#
ulid-py==1.1.0
numpy==1.26.4
pandas==2.1.4
munch==4.0.0
oss2==2.18.4
openpyxl==3.1.2
PyJWT==2.8.0
python-consul==1.1.0
slowapi==0.1.9
pytest==8.3.3
tenacity==9.0.0
Werkzeug==2.3.7

pymysql

https://github.com/PyMySQL/PyMySQL

https://pymysql.readthedocs.io/en/latest/

不支持asyncio,可考虑使用aiomysql

aiomysql

https://github.com/aio-libs/aiomysql

https://aiomysql.readthedocs.io/en/stable/

sqlalchemy

支持asyncio

elasticsearch

https://github.com/elastic/elasticsearch-py

https://elasticsearch-py.readthedocs.io/en/latest/

支持asyncio,见https://elasticsearch-py.readthedocs.io/en/latest/async.html

elasticsearch-dsl

https://github.com/elastic/elasticsearch-dsl-py

https://elasticsearch-dsl.readthedocs.io/en/latest/index.html

支持asyncio,见https://elasticsearch-dsl.readthedocs.io/en/latest/asyncio.html

pika

https://github.com/pika/pika

https://pika.readthedocs.io/en/stable/

支持asyncio,见https://pika.readthedocs.io/en/stable/modules/adapters/asyncio.html

https://github.com/pika/pika/blob/main/examples/asyncio_consumer_example.py

aio-pika

https://github.com/mosquito/aio-pika

redis

https://github.com/redis/redis-py

支持asyncio,见https://redis.readthedocs.io/en/stable/examples/asyncio_examples.html

支持连接池,见https://redis.readthedocs.io/en/stable/connections.html#connection-pools

redis-om-python

https://github.com/redis/redis-om-python