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.1.0-cp39-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

bitwarden_sdk-2.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

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

bitwarden_sdk-2.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

bitwarden_sdk-2.1.0-cp39-abi3-macosx_11_0_arm64.whl (3.5 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

bitwarden_sdk-2.1.0-cp39-abi3-macosx_10_12_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for bitwarden_sdk-2.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2c5de50af003b7b2d16a9a690d3111480d1b1962eb25f39e416812d6d9d4e4d6
MD5 bb3a1e51dacd15517efa015647ab0173
BLAKE2b-256 5849cb3ed348f7bd35cc323021c11bee70304e446f3d5a6fca678987b4c47d23

See more details on using hashes here.

Provenance

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

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

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.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6f6b2624e340307891edc20a2860ec0b7c2140683eec2ce2e20d1076ffe9268
MD5 09a016765aecc4ab38040d50ca942b9a
BLAKE2b-256 7ef4ccdcadee82f88ec3c52a3b6e0db11df4c5587db171a2c979e4e9eb76b1d4

See more details on using hashes here.

Provenance

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

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

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.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cdf85d309aecf21c563c9245322d49a344135761d03cffa43b8703f509bc0df7
MD5 a457b5392e6146cdf53d19c1d0b4c1cb
BLAKE2b-256 cf5644bdc84935648f735ce80df7e88cdaa133fb45a2fee745343ea2dfa26095

See more details on using hashes here.

Provenance

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

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

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.1.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8374ef97e481c17a0b65e1b8d700df492cb384ff5a4888bd2c697c37457fc332
MD5 4538c7614499705c495727499839d0d3
BLAKE2b-256 f47cb4d87586010d365c01cffe2e1b28814072fae3c7a59dcfd85c7a51d11b7e

See more details on using hashes here.

Provenance

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

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

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.1.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bitwarden_sdk-2.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 659b7e3faaab067f38556ffaaa7edf217e581047234f9a748770fa2926d2664c
MD5 c49796c30ee2cd7b0027232ade3742ec
BLAKE2b-256 9a8b561140803e14f5fcb461814af08efe686ff4f07eb0fe8d6721cb887008bf

See more details on using hashes here.

Provenance

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

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

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