Metadata-Version: 2.4
Name: bitwarden_sdk
Version: 2.0.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Rust
Classifier: Topic :: Security
Requires-Dist: python-dateutil>=2.6.0
Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev'
Requires-Dist: uv>=0.6,<1.0 ; extra == 'dev'
Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev-linux'
Requires-Dist: patchelf>=0.17.0 ; extra == 'dev-linux'
Requires-Dist: uv>=0.6,<1.0 ; extra == 'dev-linux'
Provides-Extra: dev
Provides-Extra: dev-linux
License-File: LICENSE
Summary: A Bitwarden Client for python
Home-Page: https://bitwarden.com
Author-email: Bitwarden <support@bitwarden.com>
Requires-Python: >=3.0
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# 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

```bash
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:

```bash
# --- 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

```bash
maturin develop
python3 ./example.py

deactivate # run this to close the virtual session
```

You can now import `BitwardenClient` in your Python code with:

```python
from bitwarden_sdk import BitwardenClient
```

# Use without building locally

```bash
pip install bitwarden-sdk
```

# Run

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

```bash
python3 ./example.py
```

