Skip to main content

No project description provided

Project description

ForgeBox

Data science comprehensive toolbox

Installation

Easy simple installation in 1 line

pip install forgebox

If not specified, you need anaconda3 for most of the tools, python shold be at least >=3.6

Features 🚀 Briefing

This is a tool box with comprehensive utilies, to put it simply, I just hope most of my frequetyly used DIY tools in in place and can be easily installed and imported

Lazy, fast imports 🤯

The following command will import many frequent tools for data science, like pd for pandas, np for numpy, os, json, PIL.Image for image processing

from frogebox.imports import *

No more following verbosity

import pandas as pd
import numpy as np
import os
import json
...

Get a dataframe of file details under a directory

from forgebox.files import file_detail
file_detail("/Users/xiaochen.zhang/.cache/").sample(5)
path file_type parent depth
36 /Users/xiaochen.zhang/.cache/torch/transformer... json transformers 7
13 /Users/xiaochen.zhang/.cache/torch/transformer... json transformers 7
51 /Users/xiaochen.zhang/.cache/langhuan/task_NER... json task_NER_210121_140513 7
32 /Users/xiaochen.zhang/.cache/torch/transformer... lock transformers 7
58 /Users/xiaochen.zhang/.cache/langhuan/task_Cla... json task_Classify_210128_164710 7

HTML in notebook

from forgebox.html import DOM, list_group, list_group_kv

This will map a clear HTML table view of wild tree type json structure/ list

bands = ["police", "headpin", {"ac":"dc"}]
list_group(bands)()

Coding html in python

title = DOM("Title example","h5", kwargs={"style":"color:#3399EE"})
ul = DOM("","ul");
for i in range(5):
    ul = ul.append(DOM(f"Line {i}", "li", kwargs={"style":"color:#EE33DD"}))

title()
ul()
Title example
  • Line 0
  • Line 1
  • Line 2
  • Line 3
  • Line 4

Interactive Widgets

Interactive widgets work with in jupyter notebooks

Search box 🔎 for dataframe

This will create an interactive text input box to search through the pandas dataframe, within the columns you set.

if manual is set to False, the search will respond to each of your key press, it's fast but will suffer terrible user experience if the dataframe is huge in size.

from forgebox.widgets import search_box

search_box(data_df, columns=["col1","col2"], manual=False)

paginate

You can browse through a pandas dataframe like fliping pages 📄.

# this will import many things like enhanced pandas
from forgebox.imports import *
df  = pd.read_csv("xxxx.csv")
df.paginate()
from forgebox.widgets import paginate

paginate(your_dataframe, page_len=10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forgebox-1.0.0.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

forgebox-1.0.0-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file forgebox-1.0.0.tar.gz.

File metadata

  • Download URL: forgebox-1.0.0.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for forgebox-1.0.0.tar.gz
Algorithm Hash digest
SHA256 30b4a65d1106e181d92523d7a23fb8c98baf9c81086d14ee82312f03ede133d2
MD5 580da12c1f9de0d3590b90a2bcedb2c5
BLAKE2b-256 edfc54d5416ba9c40e5b5724b48110ce227ca3e2bdeeb50c774061b296b5c753

See more details on using hashes here.

File details

Details for the file forgebox-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: forgebox-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for forgebox-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f885fd40e553eb89485086e7db1b879d1d034d79b69cba55da2e08c63b5fa3e8
MD5 d05b3ad3be28a7cc84e76a54c162c478
BLAKE2b-256 e2313026861672bde1cc8f6056f25cc28f73ab36c312d27823feac9e7a30a71c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page