Comments (3)
Aah I see, so boto3_kwargs
is like a super wrapper for boto3.client
and boto3.resource
. No worries, it's all a learning experience for me. Thanks for the descriptive answer @DrGFreeman 😄
from dynamo-pandas.
Hi @DrGFreeman, so first 2 changes need to be made in the dynamo_pandas/dynamo_pandas.py
file.
These functions need to have **kwargs
added, so as per your example, should all of them have **resource_kwargs
added or **client_kwargs
also?
Would the following be correct?
get_df
def get_df(*, table, keys=None, attributes=None, dtype=None, **resource_kwargs):
"""Get items from a table into a dataframe."""
put_df
def put_df(df, *, table, **resource_kwargs):
"""Put rows of a dataframe as items into a table. If the item(s) do not exist in the"""
from dynamo-pandas.
Hi @sreyan-ghosh, thanks for your interest! For you info, I have already started working on this. I just assigned myself the issue to avoid confusion.
Regarding your question, I've settled to use a boto3_kwargs
parameter to all the functions where it is applicable. Since both the boto3.client() and boto3.resource() function calls share the same parameters, this will leave the possibility to refactor the functions and change between boto3.client
and boto3.resource
internally without affecting existing code making use of the boto3_kwargs
parameter.
from dynamo-pandas.
Related Issues (20)
- Add parameter to select item attributes to get
- Typo in "UnprocessedItems" dictionary key
- Handling of unprocessed items from the client's batch_write_item function is not tested
- Returned unprocessed items have incorrect format
- Unprocessed keys in get_items are not handled correctly
- Release version 1.2.1 HOT 1
- Bad indentation in Overview documentation code example HOT 1
- Code examples in README do not have syntax highlighting
- Tables with GSI & LSI? HOT 7
- Bad indentation in get_df docs dtype example HOT 3
- Add Python 3.10 to CI
- error when calling get_df() HOT 4
- moto mock_dynamodb2 is deprecated HOT 1
- Boto3_kwargs parameter commit not part of latest release HOT 3
- tox is missing from dev requirements
- filter with attribute value
- Implement an update_df functionality
- Test fixtures are failing with moto version 5
- Remove support for Python 3.7 and add support for 3.11 & 3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamo-pandas.