-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joel Lee
committed
Jan 22, 2021
0 parents
commit 3d87285
Showing
6 changed files
with
269 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
|
||
# Editors | ||
.vscode/ | ||
.idea/ | ||
|
||
# Vagrant | ||
.vagrant/ | ||
|
||
# Mac/OSX | ||
.DS_Store | ||
|
||
# Windows | ||
Thumbs.db | ||
|
||
# Source for the following rules: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json |
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,19 @@ | ||
# Gotrue-py | ||
This is a hacky `gotrue-py` client conceived during a very draggy class. | ||
|
||
## Installation | ||
Requirements | ||
@todo | ||
|
||
|
||
### Instructions | ||
#### With Poetry | ||
|
||
#### With pip | ||
|
||
|
||
### Usage | ||
|
||
|
||
### Development | ||
|
Empty file.
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,20 @@ | ||
import requests | ||
class Admin: | ||
def __init__(self): | ||
self.user = user | ||
|
||
def listUsers(aud): | ||
return requests.get() | ||
|
||
def getUser(self,user): | ||
pass | ||
|
||
def updateUser(user, attributes): | ||
pass | ||
|
||
def createUser(email, password, attributes): | ||
pass | ||
|
||
def deleteUser(): | ||
pass | ||
|
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,47 @@ | ||
class GoTrue: | ||
def __init__(url, audience='', setCookie=False): | ||
pass | ||
|
||
|
||
def _request(): | ||
pass | ||
|
||
def settings(): | ||
pass | ||
|
||
def signup(email, password, data): | ||
pass | ||
|
||
def login(): | ||
pass | ||
|
||
def loginExternalUrl(provider): | ||
pass | ||
|
||
def confirm(token, remember): | ||
pass | ||
|
||
def requestPasswordRecovery(email): | ||
pass | ||
|
||
def recover(token, remember): | ||
pass | ||
|
||
def acceptInvite(token, password, remember): | ||
pass | ||
|
||
def acceptInviteUrl(provider, token): | ||
pass | ||
|
||
def createUser(tokenResponse, remember=False): | ||
pass | ||
|
||
def currentUser(): | ||
pass | ||
|
||
def verify(type, token, remember): | ||
pass | ||
|
||
def _setRememberHeaders(remember): | ||
pass | ||
|
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,57 @@ | ||
class User: | ||
def __init__(api, tokenRepsonse, audience): | ||
pass | ||
|
||
@staticmethod | ||
def removeSavedSession(): | ||
pass | ||
|
||
@staticmethod | ||
def recoverSession(): | ||
pass | ||
|
||
@property | ||
def admin(self): | ||
return self.admin | ||
|
||
def update(attributes): | ||
pass | ||
|
||
def jwt(forceRefresh): | ||
pass | ||
|
||
def logout(): | ||
pass | ||
|
||
def refreshToken(): | ||
pass | ||
|
||
def request(path, options): | ||
pass | ||
|
||
def getUserData(): | ||
pass | ||
|
||
def _saveUserData(attributes, fromStorage): | ||
pass | ||
|
||
def _processTokenResponse(tokenResponse): | ||
pass | ||
|
||
def _refreshSavedSession(): | ||
pass | ||
|
||
def _details(): | ||
pass | ||
|
||
def _saveSession(): | ||
pass | ||
|
||
def tokenDetails(): | ||
pass | ||
|
||
def clearSession(): | ||
pass | ||
|
||
def urlBase64Decode(str): | ||
pass |