Skip to main content

No project description provided

Project description

niklibpy

This is a Python library that provides a set of utility functions for common programming tasks. The library includes the following functions:

  • pmap: A simple parallel map construction, using a thread pool executor. It takes an array of functions and executes them in parallel, returning the results in the same order as the input functions.

  • pipe: Applies a series of functions to an input value, with the output of each function being passed as the input to the next function in the series. Returns the final output value after all functions have been applied.

  • apmap: An asynchronous version of pmap that takes an array of async functions and executes them in parallel, returning the results in the same order as the input functions.

  • dig: Attempts to retrieve a value from a nested data structure (dictionary or list) using a sequence of keys. If no key is found, it returns None.

  • bury: Inserts a value into a nested data structure (dictionary or list) at a location specified by a sequence of keys. If the location does not exist, it creates the necessary structure to accommodate the value. If the data structure is a list and the key exceeds its current length, it extends the list with None values.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

niklibpy-0.1.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niklibpy-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file niklibpy-0.1.3.tar.gz.

File metadata

  • Download URL: niklibpy-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.1 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for niklibpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5575a2a36b9b03b5417345accdd550bd0ceb3681c9b49cff6627dff71aa7cf10
MD5 ee27ecab04f64955ee899d7de623612d
BLAKE2b-256 b53151715793e9532719b73e6e47f384204c92b3c5db8b926d9b6a8173f6dec5

See more details on using hashes here.

File details

Details for the file niklibpy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: niklibpy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.1 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for niklibpy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ec783a51cafdcaa18ece990ea2719e9807f3497e1b0631c2045b83ae6260be
MD5 cd5338d7ac2d7167ffb86e308bc13f60
BLAKE2b-256 59883cd8f17a90104c68348f4903a8499201b5eade2e7fa4a7000d34454f300d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page