bdpan-cli 0.1.0__py3-none-any.whl
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.
- bdpan_cli/__init__.py +15 -0
- bdpan_cli/_vendor/__init__.py +9 -0
- bdpan_cli/_vendor/openapi_client/__init__.py +27 -0
- bdpan_cli/_vendor/openapi_client/api/__init__.py +6 -0
- bdpan_cli/_vendor/openapi_client/api/auth_api.py +649 -0
- bdpan_cli/_vendor/openapi_client/api/fileinfo_api.py +737 -0
- bdpan_cli/_vendor/openapi_client/api/filemanager_api.py +669 -0
- bdpan_cli/_vendor/openapi_client/api/fileupload_api.py +599 -0
- bdpan_cli/_vendor/openapi_client/api/multimediafile_api.py +391 -0
- bdpan_cli/_vendor/openapi_client/api/userinfo_api.py +315 -0
- bdpan_cli/_vendor/openapi_client/api_client.py +864 -0
- bdpan_cli/_vendor/openapi_client/configuration.py +454 -0
- bdpan_cli/_vendor/openapi_client/exceptions.py +197 -0
- bdpan_cli/_vendor/openapi_client/model/__init__.py +5 -0
- bdpan_cli/_vendor/openapi_client/model/oauth_token_authorization_code_response.py +276 -0
- bdpan_cli/_vendor/openapi_client/model/oauth_token_device_code_response.py +276 -0
- bdpan_cli/_vendor/openapi_client/model/oauth_token_device_token_response.py +276 -0
- bdpan_cli/_vendor/openapi_client/model/oauth_token_refresh_token_response.py +276 -0
- bdpan_cli/_vendor/openapi_client/model/quotaresponse.py +276 -0
- bdpan_cli/_vendor/openapi_client/model/uinforesponse.py +284 -0
- bdpan_cli/_vendor/openapi_client/model_utils.py +2039 -0
- bdpan_cli/_vendor/openapi_client/rest.py +385 -0
- bdpan_cli/_version.py +3 -0
- bdpan_cli/account.py +78 -0
- bdpan_cli/apply_scrape_rename.py +99 -0
- bdpan_cli/auth.py +218 -0
- bdpan_cli/cli.py +1428 -0
- bdpan_cli/config.py +26 -0
- bdpan_cli/dedup.py +310 -0
- bdpan_cli/downloader.py +178 -0
- bdpan_cli/file_manager.py +389 -0
- bdpan_cli/foldering.py +181 -0
- bdpan_cli/logger.py +101 -0
- bdpan_cli/mcp_server.py +547 -0
- bdpan_cli/media_info.py +251 -0
- bdpan_cli/ops.py +173 -0
- bdpan_cli/organize.py +108 -0
- bdpan_cli/preview_scrape.py +182 -0
- bdpan_cli/scraper.py +505 -0
- bdpan_cli/uploader.py +391 -0
- bdpan_cli-0.1.0.dist-info/METADATA +167 -0
- bdpan_cli-0.1.0.dist-info/RECORD +44 -0
- bdpan_cli-0.1.0.dist-info/WHEEL +4 -0
- bdpan_cli-0.1.0.dist-info/entry_points.txt +5 -0
bdpan_cli/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""命令行入口:列出网盘目录。"""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
from bdpan_cli._vendor import openapi_client
|
|
6
|
+
from bdpan_cli._vendor.openapi_client.api.fileinfo_api import FileinfoApi
|
|
7
|
+
from bdpan_cli._vendor.openapi_client.rest import ApiException
|
|
8
|
+
|
|
9
|
+
from bdpan_cli.auth import TokenManager
|
|
10
|
+
from bdpan_cli.config import load_config
|
|
11
|
+
from bdpan_cli._version import __version__
|
|
12
|
+
|
|
13
|
+
from bdpan_cli.cli import main
|
|
14
|
+
|
|
15
|
+
__all__ = ["main", "__version__"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""Vendor dependencies namespace for bdpan_cli.
|
|
2
|
+
|
|
3
|
+
This package vendors the Baidu Netdisk OpenAPI Client to allow standard
|
|
4
|
+
PyPI / Wheel packaging without local relative directory dependencies.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from . import openapi_client
|
|
8
|
+
|
|
9
|
+
__all__ = ["openapi_client"]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
xpan
|
|
5
|
+
|
|
6
|
+
xpanapi # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
__version__ = "1.0.0"
|
|
14
|
+
|
|
15
|
+
# import ApiClient
|
|
16
|
+
from bdpan_cli._vendor.openapi_client.api_client import ApiClient
|
|
17
|
+
|
|
18
|
+
# import Configuration
|
|
19
|
+
from bdpan_cli._vendor.openapi_client.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
# import exceptions
|
|
22
|
+
from bdpan_cli._vendor.openapi_client.exceptions import OpenApiException
|
|
23
|
+
from bdpan_cli._vendor.openapi_client.exceptions import ApiAttributeError
|
|
24
|
+
from bdpan_cli._vendor.openapi_client.exceptions import ApiTypeError
|
|
25
|
+
from bdpan_cli._vendor.openapi_client.exceptions import ApiValueError
|
|
26
|
+
from bdpan_cli._vendor.openapi_client.exceptions import ApiKeyError
|
|
27
|
+
from bdpan_cli._vendor.openapi_client.exceptions import ApiException
|