Git Product home page Git Product logo

hexabyte_extended_info's Introduction

Hexabyte Extended Info Plugin

Version Status Wheel Downloads License Python Implementation Python Version

Lint Test Release Publish

Pre-Commit Ruff

A hexabyte plugin for displaying additional file info.

This plugin uses the python-magic package to provide robust file type details when possible.

User

Install

~/$ pip install hexabyte-extended-info
...

Add hexabyte_extended_info to the plugins list inside your hexabyte config (~/.config/hexabyte/config.toml).

plugins = [ "hexabyte_extended_info",]

x86_64 Hello World

Standard Info Panel

Hello World Standard

Extended Info Panel

Hello World Extended

MacOS Bash

Standard Info Panel

MacOS Bash Standard

Extended Info Panel

MacOS Bash Extended

Developer

~/$ git clone https://github.com/thetacom/hexabyte_extended_info
...
~/$ cd hexabyte_extended_info
hexabyte_extended_info/$ poetry install
...

Test

hexabyte_extended_info/$ make test
...

hexabyte_extended_info's People

Contributors

thetacom avatar

Watchers

 avatar  avatar

hexabyte_extended_info's Issues

Suggestion: catch lack of `libmagic`

Having installed this via pipx, on first run I got the following error:

Traceback (most recent call last):
  File "/Users/davep/.local/bin/hexabyte", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/__main__.py", line 43, in main
    load_plugins()
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/_loader.py", line 30, in load_plugins
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/info/__init__.py", line 4, in <module>
    from .widgets.info_panel import InfoPanel
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/info/__init__.py", line 4, in <module>
    from .widgets.info_panel import InfoPanel
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/info/widgets/info_panel.py", line 7, in <module>
    import magic
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/magic/__init__.py", line 209, in <module>
    libmagic = loader.load_lib()
               ^^^^^^^^^^^^^^^^^
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/magic/loader.py", line 49, in load_lib
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

Quick check suggested that (here on macOS) all I needed was to brew install magic and, sure enough, that got it all working.

As a suggestion, because there's a third-party dependancy you're not responsible for there, perhaps catch that ImportError and suggest a resolution?

Nice app though!

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.