A Python script for creating a database, collection, and attributes and then adding data to the database on the Appwrite cloud using Appwrite's Python package named appwrite
Clone this repository using the following command in the terminal
git clone https://github.com/Sachin-crypto/PythonxAppwrite
OR
Download the script in ZIP format and extract the Python file in your IDE.
Obtain the Project ID and API Key from the Appwrite console or see this guide for details.
After obtaining the credentials, create a .env
file in the directory and add the following environment variables
- PROJECT_ID="xxxxxxxxxxxxxxxxxxx"
- API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Install the dependencies from the requirement.txt
file
python -r requirements.txt
Then run the Python script
python appwrite_project.py