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.
See nbs for most of the applications
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 one 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)
Metadata
Release files for forgebox 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forgebox-1.0.9.tar.gz | 37.4 kB | Without provenance | Details for forgebox-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forgebox-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for forgebox-1.0.9-py3-none-any.whl |
Total release size: 79.9 kB
Release files / forgebox-1.0.9.tar.gz
| Download URL | forgebox-1.0.9.tar.gz |
|---|---|
| Size | 37.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
495e17793ef0903d44eb41affdb4407eb640c322222a7bf78b91845189b76af9
|
|
BLAKE2b-256 checksum How to use checksums |
dd054cb9ed80633842e0f34ba1175caa3a421bf830c3e4b9102c588b0de66eda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / forgebox-1.0.9-py3-none-any.whl
| Download URL | forgebox-1.0.9-py3-none-any.whl |
|---|---|
| Size | 42.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a5a5018730ac7d78622af53a599690289c9feb8683986d84122b601d590d556
|
|
BLAKE2b-256 checksum How to use checksums |
5a571b7cbd0aaf3060d5e6d285b16f4f9eb1f16244d1a39c53875de2860a5212
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for forgebox 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.