Skip to main content

powerfunc

Add superpowers to your functions. Run them from the CLI, on cloud data, or on cloud compute.

Features

  • Load and save function arguments and results to file paths, local or in cloud storage.
  • Invoke functions on the command line.
  • Remote execution on cloud compute.
  • YAML configuration file support.
  • Supports pandas, polars, PyArrow, Dask, and the Python csv module out of the box
  • Supports cloud providers Google Cloud and Modal.
  • Extensible for new data types and cloud providers.

Installation

pip install powerfunc

With Google Cloud remote execution:

pip install 'powerfunc[gcp]'

With Modal remote execution:

pip install 'powerfunc[modal]'

Example usage

Decorate a normal function with @powerfunc:

import pandas as pd
from powerfunc import powerfunc

@powerfunc
def sum_col(df: pd.DataFrame) -> float:
    return float(df["value"].sum())

df = pd.DataFrame({"value": [1, 2, 3]})
print(sum_col(df))

Then use it on files, local or in the cloud:

print(sum_col("data.csv"))
print(sum_col("https://storage.googleapis.com/powerfunc/data.csv"))

Add one line at the end of your file to make it runnable on the command line:

from powerfunc import powerfunc

...

powerfunc.enable_cli()
python myfile.py gs://powerfunc/data.csv

Support

This project is in early development. Breaking changes may happen at any time.

Documentation

For complete information on using powerfunc, including executing on cloud compute, please see the documentation.

License

Released under the MIT license.

Metadata

Release files for powerfunc 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for powerfunc 0.5.0
File Size Uploaded Provenance Actions
powerfunc-0.5.0.tar.gz 282.1 kB Without provenance Details for powerfunc-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for powerfunc 0.5.0
File Interpreter ABI Platform Actions
powerfunc-0.5.0-py3-none-any.whl Python 3 none any Details for powerfunc-0.5.0-py3-none-any.whl

Total release size: 318.2 kB

Release files / powerfunc-0.5.0.tar.gz

Download URL powerfunc-0.5.0.tar.gz
Size 282.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c9bf56df852cd507a5c6ebab9f5846310a5f8ed30e708c66a0c9e23e86ac74e7
BLAKE2b-256 checksum
How to use checksums
9cdb307f936fa819ab20b8e6b7c0c74bfed0196380df849b899391e81f1aba8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / powerfunc-0.5.0-py3-none-any.whl

Download URL powerfunc-0.5.0-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cdb8168b1cb5af767ab597c33f5edafa12e2fa2561b7cda1cfb18f2d5924edc
BLAKE2b-256 checksum
How to use checksums
b49f1a6d36b1c76c8f395ccfa9d25acaa8431ef7c0492e6f41a6fb982c0b29cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for powerfunc 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page