appwrite 22.2.0__tar.gz → 24.0.0__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.
- appwrite-24.0.0/PKG-INFO +201 -0
- appwrite-24.0.0/README.md +163 -0
- appwrite-24.0.0/appwrite/__init__.py +0 -0
- appwrite-24.0.0/appwrite/client.py +371 -0
- appwrite-24.0.0/appwrite/encoders/__init__.py +0 -0
- appwrite-24.0.0/appwrite/encoders/value_class_encoder.py +270 -0
- appwrite-24.0.0/appwrite/enums/__init__.py +0 -0
- appwrite-24.0.0/appwrite/enums/adapter.py +6 -0
- appwrite-24.0.0/appwrite/enums/attribute_status.py +9 -0
- appwrite-24.0.0/appwrite/enums/authentication_factor.py +9 -0
- appwrite-24.0.0/appwrite/enums/authenticator_type.py +5 -0
- appwrite-24.0.0/appwrite/enums/backup_services.py +11 -0
- appwrite-24.0.0/appwrite/enums/billing_plan_group.py +7 -0
- appwrite-24.0.0/appwrite/enums/browser.py +18 -0
- appwrite-24.0.0/appwrite/enums/browser_permission.py +24 -0
- appwrite-24.0.0/appwrite/enums/browser_theme.py +6 -0
- appwrite-24.0.0/appwrite/enums/build_runtime.py +97 -0
- appwrite-24.0.0/appwrite/enums/column_status.py +9 -0
- appwrite-24.0.0/appwrite/enums/compression.py +7 -0
- appwrite-24.0.0/appwrite/enums/credit_card.py +21 -0
- appwrite-24.0.0/appwrite/enums/database_status.py +18 -0
- appwrite-24.0.0/appwrite/enums/database_type.py +11 -0
- appwrite-24.0.0/appwrite/enums/databases_index_type.py +8 -0
- appwrite-24.0.0/appwrite/enums/deployment_download_type.py +6 -0
- appwrite-24.0.0/appwrite/enums/deployment_status.py +10 -0
- appwrite-24.0.0/appwrite/enums/documents_db_index_type.py +7 -0
- appwrite-24.0.0/appwrite/enums/embedding_model.py +6 -0
- appwrite-24.0.0/appwrite/enums/execution_method.py +11 -0
- appwrite-24.0.0/appwrite/enums/execution_resource_type.py +6 -0
- appwrite-24.0.0/appwrite/enums/execution_status.py +9 -0
- appwrite-24.0.0/appwrite/enums/execution_trigger.py +7 -0
- appwrite-24.0.0/appwrite/enums/flag.py +199 -0
- appwrite-24.0.0/appwrite/enums/framework.py +19 -0
- appwrite-24.0.0/appwrite/enums/image_format.py +11 -0
- appwrite-24.0.0/appwrite/enums/image_gravity.py +13 -0
- appwrite-24.0.0/appwrite/enums/index_status.py +9 -0
- appwrite-24.0.0/appwrite/enums/invalidation_type.py +7 -0
- appwrite-24.0.0/appwrite/enums/message_priority.py +6 -0
- appwrite-24.0.0/appwrite/enums/message_status.py +9 -0
- appwrite-24.0.0/appwrite/enums/messaging_provider_type.py +7 -0
- appwrite-24.0.0/appwrite/enums/o_auth2_google_prompt.py +7 -0
- appwrite-24.0.0/appwrite/enums/o_auth2_oidc_prompt.py +8 -0
- appwrite-24.0.0/appwrite/enums/o_auth_provider.py +51 -0
- appwrite-24.0.0/appwrite/enums/order_by.py +6 -0
- appwrite-24.0.0/appwrite/enums/organization_key_scopes.py +20 -0
- appwrite-24.0.0/appwrite/enums/password_hash.py +15 -0
- appwrite-24.0.0/appwrite/enums/platform_type.py +9 -0
- appwrite-24.0.0/appwrite/enums/project_auth_method_id.py +11 -0
- appwrite-24.0.0/appwrite/enums/project_email_template_id.py +11 -0
- appwrite-24.0.0/appwrite/enums/project_email_template_locale.py +135 -0
- appwrite-24.0.0/appwrite/enums/project_key_scopes.py +125 -0
- appwrite-24.0.0/appwrite/enums/project_o_auth2_google_prompt.py +7 -0
- appwrite-24.0.0/appwrite/enums/project_o_auth2_oidc_prompt.py +8 -0
- appwrite-24.0.0/appwrite/enums/project_o_auth_provider_id.py +51 -0
- appwrite-24.0.0/appwrite/enums/project_policy_id.py +19 -0
- appwrite-24.0.0/appwrite/enums/project_protocol_id.py +7 -0
- appwrite-24.0.0/appwrite/enums/project_service_id.py +23 -0
- appwrite-24.0.0/appwrite/enums/project_smtp_secure.py +6 -0
- appwrite-24.0.0/appwrite/enums/proxy_resource_type.py +6 -0
- appwrite-24.0.0/appwrite/enums/proxy_rule_deployment_resource_type.py +6 -0
- appwrite-24.0.0/appwrite/enums/proxy_rule_status.py +7 -0
- appwrite-24.0.0/appwrite/enums/region.py +10 -0
- appwrite-24.0.0/appwrite/enums/relation_mutate.py +7 -0
- appwrite-24.0.0/appwrite/enums/relationship_type.py +8 -0
- appwrite-24.0.0/appwrite/enums/runtime.py +97 -0
- appwrite-24.0.0/appwrite/enums/smtp_encryption.py +7 -0
- appwrite-24.0.0/appwrite/enums/status_code.py +8 -0
- appwrite-24.0.0/appwrite/enums/tables_db_index_type.py +8 -0
- appwrite-24.0.0/appwrite/enums/template_reference_type.py +7 -0
- appwrite-24.0.0/appwrite/enums/timezone.py +423 -0
- appwrite-24.0.0/appwrite/enums/vcs_reference_type.py +7 -0
- appwrite-24.0.0/appwrite/enums/vectors_db_index_type.py +10 -0
- appwrite-24.0.0/appwrite/exception.py +7 -0
- appwrite-24.0.0/appwrite/id.py +27 -0
- appwrite-24.0.0/appwrite/input_file.py +22 -0
- appwrite-24.0.0/appwrite/models/__init__.py +605 -0
- appwrite-24.0.0/appwrite/models/activity_event.py +101 -0
- appwrite-24.0.0/appwrite/models/activity_event_list.py +21 -0
- appwrite-24.0.0/appwrite/models/additional_resource.py +32 -0
- appwrite-24.0.0/appwrite/models/algo_argon2.py +26 -0
- appwrite-24.0.0/appwrite/models/algo_bcrypt.py +17 -0
- appwrite-24.0.0/appwrite/models/algo_md5.py +17 -0
- appwrite-24.0.0/appwrite/models/algo_phpass.py +17 -0
- appwrite-24.0.0/appwrite/models/algo_scrypt.py +29 -0
- appwrite-24.0.0/appwrite/models/algo_scrypt_modified.py +26 -0
- appwrite-24.0.0/appwrite/models/algo_sha.py +17 -0
- appwrite-24.0.0/appwrite/models/app.py +93 -0
- appwrite-24.0.0/appwrite/models/app_installation.py +44 -0
- appwrite-24.0.0/appwrite/models/app_installation_list.py +21 -0
- appwrite-24.0.0/appwrite/models/app_key.py +41 -0
- appwrite-24.0.0/appwrite/models/app_key_list.py +21 -0
- appwrite-24.0.0/appwrite/models/app_scope.py +29 -0
- appwrite-24.0.0/appwrite/models/app_scope_list.py +21 -0
- appwrite-24.0.0/appwrite/models/app_secret.py +41 -0
- appwrite-24.0.0/appwrite/models/app_secret_list.py +21 -0
- appwrite-24.0.0/appwrite/models/app_secret_plaintext.py +41 -0
- appwrite-24.0.0/appwrite/models/apps_list.py +21 -0
- appwrite-24.0.0/appwrite/models/attribute_bigint.py +48 -0
- appwrite-24.0.0/appwrite/models/attribute_boolean.py +42 -0
- appwrite-24.0.0/appwrite/models/attribute_datetime.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_email.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_enum.py +48 -0
- appwrite-24.0.0/appwrite/models/attribute_float.py +48 -0
- appwrite-24.0.0/appwrite/models/attribute_integer.py +48 -0
- appwrite-24.0.0/appwrite/models/attribute_ip.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_line.py +42 -0
- appwrite-24.0.0/appwrite/models/attribute_list.py +59 -0
- appwrite-24.0.0/appwrite/models/attribute_longtext.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_mediumtext.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_object.py +39 -0
- appwrite-24.0.0/appwrite/models/attribute_point.py +42 -0
- appwrite-24.0.0/appwrite/models/attribute_polygon.py +42 -0
- appwrite-24.0.0/appwrite/models/attribute_relationship.py +57 -0
- appwrite-24.0.0/appwrite/models/attribute_string.py +48 -0
- appwrite-24.0.0/appwrite/models/attribute_text.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_url.py +45 -0
- appwrite-24.0.0/appwrite/models/attribute_varchar.py +48 -0
- appwrite-24.0.0/appwrite/models/attribute_vector.py +42 -0
- appwrite-24.0.0/appwrite/models/backup_archive.py +50 -0
- appwrite-24.0.0/appwrite/models/backup_archive_list.py +21 -0
- appwrite-24.0.0/appwrite/models/backup_policy.py +50 -0
- appwrite-24.0.0/appwrite/models/backup_policy_list.py +21 -0
- appwrite-24.0.0/appwrite/models/backup_restoration.py +47 -0
- appwrite-24.0.0/appwrite/models/backup_restoration_list.py +21 -0
- appwrite-24.0.0/appwrite/models/base_model.py +28 -0
- appwrite-24.0.0/appwrite/models/billing_limits.py +38 -0
- appwrite-24.0.0/appwrite/models/billing_plan.py +237 -0
- appwrite-24.0.0/appwrite/models/billing_plan_addon.py +21 -0
- appwrite-24.0.0/appwrite/models/billing_plan_addon_details.py +38 -0
- appwrite-24.0.0/appwrite/models/billing_plan_dedicated_database_limits.py +71 -0
- appwrite-24.0.0/appwrite/models/billing_plan_limits.py +20 -0
- appwrite-24.0.0/appwrite/models/billing_plan_supported_addons.py +23 -0
- appwrite-24.0.0/appwrite/models/block.py +47 -0
- appwrite-24.0.0/appwrite/models/bucket.py +56 -0
- appwrite-24.0.0/appwrite/models/bucket_list.py +21 -0
- appwrite-24.0.0/appwrite/models/collection.py +90 -0
- appwrite-24.0.0/appwrite/models/collection_list.py +21 -0
- appwrite-24.0.0/appwrite/models/column_bigint.py +48 -0
- appwrite-24.0.0/appwrite/models/column_boolean.py +42 -0
- appwrite-24.0.0/appwrite/models/column_datetime.py +45 -0
- appwrite-24.0.0/appwrite/models/column_email.py +45 -0
- appwrite-24.0.0/appwrite/models/column_enum.py +48 -0
- appwrite-24.0.0/appwrite/models/column_float.py +48 -0
- appwrite-24.0.0/appwrite/models/column_index.py +44 -0
- appwrite-24.0.0/appwrite/models/column_index_list.py +21 -0
- appwrite-24.0.0/appwrite/models/column_integer.py +48 -0
- appwrite-24.0.0/appwrite/models/column_ip.py +45 -0
- appwrite-24.0.0/appwrite/models/column_line.py +42 -0
- appwrite-24.0.0/appwrite/models/column_list.py +59 -0
- appwrite-24.0.0/appwrite/models/column_longtext.py +45 -0
- appwrite-24.0.0/appwrite/models/column_mediumtext.py +45 -0
- appwrite-24.0.0/appwrite/models/column_point.py +42 -0
- appwrite-24.0.0/appwrite/models/column_polygon.py +42 -0
- appwrite-24.0.0/appwrite/models/column_relationship.py +57 -0
- appwrite-24.0.0/appwrite/models/column_string.py +48 -0
- appwrite-24.0.0/appwrite/models/column_text.py +45 -0
- appwrite-24.0.0/appwrite/models/column_url.py +45 -0
- appwrite-24.0.0/appwrite/models/column_varchar.py +48 -0
- appwrite-24.0.0/appwrite/models/continent.py +20 -0
- appwrite-24.0.0/appwrite/models/continent_list.py +21 -0
- appwrite-24.0.0/appwrite/models/country.py +20 -0
- appwrite-24.0.0/appwrite/models/country_list.py +21 -0
- appwrite-24.0.0/appwrite/models/currency.py +35 -0
- appwrite-24.0.0/appwrite/models/currency_list.py +21 -0
- appwrite-24.0.0/appwrite/models/database.py +63 -0
- appwrite-24.0.0/appwrite/models/database_list.py +21 -0
- appwrite-24.0.0/appwrite/models/database_migration.py +65 -0
- appwrite-24.0.0/appwrite/models/database_migration_list.py +21 -0
- appwrite-24.0.0/appwrite/models/database_status.py +59 -0
- appwrite-24.0.0/appwrite/models/database_status_connections.py +20 -0
- appwrite-24.0.0/appwrite/models/database_status_replica.py +29 -0
- appwrite-24.0.0/appwrite/models/database_status_volume.py +26 -0
- appwrite-24.0.0/appwrite/models/dedicated_database.py +161 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_backup.py +65 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_backup_list.py +21 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_backup_storage.py +29 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_branch.py +50 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_branch_list.py +21 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_execution.py +33 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_execution_column.py +20 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_extensions.py +24 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_list.py +21 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_member.py +29 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_operation.py +47 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_operation_list.py +21 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_pitr_windows.py +20 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_pooler.py +44 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_replicas.py +39 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_restoration.py +50 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_restoration_list.py +21 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_specification.py +41 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_specification_list.py +25 -0
- appwrite-24.0.0/appwrite/models/dedicated_database_specification_pricing.py +26 -0
- appwrite-24.0.0/appwrite/models/deployment.py +96 -0
- appwrite-24.0.0/appwrite/models/deployment_list.py +21 -0
- appwrite-24.0.0/appwrite/models/dev_key.py +38 -0
- appwrite-24.0.0/appwrite/models/document.py +131 -0
- appwrite-24.0.0/appwrite/models/document_list.py +31 -0
- appwrite-24.0.0/appwrite/models/email_template.py +38 -0
- appwrite-24.0.0/appwrite/models/email_template_list.py +21 -0
- appwrite-24.0.0/appwrite/models/embedding.py +26 -0
- appwrite-24.0.0/appwrite/models/embedding_list.py +21 -0
- appwrite-24.0.0/appwrite/models/ephemeral_key.py +41 -0
- appwrite-24.0.0/appwrite/models/execution.py +75 -0
- appwrite-24.0.0/appwrite/models/execution_list.py +21 -0
- appwrite-24.0.0/appwrite/models/file.py +62 -0
- appwrite-24.0.0/appwrite/models/file_list.py +21 -0
- appwrite-24.0.0/appwrite/models/framework.py +30 -0
- appwrite-24.0.0/appwrite/models/framework_adapter.py +29 -0
- appwrite-24.0.0/appwrite/models/framework_list.py +21 -0
- appwrite-24.0.0/appwrite/models/function.py +111 -0
- appwrite-24.0.0/appwrite/models/function_list.py +21 -0
- appwrite-24.0.0/appwrite/models/headers.py +20 -0
- appwrite-24.0.0/appwrite/models/identity.py +44 -0
- appwrite-24.0.0/appwrite/models/identity_list.py +21 -0
- appwrite-24.0.0/appwrite/models/index.py +45 -0
- appwrite-24.0.0/appwrite/models/index_list.py +21 -0
- appwrite-24.0.0/appwrite/models/insight.py +66 -0
- appwrite-24.0.0/appwrite/models/insight_cta.py +26 -0
- appwrite-24.0.0/appwrite/models/insight_list.py +21 -0
- appwrite-24.0.0/appwrite/models/jwt.py +17 -0
- appwrite-24.0.0/appwrite/models/key.py +41 -0
- appwrite-24.0.0/appwrite/models/key_list.py +21 -0
- appwrite-24.0.0/appwrite/models/language.py +23 -0
- appwrite-24.0.0/appwrite/models/language_list.py +21 -0
- appwrite-24.0.0/appwrite/models/locale.py +68 -0
- appwrite-24.0.0/appwrite/models/locale_code.py +20 -0
- appwrite-24.0.0/appwrite/models/locale_code_list.py +21 -0
- appwrite-24.0.0/appwrite/models/log.py +80 -0
- appwrite-24.0.0/appwrite/models/log_list.py +21 -0
- appwrite-24.0.0/appwrite/models/membership.py +59 -0
- appwrite-24.0.0/appwrite/models/membership_list.py +21 -0
- appwrite-24.0.0/appwrite/models/message.py +54 -0
- appwrite-24.0.0/appwrite/models/message_list.py +21 -0
- appwrite-24.0.0/appwrite/models/mfa_challenge.py +26 -0
- appwrite-24.0.0/appwrite/models/mfa_challenge_secret.py +29 -0
- appwrite-24.0.0/appwrite/models/mfa_factors.py +29 -0
- appwrite-24.0.0/appwrite/models/mfa_recovery_codes.py +17 -0
- appwrite-24.0.0/appwrite/models/mfa_type.py +20 -0
- appwrite-24.0.0/appwrite/models/mock_number.py +26 -0
- appwrite-24.0.0/appwrite/models/mock_number_list.py +21 -0
- appwrite-24.0.0/appwrite/models/o_auth2_amazon.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_apple.py +32 -0
- appwrite-24.0.0/appwrite/models/o_auth2_appwrite.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_auth0.py +29 -0
- appwrite-24.0.0/appwrite/models/o_auth2_authentik.py +29 -0
- appwrite-24.0.0/appwrite/models/o_auth2_autodesk.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_bitbucket.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_bitly.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_box.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_cloudflare.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_dailymotion.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_discord.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_disqus.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_dropbox.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_etsy.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_facebook.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_figma.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_fusion_auth.py +29 -0
- appwrite-24.0.0/appwrite/models/o_auth2_github.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_gitlab.py +29 -0
- appwrite-24.0.0/appwrite/models/o_auth2_google.py +30 -0
- appwrite-24.0.0/appwrite/models/o_auth2_hugging_face.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_keycloak.py +32 -0
- appwrite-24.0.0/appwrite/models/o_auth2_kick.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_linkedin.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_microsoft.py +29 -0
- appwrite-24.0.0/appwrite/models/o_auth2_notion.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_oidc.py +45 -0
- appwrite-24.0.0/appwrite/models/o_auth2_okta.py +32 -0
- appwrite-24.0.0/appwrite/models/o_auth2_paypal.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_podio.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_provider_list.py +111 -0
- appwrite-24.0.0/appwrite/models/o_auth2_resend.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_salesforce.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_slack.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_spotify.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_stripe.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_tradeshift.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_twitch.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_word_press.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_x.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_yahoo.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_yandex.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_zoho.py +26 -0
- appwrite-24.0.0/appwrite/models/o_auth2_zoom.py +26 -0
- appwrite-24.0.0/appwrite/models/oauth2_approve.py +17 -0
- appwrite-24.0.0/appwrite/models/oauth2_authorize.py +20 -0
- appwrite-24.0.0/appwrite/models/oauth2_consent.py +44 -0
- appwrite-24.0.0/appwrite/models/oauth2_consent_list.py +21 -0
- appwrite-24.0.0/appwrite/models/oauth2_consent_token.py +47 -0
- appwrite-24.0.0/appwrite/models/oauth2_consent_token_list.py +21 -0
- appwrite-24.0.0/appwrite/models/oauth2_device_authorization.py +32 -0
- appwrite-24.0.0/appwrite/models/oauth2_grant.py +50 -0
- appwrite-24.0.0/appwrite/models/oauth2_organization.py +17 -0
- appwrite-24.0.0/appwrite/models/oauth2_organization_list.py +21 -0
- appwrite-24.0.0/appwrite/models/oauth2_par.py +20 -0
- appwrite-24.0.0/appwrite/models/oauth2_project.py +23 -0
- appwrite-24.0.0/appwrite/models/oauth2_project_list.py +21 -0
- appwrite-24.0.0/appwrite/models/oauth2_reject.py +17 -0
- appwrite-24.0.0/appwrite/models/oauth2_token.py +35 -0
- appwrite-24.0.0/appwrite/models/organization.py +132 -0
- appwrite-24.0.0/appwrite/models/phone.py +23 -0
- appwrite-24.0.0/appwrite/models/phone_list.py +21 -0
- appwrite-24.0.0/appwrite/models/platform_android.py +33 -0
- appwrite-24.0.0/appwrite/models/platform_apple.py +33 -0
- appwrite-24.0.0/appwrite/models/platform_linux.py +33 -0
- appwrite-24.0.0/appwrite/models/platform_list.py +33 -0
- appwrite-24.0.0/appwrite/models/platform_web.py +33 -0
- appwrite-24.0.0/appwrite/models/platform_windows.py +33 -0
- appwrite-24.0.0/appwrite/models/policy_deny_aliased_email.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_deny_corporate_email.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_deny_disposable_email.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_deny_free_email.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_list.py +53 -0
- appwrite-24.0.0/appwrite/models/policy_membership_privacy.py +35 -0
- appwrite-24.0.0/appwrite/models/policy_mfa_factors.py +29 -0
- appwrite-24.0.0/appwrite/models/policy_password_dictionary.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_password_history.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_password_personal_data.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_password_strength.py +32 -0
- appwrite-24.0.0/appwrite/models/policy_session_alert.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_session_duration.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_session_invalidation.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_session_limit.py +20 -0
- appwrite-24.0.0/appwrite/models/policy_user_limit.py +20 -0
- appwrite-24.0.0/appwrite/models/postgres_extension.py +26 -0
- appwrite-24.0.0/appwrite/models/preferences.py +69 -0
- appwrite-24.0.0/appwrite/models/presence.py +41 -0
- appwrite-24.0.0/appwrite/models/presence_list.py +21 -0
- appwrite-24.0.0/appwrite/models/program.py +41 -0
- appwrite-24.0.0/appwrite/models/project.py +170 -0
- appwrite-24.0.0/appwrite/models/project_auth_method.py +21 -0
- appwrite-24.0.0/appwrite/models/project_list.py +21 -0
- appwrite-24.0.0/appwrite/models/project_protocol.py +21 -0
- appwrite-24.0.0/appwrite/models/project_service.py +21 -0
- appwrite-24.0.0/appwrite/models/provider.py +41 -0
- appwrite-24.0.0/appwrite/models/provider_list.py +21 -0
- appwrite-24.0.0/appwrite/models/proxy_invalidation.py +26 -0
- appwrite-24.0.0/appwrite/models/proxy_rule.py +64 -0
- appwrite-24.0.0/appwrite/models/proxy_rule_list.py +21 -0
- appwrite-24.0.0/appwrite/models/report.py +51 -0
- appwrite-24.0.0/appwrite/models/report_list.py +21 -0
- appwrite-24.0.0/appwrite/models/resource_token.py +35 -0
- appwrite-24.0.0/appwrite/models/resource_token_list.py +21 -0
- appwrite-24.0.0/appwrite/models/row.py +131 -0
- appwrite-24.0.0/appwrite/models/row_list.py +31 -0
- appwrite-24.0.0/appwrite/models/runtime.py +38 -0
- appwrite-24.0.0/appwrite/models/runtime_list.py +21 -0
- appwrite-24.0.0/appwrite/models/session.py +101 -0
- appwrite-24.0.0/appwrite/models/session_list.py +21 -0
- appwrite-24.0.0/appwrite/models/site.py +120 -0
- appwrite-24.0.0/appwrite/models/site_list.py +21 -0
- appwrite-24.0.0/appwrite/models/specification.py +26 -0
- appwrite-24.0.0/appwrite/models/specification_list.py +21 -0
- appwrite-24.0.0/appwrite/models/subscriber.py +42 -0
- appwrite-24.0.0/appwrite/models/subscriber_list.py +21 -0
- appwrite-24.0.0/appwrite/models/table.py +90 -0
- appwrite-24.0.0/appwrite/models/table_list.py +21 -0
- appwrite-24.0.0/appwrite/models/target.py +41 -0
- appwrite-24.0.0/appwrite/models/target_list.py +21 -0
- appwrite-24.0.0/appwrite/models/team.py +43 -0
- appwrite-24.0.0/appwrite/models/team_list.py +31 -0
- appwrite-24.0.0/appwrite/models/token.py +32 -0
- appwrite-24.0.0/appwrite/models/topic.py +38 -0
- appwrite-24.0.0/appwrite/models/topic_list.py +21 -0
- appwrite-24.0.0/appwrite/models/transaction.py +32 -0
- appwrite-24.0.0/appwrite/models/transaction_list.py +21 -0
- appwrite-24.0.0/appwrite/models/usage_billing_plan.py +48 -0
- appwrite-24.0.0/appwrite/models/user.py +121 -0
- appwrite-24.0.0/appwrite/models/user_list.py +31 -0
- appwrite-24.0.0/appwrite/models/variable.py +38 -0
- appwrite-24.0.0/appwrite/models/variable_list.py +21 -0
- appwrite-24.0.0/appwrite/models/vectorsdb_collection.py +61 -0
- appwrite-24.0.0/appwrite/models/vectorsdb_collection_list.py +21 -0
- appwrite-24.0.0/appwrite/models/webhook.py +53 -0
- appwrite-24.0.0/appwrite/models/webhook_list.py +21 -0
- appwrite-24.0.0/appwrite/operator.py +148 -0
- appwrite-24.0.0/appwrite/query.py +290 -0
- appwrite-24.0.0/appwrite/role.py +112 -0
- appwrite-24.0.0/appwrite/service.py +45 -0
- appwrite-24.0.0/appwrite/services/__init__.py +0 -0
- appwrite-24.0.0/appwrite/services/account.py +2238 -0
- appwrite-24.0.0/appwrite/services/activities.py +92 -0
- appwrite-24.0.0/appwrite/services/advisor.py +235 -0
- appwrite-24.0.0/appwrite/services/apps.py +1172 -0
- appwrite-24.0.0/appwrite/services/avatars.py +613 -0
- appwrite-24.0.0/appwrite/services/backups.py +583 -0
- appwrite-24.0.0/appwrite/services/databases.py +4878 -0
- appwrite-24.0.0/appwrite/services/documents_db.py +2107 -0
- appwrite-24.0.0/appwrite/services/embeddings.py +59 -0
- appwrite-24.0.0/appwrite/services/functions.py +1567 -0
- appwrite-24.0.0/appwrite/services/graphql.py +95 -0
- appwrite-24.0.0/appwrite/services/locale.py +268 -0
- appwrite-24.0.0/appwrite/services/messaging.py +3158 -0
- appwrite-24.0.0/appwrite/services/mongo.py +1693 -0
- appwrite-24.0.0/appwrite/services/mysql.py +1873 -0
- appwrite-24.0.0/appwrite/services/oauth2.py +805 -0
- appwrite-24.0.0/appwrite/services/organization.py +1064 -0
- appwrite-24.0.0/appwrite/services/postgresql.py +2008 -0
- appwrite-24.0.0/appwrite/services/presences.py +282 -0
- appwrite-24.0.0/appwrite/services/project.py +5579 -0
- appwrite-24.0.0/appwrite/services/proxy.py +454 -0
- appwrite-24.0.0/appwrite/services/sites.py +1517 -0
- appwrite-24.0.0/appwrite/services/storage.py +824 -0
- appwrite-24.0.0/appwrite/services/tables_db.py +5152 -0
- appwrite-24.0.0/appwrite/services/teams.py +945 -0
- appwrite-24.0.0/appwrite/services/tokens.py +247 -0
- appwrite-24.0.0/appwrite/services/users.py +2324 -0
- appwrite-24.0.0/appwrite/services/vectors_db.py +2018 -0
- appwrite-24.0.0/appwrite/services/webhooks.py +346 -0
- appwrite-24.0.0/appwrite/utils/deprecated.py +47 -0
- appwrite-24.0.0/appwrite.egg-info/PKG-INFO +201 -0
- appwrite-24.0.0/appwrite.egg-info/SOURCES.txt +427 -0
- appwrite-24.0.0/appwrite.egg-info/requires.txt +6 -0
- appwrite-24.0.0/pyproject.toml +51 -0
- appwrite-24.0.0/setup.py +39 -0
- appwrite-24.0.0/test/test_id.py +12 -0
- appwrite-24.0.0/test/test_operator.py +89 -0
- appwrite-24.0.0/test/test_permission.py +22 -0
- appwrite-24.0.0/test/test_query.py +113 -0
- appwrite-24.0.0/test/test_role.py +36 -0
- appwrite-22.2.0/PKG-INFO +0 -200
- appwrite-22.2.0/README.md +0 -163
- appwrite-22.2.0/appwrite/__init__.py +0 -1
- appwrite-22.2.0/appwrite/client.py +0 -359
- appwrite-22.2.0/appwrite/encoders/__init__.py +0 -1
- appwrite-22.2.0/appwrite/encoders/value_class_encoder.py +0 -249
- appwrite-22.2.0/appwrite/enums/__init__.py +0 -1
- appwrite-22.2.0/appwrite/enums/adapter.py +0 -5
- appwrite-22.2.0/appwrite/enums/attribute_status.py +0 -8
- appwrite-22.2.0/appwrite/enums/authentication_factor.py +0 -7
- appwrite-22.2.0/appwrite/enums/authenticator_type.py +0 -4
- appwrite-22.2.0/appwrite/enums/backup_services.py +0 -10
- appwrite-22.2.0/appwrite/enums/billing_plan_group.py +0 -6
- appwrite-22.2.0/appwrite/enums/browser.py +0 -17
- appwrite-22.2.0/appwrite/enums/browser_permission.py +0 -23
- appwrite-22.2.0/appwrite/enums/browser_theme.py +0 -5
- appwrite-22.2.0/appwrite/enums/build_runtime.py +0 -94
- appwrite-22.2.0/appwrite/enums/column_status.py +0 -8
- appwrite-22.2.0/appwrite/enums/compression.py +0 -6
- appwrite-22.2.0/appwrite/enums/credit_card.py +0 -20
- appwrite-22.2.0/appwrite/enums/database_status.py +0 -17
- appwrite-22.2.0/appwrite/enums/database_type.py +0 -10
- appwrite-22.2.0/appwrite/enums/databases_index_type.py +0 -7
- appwrite-22.2.0/appwrite/enums/deployment_download_type.py +0 -5
- appwrite-22.2.0/appwrite/enums/deployment_status.py +0 -9
- appwrite-22.2.0/appwrite/enums/execution_method.py +0 -10
- appwrite-22.2.0/appwrite/enums/execution_status.py +0 -8
- appwrite-22.2.0/appwrite/enums/execution_trigger.py +0 -6
- appwrite-22.2.0/appwrite/enums/flag.py +0 -198
- appwrite-22.2.0/appwrite/enums/framework.py +0 -18
- appwrite-22.2.0/appwrite/enums/image_format.py +0 -10
- appwrite-22.2.0/appwrite/enums/image_gravity.py +0 -12
- appwrite-22.2.0/appwrite/enums/index_status.py +0 -8
- appwrite-22.2.0/appwrite/enums/message_priority.py +0 -5
- appwrite-22.2.0/appwrite/enums/message_status.py +0 -8
- appwrite-22.2.0/appwrite/enums/messaging_provider_type.py +0 -6
- appwrite-22.2.0/appwrite/enums/o_auth2_google_prompt.py +0 -6
- appwrite-22.2.0/appwrite/enums/o_auth2_oidc_prompt.py +0 -7
- appwrite-22.2.0/appwrite/enums/o_auth_provider.py +0 -47
- appwrite-22.2.0/appwrite/enums/order_by.py +0 -5
- appwrite-22.2.0/appwrite/enums/organization_key_scopes.py +0 -19
- appwrite-22.2.0/appwrite/enums/password_hash.py +0 -14
- appwrite-22.2.0/appwrite/enums/platform_type.py +0 -8
- appwrite-22.2.0/appwrite/enums/project_auth_method_id.py +0 -10
- appwrite-22.2.0/appwrite/enums/project_email_template_id.py +0 -10
- appwrite-22.2.0/appwrite/enums/project_email_template_locale.py +0 -134
- appwrite-22.2.0/appwrite/enums/project_key_scopes.py +0 -107
- appwrite-22.2.0/appwrite/enums/project_o_auth2_google_prompt.py +0 -6
- appwrite-22.2.0/appwrite/enums/project_o_auth2_oidc_prompt.py +0 -7
- appwrite-22.2.0/appwrite/enums/project_o_auth_provider_id.py +0 -47
- appwrite-22.2.0/appwrite/enums/project_policy_id.py +0 -17
- appwrite-22.2.0/appwrite/enums/project_protocol_id.py +0 -6
- appwrite-22.2.0/appwrite/enums/project_service_id.py +0 -22
- appwrite-22.2.0/appwrite/enums/project_smtp_secure.py +0 -5
- appwrite-22.2.0/appwrite/enums/proxy_resource_type.py +0 -5
- appwrite-22.2.0/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -5
- appwrite-22.2.0/appwrite/enums/proxy_rule_status.py +0 -6
- appwrite-22.2.0/appwrite/enums/region.py +0 -9
- appwrite-22.2.0/appwrite/enums/relation_mutate.py +0 -6
- appwrite-22.2.0/appwrite/enums/relationship_type.py +0 -7
- appwrite-22.2.0/appwrite/enums/runtime.py +0 -94
- appwrite-22.2.0/appwrite/enums/smtp_encryption.py +0 -6
- appwrite-22.2.0/appwrite/enums/status_code.py +0 -7
- appwrite-22.2.0/appwrite/enums/tables_db_index_type.py +0 -7
- appwrite-22.2.0/appwrite/enums/template_reference_type.py +0 -6
- appwrite-22.2.0/appwrite/enums/timezone.py +0 -422
- appwrite-22.2.0/appwrite/enums/vcs_reference_type.py +0 -6
- appwrite-22.2.0/appwrite/exception.py +0 -7
- appwrite-22.2.0/appwrite/id.py +0 -26
- appwrite-22.2.0/appwrite/input_file.py +0 -21
- appwrite-22.2.0/appwrite/models/__init__.py +0 -545
- appwrite-22.2.0/appwrite/models/activity_event.py +0 -99
- appwrite-22.2.0/appwrite/models/activity_event_list.py +0 -19
- appwrite-22.2.0/appwrite/models/additional_resource.py +0 -30
- appwrite-22.2.0/appwrite/models/algo_argon2.py +0 -24
- appwrite-22.2.0/appwrite/models/algo_bcrypt.py +0 -15
- appwrite-22.2.0/appwrite/models/algo_md5.py +0 -15
- appwrite-22.2.0/appwrite/models/algo_phpass.py +0 -15
- appwrite-22.2.0/appwrite/models/algo_scrypt.py +0 -27
- appwrite-22.2.0/appwrite/models/algo_scrypt_modified.py +0 -24
- appwrite-22.2.0/appwrite/models/algo_sha.py +0 -15
- appwrite-22.2.0/appwrite/models/app.py +0 -91
- appwrite-22.2.0/appwrite/models/app_installation.py +0 -42
- appwrite-22.2.0/appwrite/models/app_installation_list.py +0 -19
- appwrite-22.2.0/appwrite/models/app_key.py +0 -39
- appwrite-22.2.0/appwrite/models/app_key_list.py +0 -19
- appwrite-22.2.0/appwrite/models/app_scope.py +0 -27
- appwrite-22.2.0/appwrite/models/app_scope_list.py +0 -19
- appwrite-22.2.0/appwrite/models/app_secret.py +0 -39
- appwrite-22.2.0/appwrite/models/app_secret_list.py +0 -19
- appwrite-22.2.0/appwrite/models/app_secret_plaintext.py +0 -39
- appwrite-22.2.0/appwrite/models/apps_list.py +0 -19
- appwrite-22.2.0/appwrite/models/attribute_bigint.py +0 -46
- appwrite-22.2.0/appwrite/models/attribute_boolean.py +0 -40
- appwrite-22.2.0/appwrite/models/attribute_datetime.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_email.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_enum.py +0 -46
- appwrite-22.2.0/appwrite/models/attribute_float.py +0 -46
- appwrite-22.2.0/appwrite/models/attribute_integer.py +0 -46
- appwrite-22.2.0/appwrite/models/attribute_ip.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_line.py +0 -40
- appwrite-22.2.0/appwrite/models/attribute_list.py +0 -36
- appwrite-22.2.0/appwrite/models/attribute_longtext.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_mediumtext.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_point.py +0 -40
- appwrite-22.2.0/appwrite/models/attribute_polygon.py +0 -40
- appwrite-22.2.0/appwrite/models/attribute_relationship.py +0 -55
- appwrite-22.2.0/appwrite/models/attribute_string.py +0 -46
- appwrite-22.2.0/appwrite/models/attribute_text.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_url.py +0 -43
- appwrite-22.2.0/appwrite/models/attribute_varchar.py +0 -46
- appwrite-22.2.0/appwrite/models/backup_archive.py +0 -48
- appwrite-22.2.0/appwrite/models/backup_archive_list.py +0 -19
- appwrite-22.2.0/appwrite/models/backup_policy.py +0 -48
- appwrite-22.2.0/appwrite/models/backup_policy_list.py +0 -19
- appwrite-22.2.0/appwrite/models/backup_restoration.py +0 -45
- appwrite-22.2.0/appwrite/models/backup_restoration_list.py +0 -19
- appwrite-22.2.0/appwrite/models/base_model.py +0 -27
- appwrite-22.2.0/appwrite/models/billing_limits.py +0 -36
- appwrite-22.2.0/appwrite/models/billing_plan.py +0 -226
- appwrite-22.2.0/appwrite/models/billing_plan_addon.py +0 -19
- appwrite-22.2.0/appwrite/models/billing_plan_addon_details.py +0 -36
- appwrite-22.2.0/appwrite/models/billing_plan_dedicated_database_limits.py +0 -69
- appwrite-22.2.0/appwrite/models/billing_plan_limits.py +0 -18
- appwrite-22.2.0/appwrite/models/billing_plan_supported_addons.py +0 -21
- appwrite-22.2.0/appwrite/models/block.py +0 -45
- appwrite-22.2.0/appwrite/models/bucket.py +0 -54
- appwrite-22.2.0/appwrite/models/bucket_list.py +0 -19
- appwrite-22.2.0/appwrite/models/collection.py +0 -67
- appwrite-22.2.0/appwrite/models/collection_list.py +0 -19
- appwrite-22.2.0/appwrite/models/column_bigint.py +0 -46
- appwrite-22.2.0/appwrite/models/column_boolean.py +0 -40
- appwrite-22.2.0/appwrite/models/column_datetime.py +0 -43
- appwrite-22.2.0/appwrite/models/column_email.py +0 -43
- appwrite-22.2.0/appwrite/models/column_enum.py +0 -46
- appwrite-22.2.0/appwrite/models/column_float.py +0 -46
- appwrite-22.2.0/appwrite/models/column_index.py +0 -42
- appwrite-22.2.0/appwrite/models/column_index_list.py +0 -19
- appwrite-22.2.0/appwrite/models/column_integer.py +0 -46
- appwrite-22.2.0/appwrite/models/column_ip.py +0 -43
- appwrite-22.2.0/appwrite/models/column_line.py +0 -40
- appwrite-22.2.0/appwrite/models/column_list.py +0 -36
- appwrite-22.2.0/appwrite/models/column_longtext.py +0 -43
- appwrite-22.2.0/appwrite/models/column_mediumtext.py +0 -43
- appwrite-22.2.0/appwrite/models/column_point.py +0 -40
- appwrite-22.2.0/appwrite/models/column_polygon.py +0 -40
- appwrite-22.2.0/appwrite/models/column_relationship.py +0 -55
- appwrite-22.2.0/appwrite/models/column_string.py +0 -46
- appwrite-22.2.0/appwrite/models/column_text.py +0 -43
- appwrite-22.2.0/appwrite/models/column_url.py +0 -43
- appwrite-22.2.0/appwrite/models/column_varchar.py +0 -46
- appwrite-22.2.0/appwrite/models/continent.py +0 -18
- appwrite-22.2.0/appwrite/models/continent_list.py +0 -19
- appwrite-22.2.0/appwrite/models/country.py +0 -18
- appwrite-22.2.0/appwrite/models/country_list.py +0 -19
- appwrite-22.2.0/appwrite/models/currency.py +0 -33
- appwrite-22.2.0/appwrite/models/currency_list.py +0 -19
- appwrite-22.2.0/appwrite/models/database.py +0 -52
- appwrite-22.2.0/appwrite/models/database_list.py +0 -19
- appwrite-22.2.0/appwrite/models/database_status.py +0 -39
- appwrite-22.2.0/appwrite/models/database_status_connections.py +0 -18
- appwrite-22.2.0/appwrite/models/database_status_replica.py +0 -24
- appwrite-22.2.0/appwrite/models/database_status_volume.py +0 -24
- appwrite-22.2.0/appwrite/models/dedicated_database.py +0 -159
- appwrite-22.2.0/appwrite/models/dedicated_database_member.py +0 -24
- appwrite-22.2.0/appwrite/models/dedicated_database_replicas.py +0 -22
- appwrite-22.2.0/appwrite/models/dedicated_database_specification.py +0 -39
- appwrite-22.2.0/appwrite/models/dedicated_database_specification_list.py +0 -23
- appwrite-22.2.0/appwrite/models/dedicated_database_specification_pricing.py +0 -27
- appwrite-22.2.0/appwrite/models/deployment.py +0 -94
- appwrite-22.2.0/appwrite/models/deployment_list.py +0 -19
- appwrite-22.2.0/appwrite/models/dev_key.py +0 -36
- appwrite-22.2.0/appwrite/models/document.py +0 -80
- appwrite-22.2.0/appwrite/models/document_list.py +0 -32
- appwrite-22.2.0/appwrite/models/email_template.py +0 -36
- appwrite-22.2.0/appwrite/models/email_template_list.py +0 -19
- appwrite-22.2.0/appwrite/models/ephemeral_key.py +0 -39
- appwrite-22.2.0/appwrite/models/execution.py +0 -69
- appwrite-22.2.0/appwrite/models/execution_list.py +0 -19
- appwrite-22.2.0/appwrite/models/file.py +0 -54
- appwrite-22.2.0/appwrite/models/file_list.py +0 -19
- appwrite-22.2.0/appwrite/models/framework.py +0 -28
- appwrite-22.2.0/appwrite/models/framework_adapter.py +0 -27
- appwrite-22.2.0/appwrite/models/framework_list.py +0 -19
- appwrite-22.2.0/appwrite/models/function.py +0 -109
- appwrite-22.2.0/appwrite/models/function_list.py +0 -19
- appwrite-22.2.0/appwrite/models/headers.py +0 -18
- appwrite-22.2.0/appwrite/models/identity.py +0 -42
- appwrite-22.2.0/appwrite/models/identity_list.py +0 -19
- appwrite-22.2.0/appwrite/models/index.py +0 -43
- appwrite-22.2.0/appwrite/models/index_list.py +0 -19
- appwrite-22.2.0/appwrite/models/insight.py +0 -64
- appwrite-22.2.0/appwrite/models/insight_cta.py +0 -24
- appwrite-22.2.0/appwrite/models/insight_list.py +0 -19
- appwrite-22.2.0/appwrite/models/jwt.py +0 -15
- appwrite-22.2.0/appwrite/models/key.py +0 -39
- appwrite-22.2.0/appwrite/models/key_list.py +0 -19
- appwrite-22.2.0/appwrite/models/language.py +0 -21
- appwrite-22.2.0/appwrite/models/language_list.py +0 -19
- appwrite-22.2.0/appwrite/models/locale.py +0 -66
- appwrite-22.2.0/appwrite/models/locale_code.py +0 -18
- appwrite-22.2.0/appwrite/models/locale_code_list.py +0 -19
- appwrite-22.2.0/appwrite/models/log.py +0 -78
- appwrite-22.2.0/appwrite/models/log_list.py +0 -19
- appwrite-22.2.0/appwrite/models/membership.py +0 -57
- appwrite-22.2.0/appwrite/models/membership_list.py +0 -19
- appwrite-22.2.0/appwrite/models/message.py +0 -52
- appwrite-22.2.0/appwrite/models/message_list.py +0 -19
- appwrite-22.2.0/appwrite/models/mfa_challenge.py +0 -24
- appwrite-22.2.0/appwrite/models/mfa_factors.py +0 -24
- appwrite-22.2.0/appwrite/models/mfa_recovery_codes.py +0 -15
- appwrite-22.2.0/appwrite/models/mfa_type.py +0 -18
- appwrite-22.2.0/appwrite/models/mock_number.py +0 -24
- appwrite-22.2.0/appwrite/models/mock_number_list.py +0 -19
- appwrite-22.2.0/appwrite/models/o_auth2_amazon.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_apple.py +0 -30
- appwrite-22.2.0/appwrite/models/o_auth2_appwrite.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_auth0.py +0 -27
- appwrite-22.2.0/appwrite/models/o_auth2_authentik.py +0 -27
- appwrite-22.2.0/appwrite/models/o_auth2_autodesk.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_bitbucket.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_bitly.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_box.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_dailymotion.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_discord.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_disqus.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_dropbox.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_etsy.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_facebook.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_figma.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_fusion_auth.py +0 -27
- appwrite-22.2.0/appwrite/models/o_auth2_github.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_gitlab.py +0 -27
- appwrite-22.2.0/appwrite/models/o_auth2_google.py +0 -28
- appwrite-22.2.0/appwrite/models/o_auth2_keycloak.py +0 -30
- appwrite-22.2.0/appwrite/models/o_auth2_kick.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_linkedin.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_microsoft.py +0 -27
- appwrite-22.2.0/appwrite/models/o_auth2_notion.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_oidc.py +0 -43
- appwrite-22.2.0/appwrite/models/o_auth2_okta.py +0 -30
- appwrite-22.2.0/appwrite/models/o_auth2_paypal.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_podio.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_provider_list.py +0 -59
- appwrite-22.2.0/appwrite/models/o_auth2_salesforce.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_slack.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_spotify.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_stripe.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_tradeshift.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_twitch.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_word_press.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_x.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_yahoo.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_yandex.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_zoho.py +0 -24
- appwrite-22.2.0/appwrite/models/o_auth2_zoom.py +0 -24
- appwrite-22.2.0/appwrite/models/oauth2_approve.py +0 -15
- appwrite-22.2.0/appwrite/models/oauth2_authorize.py +0 -18
- appwrite-22.2.0/appwrite/models/oauth2_consent.py +0 -42
- appwrite-22.2.0/appwrite/models/oauth2_consent_list.py +0 -19
- appwrite-22.2.0/appwrite/models/oauth2_consent_token.py +0 -45
- appwrite-22.2.0/appwrite/models/oauth2_consent_token_list.py +0 -19
- appwrite-22.2.0/appwrite/models/oauth2_device_authorization.py +0 -30
- appwrite-22.2.0/appwrite/models/oauth2_grant.py +0 -48
- appwrite-22.2.0/appwrite/models/oauth2_organization.py +0 -15
- appwrite-22.2.0/appwrite/models/oauth2_organization_list.py +0 -19
- appwrite-22.2.0/appwrite/models/oauth2_par.py +0 -18
- appwrite-22.2.0/appwrite/models/oauth2_project.py +0 -21
- appwrite-22.2.0/appwrite/models/oauth2_project_list.py +0 -19
- appwrite-22.2.0/appwrite/models/oauth2_reject.py +0 -15
- appwrite-22.2.0/appwrite/models/oauth2_token.py +0 -33
- appwrite-22.2.0/appwrite/models/organization.py +0 -132
- appwrite-22.2.0/appwrite/models/phone.py +0 -21
- appwrite-22.2.0/appwrite/models/phone_list.py +0 -19
- appwrite-22.2.0/appwrite/models/platform_android.py +0 -31
- appwrite-22.2.0/appwrite/models/platform_apple.py +0 -31
- appwrite-22.2.0/appwrite/models/platform_linux.py +0 -31
- appwrite-22.2.0/appwrite/models/platform_list.py +0 -23
- appwrite-22.2.0/appwrite/models/platform_web.py +0 -31
- appwrite-22.2.0/appwrite/models/platform_windows.py +0 -31
- appwrite-22.2.0/appwrite/models/policy_deny_aliased_email.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_deny_corporate_email.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_deny_disposable_email.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_deny_free_email.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_list.py +0 -32
- appwrite-22.2.0/appwrite/models/policy_membership_privacy.py +0 -33
- appwrite-22.2.0/appwrite/models/policy_password_dictionary.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_password_history.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_password_personal_data.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_password_strength.py +0 -30
- appwrite-22.2.0/appwrite/models/policy_session_alert.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_session_duration.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_session_invalidation.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_session_limit.py +0 -18
- appwrite-22.2.0/appwrite/models/policy_user_limit.py +0 -18
- appwrite-22.2.0/appwrite/models/preferences.py +0 -52
- appwrite-22.2.0/appwrite/models/presence.py +0 -39
- appwrite-22.2.0/appwrite/models/presence_list.py +0 -19
- appwrite-22.2.0/appwrite/models/program.py +0 -39
- appwrite-22.2.0/appwrite/models/project.py +0 -153
- appwrite-22.2.0/appwrite/models/project_auth_method.py +0 -19
- appwrite-22.2.0/appwrite/models/project_list.py +0 -19
- appwrite-22.2.0/appwrite/models/project_protocol.py +0 -19
- appwrite-22.2.0/appwrite/models/project_service.py +0 -19
- appwrite-22.2.0/appwrite/models/provider.py +0 -39
- appwrite-22.2.0/appwrite/models/provider_list.py +0 -19
- appwrite-22.2.0/appwrite/models/proxy_rule.py +0 -59
- appwrite-22.2.0/appwrite/models/proxy_rule_list.py +0 -19
- appwrite-22.2.0/appwrite/models/report.py +0 -49
- appwrite-22.2.0/appwrite/models/report_list.py +0 -19
- appwrite-22.2.0/appwrite/models/resource_token.py +0 -33
- appwrite-22.2.0/appwrite/models/resource_token_list.py +0 -19
- appwrite-22.2.0/appwrite/models/row.py +0 -80
- appwrite-22.2.0/appwrite/models/row_list.py +0 -32
- appwrite-22.2.0/appwrite/models/runtime.py +0 -36
- appwrite-22.2.0/appwrite/models/runtime_list.py +0 -19
- appwrite-22.2.0/appwrite/models/session.py +0 -99
- appwrite-22.2.0/appwrite/models/session_list.py +0 -19
- appwrite-22.2.0/appwrite/models/site.py +0 -115
- appwrite-22.2.0/appwrite/models/site_list.py +0 -19
- appwrite-22.2.0/appwrite/models/specification.py +0 -24
- appwrite-22.2.0/appwrite/models/specification_list.py +0 -19
- appwrite-22.2.0/appwrite/models/subscriber.py +0 -40
- appwrite-22.2.0/appwrite/models/subscriber_list.py +0 -19
- appwrite-22.2.0/appwrite/models/table.py +0 -67
- appwrite-22.2.0/appwrite/models/table_list.py +0 -19
- appwrite-22.2.0/appwrite/models/target.py +0 -39
- appwrite-22.2.0/appwrite/models/target_list.py +0 -19
- appwrite-22.2.0/appwrite/models/team.py +0 -43
- appwrite-22.2.0/appwrite/models/team_list.py +0 -32
- appwrite-22.2.0/appwrite/models/token.py +0 -30
- appwrite-22.2.0/appwrite/models/topic.py +0 -36
- appwrite-22.2.0/appwrite/models/topic_list.py +0 -19
- appwrite-22.2.0/appwrite/models/transaction.py +0 -30
- appwrite-22.2.0/appwrite/models/transaction_list.py +0 -19
- appwrite-22.2.0/appwrite/models/usage_billing_plan.py +0 -46
- appwrite-22.2.0/appwrite/models/user.py +0 -111
- appwrite-22.2.0/appwrite/models/user_list.py +0 -32
- appwrite-22.2.0/appwrite/models/variable.py +0 -36
- appwrite-22.2.0/appwrite/models/variable_list.py +0 -19
- appwrite-22.2.0/appwrite/models/webhook.py +0 -51
- appwrite-22.2.0/appwrite/models/webhook_list.py +0 -19
- appwrite-22.2.0/appwrite/operator.py +0 -150
- appwrite-22.2.0/appwrite/query.py +0 -293
- appwrite-22.2.0/appwrite/role.py +0 -111
- appwrite-22.2.0/appwrite/service.py +0 -50
- appwrite-22.2.0/appwrite/services/__init__.py +0 -1
- appwrite-22.2.0/appwrite/services/account.py +0 -2226
- appwrite-22.2.0/appwrite/services/activities.py +0 -89
- appwrite-22.2.0/appwrite/services/advisor.py +0 -234
- appwrite-22.2.0/appwrite/services/apps.py +0 -1109
- appwrite-22.2.0/appwrite/services/avatars.py +0 -531
- appwrite-22.2.0/appwrite/services/backups.py +0 -572
- appwrite-22.2.0/appwrite/services/databases.py +0 -4976
- appwrite-22.2.0/appwrite/services/functions.py +0 -1560
- appwrite-22.2.0/appwrite/services/graphql.py +0 -92
- appwrite-22.2.0/appwrite/services/locale.py +0 -243
- appwrite-22.2.0/appwrite/services/messaging.py +0 -3137
- appwrite-22.2.0/appwrite/services/oauth2.py +0 -789
- appwrite-22.2.0/appwrite/services/organization.py +0 -1039
- appwrite-22.2.0/appwrite/services/presences.py +0 -283
- appwrite-22.2.0/appwrite/services/project.py +0 -5215
- appwrite-22.2.0/appwrite/services/proxy.py +0 -394
- appwrite-22.2.0/appwrite/services/sites.py +0 -1499
- appwrite-22.2.0/appwrite/services/storage.py +0 -813
- appwrite-22.2.0/appwrite/services/tables_db.py +0 -4938
- appwrite-22.2.0/appwrite/services/teams.py +0 -943
- appwrite-22.2.0/appwrite/services/tokens.py +0 -243
- appwrite-22.2.0/appwrite/services/users.py +0 -2274
- appwrite-22.2.0/appwrite/services/webhooks.py +0 -344
- appwrite-22.2.0/appwrite/utils/deprecated.py +0 -51
- appwrite-22.2.0/appwrite.egg-info/PKG-INFO +0 -200
- appwrite-22.2.0/appwrite.egg-info/SOURCES.txt +0 -386
- appwrite-22.2.0/appwrite.egg-info/requires.txt +0 -5
- appwrite-22.2.0/pyproject.toml +0 -45
- appwrite-22.2.0/setup.py +0 -39
- appwrite-22.2.0/test/test_id.py +0 -11
- appwrite-22.2.0/test/test_operator.py +0 -80
- appwrite-22.2.0/test/test_permission.py +0 -21
- appwrite-22.2.0/test/test_query.py +0 -107
- appwrite-22.2.0/test/test_role.py +0 -35
- {appwrite-22.2.0 → appwrite-24.0.0}/LICENSE +0 -0
- {appwrite-22.2.0 → appwrite-24.0.0}/appwrite/permission.py +0 -0
- {appwrite-22.2.0 → appwrite-24.0.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-22.2.0 → appwrite-24.0.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-22.2.0 → appwrite-24.0.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-22.2.0 → appwrite-24.0.0}/setup.cfg +0 -0
appwrite-24.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: appwrite
|
|
3
|
+
Version: 24.0.0
|
|
4
|
+
Summary: Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API
|
|
5
|
+
Home-page: https://appwrite.io/support
|
|
6
|
+
Download-URL: https://github.com/appwrite/sdk-for-python/archive/24.0.0.tar.gz
|
|
7
|
+
Author: Appwrite Team
|
|
8
|
+
Author-email: Appwrite Team <team@appwrite.io>
|
|
9
|
+
Maintainer: Appwrite Team
|
|
10
|
+
Maintainer-email: Appwrite Team <team@appwrite.io>
|
|
11
|
+
License: BSD-3-Clause
|
|
12
|
+
Project-URL: Homepage, https://appwrite.io/support
|
|
13
|
+
Project-URL: Repository, https://github.com/appwrite/sdk-for-python
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Environment :: Web Environment
|
|
17
|
+
Classifier: Topic :: Software Development
|
|
18
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: requests
|
|
28
|
+
Requires-Dist: pydantic<3,>=2
|
|
29
|
+
Provides-Extra: test
|
|
30
|
+
Requires-Dist: black==25.11.0; extra == "test"
|
|
31
|
+
Requires-Dist: requests_mock==1.11.0; extra == "test"
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: download-url
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
Dynamic: maintainer
|
|
37
|
+
Dynamic: requires-python
|
|
38
|
+
|
|
39
|
+
# Appwrite Python SDK
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+

