Execute functions in parallel using Dask & other useful stuff
Project description
hiko
Seamlessly run simple functions in parallel using Dask and other useful tools
Instalation
To install newest version from PYPI:
pip install hiko
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
- Data Query / Data Injection
- Standard Dask Functions
- Automated documentation
- Write more tests
Modules
hiko time
- data
- dask
decorators
- functions
- spark
decorators
- functions
- data
- pipelines
Project details
Release history Release notifications | RSS feed
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.6-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file hiko-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: hiko-0.0.6-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c867fee11fc6f1b2fb8e1e7e1c393e00c48247a8f14f7fe73f5e0d98a26d817d |
|
MD5 | 25b06c2f6cca271f444bf6e789dadd3b |
|
BLAKE2b-256 | 86eb8629ec1a9ee6e0bdebe838c850ecd9dfd8a299b8d188f82afab3fd6f4cf2 |