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.
An intuitive library to add plotting functionality to scikit-learn objects.

Welcome to Scikit-plot Single line functions for detailed visualizations The quickest and easiest way to go from analysis... ...to this. Scikit-plot i

Reiichiro Nakano 2.3k Dec 31, 2022
Streaming pivot visualization via WebAssembly

Perspective is an interactive visualization component for large, real-time datasets. Originally developed for J.P. Morgan's trading business, Perspect

The Fintech Open Source Foundation (www.finos.org) 5.1k Dec 27, 2022
Visualize data of Vietnam's regions with interactive maps.

Plotting Vietnam Development Map This is my personal project that I use plotly to analyse and visualize data of Vietnam's regions with interactive map

1 Jun 26, 2022
A workshop on data visualization in Python with notebooks and exercises for following along.

Beyond the Basics: Data Visualization in Python The human brain excels at finding patterns in visual representations, which is why data visualizations

Stefanie Molin 162 Dec 05, 2022
Data Visualizations for the #30DayChartChallenge

The #30DayChartChallenge This repository contains all the charts made for the #30DayChartChallenge during the month of April. This project aims to exp

Isaac Arroyo 7 Sep 20, 2022
An XLSX spreadsheet renderer for Django REST Framework.

drf-renderer-xlsx provides an XLSX renderer for Django REST Framework. It uses OpenPyXL to create the spreadsheet and returns the data.

The Wharton School 166 Dec 01, 2022
The Python ensemble sampling toolkit for affine-invariant MCMC

emcee The Python ensemble sampling toolkit for affine-invariant MCMC emcee is a stable, well tested Python implementation of the affine-invariant ense

Dan Foreman-Mackey 1.3k Jan 04, 2023
This is a learning tool and exploration app made using the Dash interactive Python framework developed by Plotly

Support Vector Machine (SVM) Explorer This app has been moved here. This repo is likely outdated and will not be updated. This is a learning tool and

Plotly 150 Nov 03, 2022
This project is an Algorithm Visualizer where a user can visualize algorithms like Bubble Sort, Merge Sort, Quick Sort, Selection Sort, Linear Search and Binary Search.

Algo_Visualizer This project is an Algorithm Visualizer where a user can visualize common algorithms like "Bubble Sort", "Merge Sort", "Quick Sort", "

Rahul 4 Feb 07, 2022
The visual framework is designed on the idea of module and implemented by mixin method

Visual Framework The visual framework is designed on the idea of module and implemented by mixin method. Its biggest feature is the mixins module whic

LEFTeyes 9 Sep 19, 2022
🐞 📊 Ladybug extension to generate 2D charts

ladybug-charts Ladybug extension to generate 2D charts. Installation pip install ladybug-charts QuickStart import ladybug_charts API Documentation Loc

Ladybug Tools 3 Dec 30, 2022
Package managers visualization

Software Galaxies This repository combines visualizations of major software package managers. All visualizations are available here: http://anvaka.git

Andrei Kashcha 1.4k Dec 22, 2022
Decision Border Visualizer for Classification Algorithms

dbv Decision Border Visualizer for Classification Algorithms Project description A python package for Machine Learning Engineers who want to visualize

Sven Eschlbeck 1 Nov 01, 2021
A high performance implementation of HDBSCAN clustering. http://hdbscan.readthedocs.io/en/latest/

HDBSCAN Now a part of scikit-learn-contrib HDBSCAN - Hierarchical Density-Based Spatial Clustering of Applications with Noise. Performs DBSCAN over va

Leland McInnes 91 Dec 29, 2022
demir.ai Dataset Operations

demir.ai Dataset Operations With this application, you can have the empty values (nan/null) deleted or filled before giving your dataset to machine le

Ahmet Furkan DEMIR 8 Nov 01, 2022
Small project to recursively calculate and plot each successive order of the Hilbert Curve

hilbert-curve Small project to recursively calculate and plot each successive order of the Hilbert Curve. After watching 3Blue1Brown's video on Hilber

Stefan Mejlgaard 2 Nov 15, 2021
Curvipy - The Python package for visualizing curves and linear transformations in a super simple way

Curvipy - The Python package for visualizing curves and linear transformations in a super simple way

Dylan Tintenfich 55 Dec 28, 2022
This component provides a wrapper to display SHAP plots in Streamlit.

streamlit-shap This component provides a wrapper to display SHAP plots in Streamlit.

Snehan Kekre 30 Dec 10, 2022
Simple function to plot multiple barplots in the same figure.

Simple function to plot multiple barplots in the same figure. Supports padding and custom color.

Matthias Jakobs 2 Feb 21, 2022
Here are my graphs for hw_02

Let's Have A Look At Some Graphs! Graph 1: State Mentions in Congressperson's Tweets on 10/01/2017 The graph below uses this data set to demonstrate h

7 Sep 02, 2022