Render tokei's output to interactive sunburst chart.

Overview

tokei-pie

Render tokei results to charts. 🦄

PyPI version Python version

Installation

pip install tokei-pie

Usage

$ tokei -o json | tokei-pie

🪄

(This is how django looks like!)

You might also like...
Render Jupyter notebook in the terminal
Render Jupyter notebook in the terminal

jut - JUpyter notebook Terminal viewer. The command line tool view the IPython/Jupyter notebook in the terminal. Install pip install jut Usage $jut --

A script written in Python that generate output custom color (HEX or RGB input to x1b hexadecimal)
A script written in Python that generate output custom color (HEX or RGB input to x1b hexadecimal)

ColorShell ─ 1.5 Planned for v2: setup.sh for setup alias This script converts HEX and RGB code to x1b x1b is code for colorize outputs, works on ou

Interactive Data Visualization in the browser, from  Python
Interactive Data Visualization in the browser, from Python

Bokeh is an interactive visualization library for modern web browsers. It provides elegant, concise construction of versatile graphics, and affords hi

An interactive GUI for WhiteboxTools in a Jupyter-based environment
An interactive GUI for WhiteboxTools in a Jupyter-based environment

whiteboxgui An interactive GUI for WhiteboxTools in a Jupyter-based environment GitHub repo: https://github.com/giswqs/whiteboxgui Documentation: http

The interactive graphing library for Python (includes Plotly Express) :sparkles:
The interactive graphing library for Python (includes Plotly Express) :sparkles:

plotly.py Latest Release User forum PyPI Downloads License Data Science Workspaces Our recommended IDE for Plotly’s Python graphing library is Dash En

Interactive Data Visualization in the browser, from  Python
Interactive Data Visualization in the browser, from Python

Bokeh is an interactive visualization library for modern web browsers. It provides elegant, concise construction of versatile graphics, and affords hi

Draw interactive NetworkX graphs with Altair
Draw interactive NetworkX graphs with Altair

nx_altair Draw NetworkX graphs with Altair nx_altair offers a similar draw API to NetworkX but returns Altair Charts instead. If you'd like to contrib

Interactive plotting for Pandas using Vega-Lite
Interactive plotting for Pandas using Vega-Lite

pdvega: Vega-Lite plotting for Pandas Dataframes pdvega is a library that allows you to quickly create interactive Vega-Lite plots from Pandas datafra

The interactive graphing library for Python (includes Plotly Express) :sparkles:
The interactive graphing library for Python (includes Plotly Express) :sparkles:

plotly.py Latest Release User forum PyPI Downloads License Data Science Workspaces Our recommended IDE for Plotly’s Python graphing library is Dash En

Comments
  • Errors when trying to run on Windows

    Errors when trying to run on Windows

    Currently when trying to run on any directory on Windows gives the following error.

    Traceback (most recent call last):
      File "C:\Users\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "C:\Users\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "C:\Users\AppData\Local\Programs\Python\Python310\Scripts\tokei-pie.exe\__main__.py", line 7, in <module>
      File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\tokei_pie\main.py", line 227, in main
        sectors = read_root(data)
      File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\tokei_pie\main.py", line 197, in read_root
        sectors.extend(read_reports(reports, key))
      File "C:\Users\erin.power\AppData\Local\Programs\Python\Python310\lib\site-packages\tokei_pie\main.py", line 176, in read_reports
        sectors = convert2sectors(tree, dict_reports, parent_id)
      File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\tokei_pie\main.py", line 168, in convert2sectors
        dir2sector(".", dirs, reports, sectors, language)
      File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\tokei_pie\main.py", line 112, in dir2sector
        subdirs = dirs[dirname]
    KeyError: '.'
    
    opened by XAMPPRocky 3
  • Fail to report when the code is not current directory

    Fail to report when the code is not current directory

    Reproduce:

    $ tokei -o json /path/to/my_code | tokei-pie
    Traceback (most recent call last):
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/bin/tokei-pie", line 8, in <module>
        sys.exit(main())
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 227, in main
        sectors = read_root(data)
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 197, in read_root
        sectors.extend(read_reports(reports, key))
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 176, in read_reports
        sectors = convert2sectors(tree, dict_reports, parent_id)
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 168, in convert2sectors
        dir2sector(".", dirs, reports, sectors, language)
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 140, in dir2sector
        _blanks, _code, _comments = dir2sector(
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 140, in dir2sector
        _blanks, _code, _comments = dir2sector(
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 140, in dir2sector
        _blanks, _code, _comments = dir2sector(
      [Previous line repeated 1 more time]
      File "/Users/fming/wkspace/github/tokei-pie-plate/venv/lib/python3.10/site-packages/tokei_pie/main.py", line 118, in dir2sector
        stats = reports[item]
    KeyError: './lib/python3.10/site-packages/jinja2/compiler.py'
    

    There seems to be something wrong with the relative path calculation.

    opened by frostming 2
  • Fails when passing arguments

    Fails when passing arguments

    When I pass folders as arguments to token I get a key error in tokei-pie

    # in tokei repo
    token src -o json | tokei-pie
    Traceback (most recent call last):
      File "/opt/homebrew/bin/tokei-pie", line 8, in <module>
        sys.exit(main())
      File "/opt/homebrew/lib/python3.9/site-packages/tokei_pie/main.py", line 213, in main
        sectors = read_root(data)
      File "/opt/homebrew/lib/python3.9/site-packages/tokei_pie/main.py", line 194, in read_root
        sectors.extend(read_reports(reports, key))
      File "/opt/homebrew/lib/python3.9/site-packages/tokei_pie/main.py", line 173, in read_reports
        sectors = convert2sectors(tree, dict_reports, parent_id)
      File "/opt/homebrew/lib/python3.9/site-packages/tokei_pie/main.py", line 165, in convert2sectors
        dir2sector(".", dirs, reports, sectors, language)
      File "/opt/homebrew/lib/python3.9/site-packages/tokei_pie/main.py", line 115, in dir2sector
        stats = reports[item]
    KeyError: './input.rs'
    
    opened by XAMPPRocky 1
Releases(v1.2.0)
  • v1.2.0(Dec 7, 2021)

    What's Changed

    • fix: #1 by @yihong0618 in https://github.com/laixintao/tokei-pie/pull/2
    • bugfix: fix tokei export path not always . by @laixintao in https://github.com/laixintao/tokei-pie/pull/4

    New Contributors

    • @yihong0618 made their first contribution in https://github.com/laixintao/tokei-pie/pull/2
    • @laixintao made their first contribution in https://github.com/laixintao/tokei-pie/pull/4

    Full Changelog: https://github.com/laixintao/tokei-pie/compare/v1.1.2...v1.2.0

    Source code(tar.gz)
    Source code(zip)
Owner
I love system administration as much as I love programming.
Graphical visualizer for spectralyze by Lauchmelder23

spectralyze visualizer Graphical visualizer for spectralyze by Lauchmelder23 Install Install matplotlib and ffmpeg. Put ffmpeg.exe in same folder as v

Matthew 1 Dec 21, 2021
Chem: collection of mostly python code for molecular visualization, QM/MM, FEP, etc

chem: collection of mostly python code for molecular visualization, QM/MM, FEP,

5 Sep 02, 2022
A simple code for plotting figure, colorbar, and cropping with python

Python Plotting Tools This repository provides a python code to generate figures (e.g., curves and barcharts) that can be used in the paper to show th

Guanying Chen 134 Jan 02, 2023
Because trello only have payed options to generate a RunUp chart, this solves that!

Trello Runup Chart Generator The basic concept of the project is that Corello is pay-to-use and want to use Trello To-Do/Doing/Done automation with gi

Rômulo Schiavon 1 Dec 21, 2021
This repository contains a streaming Dataflow pipeline written in Python with Apache Beam, reading data from PubSub.

Sample streaming Dataflow pipeline written in Python This repository contains a streaming Dataflow pipeline written in Python with Apache Beam, readin

Israel Herraiz 9 Mar 18, 2022
Data visualization electromagnetic spectrum

Datenvisualisierung-Elektromagnetischen-Spektrum Anhand des Moduls matplotlib sollen die Daten des elektromagnetischen Spektrums dargestellt werden. D

Pulsar 1 Sep 01, 2022
Small project demonstrating the use of Grafana and InfluxDB for monitoring the speed of an internet connection

Speedtest monitor for Grafana A small project that allows internet speed monitoring using Grafana, InfluxDB 2 and Speedtest. Demo Requirements Docker

Joshua Ghali 3 Aug 06, 2021
This is a Boids Simulation, written in Python with Pygame.

PyNBoids A Python Boids Simulation This is a Boids simulation, written in Python3, with Pygame2 and NumPy. To use: Save the pynboids_sp.py file (and n

Nik 17 Dec 18, 2022
Python scripts for plotting audiograms and related data from Interacoustics Equinox audiometer and Otoaccess software.

audiometry Python scripts for plotting audiograms and related data from Interacoustics Equinox 2.0 audiometer and Otoaccess software. Maybe similar sc

Hamilton Lab at UT Austin 2 Jun 15, 2022
Plot toolbox based on Matplotlib, simple and elegant.

Elegant-Plot Plot toolbox based on Matplotlib, simple and elegant. 绘制效果 绘制过程 数据准备 每种图标类型的目录下有data.csv文件,依据样例数据填入自己的数据。

3 Jul 15, 2022
Visualizations of linear algebra algorithms for people who want a deep understanding

Visualising algorithms on symmetric matrices Examples QR algorithm and LR algorithm Here, we have a GIF animation of an interactive visualisation of t

ogogmad 3 May 05, 2022
Alternative layout visualizer for ZSA Moonlander keyboard

General info This is a keyboard layout visualizer for ZSA Moonlander keyboard (because I didn't find their Oryx or their training tool particularly us

10 Jul 19, 2022
Draw interactive NetworkX graphs with Altair

nx_altair Draw NetworkX graphs with Altair nx_altair offers a similar draw API to NetworkX but returns Altair Charts instead. If you'd like to contrib

Zachary Sailer 206 Dec 12, 2022
Pydrawer: The Python package for visualizing curves and linear transformations in a super simple way

pydrawer 📐 The Python package for visualizing curves and linear transformations in a super simple way. ✏️ Installation Install pydrawer package with

Dylan Tintenfich 56 Dec 30, 2022
A deceptively simple plotting library for Streamlit

🍅 Plost A deceptively simple plotting library for Streamlit. Because you've been writing plots wrong all this time. Getting started pip install plost

Thiago Teixeira 192 Dec 29, 2022
A filler visualizer built using python

filler-visualizer 42 filler のログをビジュアライズしてスポーツさながら楽しむことができます! Usage (標準入力でvisualizer.pyに渡せばALL OK) 1. 既にあるログをビジュアライズする $ ./filler_vm -t 3 -p1 john_fill

Takumi Hara 1 Nov 04, 2021
CPG represent!

CoolPandasGroup CPG represent! Arianna Brandon Enne Luan Tracie Project requirements: use Pandas to clean and format datasets use Jupyter Notebook to

Enne 3 Feb 07, 2022
A GUI for Pandas DataFrames

About Demo Installation Usage Features More Info About PandasGUI is a GUI for viewing, plotting and analyzing Pandas DataFrames. Demo Installation Ins

Adam Rose 2.8k Dec 24, 2022
Frbmclust - Clusterize FRB profiles using hierarchical clustering, plot corresponding parameters distributions

frbmclust Getting Started Clusterize FRB profiles using hierarchical clustering,

3 May 06, 2022
Comparing USD and GBP Exchange Rates

Currency Data Visualization Comparing USD and GBP Exchange Rates This is a bar graph comparing GBP and USD exchange rates. I chose blue for the UK bec

5 Oct 28, 2021