-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #775 from KBVE/patch-nodepy
Pulling refs/heads/patch-nodepy into Dev
- Loading branch information
Showing
11 changed files
with
227 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: Appwrite Python | ||
description: | | ||
The Appwrite Python SDK allows Python developers to interact with Appwrite's API, facilitating tasks like user authentication, database operations, storage, and more. | ||
By using this SDK, Python developers can seamlessly integrate and manage Appwrite services in their applications, without delving into the complexities of direct API calls. | ||
--- | ||
|
||
### Appwrite Python SDK | ||
|
||
Step aside traditional backends, the Appwrite Python SDK is in town, rolling out the red carpet for Pythonistas eager to elevate their web and mobile projects! | ||
This snazzy toolkit doesn't just connect Python applications to the Appwrite server; it's a golden ticket to a carnival of backend delights. | ||
From the tantalizing whirlwind of user authentication to the magic show of database operations and the high-flying trapeze of storage management, the SDK transforms mundane backend tasks into a spectacle. | ||
No more wrestling with manual API requests – just harness the SDK's sleek methods and watch as Appwrite's vast services dance harmoniously with your Python code. | ||
Whether you're orchestrating a symphony of user data or choreographing a ballet of notifications, the Appwrite Python SDK ensures every act is a showstopper or a stormtrooper muhahaha. | ||
|
||
#### Appwrite Python SDK Install | ||
|
||
Python wizards, gather 'round! Elevate your coding cauldron with a sprinkle of Appwrite magic by simply chanting `pip install appwrite`. | ||
And just like that, your Python broomstick is turbocharged and ready to soar through the backend skies! | ||
|
||
Calling the `appwrite` in python is really easy! Just add this below: | ||
|
||
```python | ||
|
||
from appwrite.client import Client | ||
|
||
client = Client() | ||
|
||
client = (client | ||
.set_endpoint('https://ap.kbve.com/v1') # Your API Endpoint | ||
.set_project('[PROJECT_ID]') # Your project ID | ||
.set_key('919c2db5d4...a2a3346ad2') # Your secret API key | ||
) | ||
|
||
``` | ||
|
||
And you will be good to go! | ||
|
||
##### Appwrite Python SDK Demo | ||
|
||
Here is a quick and easy demo for Appwrite python below! | ||
|
||
```python | ||
|
||
from appwrite.client import Client | ||
from appwrite.id import ID | ||
from appwrite.services.users import Users | ||
|
||
client = Client() | ||
|
||
client = (client | ||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
.set_project('[PROJECT_ID]') # Your project ID | ||
.set_key('919c2db5d4...a2a3346ad2') # Your secret API key | ||
) | ||
|
||
users = Users(client) | ||
|
||
user = users.create( | ||
user_id=ID.unique(), | ||
email='[email protected]', | ||
phone=None, | ||
password='password' | ||
) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
const core = await Astro.glob('./*.md*'); | ||
import MDXJS from '@w/MDXJS.astro'; | ||
--- | ||
{ | ||
core.map((note) => ( | ||
<MDXJS transparent={false}> | ||
<div> | ||
<article class=""> | ||
<h2>{note.frontmatter.title}</h2> | ||
<p>{note.frontmatter.description}</p> | ||
|
||
<note.Content /> | ||
</article> | ||
</div> | ||
</MDXJS> | ||
)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: DockerFile | ||
description: Notes on creating a dockerfile for the image build | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
const notes = await Astro.glob('./*.md*'); | ||
import MDXJS from '@w/MDXJS.astro'; | ||
--- | ||
{ | ||
notes.map((note) => ( | ||
<MDXJS transparent={false}> | ||
<div> | ||
<article class=""> | ||
<h2>{note.frontmatter.title}</h2> | ||
<p>{note.frontmatter.description}</p> | ||
|
||
<note.Content /> | ||
</article> | ||
</div> | ||
</MDXJS> | ||
)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
layout: ../../layouts/theme/mdx.astro | ||
title: "August : 23" | ||
category: Daily | ||
date: 2023-08-23 | ||
client: Self | ||
img: https://images.unsplash.com/photo-1691183336426-10e4a01f19ec?fit=crop&q=85&w=1400&h=700 | ||
description: Daily Log for August, 23 of each year. | ||
tags: | ||
- daily | ||
--- | ||
|
||
## Notes | ||
|
||
- 8:10am - I believe I got the general flow of the docker container! Yay! | ||
- 6:51pm - Going to sync the notes in between the sessions. Okay, now I need to add github actions to the `NodePy`. so that it can build the images without having any major issues. As for the key storage, I am thinking that it would be an AES style encryption, so that there would not be any major issues. | ||
- 7:40pm - I added the docker image creation test casing, under the workflow. | ||
|
||
## Quote | ||
|
||
> You cannot escape the responsibility of tomorrow by evading it today. | ||
> — <cite>Abraham Lincoln</cite> | ||
--- | ||
|
||
## Tasks | ||
|
||
- [ ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters