Commit 107a897b by yexing

现代化项目配置

parent 0e312bea
...@@ -3,3 +3,5 @@ log ...@@ -3,3 +3,5 @@ log
old old
fu_data fu_data
out out
.venv
*.lock
This source diff could not be displayed because it is too large. You can view the blob instead.
[project]
name = "wfs-export"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.9.18"
dependencies = [
"loguru",
"aiofiles",
"bs4",
"curl_cffi",
"fake_useragent",
"tenacity",
"redis>=7.0.1",
"requests>=2.32.5",
]
[[tool.uv.index]]
name = "tuna"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
[dependency-groups]
dev = [
"nuitka>=2.8.9",
"ordered-set>=4.1.0",
"zstandard>=0.25.0",
]
loguru
aiofiles
bs4
curl_cffi
fake_useragent
tenacity
oss2
...@@ -24,8 +24,8 @@ class Subsidiary: ...@@ -24,8 +24,8 @@ class Subsidiary:
if self.r is None: if self.r is None:
self.r = redis.Redis( self.r = redis.Redis(
host="localhost", host="localhost",
port=int(os.getenv("REDIS_HOST", 6380)), port=int(os.getenv("REDIS_HOST", 6379)),
password=os.getenv("REDIS_PASSWORD"), password=os.getenv("REDIS_PASSWORD", "12345678"),
db=0, db=0,
) )
if await self.r.ping(): if await self.r.ping():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment