Skip to content

Commit 954d243

Browse files
authored
Adhere to github flavoured markdown syntax (#695)
1 parent a3707e7 commit 954d243

11 files changed

+2809
-2322
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
---
1+
______________________________________________________________________
2+
23
name: Bug report
34
about: Create a report to help us improve
45
title: ''
56
labels: ''
67
assignees: ''
78

8-
---
9+
______________________________________________________________________
910

1011
**Describe the bug**
1112
A clear and concise description of what the bug is.
1213

1314
**To Reproduce**
1415
Steps to reproduce the behavior:
16+
1517
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
18+
1. Click on '....'
19+
1. Scroll down to '....'
20+
1. See error
1921

2022
**Expected behavior**
2123
A clear and concise description of what you expected to happen.
@@ -24,15 +26,17 @@ A clear and concise description of what you expected to happen.
2426
If applicable, add screenshots to help explain your problem.
2527

2628
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
29+
30+
- OS: \[e.g. iOS\]
31+
- Browser \[e.g. chrome, safari\]
32+
- Version \[e.g. 22\]
3033

3134
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
35+
36+
- Device: \[e.g. iPhone6\]
37+
- OS: \[e.g. iOS8.1\]
38+
- Browser \[e.g. stock browser, safari\]
39+
- Version \[e.g. 22\]
3640

3741
**Additional context**
3842
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
---
1+
______________________________________________________________________
2+
23
name: Feature request
34
about: Suggest an idea for this project
45
title: ''
56
labels: ''
67
assignees: ''
78

8-
---
9+
______________________________________________________________________
910

1011
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when \[...\]
1213

1314
**Describe the solution you'd like**
1415
A clear and concise description of what you want to happen.

.pre-commit-config.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
exclude: '^.*\.(md|MD)$'
21
repos:
2+
- repo: https://github.com/executablebooks/mdformat
3+
rev: 0.7.17
4+
hooks:
5+
- id: mdformat
6+
additional_dependencies:
7+
- mdformat-gfm
8+
39
- repo: https://github.com/pre-commit/pre-commit-hooks
410
rev: v4.1.0
511
hooks:

CHANGELOG.md

+1,785-1,510
Large diffs are not rendered by default.

CODE_OF_CONDUCT.md

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Contributor Covenant Code of Conduct
32

43
## Our Pledge
@@ -15,21 +14,21 @@ appearance, race, religion, or sexual identity and orientation.
1514
Examples of behavior that contributes to creating a positive environment
1615
include:
1716

18-
* Using welcoming and inclusive language
19-
* Being respectful of differing viewpoints and experiences
20-
* Gracefully accepting constructive criticism
21-
* Focusing on what is best for the community
22-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2322

2423
Examples of unacceptable behavior by participants include:
2524

26-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2726
advances
28-
* Trolling, insulting/derogatory comments, and personal or political attacks
29-
* Public or private harassment
30-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3130
address, without explicit permission
32-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3332
professional setting
3433

3534
## Our Responsibilities
@@ -56,7 +55,7 @@ a project may be further defined and clarified by project maintainers.
5655
## Enforcement
5756

5857
Instances of abusive, harassing, or otherwise unacceptable behavior may be
59-
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
58+
reported by contacting the project team at \[INSERT EMAIL ADDRESS\]. All
6059
complaints will be reviewed and investigated and will result in a response that
6160
is deemed necessary and appropriate to the circumstances. The project team is
6261
obligated to maintain confidentiality with regard to the reporter of an incident.
@@ -69,9 +68,9 @@ members of the project's leadership.
6968
## Attribution
7069

7170
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
73-
74-
[homepage]: https://www.contributor-covenant.org
71+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
7572

7673
For answers to common questions about this code of conduct, see
77-
https://www.contributor-covenant.org/faq
74+
<https://www.contributor-covenant.org/faq>
75+
76+
[homepage]: https://www.contributor-covenant.org

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All submissions, including submissions by project members, require review. We
1212
use GitHub pull requests for this purpose. After filing a pull request, please tag any two of the [current maintainers](./MAINTAINERS.md) to request a review.
1313

1414
## Report an issue/File a feature request
15+
1516
Before opening a new issue or request, please take a moment to check the existing issues and discussions to see if your topic has already been addressed. This helps us avoid duplicate issues and keeps the conversation focused.
1617

1718
Report all issues and file all feature requests through [GitHub Issues](./issues).

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MIT License
1+
# MIT License
22

33
Copyright (c) 2020 Joel Lee
44

MAINTAINERS.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
# Maintainers
2+
13
This page lists all active maintainers of this repository. If you were a maintainer and would like to add your name to the Emeritus list, please send us a PR.
24

35
See CONTRIBUTING.md for general contribution guidelines.
46

5-
# Maintainers (in alphabetical order)
7+
## Maintainers (in alphabetical order)
8+
69
- [olirice](https://github.com/olirice)
710
- [silentworks](https://github.com/silentworks)
811

9-
# Emeritus Maintainers (in alphabetical order)
12+
## Emeritus Maintainers (in alphabetical order)
13+
1014
- [anand2312](https://github.com/anand2312)
1115
- [dreinon](https://github.com/dreinon)
1216
- [fedden](https://github.com/fedden)

README.md

+34-29
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,27 @@ Python client for [Supabase](https://supabase.com)
88
- [Python data loading with Supabase](https://supabase.com/blog/loading-data-supabase-python)
99

1010
## Set up a Local Development Environment
11-
### Clone the Repository:
11+
12+
### Clone the Repository
1213

1314
```bash
1415
git clone https://github.com/supabase-community/supabase-py.git
1516
cd supabase-py
1617
```
1718

18-
### Create and Activate a Virtual Environment:
19+
### Create and Activate a Virtual Environment
1920

20-
We recommend activating your virtual environment. For example, we like `poetry` and `conda`! Click <a href="https://docs.python.org/3/library/venv.html">here</a> for more about Python virtual environments and working with <a href="https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment">conda</a> and <a href="https://python-poetry.org/docs/basic-usage/">poetry</a>.
21+
We recommend activating your virtual environment. For example, we like `poetry` and `conda`! Click [here](https://docs.python.org/3/library/venv.html) for more about Python virtual environments and working with [conda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment) and [poetry](https://python-poetry.org/docs/basic-usage/).
2122

2223
Using venv (Python 3 built-in):
24+
2325
```bash
2426
python3 -m venv env
2527
source env/bin/activate # On Windows, use .\env\Scripts\activate
2628
```
29+
2730
Using conda:
31+
2832
```bash
2933
conda create --name supabase-py
3034
conda activate supabase-py
@@ -44,7 +48,7 @@ conda install -c conda-forge supabase
4448

4549
### Local installation
4650

47-
You can also install locally after cloning this repo. Install Development mode with ``pip install -e``, which makes it so when you edit the source code the changes will be reflected in your python module.
51+
You can also install locally after cloning this repo. Install Development mode with `pip install -e`, which makes it so when you edit the source code the changes will be reflected in your python module.
4852

4953
## Usage
5054

@@ -68,19 +72,19 @@ supabase: Client = create_client(url, key)
6872

6973
Use the supabase client to interface with your database.
7074

71-
#### Sign-up
75+
### Sign-up
7276

7377
```python
7478
user = supabase.auth.sign_up({ "email": users_email, "password": users_password })
7579
```
7680

77-
#### Sign-in
81+
### Sign-in
7882

7983
```python
8084
user = supabase.auth.sign_in_with_password({ "email": users_email, "password": users_password })
8185
```
8286

83-
#### Insert Data
87+
### Insert Data
8488

8589
```python
8690
data = supabase.table("countries").insert({"name":"Germany"}).execute()
@@ -89,7 +93,7 @@ data = supabase.table("countries").insert({"name":"Germany"}).execute()
8993
assert len(data.data) > 0
9094
```
9195

92-
#### Select Data
96+
### Select Data
9397

9498
```python
9599
data = supabase.table("countries").select("*").eq("country", "IL").execute()
@@ -98,13 +102,13 @@ data = supabase.table("countries").select("*").eq("country", "IL").execute()
98102
assert len(data.data) > 0
99103
```
100104

101-
#### Update Data
105+
### Update Data
102106

103107
```python
104108
data = supabase.table("countries").update({"country": "Indonesia", "capital_city": "Jakarta"}).eq("id", 1).execute()
105109
```
106110

107-
#### Update data with duplicate keys
111+
### Update data with duplicate keys
108112

109113
```python
110114
country = {
@@ -116,13 +120,13 @@ data = supabase.table("countries").upsert(country).execute()
116120
assert len(data.data) > 0
117121
```
118122

119-
#### Delete Data
123+
### Delete Data
120124

121125
```python
122126
data = supabase.table("countries").delete().eq("id", 1).execute()
123127
```
124128

125-
#### Call Edge Functions
129+
### Call Edge Functions
126130

127131
```python
128132
def test_func():
@@ -134,15 +138,15 @@ def test_func():
134138
print(err.get("message"))
135139
```
136140

137-
#### Download a file from Storage
141+
### Download a file from Storage
138142

139143
```python
140144
bucket_name: str = "photos"
141145

142146
data = supabase.storage.from_(bucket_name).download("photo1.png")
143147
```
144148

145-
#### Upload a file
149+
### Upload a file
146150

147151
```python
148152
bucket_name: str = "photos"
@@ -151,23 +155,23 @@ new_file = getUserFile()
151155
data = supabase.storage.from_(bucket_name).upload("/user1/profile.png", new_file)
152156
```
153157

154-
#### Remove a file
158+
### Remove a file
155159

156160
```python
157161
bucket_name: str = "photos"
158162

159163
data = supabase.storage.from_(bucket_name).remove(["old_photo.png", "image5.jpg"])
160164
```
161165

162-
#### List all files
166+
### List all files
163167

164168
```python
165169
bucket_name: str = "charts"
166170

167171
data = supabase.storage.from_(bucket_name).list()
168172
```
169173

170-
#### Move and rename files
174+
### Move and rename files
171175

172176
```python
173177
bucket_name: str = "charts"
@@ -184,28 +188,29 @@ data = supabase.storage.from_(bucket_name).move(old_file_path, new_file_path)
184188
- [ ] Add support for EXPLAIN
185189
- [ ] Add proper error handling
186190
- [ ] Wrap [Realtime-py](https://github.com/supabase-community/realtime-py)
187-
- [ ] Integrate with Supabase-py
188-
- [ ] Support WALRUS
189-
- [ ] Support broadcast (to check if already supported)
191+
- [ ] Integrate with Supabase-py
192+
- [ ] Support WALRUS
193+
- [ ] Support broadcast (to check if already supported)
190194
- [x] Wrap [auth-py](https://github.com/supabase-community/auth-py)
191-
- [x] Remove references to GoTrue-js v1 and do a proper release
192-
- [ ] Test and document common flows (e.g. sign in with OAuth, sign in with OTP)
193-
- [ ] Add MFA methods and SSO methods
194-
- [x] Add Proof Key for Code Exchange (PKCE) methods. Unlike the JS library, we do not currently plan to support Magic Link (PKCE). Please use the [token hash](https://supabase.com/docs/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr#create-api-endpoint-for-handling-tokenhash) in tandem with `verifyOTP` instead.
195+
- [x] Remove references to GoTrue-js v1 and do a proper release
196+
- [ ] Test and document common flows (e.g. sign in with OAuth, sign in with OTP)
197+
- [ ] Add MFA methods and SSO methods
198+
- [x] Add Proof Key for Code Exchange (PKCE) methods. Unlike the JS library, we do not currently plan to support Magic Link (PKCE). Please use the [token hash](https://supabase.com/docs/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr#create-api-endpoint-for-handling-tokenhash) in tandem with `verifyOTP` instead.
195199
- [x] Wrap [storage-py](https://github.com/supabase-community/storage-py)
196-
- [ ] Support resumable uploads
197-
- [x] Setup testing environment
198-
- [x] Document how to properly upload different file types (e.g. jpeg/png and download it)
200+
- [ ] Support resumable uploads
201+
- [x] Setup testing environment
202+
- [x] Document how to properly upload different file types (e.g. jpeg/png and download it)
199203
- [x] Wrap [functions-py](https://github.com/supabase-community/functions-py)
200204

201-
Overall Tasks:
205+
### Overall Tasks
206+
202207
- [x] Add async support across the entire library
203208
- [ ] Add FastAPI helper library (external to supabase-py)
204209
- [ ] Add `django-supabase-postgrest` (external to supabase-py)
205210

206211
## Contributing
207212

208-
Contributing to the Python libraries are a great way to get involved with the Supabase community. Reach out to us on <a href="https://discord.supabase.com/">Discord</a> or on our <a href="https://github.com/orgs/supabase/discussions">Github Discussions</a> page if you want to get involved.
213+
Contributing to the Python libraries are a great way to get involved with the Supabase community. Reach out to us on [Discord](https://discord.supabase.com) or on our [Github Discussions](https://github.com/orgs/supabase/discussions) page if you want to get involved.
209214

210215
### Running Tests
211216

0 commit comments

Comments
 (0)