-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SM-1098: Update Python Wrapper README Instructions #592
Changes from 1 commit
b762afd
d2b769a
462a261
a8ddfa1
582b09f
a898929
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.egg-info | ||
bitwarden_py*.so | ||
__pycache__ | ||
.venv |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ From the root of the repository: | |
npm run schemas # generate schemas.py | ||
|
||
cd languages/python/ | ||
python3 -m venv .venv | ||
maturin develop | ||
``` | ||
|
||
|
@@ -31,5 +32,8 @@ pip install bitwarden-sdk | |
Set the `ORGANIZATION_ID` and `ACCESS_TOKEN` environment variables to your organization ID and access token, respectively. | ||
|
||
```bash | ||
source .venv/bin/activate | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is under run and we do not know if they use a venv or some other approach. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved this to a |
||
python3 ./example.py | ||
|
||
deactivate # run this to close the virtual session | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this under virtual env? This command doesn't mount the venv either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved everything to the separate section for running & building with virtual environments here:
582b09f