Skip to main content

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_client
  • login_with_client
  • logout_with_client
  • me_with_client
  • remove_with_client
  • Environment
  • AuthClient

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smbcloud_sdk_auth-0.3.35.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smbcloud_sdk_auth-0.3.35-cp38-abi3-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

Hashes for smbcloud_sdk_auth-0.3.35.tar.gz
Algorithm Hash digest
SHA256 f113c86cbb9bc85c561b240fb61fb7f6d3fa1f312b6c6fe66c64b18d5874d5fa
MD5 eb94c8380a95534d2342efa549de3d32
BLAKE2b-256 10e62f099e4bf8ff412191dc948d263a1a140022b636b79d04b0e882a8d6597a

See more details on using hashes here.

File details

Details for the file smbcloud_sdk_auth-0.3.35-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smbcloud_sdk_auth-0.3.35-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f4d8348b2729cb9337d5de3e7aaac58c3e19520b4e695d904a5f25c668e6e7f
MD5 d40bdb91cdd3b5037ee16907386f24bd
BLAKE2b-256 649bf8f13faedcf3f47592c664b486a21c9e14ea6c278e82237cf809ae2d1ea3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page