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.
Files changed (44) hide show
  1. bdpan_cli/__init__.py +15 -0
  2. bdpan_cli/_vendor/__init__.py +9 -0
  3. bdpan_cli/_vendor/openapi_client/__init__.py +27 -0
  4. bdpan_cli/_vendor/openapi_client/api/__init__.py +6 -0
  5. bdpan_cli/_vendor/openapi_client/api/auth_api.py +649 -0
  6. bdpan_cli/_vendor/openapi_client/api/fileinfo_api.py +737 -0
  7. bdpan_cli/_vendor/openapi_client/api/filemanager_api.py +669 -0
  8. bdpan_cli/_vendor/openapi_client/api/fileupload_api.py +599 -0
  9. bdpan_cli/_vendor/openapi_client/api/multimediafile_api.py +391 -0
  10. bdpan_cli/_vendor/openapi_client/api/userinfo_api.py +315 -0
  11. bdpan_cli/_vendor/openapi_client/api_client.py +864 -0
  12. bdpan_cli/_vendor/openapi_client/configuration.py +454 -0
  13. bdpan_cli/_vendor/openapi_client/exceptions.py +197 -0
  14. bdpan_cli/_vendor/openapi_client/model/__init__.py +5 -0
  15. bdpan_cli/_vendor/openapi_client/model/oauth_token_authorization_code_response.py +276 -0
  16. bdpan_cli/_vendor/openapi_client/model/oauth_token_device_code_response.py +276 -0
  17. bdpan_cli/_vendor/openapi_client/model/oauth_token_device_token_response.py +276 -0
  18. bdpan_cli/_vendor/openapi_client/model/oauth_token_refresh_token_response.py +276 -0
  19. bdpan_cli/_vendor/openapi_client/model/quotaresponse.py +276 -0
  20. bdpan_cli/_vendor/openapi_client/model/uinforesponse.py +284 -0
  21. bdpan_cli/_vendor/openapi_client/model_utils.py +2039 -0
  22. bdpan_cli/_vendor/openapi_client/rest.py +385 -0
  23. bdpan_cli/_version.py +3 -0
  24. bdpan_cli/account.py +78 -0
  25. bdpan_cli/apply_scrape_rename.py +99 -0
  26. bdpan_cli/auth.py +218 -0
  27. bdpan_cli/cli.py +1428 -0
  28. bdpan_cli/config.py +26 -0
  29. bdpan_cli/dedup.py +310 -0
  30. bdpan_cli/downloader.py +178 -0
  31. bdpan_cli/file_manager.py +389 -0
  32. bdpan_cli/foldering.py +181 -0
  33. bdpan_cli/logger.py +101 -0
  34. bdpan_cli/mcp_server.py +547 -0
  35. bdpan_cli/media_info.py +251 -0
  36. bdpan_cli/ops.py +173 -0
  37. bdpan_cli/organize.py +108 -0
  38. bdpan_cli/preview_scrape.py +182 -0
  39. bdpan_cli/scraper.py +505 -0
  40. bdpan_cli/uploader.py +391 -0
  41. bdpan_cli-0.1.0.dist-info/METADATA +167 -0
  42. bdpan_cli-0.1.0.dist-info/RECORD +44 -0
  43. bdpan_cli-0.1.0.dist-info/WHEEL +4 -0
  44. 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
@@ -0,0 +1,6 @@
1
+ """
2
+ __init__.py
3
+ """
4
+ # do not import all apis into this module because that uses a lot of memory and stack frames
5
+ # if you need the ability to import all apis from one package, import them with
6
+ # from bdpan_cli._vendor.openapi_client.apis import AuthApi