Skip to main content

TUI for OpenTofu provider registry.

Project description

tofuref

PyPI - Version PyPI - License PyPI - Downloads GitHub Repo stars

TUI for OpenTofu provider registry.

Screenshot

Installation

pipx install tofuref

Usage

Run the application:

tofuref

Controls

Actions

keybindings action
s, / search in the context of providers and resources
u, y Context aware copying (using a provider/resource)
v change active provider version
b persistently bookmark an item to prioritize them in sorting when next re-ordered
q, ctrl+q quit tofuref
t toggle table of contents from content window
ctrl+l display log window

Focus windows

keybindings action
tab focus next window
shift+tab focus previous window
p focus providers window
r focus resources window
c focus content window
f toggle fullscreen mode

Navigate in a window

Navigate with arrows/page up/page down/home/end or your mouse.

VIM keybindings should be also supported in a limited capacity.

Configuration

Default configuration can be overridden by a config file, which can be overridden with env variables.

Config file locations:

  • Unix: ~/.config/tofuref/config.toml
  • macOS: ~/Library/Application Support"/tofuref/config.toml
  • Windows: %USERPROFILE%\AppData\Local\tofuref\tofuref\config.toml

General

Put these as simple key=value in your config.toml.

name description type default env
http_request_timeout Timeout for all http requests (in seconds) float 3.0 TOFUREF_HTTP_REQUEST_TIMEOUT
index_cache_duration_days How long the provider index should be cached for (in days) int 31 TOFUREF_INDEX_CACHE_DURATION_DAYS
fullscreen_init_threshold Threshold of terminal width under which tofuref should start in fullscreen mode int 125 TOFUREF_FULLSCREEN_INIT_THRESHOLD

Theme

These options belong to a toml section, [theme].

name description type default env
ui Colorscheme for the UI, inspect available themes through command palette (^p) Change theme command string textual-dark (or TEXTUAL_THEME env) TOFUREF_THEME_UI
codeblocks The pygments style for code blocks string material TOFUREF_THEME_CODEBLOCKS
borders_style The borders to use for windows, list and showcase of available here string ascii TOFUREF_THEME_BORDERS_STYLE
emoji Whether to display emojis or letters as icons bool true TOFUREF_THEME_EMOJI

Example file

Author's configuration:

fullscreen_init_threshold = 160

[theme]
ui = "monokai"
codeblocks = "monokai"
borders_style = "vkey"

Upgrade

pipx upgrade tofuref

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

tofuref-1.3.0.tar.gz (473.2 kB view details)

Uploaded Source

Built Distribution

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

tofuref-1.3.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file tofuref-1.3.0.tar.gz.

File metadata

  • Download URL: tofuref-1.3.0.tar.gz
  • Upload date:
  • Size: 473.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tofuref-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3f79bc065af77277d1efd13b600244ae39e32cdff3df247b81c27791c8c503d5
MD5 d9fc25c5481c5df97b136cc0e3db2f72
BLAKE2b-256 914a3086b076792f125cb99dd73ec94b794d5927c08e45240c514d6cf9ab0500

See more details on using hashes here.

Provenance

The following attestation bundles were made for tofuref-1.3.0.tar.gz:

Publisher: python-publish.yml on djetelina/tofuref

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tofuref-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: tofuref-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tofuref-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13343a5f134a8ea802cd544046eee34488d2d0c303a29ec2a4bcaf51fc1c13a2
MD5 0204fef5095fe4828eca78e144f5c40a
BLAKE2b-256 41fb807844fd10ba11bf4668e3a6ee67bfc8036e8884037c60522013b66fd7c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tofuref-1.3.0-py3-none-any.whl:

Publisher: python-publish.yml on djetelina/tofuref

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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