Coder Social home page Coder Social logo

icebear's Introduction

IceBear - a simple GUI for Data Frames

A simple binary to view parquet files. This allows you to open parquet files in an app by double-clicking them. You can also run simple SQL query on top of the data to see easily what's in there.

Build

Prerequisites

sudo apt install -y build-essential \
  librust-atk-dev libcairo2-dev libpango1.0-dev \
  libgtk-4-dev libgdk-pixbuf2.0-dev

Release build

cargo install --path .

Then you can verify by running:

icebear --help

If that doesn't work, make sure you have ~/.cargo/bin in your PATH.

Associate with parquet files

Taken from stack exchange.

Step 1: Create a new mime type

In /usr/share/mime/packages/ or ~/.local/share/mime/packages/ create a file parquet.xml with content:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-parquet">
    <comment>Parquet file</comment>
    <glob pattern="*.parquet"/>
  </mime-type>
</mime-info>

With this xml file in place, update the mime type database:

update-mime-database /usr/share/mime
# update-mime-database ~/.local/share/mime

Step 2: Create a .desktop file for the application

In /usr/share/applications/ or ~/.local/share/applications/ create a file parquet.desktop with content:

[Desktop Entry]
Exec=/path-to-project/icebear/target/release/icebear %f
Icon=/path-to-project/icebear/logo.png
Name=Parquet GUI
Terminal=false
Type=Application

Just change path-to-project in Exec and Icon. We'll move the binary somewhere outside the project at some point.

Step 3: Add logo to the mimetype

This is just experimental. Adding logo in previous step should have worked. The downside is that the project needs to stay at the same location.

export SIZE=256
convert logo.png -resize $SIZEx$SIZE /tmp/logo.png
xdg-icon-resource install --context mimetypes --size $SIZE /tmp/logo.png application-x-parquet

icebear's People

Contributors

jankislinger avatar

Watchers

 avatar

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.