Skip to main content

No project description provided

Project description

Python Compute Module

Simple implementation of the Compute Module interface. Function definitions are automatically inferred using pydantic, allowing you to automatically register functions at runtime.

Basic Usage

from python_compute_module.app import ComputeModuleApp


app = ComputeModuleApp()


@app.function
def add(a: int, b: int) -> int:
    return a + b


@app.function
def multiply(a: int, b: int) -> int:
    return a * b


@app.function
def greet(a: str) -> int:
    return f"Greetings, {a}!"


if __name__ == '__main__':
    app.run()

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

python_compute_module-0.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

python_compute_module-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file python_compute_module-0.2.0.tar.gz.

File metadata

  • Download URL: python_compute_module-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.4.0

File hashes

Hashes for python_compute_module-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8bddbde9e3a06a647de56375efa68909b6f471e2960db0b7297ea8aebdf6be30
MD5 32db0609ed7f10d455901b686fa20c1a
BLAKE2b-256 9f146bc5bcbe29de1c8012deb06c5834174e4d78092cd5e996f016901718b983

See more details on using hashes here.

File details

Details for the file python_compute_module-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_compute_module-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 052e7204aa0a8d611a0a57c98804b400c7c02f497daa8398d842e37112f22d11
MD5 9f3ccdf9614e9f6fd60deca5e29af2db
BLAKE2b-256 cd99a5bccaa504a560181e6b2e08581180f093adab4786a8058efc1d30cc33f6

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