Skip to content

Commit 65d3292

Browse files
committed
Revert final step
1 parent 638ab66 commit 65d3292

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

README.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,7 @@ To use the 1Password Python SDK in your project:
5454
pip install git+ssh://[email protected]/1Password/onepassword-sdk-python.git
5555
```
5656

57-
3. Import the SDK in your project:
58-
59-
```python
60-
from onepassword.client import Client
61-
```
62-
63-
5. Initialize the SDK. Provision your service account token and use `integration_name` and `integration_version` to specify a name and version for your application.
64-
65-
```python
66-
async def main():
67-
# Gets your service account token from the OP_SERVICE_ACCOUNT_TOKEN environment variable.
68-
token = os.getenv("OP_SERVICE_ACCOUNT_TOKEN")
69-
70-
# Connects to 1Password.
71-
client = await Client.authenticate(auth=token, integration_name="My 1Password Integration", integration_version="v1.0.0")
72-
```
73-
74-
### Example
57+
3. Use the Python SDK in your project:
7558

7659
```python
7760
import asyncio
@@ -94,7 +77,9 @@ if __name__ == '__main__':
9477
9578
```
9679
97-
Make sure to use [secret reference URIs](https://developer.1password.com/docs/cli/secret-reference-syntax/) with the syntax `op://vault/item/field` to securely load secrets from 1Password into your code.
80+
Make sure to use [secret reference URIs](https://developer.1password.com/docs/cli/secrets-reference-syntax/) with the syntax `op://vault/item/field` to securely load secrets from 1Password into your code.
81+
82+
Inside ```Client.authenticate(...)```, set ```integration_name``` to the name of your application and ```integration_version``` to the version of your application.
9883
9984
## 📖 Learn more
10085

0 commit comments

Comments
 (0)