Metadata-Version: 2.1
Name: onepassword
Version: 0.4.1
Summary: Python wrapper for the 1password CLI
Home-page: https://github.com/lettdigital/onepassword-python
License: MIT
Author: Gabriel Chamon Araujo
Author-email: gchamon@live.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Project-URL: Repository, https://github.com/lettdigital/onepassword-python
Description-Content-Type: text/markdown

# onepassword-python
Python wrapper for the 1password CLI

## Usage

```python
from onepassword import OnePassword

secret = {"password": "<YOUR-PASSWORD-HERE>",
          "username": "<YOUR-USERNAME-HERE>",
          "signin_address": "<YOUR-1PASSWORD-ORGNIZATION-ADDRESS>",
          "secret_key": "<YOUR-1PASSWORD-SECRET-KEY>"}
op = OnePassword(secret=secret)

documents = op.list("documents")
pem_keys = (doc for doc in documents if doc["overview"]["title"].endswith("pem"))
first_key = next(pem_keys)
key_contents = op.get("document", first_key["uuid"])
print(key_contents)
```

## API

### onepassword.OnePassword

