Skip to content

Commit 6274aaf

Browse files
authored
Merge pull request #2596 from appwrite/docs/fix-python-tablesdb
docs quickstart: update Python SDK to supported version for TablesDB and fix imports
2 parents f952c79 + 0ca417b commit 6274aaf

File tree

10 files changed

+18
-19
lines changed

10 files changed

+18
-19
lines changed

src/routes/docs/products/databases/atomic-numeric-operations/+page.markdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const result = await tablesDB.incrementRowColumn({
127127
```
128128
```server-python
129129
from appwrite.client import Client
130-
from appwrite.services.tablesDB import TablesDB
130+
from appwrite.services.tables_db import TablesDB
131131

132132
client = Client()
133133
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@@ -260,7 +260,7 @@ const result = await tablesDB.decrementRowColumn({
260260
```
261261
```server-python
262262
from appwrite.client import Client
263-
from appwrite.services.tablesDB import TablesDB
263+
from appwrite.services.tables_db import TablesDB
264264

265265
client = Client()
266266
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

src/routes/docs/products/databases/bulk-operations/+page.markdoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const result = await tablesDB.createRows(
5858

5959
```server-python
6060
from appwrite.client import Client
61-
from appwrite.services.tablesDB import TablesDB
61+
from appwrite.services.tables_db import TablesDB
6262

6363
client = Client()
6464
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1')
@@ -118,7 +118,7 @@ const result = await tablesDB.updateRows(
118118

119119
```server-python
120120
from appwrite.client import Client
121-
from appwrite.services.tablesDB import TablesDB
121+
from appwrite.services.tables_db import TablesDB
122122

123123
client = Client()
124124
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1')
@@ -178,7 +178,7 @@ const result = await tablesDB.upsertRows(
178178

179179
```server-python
180180
from appwrite.client import Client
181-
from appwrite.services.tablesDB import TablesDB
181+
from appwrite.services.tables_db import TablesDB
182182
from appwrite.id import ID
183183

184184
client = Client()
@@ -236,7 +236,7 @@ const result = await tablesDB.deleteRows(
236236

237237
```server-python
238238
from appwrite.client import Client
239-
from appwrite.services.tablesDB import TablesDB
239+
from appwrite.services.tables_db import TablesDB
240240
from appwrite.query import Query
241241

242242
client = Client()

src/routes/docs/products/databases/databases/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $result = $tablesDB->create('<DATABASE_ID>', '<NAME>');
8888
```
8989
```python
9090
from appwrite.client import Client
91-
from appwrite.services.tablesDB import TablesDB
91+
from appwrite.services.tables_db import TablesDB
9292

9393
client = Client()
9494

src/routes/docs/products/databases/db-operators/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ $result = $tablesDB->updateRow(
192192
```
193193
```server-python
194194
from appwrite.client import Client
195-
from appwrite.services.tablesDB import TablesDB
195+
from appwrite.services.tables_db import TablesDB
196196
from appwrite.operator import Operator
197197

198198
client = Client()

src/routes/docs/products/databases/queries/+page.markdoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ $result = $tables->listRows(
209209
```server-python
210210
from appwrite.client import Client
211211
from appwrite.query import Query
212-
from appwrite.services.tablesDB import TablesDB
212+
from appwrite.services.tables_db import TablesDB
213213

214214
client = Client()
215215

@@ -2772,4 +2772,3 @@ if err != nil {
27722772
This example demonstrates how to combine `OR` and `AND` operations. The query uses `Query.or()` to match either condition: books under $20 OR magazines under $10.
27732773
Each condition within the OR is composed of two AND conditions - one for the category and one for the price threshold. The database will return rows that match either of these combined conditions.
27742774

2775-

src/routes/docs/products/databases/relationships/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ $tables->createRelationshipColumn(
138138

139139
```python
140140
from appwrite.client import Client
141-
from appwrite.services.tablesDB import TablesDB
141+
from appwrite.services.tables_db import TablesDB
142142

143143
client = (Client()
144144
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

src/routes/docs/products/databases/tables/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $result = $tablesDB->createTable('<DATABASE_ID>', '<TABLE_ID>', '<NAME>');
9191
```
9292
```python
9393
from appwrite.client import Client
94-
from appwrite.services.tablesDB import TablesDB
94+
from appwrite.services.tables_db import TablesDB
9595

9696
client = Client()
9797

src/routes/docs/products/functions/develop/+page.markdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ return function ($context) {
16281628
```
16291629
```python
16301630
from appwrite.client import Client
1631-
from appwrite.services.tablesDB import TablesDB
1631+
from appwrite.services.tables_db import TablesDB
16321632
from appwrite.id import ID
16331633

16341634
import os
@@ -1984,7 +1984,7 @@ return function ($context) {
19841984
```
19851985
```python
19861986
from appwrite.client import Client
1987-
from appwrite.services.tablesDB import TablesDB
1987+
from appwrite.services.tables_db import TablesDB
19881988
from appwrite.id import ID
19891989

19901990
import os

src/routes/docs/products/functions/examples/+page.markdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default async function ({ req, res }) {
308308
```
309309
```python
310310
from appwrite.client import Client
311-
from appwrite.services.tablesDB import TablesDB
311+
from appwrite.services.tables_db import TablesDB
312312
from appwrite.query import Query
313313
import os
314314

@@ -578,7 +578,7 @@ export default async function ({ req, res }) {
578578

579579
```python
580580
from appwrite.client import Client
581-
from appwrite.services.tablesDB import TablesDB
581+
from appwrite.services.tables_db import TablesDB
582582
from appwrite.query import Query
583583
from urllib.parse import parse_qs
584584
import os
@@ -786,4 +786,4 @@ Future main(final context) async {
786786
{% /multicode %}
787787

788788
Use the function by navigating to the function URL in the browser. Submit the form to store the message in the table.
789-
{% /section %}
789+
{% /section %}

src/routes/docs/quick-starts/python/+page.markdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Finally, create a file `my_app.py`.
7575
Install the Python Appwrite SDK.
7676

7777
```sh
78-
pip install appwrite==11.0.0
78+
pip install appwrite==13.6.1
7979
```
8080
{% /section %}
8181
{% section #step-4 step=4 title="Import Appwrite" %}
@@ -93,7 +93,7 @@ Open `my_app.py` and initialize the Appwrite Client. Replace `<PROJECT_ID>` with
9393

9494
```py
9595
from appwrite.client import Client
96-
from appwrite.services.tablesDB import TablesDB
96+
from appwrite.services.tables_db import TablesDB
9797
from appwrite.id import ID
9898

9999
client = Client()

0 commit comments

Comments
 (0)