Skip to main content

Execute functions in parallel

Project description

hiko

made-with-python Maintenance codecov

Seamlessly run simple functions in parallel using Dask

Sample Usecases

Dask

from hiko.dask import daskify

@daskify()
def squared(x):
  return x ** 2

squared_output = squared([i for i in range(10)])

It is also possible to provide cluster address if Dask is running on multiple machines. For example:

@daskify("111.111.111.1:8797")
def squared(x):
  return x ** 2

time

Little utility to provide execution time using decorator

from hiko.time import timeify

@timeify(True)
def squared(x):
  return x ** 2

# if True is provided, then execution time returned alongside the result
result, execution_time = squared(5)

IDEAS

  1. Data Query / Data Injection
  2. Standard Dask Functions
  3. Automated documentation
  4. Write more tests

Modules

hiko time

  • data
  • dask decorators
    • functions
  • spark decorators
    • functions
  • data
  • pipelines

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hiko-0.0.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file hiko-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: hiko-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for hiko-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 80c21def6309f54740f0de7d34573eee06e89366c204e3a0fda7d6ff4c9be011
MD5 6c2314c719b27fff35cd18f43a4cf366
BLAKE2b-256 55ef5454275814368ee9a16647d33da09c99a41405033a009abe14445d968c98

See more details on using hashes here.

Supported by

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