Python Auth SDK for smbCloud, built from Rust.
Project description
smbCloud SDK Auth
Python authentication SDK for smbCloud, built from Rust.
About
smbcloud-sdk-auth wraps the shared Rust Auth crate through PyO3 and maturin so
Python apps can use the same tenant auth contract as the browser SDK.
Current exported Python APIs include:
signup_with_clientlogin_with_clientlogout_with_clientme_with_clientremove_with_clientEnvironmentAuthClient
Install
pip install smbcloud-sdk-auth
Usage
from smbcloud_auth import AuthClient, Environment
client = AuthClient(
env=Environment.PRODUCTION,
app_id="app-id",
app_secret="app-secret",
)
signup = client.signup("name@example.com", "password123")
login = client.login("name@example.com", "password123")
user = client.me(login["access_token"])
Local packaging
From sdk/python:
maturin build
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smbcloud_sdk_auth-0.3.35.tar.gz.
File metadata
- Download URL: smbcloud_sdk_auth-0.3.35.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f113c86cbb9bc85c561b240fb61fb7f6d3fa1f312b6c6fe66c64b18d5874d5fa
|
|
| MD5 |
eb94c8380a95534d2342efa549de3d32
|
|
| BLAKE2b-256 |
10e62f099e4bf8ff412191dc948d263a1a140022b636b79d04b0e882a8d6597a
|
File details
Details for the file smbcloud_sdk_auth-0.3.35-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: smbcloud_sdk_auth-0.3.35-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f4d8348b2729cb9337d5de3e7aaac58c3e19520b4e695d904a5f25c668e6e7f
|
|
| MD5 |
d40bdb91cdd3b5037ee16907386f24bd
|
|
| BLAKE2b-256 |
649bf8f13faedcf3f47592c664b486a21c9e14ea6c278e82237cf809ae2d1ea3
|