GithubHelp home page GithubHelp logo

cielong / pyfx Goto Github PK

View Code? Open in Web Editor NEW
27.0 1.0 6.0 3.31 MB

A python-native JSON Viewer TUI.

License: MIT License

Python 99.02% Makefile 0.22% ANTLR 0.76%
pyfx fx json python3 tui urwid cli json-viewer-tui jsonpath

pyfx's People

Contributors

cielong avatar dependabot[bot] avatar nullablevoidptr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pyfx's Issues

PyFX does not work with overrides==6.1.0

Describe the bug
Running PyFX with the latest overrides version (which is 6.1.0 currently) throws an error:

TypeError: `ArrayNode.prev_child: key overriding must be a supertype of `<class 'inspect._empty'>` but is `<class 'str'>`

The reason is that ArrayNode's prev_child method overrides the parent class' prev_child method, which have a different type hint, and overrides now check the type hints starting from some version later than 4.1.2.

To Reproduce

  1. Install PyFX from pip from a clean environment, which by default installs the latest overrides package as dependency.
  2. Open any json file.

Expected behavior
It should not throw an error.

Additional context
Downgrading overrides to 4.1.2 solves the problem. Did not test other versions.

Help Menu

Hi! This library is lovely, and I'd like to use it in my ptpython alternative (called "rp").
Could we add a help menu that appears when you press "?" and shows all keybindings?
Thank you,
Ryan

Support for Other Data Types

Could we add support for non-json objects? An example of a working implementation can be found in the python debugger tui called "pudb", in their variable explorer.
My use case is exploring the contents of pytorch checkpoints (.pth files), which when loaded are nested OrderedDicts (which are not dicts) and also contain torch tensors (a lot like numpy arrays, which are much like lists). Is there a way to add support for custom datatypes like these in my application?
Thank you,
Ryan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.