|
|
43
|
+
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
44
|
+
[](https://twitter.com/appwrite)
|
|
45
|
+
[](https://appwrite.io/discord)
|
|
46
|
+
|
|
47
|
+
**This SDK targets Appwrite server version 1.9.x as shipped on Appwrite Cloud.** Self-hosted releases can lag behind Cloud — if you run an older self-hosted build, use a matching older SDK from [previous releases](https://github.com/appwrite/sdk-for-python/releases) when APIs differ.
|
|
48
|
+
|
|
49
|
+
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 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](https://appwrite.io/docs)
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
To install via [PyPI](https://pypi.org/):
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pip install appwrite
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Or with `uv`:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
uv add appwrite
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## Getting Started
|
|
69
|
+
|
|
70
|
+
### Init your SDK
|
|
71
|
+
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found on your project settings page and your new API secret Key from project's API keys section.
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from appwrite.client import Client
|
|
75
|
+
from appwrite.services.users import Users
|
|
76
|
+
|
|
77
|
+
client = Client()
|
|
78
|
+
|
|
79
|
+
(client
|
|
80
|
+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
|
81
|
+
.set_project('5df5acd0d48c2') # Your project ID
|
|
82
|
+
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
|
83
|
+
.set_self_signed() # Use only on dev mode with a self-signed SSL cert
|
|
84
|
+
)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Make Your First Request
|
|
88
|
+
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
|
|
89
|
+
|
|
90
|
+
All service methods return typed Pydantic models, so you can access response fields as attributes:
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
users = Users(client)
|
|
94
|
+
|
|
95
|
+
user = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
|
|
96
|
+
|
|
97
|
+
print(user.name) # "Walter O'Brien"
|
|
98
|
+
print(user.email) # "email@example.com"
|
|
99
|
+
print(user.id) # The generated user ID
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Full Example
|
|
103
|
+
```python
|
|
104
|
+
from appwrite.client import Client
|
|
105
|
+
from appwrite.services.users import Users
|
|
106
|
+
from appwrite.id import ID
|
|
107
|
+
|
|
108
|
+
client = Client()
|
|
109
|
+
|
|
110
|
+
(client
|
|
111
|
+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
|
112
|
+
.set_project('5df5acd0d48c2') # Your project ID
|
|
113
|
+
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
|
114
|
+
.set_self_signed() # Use only on dev mode with a self-signed SSL cert
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
users = Users(client)
|
|
118
|
+
|
|
119
|
+
user = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
|
|
120
|
+
|
|
121
|
+
print(user.name) # Access fields as attributes
|
|
122
|
+
print(user.to_dict()) # Convert to dictionary if needed
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Type Safety with Models
|
|
126
|
+
|
|
127
|
+
The Appwrite Python SDK provides type safety when working with database rows through generic methods. Methods like `get_row`, `list_rows`, and others accept a `model_type` parameter that allows you to specify your custom Pydantic model for full type safety.
|
|
128
|
+
|
|
129
|
+
```python
|
|
130
|
+
from pydantic import BaseModel
|
|
131
|
+
from datetime import datetime
|
|
132
|
+
from typing import Optional
|
|
133
|
+
from appwrite.client import Client
|
|
134
|
+
from appwrite.services.tables_db import TablesDB
|
|
135
|
+
|
|
136
|
+
# Define your custom model matching your table schema
|
|
137
|
+
class Post(BaseModel):
|
|
138
|
+
postId: int
|
|
139
|
+
authorId: int
|
|
140
|
+
title: str
|
|
141
|
+
content: str
|
|
142
|
+
createdAt: datetime
|
|
143
|
+
updatedAt: datetime
|
|
144
|
+
isPublished: bool
|
|
145
|
+
excerpt: Optional[str] = None
|
|
146
|
+
|
|
147
|
+
client = Client()
|
|
148
|
+
# ... configure your client ...
|
|
149
|
+
|
|
150
|
+
tables_db = TablesDB(client)
|
|
151
|
+
|
|
152
|
+
# Fetch a single row with type safety
|
|
153
|
+
row = tables_db.get_row(
|
|
154
|
+
database_id="your-database-id",
|
|
155
|
+
table_id="your-table-id",
|
|
156
|
+
row_id="your-row-id",
|
|
157
|
+
model_type=Post # Pass your custom model type
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
print(row.data.title) # Fully typed - IDE autocomplete works
|
|
161
|
+
print(row.data.postId) # int type, not Any
|
|
162
|
+
print(row.data.createdAt) # datetime type
|
|
163
|
+
|
|
164
|
+
# Fetch multiple rows with type safety
|
|
165
|
+
result = tables_db.list_rows(
|
|
166
|
+
database_id="your-database-id",
|
|
167
|
+
table_id="your-table-id",
|
|
168
|
+
model_type=Post
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
for row in result.rows:
|
|
172
|
+
print(f"{row.data.title} by {row.data.authorId}")
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Error Handling
|
|
176
|
+
The Appwrite Python SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
|
|
177
|
+
|
|
178
|
+
```python
|
|
179
|
+
users = Users(client)
|
|
180
|
+
try:
|
|
181
|
+
user = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
|
|
182
|
+
print(user.name)
|
|
183
|
+
except AppwriteException as e:
|
|
184
|
+
print(e.message)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Learn more
|
|
188
|
+
You can use the following resources to learn more and get help
|
|
189
|
+
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
|
|
190
|
+
- 📜 [Appwrite Docs](https://appwrite.io/docs)
|
|
191
|
+
- 💬 [Discord Community](https://appwrite.io/discord)
|
|
192
|
+
- 🚂 [Appwrite Python Playground](https://github.com/appwrite/playground-for-python)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## Contribution
|
|
196
|
+
|
|
197
|
+
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
|
|
198
|
+
|
|
199
|
+
## License
|
|
200
|
+
|
|
201
|
+
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Appwrite Python SDK
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
6
|
+
[](https://twitter.com/appwrite)
|
|
7
|
+
[](https://appwrite.io/discord)
|
|
8
|
+
|
|
9
|
+
**This SDK targets Appwrite server version 1.9.x as shipped on Appwrite Cloud.** Self-hosted releases can lag behind Cloud — if you run an older self-hosted build, use a matching older SDK from [previous releases](https://github.com/appwrite/sdk-for-python/releases) when APIs differ.
|
|
10
|
+
|
|
11
|
+
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 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](https://appwrite.io/docs)
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
To install via [PyPI](https://pypi.org/):
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install appwrite
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or with `uv`:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uv add appwrite
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## Getting Started
|
|
31
|
+
|
|
32
|
+
### Init your SDK
|
|
33
|
+
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found on your project settings page and your new API secret Key from project's API keys section.
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
from appwrite.client import Client
|
|
37
|
+
from appwrite.services.users import Users
|
|
38
|
+
|
|
39
|
+
client = Client()
|
|
40
|
+
|
|
41
|
+
(client
|
|
42
|
+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
|
43
|
+
.set_project('5df5acd0d48c2') # Your project ID
|
|
44
|
+
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
|
45
|
+
.set_self_signed() # Use only on dev mode with a self-signed SSL cert
|
|
46
|
+
)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Make Your First Request
|
|
50
|
+
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
|
|
51
|
+
|
|
52
|
+
All service methods return typed Pydantic models, so you can access response fields as attributes:
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
users = Users(client)
|
|
56
|
+
|
|
57
|
+
user = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
|
|
58
|
+
|
|
59
|
+
print(user.name) # "Walter O'Brien"
|
|
60
|
+
print(user.email) # "email@example.com"
|
|
61
|
+
print(user.id) # The generated user ID
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Full Example
|
|
65
|
+
```python
|
|
66
|
+
from appwrite.client import Client
|
|
67
|
+
from appwrite.services.users import Users
|
|
68
|
+
from appwrite.id import ID
|
|
69
|
+
|
|
70
|
+
client = Client()
|
|
71
|
+
|
|
72
|
+
(client
|
|
73
|
+
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
|
74
|
+
.set_project('5df5acd0d48c2') # Your project ID
|
|
75
|
+
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
|
76
|
+
.set_self_signed() # Use only on dev mode with a self-signed SSL cert
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
users = Users(client)
|
|
80
|
+
|
|
81
|
+
user = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
|
|
82
|
+
|
|
83
|
+
print(user.name) # Access fields as attributes
|
|
84
|
+
print(user.to_dict()) # Convert to dictionary if needed
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Type Safety with Models
|
|
88
|
+
|
|
89
|
+
The Appwrite Python SDK provides type safety when working with database rows through generic methods. Methods like `get_row`, `list_rows`, and others accept a `model_type` parameter that allows you to specify your custom Pydantic model for full type safety.
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
from pydantic import BaseModel
|
|
93
|
+
from datetime import datetime
|
|
94
|
+
from typing import Optional
|
|
95
|
+
from appwrite.client import Client
|
|
96
|
+
from appwrite.services.tables_db import TablesDB
|
|
97
|
+
|
|
98
|
+
# Define your custom model matching your table schema
|
|
99
|
+
class Post(BaseModel):
|
|
100
|
+
postId: int
|
|
101
|
+
authorId: int
|
|
102
|
+
title: str
|
|
103
|
+
content: str
|
|
104
|
+
createdAt: datetime
|
|
105
|
+
updatedAt: datetime
|
|
106
|
+
isPublished: bool
|
|
107
|
+
excerpt: Optional[str] = None
|
|
108
|
+
|
|
109
|
+
client = Client()
|
|
110
|
+
# ... configure your client ...
|
|
111
|
+
|
|
112
|
+
tables_db = TablesDB(client)
|
|
113
|
+
|
|
114
|
+
# Fetch a single row with type safety
|
|
115
|
+
row = tables_db.get_row(
|
|
116
|
+
database_id="your-database-id",
|
|
117
|
+
table_id="your-table-id",
|
|
118
|
+
row_id="your-row-id",
|
|
119
|
+
model_type=Post # Pass your custom model type
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
print(row.data.title) # Fully typed - IDE autocomplete works
|
|
123
|
+
print(row.data.postId) # int type, not Any
|
|
124
|
+
print(row.data.createdAt) # datetime type
|
|
125
|
+
|
|
126
|
+
# Fetch multiple rows with type safety
|
|
127
|
+
result = tables_db.list_rows(
|
|
128
|
+
database_id="your-database-id",
|
|
129
|
+
table_id="your-table-id",
|
|
130
|
+
model_type=Post
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
for row in result.rows:
|
|
134
|
+
print(f"{row.data.title} by {row.data.authorId}")
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Error Handling
|
|
138
|
+
The Appwrite Python SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
users = Users(client)
|
|
142
|
+
try:
|
|
143
|
+
user = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
|
|
144
|
+
print(user.name)
|
|
145
|
+
except AppwriteException as e:
|
|
146
|
+
print(e.message)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Learn more
|
|
150
|
+
You can use the following resources to learn more and get help
|
|
151
|
+
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
|
|
152
|
+
- 📜 [Appwrite Docs](https://appwrite.io/docs)
|
|
153
|
+
- 💬 [Discord Community](https://appwrite.io/discord)
|
|
154
|
+
- 🚂 [Appwrite Python Playground](https://github.com/appwrite/playground-for-python)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## Contribution
|
|
158
|
+
|
|
159
|
+
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
|
|
160
|
+
|
|
161
|
+
## License
|
|
162
|
+
|
|
163
|
+
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
|
|
File without changes
|