Skip to main content

Zero-click Appwrite test environments.

Project description

appwrite-lab

Zero-click Appwrite test environments.

Allows you to spin up versioned Appwrite deployments for easy testing via CLI of through code, that can be ran in a sequence of E2E tests.

Installation

pip install appwrite-lab

Appwrite Lab features (in progress)

  • Spin up ephemeral Appwrite instances with Docker/Podman
  • Automatically grab API keys (for programmatic access)
  • Environment syncing
  • Clean teardowns

Appwrite Lab in progress features

  • Test suite
  • Appwrite data population

CLI Usage

Help with appwrite-lab CLI

appwrite-lab --help

To get started spinning up a lab instance, use:

appwrite-lab new lab test-lab --version 1.7.4

To teardown,

appwrite-lab stop test-lab

Sync an Appwrite lab from your prod lab schema

Run in the same folder where your appwrite.json is located to sync all resources:

appwrite-lab sync test-lab

or sync a specific resource:

appwrite-lab sync test-lab --resource functions

Known Troubleshooting

Podman support and Selinux

Since I am mimicking the compose file that Appwrite provides, it was not designed to work rootless, but I have adjusted to work also on Fedora. You will need to turn selinux off for now to use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appwrite_lab-0.0.7.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appwrite_lab-0.0.7-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file appwrite_lab-0.0.7.tar.gz.

File metadata

  • Download URL: appwrite_lab-0.0.7.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for appwrite_lab-0.0.7.tar.gz
Algorithm Hash digest
SHA256 884fcd1d629f45df6bcfbb0da9a31b37a7ec035d14623c8680a73b36862bfe89
MD5 eb69af22ef3475c5a81f714bbd5ae21a
BLAKE2b-256 0f327fd28ac86c5c112ccab6890045164f5532d73599bf2147953ade4398ca55

See more details on using hashes here.

File details

Details for the file appwrite_lab-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: appwrite_lab-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for appwrite_lab-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 94b2284d9a0f22f4a51fa9c26aa3d57efcca683e64e0b9843d0ade205eec4577
MD5 b35d32fd923e19da7068dffb2ee4caba
BLAKE2b-256 6afae3c26a8f35cb5727f351d5423a3cfb89831d6514dab94188cbed68bbbe47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page