Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enhanced-multiprocessing

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enhanced-multiprocessing

A wrapper around Python's multiprocessing, providing support for tqdm progress bars and shared arguments

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

Enhanced multiprocessing

A wrapper around Python's multiprocessing, providing support for tqdm progress bars and shared arguments.

Provides simple, familiar interface with addiitonal superpowers.

Installation


.. code:: bash

    pip install enhanced_multiprocessing

Example usage

.. code:: python

from enhanced_multiprocessing import Pool

def add_n(x, n):
    return x + n

# the number of processes will be set to number of cores - 1 by default
p = Pool()

# will apply add_n to the element list of length three with n=5, showing a nice progress bar along
result = p.imap(add_n, [1, 2, 3], shared_args=(5, ))

assert list(result) == [6, 7, 8]

History


Originally published at
`kn-bibs/pathways-analysis <https://github.com/kn-bibs/pathways-analysis/>`__,
then further developed for
`krassowski/drug-disease-profile-matching <https://github.com/krassowski/drug-disease-profile-matching>`__.

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