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