Function
Run Python functions on-device, fully cross-platform.
Verified
We've verified that the organizationfxnai controls the domain:
- fxn.ai
Compile Python functions:
fromfxnimportcompile@compile(tag="@fxn/greeting",description="Say a friendly greeting.")defgreeting (name:str)->str:returnf"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 clientconstfxn=newFunction({accessKey:"..."});// 🔥 Run the function locallyconstprediction=awaitfxn.predictions.create({tag:"@fxn/greeting",inputs:{name:"Peter"}});// 🚀 Use the resultsconsole.log(prediction.results[0])
You can run your compiled Python functions cross-platform using our client libraries:
- Function for Python. Make predictions in your Python, FastAPI, Flask, and Django apps.
- Function for JavaScript. Make predictions in your web, Node.js, Next.js, and React apps.
- Function for iOS. Make predictions in your iOS, iPadOS, and macOS Catalyst apps.
- Function for Android. Make predictions in your Kotlin and Java Android apps.
- Function for React Native. Make predictions in your React Native apps for iOS and Android.Coming soon.
- Function for Unity Engine. Make predictions in your Unity Engine apps and games.
- Function CLI. Make predictions in the command line.
A few useful links:
- Join our Discord community.
- Check out our docs.
- Learn more about uson our blog.
- Reach out to us atstdin@fxn.ai.
Function is a product ofNatML Inc.
PinnedLoading
Repositories
Showing 7 of 7 repositories
Uh oh!
There was an error while loading.Please reload this page.
fxnai/compiler’s past year of commit activity Uh oh!
There was an error while loading.Please reload this page.
fxnai/XcodeProj’s past year of commit activity
Top languages
Loading…
Uh oh!
There was an error while loading.Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading.Please reload this page.