Skip to main content

A Bitwarden Client for python

Project description

Build locally

Requirements

  • Python 3
  • Rust
  • maturin (install with pip install maturin, or pip install maturin[patchelf] on Linux)
  • npm
  • uv (recommended; used in test automation)

Build

npm install
npm run schemas # generate schemas.py

cd languages/python/

You will need to build and run the script using a virtual environment. This will be slightly different depending on the OS you are using:

# --- Linux/macOS ---
python3 -m venv .venv
source .venv/bin/activate

# --- Windows ---
python -m venv venv

venv\Scripts\activate.bat # cmd.exe
venv\Scripts\Activate.ps1 # Powershell

Run

maturin develop
python3 ./example.py

deactivate # run this to close the virtual session

You can now import BitwardenClient in your Python code with:

from bitwarden_sdk import BitwardenClient

Use without building locally

pip install bitwarden-sdk

Run

Set the ORGANIZATION_ID and ACCESS_TOKEN environment variables to your organization ID and access token, respectively.

python3 ./example.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

bitwarden_sdk-2.0.0-cp39-abi3-win_amd64.whl (3.3 MB view details)

Uploaded CPython 3.9+Windows x86-64

bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

bitwarden_sdk-2.0.0-cp39-abi3-macosx_11_0_arm64.whl (3.4 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

bitwarden_sdk-2.0.0-cp39-abi3-macosx_10_12_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file bitwarden_sdk-2.0.0-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.0.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9b9a523dab81cca56151481bd0dce07bd58695fd14b4c5bcab520c7a24fc16c3
MD5 fae27292a3d35d42b6ad4b6d7ce54f21
BLAKE2b-256 bf17a96033bc9a55521a9d2a4022d69f72da302df4ac83eb182379fec9df102c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitwarden_sdk-2.0.0-cp39-abi3-win_amd64.whl:

Publisher: publish-python.yml on bitwarden/sdk-sm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c0e2dd8d8a3db2f0cb29d6dcd55fd578bd66839f666b8e1712712b6e9791021
MD5 8842af2b1bbbcc7de4a3748d279c607d
BLAKE2b-256 550355ea33d637e74bf7e50f39c361b82c8f03630d6f35ae8944d3a4a8399585

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-python.yml on bitwarden/sdk-sm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a49739ebe37103df677e263637fdabc61682f10a5f4518fb22b130d530fffbcd
MD5 dd74c8a8507e8b16965e8810274683db
BLAKE2b-256 77938905bd312f40a0c1c7fabd939a3271380ccad959b9f99eda452f254fabfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitwarden_sdk-2.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish-python.yml on bitwarden/sdk-sm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitwarden_sdk-2.0.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.0.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cc41cae078d086b1eaeb9e4f781454cfba7b77119f70908d074bed259dce8a6
MD5 2c31b46fef9b9234feabdb3d73445268
BLAKE2b-256 42b188c0d624b16d974bbcc3636d68cee15d9908980dc05c881b1ff46a19509d

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitwarden_sdk-2.0.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: publish-python.yml on bitwarden/sdk-sm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitwarden_sdk-2.0.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.0.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 054ccdda8fbf615d0e582e1e75c7c316bf291ed03b27efd774325ecc3b0fb0b8
MD5 b394f1e803b265b9041142ddafb70d93
BLAKE2b-256 c866177264df153e6714fa3d18fcac45374cc7ff481dd347acb5b02592f9d45a

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitwarden_sdk-2.0.0-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: publish-python.yml on bitwarden/sdk-sm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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