post-upload 1.2.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.
@@ -0,0 +1,30 @@
1
+ """
2
+ Deprecated import name kept for code written against the ``indreelforge``
3
+ package (the SDK's name before 1.2.0).
4
+
5
+ Use ``import post_upload`` / ``from post_upload import PostUpload`` instead.
6
+ Everything here is the same object as in :mod:`post_upload` (``IndReelForge``
7
+ is ``PostUpload``, ``IndReelForgeError`` is ``PostUploadError``), and
8
+ ``indreelforge.client`` / ``indreelforge.types`` are the ``post_upload`` modules.
9
+ """
10
+
11
+ import sys as _sys
12
+ import warnings as _warnings
13
+
14
+ _warnings.warn(
15
+ "The 'indreelforge' module is deprecated; the SDK is now called Post-Upload. "
16
+ "Use 'from post_upload import PostUpload' (pip install post-upload).",
17
+ DeprecationWarning,
18
+ stacklevel=2,
19
+ )
20
+
21
+ import post_upload as _post_upload # noqa: E402
22
+ from post_upload import * # noqa: E402,F401,F403
23
+ from post_upload import __all__, __version__ # noqa: E402,F401
24
+ from post_upload import _version, client, types # noqa: E402,F401
25
+
26
+ # ``import indreelforge.client`` / ``from indreelforge.client import ...`` keep
27
+ # working and resolve to the very same module objects.
28
+ for _name in ("client", "types", "_version"):
29
+ _sys.modules[f"{__name__}.{_name}"] = getattr(_post_upload, _name)
30
+ del _name
@@ -0,0 +1,70 @@
1
+ """
2
+ Post-Upload — Official Python SDK
3
+
4
+ One API call to publish videos, photos, text and documents to 22 platforms:
5
+ Instagram, YouTube, TikTok, Facebook, X, LinkedIn, Threads, Pinterest, Reddit,
6
+ Bluesky, Google Business Profile, Discord, Telegram, Slack, Mastodon,
7
+ WordPress, Dev.to, Hashnode, Lemmy, Nostr, Whop and Listmonk.
8
+
9
+ Usage:
10
+ from post_upload import PostUpload
11
+
12
+ client = PostUpload(api_key="your-api-key") # or set POST_UPLOAD_API_KEY
13
+ result = client.upload_video(
14
+ user="my-profile",
15
+ platforms=["instagram", "tiktok", "youtube"],
16
+ video_path="./video.mp4", # files over 95 MiB use the chunked upload
17
+ title="My awesome video",
18
+ )
19
+ """
20
+
21
+ from ._version import __version__
22
+ from .client import (
23
+ API_KEY_ENV_VARS,
24
+ CHUNKED_THRESHOLD,
25
+ CREDENTIAL_OPTIONAL_FIELDS,
26
+ CREDENTIAL_PLATFORMS,
27
+ DEFAULT_BASE_URL,
28
+ MAX_VIDEO_BYTES,
29
+ PLATFORMS,
30
+ IndReelForge,
31
+ IndReelForgeError,
32
+ InReelForge,
33
+ InReelForgeError,
34
+ PostUpload,
35
+ PostUploadError,
36
+ get_skipped_platforms,
37
+ )
38
+ from .types import (
39
+ CompletedUploadSession,
40
+ SkippedPlatform,
41
+ UploadData,
42
+ UploadResponse,
43
+ UploadSession,
44
+ UploadSessionStatus,
45
+ )
46
+
47
+ __all__ = [
48
+ "PostUpload",
49
+ "PostUploadError",
50
+ "get_skipped_platforms",
51
+ "DEFAULT_BASE_URL",
52
+ "PLATFORMS",
53
+ "CREDENTIAL_PLATFORMS",
54
+ "CREDENTIAL_OPTIONAL_FIELDS",
55
+ "CHUNKED_THRESHOLD",
56
+ "MAX_VIDEO_BYTES",
57
+ "API_KEY_ENV_VARS",
58
+ "SkippedPlatform",
59
+ "UploadData",
60
+ "UploadResponse",
61
+ "UploadSession",
62
+ "UploadSessionStatus",
63
+ "CompletedUploadSession",
64
+ # Deprecated aliases (the SDK's names before 1.2.0)
65
+ "IndReelForge",
66
+ "IndReelForgeError",
67
+ "InReelForge",
68
+ "InReelForgeError",
69
+ "__version__",
70
+ ]
@@ -0,0 +1,3 @@
1
+ """Single source of truth for the package version (read by setup.py)."""
2
+
3
+ __version__ = "1.2.0"