{"id":20857248,"url":"https://github.com/fxnai/fxn","last_synced_at":"2025-04-09T07:06:20.733Z","repository":{"id":175962609,"uuid":"641002037","full_name":"fxnai/fxn","owner":"fxnai","description":"Run Python functions on desktop, mobile, web, and in the cloud. https://fxn.ai/explore","archived":false,"fork":false,"pushed_at":"2025-04-08T16:36:43.000Z","size":998,"stargazers_count":47,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T17:34:33.553Z","etag":null,"topics":["ai","deep-learning","machine-learning","numpy","pytorch","serverless","serverless-gpu"],"latest_commit_sha":null,"homepage":"https://docs.fxn.ai","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fxnai.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-15T15:10:22.000Z","updated_at":"2025-04-08T16:35:51.000Z","dependencies_parsed_at":"2023-09-24T08:12:44.590Z","dependency_job_id":"a8878056-0e98-44a6-9917-26059538a91c","html_url":"https://github.com/fxnai/fxn","commit_stats":null,"previous_names":["fxnai/fxn"],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxnai%2Ffxn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxnai%2Ffxn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxnai%2Ffxn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxnai%2Ffxn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fxnai","download_url":"https://codeload.github.com/fxnai/fxn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994119,"owners_count":21030050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","deep-learning","machine-learning","numpy","pytorch","serverless","serverless-gpu"],"created_at":"2024-11-18T04:37:07.999Z","updated_at":"2025-04-09T07:06:20.727Z","avatar_url":"https://github.com/fxnai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Function for Python\n\n![function logo](https://raw.githubusercontent.com/fxnai/.github/main/logo_wide.png)\n\n[![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Finvites%2Fy5vwgXkz2f%3Fwith_counts%3Dtrue\u0026query=%24.approximate_member_count\u0026logo=discord\u0026logoColor=white\u0026label=Function%20community)](https://discord.gg/fxn)\n\nRun prediction functions (a.k.a \"predictors\") locally in your Python apps, with full GPU acceleration and zero dependencies.\n\n\u003e [!TIP]\n\u003e [Join our waitlist](https://fxn.ai/waitlist) to bring your custom Python functions and run them on-device across Android, iOS, macOS, Linux, web, and Windows.\n\n## Installing Function\nFunction is distributed on PyPi. This distribution contains both the Python client and the command line interface (CLI). To install, open a terminal and run the following command:\n```sh\n# Install Function\n$ pip install --upgrade fxn\n```\n\n\u003e [!NOTE]\n\u003e Function requires Python 3.10+\n\n## Retrieving your Access Key\nHead over to [fxn.ai](https://www.fxn.ai/account/developer) to create an account by logging in. Once you do, generate an access key:\n\n![generate access key](https://raw.githubusercontent.com/fxnai/.github/main/access_key.gif)\n\n## Making a Prediction\nFirst, create a Function client, specifying your access key:\n```py\nfrom fxn import Function\n\n# Create the Function client\nfxn = Function(access_key=\"\u003cFunction access key\u003e\")\n```\n\nThen make a prediction:\n```py\n# Create a prediction\nprediction = fxn.predictions.create(\n    tag=\"@fxn/greeting\",\n    inputs={ \"name\": \"Peter\" }\n)\n# Print the returned greeting\nprint(prediction.results[0])\n```\n\n## Using the Function CLI\nOpen up a terminal and login to the Function CLI:\n```sh\n# Login to Function\n$ fxn auth login \u003cACCESS KEY\u003e\n```\n\nThen make a prediction:\n```sh\n# Make a prediction using the Function CLI\n$ fxn predict @fxn/greeting --name Peter\n```\n\n___\n\n## Useful Links\n- [Discover predictors to use in your apps](https://fxn.ai/explore).\n- [Join our Discord community](https://discord.gg/fxn).\n- [Check out our docs](https://docs.fxn.ai).\n- Learn more about us [on our blog](https://blog.fxn.ai).\n- Reach out to us at [hi@fxn.ai](mailto:hi@fxn.ai).\n\nFunction is a product of [NatML Inc](https://github.com/natmlx).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxnai%2Ffxn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffxnai%2Ffxn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxnai%2Ffxn/lists"}