Build locally
Requirements
- Python 3
- Rust
maturin
(install with pip install maturin
)npm
Build
npm install
npm run schemas
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:
python3 -m venv .venv
source .venv/bin/activate
python -m venv venv
venv\Scripts\activate.bat
venv\Scripts\Activate.ps1
Run
maturin develop
python3 ./example.py
deactivate
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