Skip to content

feat: Python SDK update for version 19.1.0#144

Merged
premtsd-code merged 2 commits into
mainfrom
dev
May 20, 2026
Merged

feat: Python SDK update for version 19.1.0#144
premtsd-code merged 2 commits into
mainfrom
dev

Conversation

@premtsd-code
Copy link
Copy Markdown
Contributor

@premtsd-code premtsd-code commented May 20, 2026

This PR contains updates to the Python SDK for version 19.1.0.

Changes

  • Added DENO_1_21, DENO_1_24, and DENO_1_35 runtime options
  • Added sizeactual field to File model for compressed file size
  • Updated BillingLimits model fields to be optional
  • Updated Project model billinglimits field to be optional
  • Updated authentication examples in advisor documentation

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 20, 2026

Greptile Summary

This PR updates the Python SDK to version 19.1.0, adding three legacy Deno runtime options, a new required sizeActual field on the File model, and making all BillingLimits fields and the Project.billinglimits association optional. Advisor documentation examples are also corrected to use API-key authentication instead of session-based auth.

  • Enum additions: DENO_1_21, DENO_1_24, and DENO_1_35 inserted in correct version order in both Runtime and BuildRuntime enums.
  • Model changes: BillingLimits fields and Project.billinglimits are now Optional with default=None; File gains a required sizeActual field consistent with the existing sizeOriginal pattern.
  • Tests & docs: Storage test fixtures updated for the new field; all 15 Project fixtures now omit billingLimits (exercising the None path); advisor examples corrected from set_session to set_key.

Confidence Score: 5/5

Safe to merge — all changes are additive or backward-compatible relaxations of previously required fields.

The changes are straightforward: new enum values inserted in the correct position, a new required field on File that mirrors the existing pattern and is covered by updated test fixtures, and field-optionality relaxations on BillingLimits and Project that are strictly backward-compatible. No logic changes, no security concerns, and no broken contracts were identified.

No files require special attention.

Important Files Changed

Filename Overview
appwrite/models/file.py Added required sizeactual field (alias sizeActual) — consistent with all other required File fields; test fixtures updated to include the new value.
appwrite/models/billing_limits.py All eight fields changed from required float to Optional[float] with default=None; Optional was already imported.
appwrite/models/project.py billinglimits field changed from required BillingLimits to Optional[BillingLimits] with default=None; import and typing already in place.
appwrite/enums/build_runtime.py Added DENO_1_21, DENO_1_24, DENO_1_35 entries inserted in version order before the existing DENO_1_40.
appwrite/enums/runtime.py Same three Deno runtime values added in the same correct position as build_runtime.py.
appwrite/client.py User-agent string and x-sdk-version header bumped from 19.0.0 to 19.1.0.
test/services/test_storage.py sizeActual value added to all three File test fixtures to satisfy the new required field.
test/services/test_project.py billingLimits block removed from all 15 Project test fixtures, exercising only the None path of the newly optional field.
pyproject.toml Package version bumped from 19.0.0 to 19.1.0.
setup.py Version and download_url both bumped from 19.0.0 to 19.1.0.

Reviews (2): Last reviewed commit: "feat: update Python SDK to 19.1.0" | Re-trigger Greptile

@@ -40,16 +40,6 @@ def test_get(self, m):
"services": [],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 No test coverage for populated billingLimits

All 15 test fixtures now omit billingLimits entirely, so the test suite only exercises the None (absent) path of the newly-optional field. There is no test that feeds a populated BillingLimits JSON object and verifies it deserializes correctly into Project.billinglimits. If the Pydantic alias mapping or Optional handling were misconfigured for the non-None branch, no existing test would catch it.

* Added `DENO_1_21`, `DENO_1_24`, and `DENO_1_35` runtime options
* Added `sizeactual` field to `File` model for compressed file size
* Updated `BillingLimits` model fields to be optional
* Updated `Project` model `billinglimits` field to be optional
* Updated authentication examples in advisor documentation
@premtsd-code premtsd-code changed the title feat: Python SDK update for version 19.0.1 feat: Python SDK update for version 19.1.0 May 20, 2026
Copy link
Copy Markdown
Member

@ChiragAgg5k ChiragAgg5k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Auto-generated SDK updates consistent with the matching PRs in the other language SDKs (sizeactual on File, BillingLimits optional, Deno 1.21/1.24/1.35 added, advisor docs switched to API key auth, version + changelog bump).

@premtsd-code premtsd-code merged commit 5aaaba3 into main May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants