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
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

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.2.0.tar.gz (185.5 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.2.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tofuref-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c94b4b66fb10263ae0ae1654aae92d56a8421446b58241013f255ca1035e28f9
MD5 799c1a4d76e9f32d91d1d9e7e2d5c019
BLAKE2b-256 406d156fc65898d9a75f88f7f679b91b2b92d3d51a8984c71db7c947166f1a6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tofuref-1.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: tofuref-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a94b81352dcbd61a1e305f82a86b1ff9d7061571c18cb721e9dae94756f44404
MD5 af7710939a563d3f35bf4fdb3faccaef
BLAKE2b-256 9e7db70bc8a758ef00a95e85e75ce5163cfd4459a254d955e1dbb915e7a16569

See more details on using hashes here.

Provenance

The following attestation bundles were made for tofuref-1.2.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