nerdstack-ark 1.0.0__tar.gz → 1.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nerdstack-ark
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Official Python SDK for Ark storage, with sync, async, and S3-compatible access.
5
5
  Project-URL: Homepage, https://ark.nerdstackgrp.com
6
6
  Project-URL: Documentation, https://github.com/joshhumphrey02/ark-sdk/tree/master/packages/ark-py#readme
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nerdstack-ark"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  description = "Official Python SDK for Ark storage, with sync, async, and S3-compatible access."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -15,7 +15,15 @@ class ArkFile:
15
15
  folder_id: str | None
16
16
  status: str
17
17
  checksum: str | None
18
+ #: Permanent, unsigned CDN delivery URL. Safe to store; it does not expire.
19
+ #: Use this value as-is -- never build a URL from the id or name, and never
20
+ #: append a query parameter to reach a variant. ``thumbnail_url`` is the
21
+ #: thumbnail.
18
22
  url: str
23
+ #: Permanent CDN URL for the generated thumbnail, or None if there is none.
24
+ thumbnail_url: str | None
25
+ #: Permanent CDN URL for the compressed variant, or None if there is none.
26
+ compressed_url: str | None
19
27
  created_at: str | None
20
28
 
21
29
  @classmethod
@@ -30,6 +38,8 @@ class ArkFile:
30
38
  status=str(value.get("status") or "available"),
31
39
  checksum=_optional_string(value.get("checksum")),
32
40
  url=str(value.get("url") or ""),
41
+ thumbnail_url=_optional_string(value.get("thumbnailUrl")),
42
+ compressed_url=_optional_string(value.get("compressedUrl")),
33
43
  created_at=_optional_string(value.get("createdAt")),
34
44
  )
35
45
 
File without changes
File without changes
File without changes