![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
a set utilities that ake advantage of python's 'multiprocessing' module to distribute CPU-intensive tasks
This library implements a simple set of parallel processing utilities that
take advantage of python's multiprocessing
module to distribute processing
over multiple CPUs on a single machine. The most salient feature of this
library is the map() function that can be used to distribute CPU-intensive
processing of a collection of items over multiple cores.
pip install para
>>> import para
>>> import gzip
>>>
>>> items = ["examples/big-file1.gz", "examples/big-file2.gz",
... "examples/big-file3.gz"]
>>> def log_lines(path):
... with gzip.open(path, 'rt') as f:
... for lineno, line in enumerate(f):
... if len(line) > 50:
... yield path, lineno, line
...
>>> for path, lineno, line in para.map(log_lines, items):
... print(path, lineno, repr(line))
...
examples/big-file1.gz 2 'this line is going to be much longer than 80 chars -- at least I hope it will\n'
examples/big-file3.gz 0 'again with the long lines -- this is going to show up in the output, I hope\n'
FAQs
a set utilities that ake advantage of python's 'multiprocessing' module to distribute CPU-intensive tasks
We found that para 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.