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.33.1.tar.gz (28.2 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.33.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dyno_viewer-0.33.1.tar.gz
Algorithm Hash digest
SHA256 919739ca0142b6077fe30de86e0a8ef627fd2e56472d6179552db0413c5bbf86
MD5 8c314a4f076c02b51c62dfa1a1633a18
BLAKE2b-256 ee9f8b86608aa4501dad23c43a3766541dc7c4d5117f89eb4ad049722c79fc1b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dyno_viewer-0.33.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4d08a0fb0c350e344c81d0881b629ba9542f3ddda0f4c18f18e4fe8b80b4b7b
MD5 f198bae65a6f14705e9e09519e478695
BLAKE2b-256 4f7b6b3fc1b981744ed9b78dcd5aaa427fa181b60633c649b6343447f5383c30

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