Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Data science comprehensive toolbox
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
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
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
...
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 |
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)()
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()
Interactive widgets work with in jupyter notebooks
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)
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)
FAQs
Unknown package
We found that forgebox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.