You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [Corbado](https://www.corbado.com) Python SDK provides convenient access to the [Corbado Backend API](https://apireference.cloud.corbado.io/backendapi-v2/) from applications written in the Python language.
9
+
The [Corbado](https://www.corbado.com) Python SDK provides convenient access to the [Corbado Backend API](https://docs.corbado.com/api-reference/backend-api) from applications written in the Python language.
If the Backend API returns a HTTP status code other than 200, the Corbado Python SDK throws a `ServerException`. The `ServerException`class provides convenient methods to access all important data:
85
-
sdk.users.get(user_id="usr-123456789")
85
+
sdk.users.get(user_id="usr-123456789")
86
86
87
87
```Python
88
88
try:
@@ -109,18 +109,22 @@ If the Backend API returns a HTTP status code other than 200, the Corbado Python
109
109
print(f"Full error: {e.error}")
110
110
111
111
```
112
+
112
113
## Developer Setup
113
114
114
115
Create a virtual environment and install packages -
115
-
```console
116
+
117
+
```console
116
118
python3 -m venv venv_name
117
119
source venv_name/bin/activate
118
120
pip install -r requirements-dev.txt
119
121
```
122
+
120
123
(Add venv_name to "exclude" list in .flake8, otherwise flake8 will lint the generated venv)
121
124
122
125
Add environment variables for tests (use the test project from secrets repositoty) -
0 commit comments