Skip to content

Add parameter to select item attributes to get #39

@DrGFreeman

Description

@DrGFreeman

Add parameter to select item attributes to get when calling the following functions:

  • get_df
  • transactions.get_all_items
  • transactions.get_item
  • transactions.get_items

The parameter would take a list of attribute names.

Example

>>> df = get_df(
...     table="players",
...     keys=[{"player_id": "player_three"}, {"player_id": "player_one"}],
...     attributes=["player_id", "play_time"],
... )
>>> print(df)
      player_id        play_time
0  player_three  1 days 14:01:19
1    player_one  2 days 17:41:55

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions