Skip to content
@fxnai

Function

Run Python functions on-device, fully cross-platform.

Function

function logo

Dynamic JSON Badge X (formerly Twitter) Follow

Compile Python functions:

from fxn import compile

@compile(
    tag="@fxn/greeting",
    description="Say a friendly greeting."
)
def greeting (name: str) -> str:
    return f"Hey there {name}! We're glad you're using Function and we hope you like it."

Run natively on Android, iOS, macOS, Linux, in the browser, and Windows--with full hardware acceleration and zero dependencies:

import { Function } from "fxnjs"

// 💥 Create your Function client
const fxn = new Function({ accessKey: "..." });

// 🔥 Run the function locally
const prediction = await fxn.predictions.create({
  tag: "@fxn/greeting",
  inputs: { name: "Peter" }
});

// 🚀 Use the results
console.log(prediction.results[0])

You can run your compiled Python functions cross-platform using our client libraries:

A few useful links:

Function is a product of NatML Inc.

Pinned Loading

  1. compiler compiler Public

    Function's Python-to-native compiler infrastructure.

    Kotlin

  2. fxn fxn Public

    Run Python functions on desktop, mobile, web, and in the cloud. https://fxn.ai/explore

    Python 62 5

  3. fxnjs fxnjs Public

    Run Python functions in the browser and Node.js. https://fxn.ai/explore

    TypeScript 6 1

  4. fxnios fxnios Public

    Run Python functions in iOS and visionOS apps. Register at https://fxn.ai

    Swift

  5. fxn3d fxn3d Public

    Run Python functions in Unity Engine. Register at https://fxn.ai

    C# 7 4

Repositories

Showing 8 of 8 repositories

Top languages

Loading…

Most used topics

Loading…