🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

rsbox

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsbox

A toolbox of utility functions I commonly use when programming in Python.

0.0.15
PyPI
Maintainers
1

rsbox: Utility Toolbox

(Github | PyPI | Documentation)

A toolbox of utility functions I commonly use when programming in Python. Includes mostly machine learning utilities.

The full API consists of importable functions from modules located in src/rsbox/. Functions are documented via docstrings under the function header. An HTML front-end documentation for the API is available here.

Installation

$ pip install rsbox

Examples

Here are some highlighted functions:

import rsbox
from rsbox import ml, misc

ml.print_model_size(pytorch_net)
current_time_in_string = misc.timestamp()
dataset = ml.image_dir_to_data(dirpath="./data", extension='png')
img_np_array = ml.get_img(url='https://stanford.edu/~rsikand/assets/images/seal.png')  
ml.plot(img_np_array)
image

Modules

The modules are located in src/rsbox/

  • ml.py: machine learning programming utilities.
  • misc.py: misc. utilities.

FAQs

Did you know?

Socket

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.

Install

Related posts