-
Notifications
You must be signed in to change notification settings - Fork 20
Python SDK RC 0.2.1 #163
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
Merged
Merged
Python SDK RC 0.2.1 #163
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f8fdae3
Update core to version a8be62a1
1PasswordSDKBot 9de46ae
Release v0.2.1
MOmarMiraj 85a06f3
update readme
MOmarMiraj b1b3dd3
update to correct build #
MOmarMiraj c2ca112
Created funtion containing all special item fields
moward98 9d36ced
add resolve All example and fix newline in build number
MOmarMiraj 70092fa
Edited code comment on SSH key field
moward98 f87496d
add dev docs tags for examples and update release notes
MOmarMiraj d01e633
Merge branch 'sdk-core/2025-03-20-a8be62a1' of github.com:1Password/o…
MOmarMiraj 7702602
fmt fix
MOmarMiraj fbbaf26
add new line and move function above main
MOmarMiraj d066853
fmt example and add dev doc for references
MOmarMiraj 1df3d29
fmt code and clean up example file
MOmarMiraj e76b521
revert vault IDs
MOmarMiraj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| SDK_BUILD_NUMBER = "0020001" | ||
| SDK_BUILD_NUMBER = "0020101" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
|
|
||
| from onepassword.errors import raise_typed_exception | ||
|
|
||
| # In empirical tests, we determined that maximum message size that can cross the FFI boundary | ||
| # In empirical tests, we determined that maximum message size that can cross the FFI boundary | ||
| # is ~128MB. Past this limit, FFI will throw an error and the program will crash. | ||
| # We set the limit to 50MB to be safe and consistent with the other SDKs (where this limit is 64MB), to be reconsidered upon further testing | ||
| MESSAGE_LIMIT = 50 * 1024 * 1024 | ||
|
|
@@ -33,7 +33,8 @@ async def _invoke(invoke_config): | |
| serialized_config = json.dumps(invoke_config) | ||
| if len(serialized_config.encode()) > MESSAGE_LIMIT: | ||
| raise ValueError( | ||
| f"message size exceeds the limit of {MESSAGE_LIMIT} bytes, please contact 1Password at [email protected] or https://developer.1password.com/joinslack if you need help.") | ||
| f"message size exceeds the limit of {MESSAGE_LIMIT} bytes, please contact 1Password at [email protected] or https://developer.1password.com/joinslack if you need help." | ||
| ) | ||
| try: | ||
| return await core.invoke(serialized_config) | ||
| except Exception as e: | ||
|
|
@@ -45,7 +46,8 @@ def _invoke_sync(invoke_config): | |
| serialized_config = json.dumps(invoke_config) | ||
| if len(serialized_config.encode()) > MESSAGE_LIMIT: | ||
| raise ValueError( | ||
| f"message size exceeds the limit of {MESSAGE_LIMIT} bytes, please contact 1Password at [email protected] or https://developer.1password.com/joinslack if you need help.") | ||
| f"message size exceeds the limit of {MESSAGE_LIMIT} bytes, please contact 1Password at [email protected] or https://developer.1password.com/joinslack if you need help." | ||
| ) | ||
| try: | ||
| return core.invoke_sync(serialized_config) | ||
| except Exception as e: | ||
|
|
||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.