Skip to main content

A tool which interactively displays YAML files and provides fuzzy interactive searching and filtering.

Project description

fzy: Fuzzy YAML Viewer/Searcher

A tool which interactively displays YAML files and provides fuzzy interactive searching and filtering, loosely inspired by fzf.

fzy demo

Usage

Run fzy with a YAML file as an argument to display it on screen.

Use up/down/page-up/page-down to scroll.

Start typing key or value names to filter down the YAML document to just those parts with a match.

As a library

You can launch the fzy TUI from Python (rather than invoking the command via a subprocess) like so:

>>> import fzy
>>> filtered_document = fzy.tui(yaml_string)

You can also perform filtering non-interactively like so:

>>> import fzy
>>> filtered_document = fzy.fuzzy_filter(parsed_yaml_document, "search pattern here")

Development

You can run the test suite using:

$ pip install -r requirements-test.txt
$ pytest

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

fzy-0.0.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

fzy-0.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file fzy-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for fzy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c613f2f6d8bea6399b5c45815429532289875c279692ae2e09ef25a9cf097278
MD5 0d27290a49632fcbebf1df4d3eb26d69
BLAKE2b-256 45f00348c20793501bdf0ee31a32dcb1ae27fb0d985fec8493a601dc1bef3ad7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fzy-0.0.1.tar.gz:

Publisher: release.yml on bbc/fzy

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

File details

Details for the file fzy-0.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for fzy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3baa4b3c09b062d295e6f2787c1c9b08689c310ac40bb4ca438526c7332141
MD5 07332a557f259424725d62d2e7c6bbc3
BLAKE2b-256 c9cb492e7d11726caba404d1da02daea20352fe5fe9c93e65f6c95ba65484c20

See more details on using hashes here.

Provenance

The following attestation bundles were made for fzy-0.0.1-py3-none-any.whl:

Publisher: release.yml on bbc/fzy

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