-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
DynamoDB: Add support for TransactWriteItems for boto3 resource #4010
Open
lpsinger
wants to merge
1
commit into
boto:develop
Choose a base branch
from
lpsinger:dynamodb-resource-transact-write-items
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
DynamoDB: Add support for TransactWriteItems for boto3 resource #4010
lpsinger
wants to merge
1
commit into
boto:develop
from
lpsinger:dynamodb-resource-transact-write-items
Conversation
This file contains 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
lpsinger
added a commit
to lpsinger/python-dynamodb-autoincrement
that referenced
this pull request
Feb 7, 2024
The AWS Python SDK, [boto3], has [resource] objects that provide high-level interfaces to AWS services. The [DynamoDB resource] greatly simplifies marshalling and unmarshalling data. We rely on the resource method for [TransactWriteItems] among others that are absent from boto3. We opened PR boto/boto3#4010 to add that method. The resource methods are synthesized at runtime from a data file. Fortunately, boto3 has a [Loader] mechanism that allows the user to add extra data files, and the [loader search path] is configurable. In order to not depend upon our upstream PR for boto3, we distribute the extra data files and fix up the loader search path by putting it in a [.pth file] which Python executes automatically during startup. FIXME: The .pth file method does not currently work when we are doing editable installs. It _should_ work with editable installs if we factor the data files and the .pth file to a separate package that we add as a dependency. [boto3]: https://github.com/boto/boto3 [resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html [DynamoDB resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#resources [TransactWriteItems]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html [Loader]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html [loader search path]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html#the-search-path [.pth file]: https://docs.python.org/3/library/site.html
lpsinger
added a commit
to lpsinger/python-dynamodb-autoincrement
that referenced
this pull request
Feb 7, 2024
The AWS Python SDK, [boto3], has [resource] objects that provide high-level interfaces to AWS services. The [DynamoDB resource] greatly simplifies marshalling and unmarshalling data. We rely on the resource method for [TransactWriteItems] among others that are absent from boto3. We opened PR boto/boto3#4010 to add that method. The resource methods are synthesized at runtime from a data file. Fortunately, boto3 has a [Loader] mechanism that allows the user to add extra data files, and the [loader search path] is configurable. In order to not depend upon our upstream PR for boto3, we distribute the extra data files and fix up the loader search path by putting it in a [.pth file] which Python executes automatically during startup. FIXME: The .pth file method does not currently work when we are doing editable installs. It _should_ work with editable installs if we factor the data files and the .pth file to a separate package that we add as a dependency. [boto3]: https://github.com/boto/boto3 [resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html [DynamoDB resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#resources [TransactWriteItems]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html [Loader]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html [loader search path]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html#the-search-path [.pth file]: https://docs.python.org/3/library/site.html
lpsinger
added a commit
to lpsinger/python-dynamodb-autoincrement
that referenced
this pull request
Feb 7, 2024
The AWS Python SDK, [boto3], has [resource] objects that provide high-level interfaces to AWS services. The [DynamoDB resource] greatly simplifies marshalling and unmarshalling data. We rely on the resource method for [TransactWriteItems] among others that are absent from boto3. We opened PR boto/boto3#4010 to add that method. The resource methods are synthesized at runtime from a data file. Fortunately, boto3 has a [Loader] mechanism that allows the user to add extra data files, and the [loader search path] is configurable. In order to not depend upon our upstream PR for boto3, we distribute the extra data files and fix up the loader search path by putting it in a [.pth file] which Python executes automatically during startup. The data and .pth file are now part of an external package, [boto3-missing]. [boto3]: https://github.com/boto/boto3 [resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html [DynamoDB resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#resources [TransactWriteItems]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html [Loader]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html [loader search path]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html#the-search-path [.pth file]: https://docs.python.org/3/library/site.html [boto3-missing]: https://github.com/nasa-gcn/boto3-missing
lpsinger
added a commit
to lpsinger/python-dynamodb-autoincrement
that referenced
this pull request
Feb 7, 2024
The AWS Python SDK, [boto3], has [resource] objects that provide high-level interfaces to AWS services. The [DynamoDB resource] greatly simplifies marshalling and unmarshalling data. We rely on the resource method for [TransactWriteItems] among others that are absent from boto3. We opened PR boto/boto3#4010 to add that method. The resource methods are synthesized at runtime from a data file. Fortunately, boto3 has a [Loader] mechanism that allows the user to add extra data files, and the [loader search path] is configurable. In order to not depend upon our upstream PR for boto3, we distribute the extra data files and fix up the loader search path by putting it in a [.pth file] which Python executes automatically during startup. The data and .pth file are now part of an external package, [boto3-missing]. [boto3]: https://github.com/boto/boto3 [resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html [DynamoDB resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#resources [TransactWriteItems]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html [Loader]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html [loader search path]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html#the-search-path [.pth file]: https://docs.python.org/3/library/site.html [boto3-missing]: https://github.com/nasa-gcn/boto3-missing
lpsinger
added a commit
to nasa-gcn/python-dynamodb-autoincrement
that referenced
this pull request
Feb 7, 2024
The AWS Python SDK, [boto3], has [resource] objects that provide high-level interfaces to AWS services. The [DynamoDB resource] greatly simplifies marshalling and unmarshalling data. We rely on the resource method for [TransactWriteItems] among others that are absent from boto3. We opened PR boto/boto3#4010 to add that method. The resource methods are synthesized at runtime from a data file. Fortunately, boto3 has a [Loader] mechanism that allows the user to add extra data files, and the [loader search path] is configurable. In order to not depend upon our upstream PR for boto3, we distribute the extra data files and fix up the loader search path by putting it in a [.pth file] which Python executes automatically during startup. The data and .pth file are now part of an external package, [boto3-missing]. [boto3]: https://github.com/boto/boto3 [resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html [DynamoDB resource]: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#resources [TransactWriteItems]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html [Loader]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html [loader search path]: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/loaders.html#the-search-path [.pth file]: https://docs.python.org/3/library/site.html [boto3-missing]: https://github.com/nasa-gcn/boto3-missing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes boto/botocore#2373.