1 # smbCloud SDK Auth
2
3 Python auth SDK for smbCloud.
4
5 ## About
6
7 `smbcloud-sdk-auth` wraps the shared Rust auth crate through PyO3 so Python apps can use the same auth API as the browser SDK.
8
9 Current exported Python APIs include:
10
11 - `signup_with_client`
12 - `login_with_client`
13 - `logout_with_client`
14 - `me_with_client`
15 - `remove_with_client`
16 - `Environment`
17 - `AuthClient`
18
19 ## Install
20
21 ```bash
22 pip install smbcloud-sdk-auth
23 ```
24
25 ## Usage
26
27 ```python
28 from smbcloud_auth import AuthClient, Environment
29
30 client = AuthClient(
31 env=Environment.PRODUCTION,
32 app_id="app-id",
33 app_secret="app-secret",
34 )
35
36 signup = client.signup("name@example.com", "password123")
37 login = client.login("name@example.com", "password123")
38 user = client.me(login["access_token"])
39 ```
40
41 ## Local packaging
42
43 From `sdk/python`:
44
45 ```bash
46 maturin build
47 ```
48
49 For the wider platform and docs, see [smbCloud](https://smbcloud.xyz/) and the [developer guides](https://smbcloud.xyz/posts).
50
51 ## License
52
53 Apache-2.0
54
55 ## Copyright
56
57 © 2026 [smbCloud](https://smbcloud.xyz) (Splitfire AB).