Appwrite Console Python SDK
This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check previous releases.
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Console Python SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to https://appwrite.io/docs
Installation
To install via PyPI:
pip install appwrite-console
Or with uv:
uv add appwrite-console
Getting Started
The Appwrite Console SDK for Python drives the Console API — organizations, projects, billing, and everything else the Console itself calls. It is separate from sdk-for-python, which targets the public server API.
Installation
pip install appwrite-console
The package installs as appwrite-console and imports as appwrite_console, so it can
sit alongside appwrite in the same environment.
Requirements: Python 3.9+
Init your SDK
from appwrite_console.client import Client
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1')
client.set_project('console')
client.set_session('your-console-session')
Console endpoints authenticate as a Console user, not with a project API key. Use
set_session() with a Console session, or set_jwt() where you hold a token.
For a self-hosted instance with a self-signed certificate:
client.set_self_signed(True) # Dev only
Organizations
from appwrite_console.services.organizations import Organizations
organizations = Organizations(client)
result = organizations.list()
for organization in result.teams:
print(organization.id, organization.name)
Projects
Projects are scoped to an organization:
from appwrite_console.services.organization import Organization
organization = Organization(client)
organization.client.set_organization('your-organization-id')
projects = organization.list_projects()
for project in projects.projects:
print(project.id, project.name)
project = organization.get_project('your-project-id')
Queries
from appwrite_console.query import Query
result = organization.list_projects(queries=[
Query.limit(25),
Query.order_desc('$createdAt'),
])
Error handling
from appwrite_console.exception import AppwriteException
try:
project = organization.get_project('missing-project')
except AppwriteException as error:
print(error.message, error.code, error.type)
Full example
from appwrite_console.client import Client
from appwrite_console.services.organizations import Organizations
from appwrite_console.services.organization import Organization
from appwrite_console.exception import AppwriteException
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1')
client.set_project('console')
client.set_session('your-console-session')
organizations = Organizations(client)
organization = Organization(client)
try:
for team in organizations.list().teams:
client.set_organization(team.id)
for project in organization.list_projects().projects:
print(f'{team.name} / {project.name} ({project.id})')
except AppwriteException as error:
print(f'Error: {error.message}')
Contribution
This library is auto-generated by Appwrite custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.
License
Please see the BSD-3-Clause license file for more information.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file appwrite_console-0.3.0.tar.gz.
File metadata
- Download URL: appwrite_console-0.3.0.tar.gz
- Upload date:
- Size: 294.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8065c9e29fe4d8c75e565a9e14b94e1822f080afe408380c50adf5fa4d50955f
|
|
| MD5 |
3942d76890b31d4fee99d943e1eb079d
|
|
| BLAKE2b-256 |
d82e225524a64d849dffc1580c65efa1f2797962a9018c18c6332cbf65ebaa38
|
Provenance
The following attestation bundles were made for appwrite_console-0.3.0.tar.gz:
Publisher:
publish.yml on appwrite/sdk-for-console-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
appwrite_console-0.3.0.tar.gz -
Subject digest:
8065c9e29fe4d8c75e565a9e14b94e1822f080afe408380c50adf5fa4d50955f - Sigstore transparency entry: 2340249693
- Sigstore integration time:
-
Permalink:
appwrite/sdk-for-console-python@97b385b1e78475cf5e016b22fb84d4d47b31f5d6 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/appwrite
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@97b385b1e78475cf5e016b22fb84d4d47b31f5d6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file appwrite_console-0.3.0-py3-none-any.whl.
File metadata
- Download URL: appwrite_console-0.3.0-py3-none-any.whl
- Upload date:
- Size: 517.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83497d711ac0aa8e30b67b62c9423b216ee7a20ddc4b1202b8656bf1f0bd1f21
|
|
| MD5 |
1ca57d774482154167b11556d123efe3
|
|
| BLAKE2b-256 |
21f27d144e6cf5c877b57b26da230af9f771695ebd229f6b096ece567084bd52
|
Provenance
The following attestation bundles were made for appwrite_console-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on appwrite/sdk-for-console-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
appwrite_console-0.3.0-py3-none-any.whl -
Subject digest:
83497d711ac0aa8e30b67b62c9423b216ee7a20ddc4b1202b8656bf1f0bd1f21 - Sigstore transparency entry: 2340249878
- Sigstore integration time:
-
Permalink:
appwrite/sdk-for-console-python@97b385b1e78475cf5e016b22fb84d4d47b31f5d6 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/appwrite
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@97b385b1e78475cf5e016b22fb84d4d47b31f5d6 -
Trigger Event:
release
-
Statement type: