
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Small Python utilities for adding concise functionality and usability to your code
.. image:: https://coveralls.io/repos/github/scnerd/miniutils/badge.svg?branch=master :target: https://coveralls.io/github/scnerd/miniutils?branch=master
.. image:: https://travis-ci.org/scnerd/miniutils.svg?branch=master :target: https://travis-ci.org/scnerd/miniutils
.. image:: https://readthedocs.org/projects/miniutils/badge/?version=latest :target: http://miniutils.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
Full documentation for this module is available over at ReadTheDocs <http://miniutils.readthedocs.io/>
_.
This module provides numerous helper utilities for Python3.X code to add functionality with minimal code footprint. It has tools for the following tasks:
tqdm
library)pycontracts
)As usual, you can install the latest code version directly from Github::
pip install git+https://github.com/scnerd/miniutils
Or you can pip
install the latest release from PyPi::
pip install miniutils
To get started, you can import your desired utilities directly from miniutils
. For example, to use the CachedProperty
decorator::
from miniutils import CachedProperty
class MyClass: @CachedProperty def attribute(self): return some_slow_computation(self)
Or to use the progress bar utilities::
from miniutils import progbar, parallel_progbar
def mapper(x): return x**2
assert [mapper(i) for i in progbar(100)] == parallel_progbar(mapper, range(100))
To see documentation for each feature, look through this documentation or the table of contents above.
FAQs
Small Python utilities for adding concise functionality and usability to your code
We found that miniutils 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.