Skip to content

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

Sachin-crypto/PythonxAppwrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Script For Creating Appwrite DB

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

Python Appwrite Database Python Script

Get The Script

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.

Add The Environment Variables

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"

Run The Script

Install the dependencies from the requirement.txt file

python -r requirements.txt

Then run the Python script

python appwrite_project.py

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages