Socket
Socket
Sign inDemoInstall

banal

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

banal

Commons of banal micro-functions for Python.


Maintainers
3

banal

Commons of Python micro-functions. This basically an out-sourced, shared utils module with a focus on functions that buffer type uncertainties in Python (e.g. "is this a list?").

Rules:

  • Functions are properly typed, library passes mypy.
  • Cannot depend on anything but six and the standard library

Functions

  • is_listish: check if something is list-ish
  • is_mapping: check if an object is dict-ish
  • ensure_list: make sure an argument is a list, or make it into a single-element list
  • clean_dict: remove null values from a dict, recursively
  • decode_path: decode a path name to be unicode
  • hash_data: generate a SHA1 from a dict of reasonable objects

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc