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.1.0.tar.gz (13.8 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.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fzy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b0721952ed03b7fe8250f7d936c56244cd756d3457d25a46ec1aceb22204fac6
MD5 2d428144be1b9addd6ca581483f72ab9
BLAKE2b-256 923a5a88c88b99ff083ab9072598e850c96eb2f4f5b2c89b2b3ae8cc876a97b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for fzy-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: fzy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4f3fff76194ebcb3574ed45f83e6a3f5dfbb18b0e8d3eb701b83e272f42020a
MD5 b03f24f0634690b8a5840c72979caf98
BLAKE2b-256 d466dba62bc09d027ffa45cdb259c1970a261d43d6eea81f7fab5834a0a6e24a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fzy-0.1.0-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