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.
基于python爬虫爬取COVID-19爆发开始至今全球疫情数据并利用Echarts对数据进行分析与多样化展示。

COVID-19-Epidemic-Map 基于python爬虫爬取COVID-19爆发开始至今全球疫情数据并利用Echarts对数据进行分析与多样化展示。 觉得项目还不错的话欢迎给一个star! 项目的源码可以正常运行,各个库的版本、数据库的建表语句、运行过程中遇到的坑以及解决方式在笔记.md中都

31 Dec 15, 2022
Farhad Davaripour, Ph.D. 1 Jan 05, 2022
Simple spectra visualization tool for astronomers

SpecViewer A simple visualization tool for astronomers. Dependencies Python = 3.7.4 PyQt5 = 5.15.4 pyqtgraph == 0.10.0 numpy = 1.19.4 How to use py

5 Oct 07, 2021
A python script editor for napari based on PyQode.

napari-script-editor A python script editor for napari based on PyQode. This napari plugin was generated with Cookiecutter using with @napari's cookie

Robert Haase 9 Sep 20, 2022
A python wrapper for creating and viewing effects for Matt Parker's christmas tree.

Christmas Tree Visualizer A python wrapper for creating and viewing effects for Matt Parker's christmas tree. Displays py or csv effect files and allo

4 Nov 22, 2022
BrowZen correlates your emotional states with the web sites you visit to give you actionable insights about how you spend your time browsing the web.

BrowZen BrowZen correlates your emotional states with the web sites you visit to give you actionable insights about how you spend your time browsing t

Nick Bild 36 Sep 28, 2022
Piglet-shaders - PoC of custom shaders for Piglet

Piglet custom shader PoC This is a PoC for compiling Piglet fragment shaders usi

6 Mar 10, 2022
An interactive UMAP visualization of the MNIST data set.

Code for an interactive UMAP visualization of the MNIST data set. Demo at https://grantcuster.github.io/umap-explorer/. You can read more about the de

grant 70 Dec 27, 2022
Advanced hot reloading for Python

The missing element of Python - Advanced Hot Reloading Details Reloadium adds hot reloading also called "edit and continue" functionality to any Pytho

Reloadware 1.9k Jan 04, 2023
Machine learning beginner to Kaggle competitor in 30 days. Non-coders welcome. The program starts Monday, August 2, and lasts four weeks. It's designed for people who want to learn machine learning.

30-Days-of-ML-Kaggle 🔥 About the Hands On Program 💻 Machine learning beginner → Kaggle competitor in 30 days. Non-coders welcome The program starts

Roja Achary 145 Jan 01, 2023
termplotlib is a Python library for all your terminal plotting needs.

termplotlib termplotlib is a Python library for all your terminal plotting needs. It aims to work like matplotlib. Line plots For line plots, termplot

Nico Schlömer 553 Dec 30, 2022
Application for viewing pokemon regional variants.

Pokemon Regional Variants Application Application for viewing pokemon regional variants. Run The Source Code Download Python https://www.python.org/do

Michael J Bailey 4 Oct 08, 2021
A Scheil-Gulliver simulation tool using pycalphad.

scheil A Scheil-Gulliver simulation tool using pycalphad. import matplotlib.pyplot as plt from pycalphad import Database, variables as v from scheil i

pycalphad 6 Dec 10, 2021
Make your BSC transaction simple.

bsc_trade_history Make your BSC transaction simple. 中文ReadMe Background: inspired by debank ,Practice my hands on this small project Blog:Crypto-BscTr

foolisheddy 7 Jul 06, 2022
Domain Connectivity Analysis Tools to analyze aggregate connectivity patterns across a set of domains during security investigations

DomainCAT (Domain Connectivity Analysis Tool) Domain Connectivity Analysis Tool is used to analyze aggregate connectivity patterns across a set of dom

DomainTools 34 Dec 09, 2022
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 --

Kracekumar 169 Dec 27, 2022
A minimalistic wrapper around PyOpenGL to save development time

glpy glpy is pyOpenGl wrapper which lets you work with pyOpenGl easily.It is not meant to be a replacement for pyOpenGl but runs on top of pyOpenGl to

Abhinav 9 Apr 02, 2022
Smarthome Dashboard with Grafana & InfluxDB

Smarthome Dashboard with Grafana & InfluxDB This is a complete overhaul of my Raspberry Dashboard done with Flask. I switched from sqlite to InfluxDB

6 Oct 20, 2022
Schema validation just got Pythonic

Schema validation just got Pythonic schema is a library for validating Python data structures, such as those obtained from config-files, forms, extern

Vladimir Keleshev 2.7k Jan 06, 2023
A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy.

Visdom A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Python. Overview Concepts Setup Usage API To

FOSSASIA 9.4k Jan 07, 2023