cubctl 1.0.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.
cubctl/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ """CUB REST API Python client and CLI."""
2
+
3
+ __version__ = "1.0.0"
4
+
5
+ from .auth import DEVICE_CODE_URL, DeviceCredentials, login_device, normalize_device_code
6
+ from .client import CubClient, DEFAULT_BASE_URL
7
+ from .exceptions import CubApiError
8
+ from .hash_utils import movie_timecode_hash, timecode_hash, tv_timecode_hash
9
+ from .migration import (
10
+ MigrationClients,
11
+ MigrationResult,
12
+ backup_profile,
13
+ clients_for_migration,
14
+ export_profile,
15
+ migrate_profile,
16
+ resolve_migration_tokens,
17
+ restore_profile,
18
+ )
19
+
20
+ __all__ = [
21
+ "CubClient",
22
+ "CubApiError",
23
+ "DEFAULT_BASE_URL",
24
+ "DEVICE_CODE_URL",
25
+ "DeviceCredentials",
26
+ "login_device",
27
+ "normalize_device_code",
28
+ "MigrationClients",
29
+ "MigrationResult",
30
+ "backup_profile",
31
+ "clients_for_migration",
32
+ "export_profile",
33
+ "migrate_profile",
34
+ "resolve_migration_tokens",
35
+ "restore_profile",
36
+ "movie_timecode_hash",
37
+ "timecode_hash",
38
+ "tv_timecode_hash",
39
+ ]
cubctl/__main__.py ADDED
@@ -0,0 +1,6 @@
1
+ """Run: python -m cubctl ..."""
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())