- 简介
- 目录大纲
- 最新文档
- 文集下载
python 生成指定区间的日期序列
```python from datetime import datetime, timedelta def get_dates(start_date,end_date): start_date = datetime.strptime(start_date, '%Y-%m-%d') end_date = datetime.strptime(end_date, '%Y-%m-%...……
vleity - 2025年7月28日 10:58
sqlalchemy 数据库表映射到 model
数据库表映射到 model ```python from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.sql.schema import Table engine = create_engine("mysql+pymysql://...……
vleity - 2025年7月14日 17:11
python通过jaydebeapi连接pg
python通过jaydebeapi连接pg ```python import jaydebeapi url = 'jdbc:postgresql://127.0.0.1:18801/postgres' user = 'postgres' password = 'postgres' driver = 'org.postgresql.Driver' jarFile = 'postgresql-...……
vleity - 2025年7月14日 17:06
使用jinja2模板渲染sql脚本
1、目录结构 ├── sql_render.py ├── __init__.py ├── example │ └── hive_create_table.py └── templates └── hive_create_table.sql 2、sql_render.py render 类 ```python import os, jinja2 class SqlRender: ...……
vleity - 2025年7月14日 16:14
poetry 项目管理工具的使用
安装 bash pip install poetry 配置 ```bash 此处直接修改 cache-dir 就会修改 cache-dir 和 virtualenvs.path 的路径 poetry config cache-dir /poetry_enev 查看配置 poetry config --list 恢复默认值 poetry config cache-dir --unset 设置 ...……
vleity - 2025年7月14日 12:54