Skip to main content

No project description provided

Project description

screenshot

Dyno-viewer

Dyno-viewer is dynamodb table viewer for your terminal build using textual.

This came out from me being frustrated with how clunky and slow the dynamodb viewier is in the aws console and me finding no good free alternative, That works the way i want it to work. Which is basically a spreadsheet with menus to change the table etc just like the aws console version and it being able to be used with just a keyboard

Note:

This is still in early alpha so some things to be expect things to be broken, I will fix them as i have time. Prs are welcome

Features

  • Query dynamodb tables via primary key, secondary indexes and scan
  • Save queries for later re-use
  • Save query history
  • Output results in csv or JSON format
  • wip support for have multiple sessions open at once

Installing

prerequisites

You need the aws cli fully configured (see here for how to setup up auth)

note about AWS IAM Identity Center(used to be called aws sso) aws profiles:

if you are using sso profiles. Then you need to make sure that you have updated your config to use a sso-session profile otherwise the app won't work see this doc on how to do that. See this issue: https://github.com/boto/botocore/issues/2374 if you want to know why this is the case

right now this can be installed via flatpak and pip:

install

I recommend using pipx:

pipx install dyno-viewer

Configuration

Dyno-viewer supports a simple app configuration file to preset defaults and tweak behavior without passing flags each run. If this doesn't exist then it will create it in the following paths:

  • Config file path (MacOS): ~/Library/Application Support/dyno-viewer/config.yaml
  • Config file path (Linux): ~/.config/dyno-viewer/config.yaml
  • Config file path (Windows): %APPDATA%/dyno-viewer/config.yaml

Example config.yaml:

theme: "textual-dark"          # what theme to use see: https://textual.textualize.io/guide/design/#changing-the-theme
page_size: 100          # number of rows to fetch per page

For saved queries and session data they are stored in an sqlite database in the same following path i.e:

  • MacOS: ~/Library/Application Support/dyno-viewer/db.db
  • Linux: ~/.local/share/dyno-viewer/db.db
  • Windows: %LOCALAPPDATA%/dyno-viewer/db.db

Dev notes

Prerequisites

This repo uses poetry for package management and needs python 3.10+ installed either via pyenv or asdf using the asdf-community/asdf-python addon

e.g:

env PYTHON_CONFIGURE_OPTS="--enable-shared" asdf install python 3.10.11

or if using pyenv:

env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10.11

see how to build cpython with --enable-shared for more info

Local dev setup

To install locally run:

poetry install
# to go into a virtual env shell 
poetry shell
# or run app via script
poetry run dyno-viewer

Testing textual notes

See testing notes doc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dyno_viewer-0.32.0.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dyno_viewer-0.32.0-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

Details for the file dyno_viewer-0.32.0.tar.gz.

File metadata

  • Download URL: dyno_viewer-0.32.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for dyno_viewer-0.32.0.tar.gz
Algorithm Hash digest
SHA256 1cffe0843fb74c87faf063285d2f8d99be3c7d8dbd3e8edbd6e66f27710c6357
MD5 d8c129b3375c775e4f64970c2bd04737
BLAKE2b-256 296d669d8651865979f5c9b1d6facb30078f5d461d28d30102dfb76b42ea4370

See more details on using hashes here.

File details

Details for the file dyno_viewer-0.32.0-py3-none-any.whl.

File metadata

  • Download URL: dyno_viewer-0.32.0-py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for dyno_viewer-0.32.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be2a88b991a942ac9b5784a6d54c2b60c71f3bd7261861edd27e0dd559b3fe9a
MD5 e5086d293361b5a4b0809475b0b43267
BLAKE2b-256 82c259c5b24a52e35eb6840b62697935e4c723214c088fb9964422298f909def

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page