pymecli 0.4.6__tar.gz → 0.4.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pymecli-0.4.6 → pymecli-0.4.8}/PKG-INFO +1 -1
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/baidu.py +2 -2
- {pymecli-0.4.6 → pymecli-0.4.8}/core/config.py +2 -2
- {pymecli-0.4.6 → pymecli-0.4.8}/core/redis_client.py +1 -1
- {pymecli-0.4.6 → pymecli-0.4.8}/pyproject.toml +2 -2
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/pyredis.py +2 -2
- {pymecli-0.4.6 → pymecli-0.4.8}/.gitignore +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/README.md +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/api/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/api/v1/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/api/v1/clash.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/api/v1/redis.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/bitget.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/dst.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/example.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/fast.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/gate.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/redis_csv.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/cli/util.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/core/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/core/clash.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/crypto/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/crypto/bitget.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/crypto/gate.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/data/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/data/dou_dict.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/data/dou_list.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/data/main.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/data/template.yaml +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/models/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/models/douzero_model.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/models/ocr_model.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/models/response.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/__init__.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/elapsed.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/helper.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/logger.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/mysql.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/path.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/pd.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/sleep.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/text.py +0 -0
- {pymecli-0.4.6 → pymecli-0.4.8}/utils/toml.py +0 -0
|
@@ -16,7 +16,7 @@ r = get_redis_client_sync()
|
|
|
16
16
|
@app.command()
|
|
17
17
|
def acsToken(
|
|
18
18
|
url: str = typer.Argument(
|
|
19
|
-
"https://
|
|
19
|
+
"https://finance.baidu.com/index/ab-000001?name=%25E4%25B8%258A%25E8%25AF%2581%25E6%258C%2587%25E6%2595%25B0",
|
|
20
20
|
help="request url",
|
|
21
21
|
),
|
|
22
22
|
timeout: int = typer.Option(
|
|
@@ -29,7 +29,7 @@ def acsToken(
|
|
|
29
29
|
"""通过selenium获取百度股事通Acs-Token
|
|
30
30
|
|
|
31
31
|
Args:
|
|
32
|
-
url (str, optional): 请求的『URL』地址. Defaults to typer.Argument( "https://
|
|
32
|
+
url (str, optional): 请求的『URL』地址. Defaults to typer.Argument( "https://finance.baidu.com/", help="request url", ).
|
|
33
33
|
timeout (int, optional): _description_. Defaults to typer.Option( 3, "--timeout", "-t", help="timeout内如果没有请求完整,会强制中断,然后从已有的请求中获取数据", ).
|
|
34
34
|
|
|
35
35
|
Returns:
|
|
@@ -13,13 +13,13 @@ class Settings(BaseSettings):
|
|
|
13
13
|
API_V1_STR: str = "/api/v1"
|
|
14
14
|
PROJECT_NAME: str = metadata["Name"]
|
|
15
15
|
|
|
16
|
-
REDIS_HOST: str = "192.168.
|
|
16
|
+
REDIS_HOST: str = "192.168.123.7"
|
|
17
17
|
REDIS_PORT: int = 6379
|
|
18
18
|
REDIS_DB: int = 0
|
|
19
19
|
REDIS_PASSWORD: str = ""
|
|
20
20
|
|
|
21
21
|
PROJECT_DESCRIPTION: str = (
|
|
22
|
-
f"{metadata['Summary']}, FastAPI提供: clash订阅转换、baidu
|
|
22
|
+
f"{metadata['Summary']}, FastAPI提供: clash订阅转换、finance.baidu api"
|
|
23
23
|
)
|
|
24
24
|
PROJECT_VERSION: str = metadata["Version"]
|
|
25
25
|
|
|
@@ -8,7 +8,7 @@ import redis
|
|
|
8
8
|
class RedisClient:
|
|
9
9
|
def __init__(
|
|
10
10
|
self,
|
|
11
|
-
host=os.getenv("REDIS_HOST", "192.168.
|
|
11
|
+
host=os.getenv("REDIS_HOST", "192.168.123.7"),
|
|
12
12
|
port=int(os.getenv("REDIS_PORT", 6379)),
|
|
13
13
|
db=int(os.getenv("REDIS_DB", 0)),
|
|
14
14
|
password=os.getenv("REDIS_PASSWORD"),
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
name = "pymecli"
|
|
34
34
|
readme = "README.md"
|
|
35
35
|
requires-python = ">=3.10"
|
|
36
|
-
version = "0.4.
|
|
36
|
+
version = "0.4.8"
|
|
37
37
|
|
|
38
38
|
[project.urls]
|
|
39
39
|
Homepage = "https://pypi.org/project/pymecli"
|
|
40
40
|
Repository = "https://github.com/meme2046/pymecli"
|
|
41
41
|
|
|
42
42
|
[project.scripts]
|
|
43
|
-
baidu = "cli.baidu:app"
|
|
43
|
+
# baidu = "cli.baidu:app" # 废弃
|
|
44
44
|
bitget = "cli.bitget:app"
|
|
45
45
|
dst = "cli.dst:app"
|
|
46
46
|
example = "cli.example:app"
|
|
@@ -5,7 +5,7 @@ import redis.asyncio as redis
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
def get_redis_client(
|
|
8
|
-
host=os.getenv("REDIS_HOST", "192.168.
|
|
8
|
+
host=os.getenv("REDIS_HOST", "192.168.123.7"),
|
|
9
9
|
port=int(os.getenv("REDIS_PORT", 6379)),
|
|
10
10
|
db=int(os.getenv("REDIS_DB", 0)),
|
|
11
11
|
password=os.getenv("REDIS_PASSWORD"),
|
|
@@ -21,7 +21,7 @@ def get_redis_client(
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
def get_redis_client_sync(
|
|
24
|
-
host=os.getenv("REDIS_HOST", "192.168.
|
|
24
|
+
host=os.getenv("REDIS_HOST", "192.168.123.7"),
|
|
25
25
|
port=int(os.getenv("REDIS_PORT", 6379)),
|
|
26
26
|
db=int(os.getenv("REDIS_DB", 0)),
|
|
27
27
|
password=os.getenv("REDIS_PASSWORD"),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|