{"id":13468259,"url":"https://github.com/rtlee9/serveit","last_synced_at":"2025-03-17T15:31:28.541Z","repository":{"id":29634893,"uuid":"122148393","full_name":"rtlee9/serveit","owner":"rtlee9","description":"Simple API serving for Python ML models","archived":false,"fork":false,"pushed_at":"2022-11-22T02:15:10.000Z","size":340,"stargazers_count":32,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T00:53:47.059Z","etag":null,"topics":["keras","machine-learning","machine-learning-api","pytorch","restful-api","scikit-learn","tensorflow"],"latest_commit_sha":null,"homepage":"https://serveit.ryanlee.site/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtlee9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-20T02:51:53.000Z","updated_at":"2023-10-04T13:56:50.000Z","dependencies_parsed_at":"2023-01-14T15:21:32.801Z","dependency_job_id":null,"html_url":"https://github.com/rtlee9/serveit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtlee9%2Fserveit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtlee9%2Fserveit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtlee9%2Fserveit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtlee9%2Fserveit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtlee9","download_url":"https://codeload.github.com/rtlee9/serveit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244058216,"owners_count":20391056,"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":["keras","machine-learning","machine-learning-api","pytorch","restful-api","scikit-learn","tensorflow"],"created_at":"2024-07-31T15:01:07.784Z","updated_at":"2025-03-17T15:31:28.156Z","avatar_url":"https://github.com/rtlee9.png","language":"Python","funding_links":["https://www.buymeacoffee.com/6Ii7vzL"],"categories":["Python"],"sub_categories":[],"readme":"# ServeIt\n[![Build Status](https://travis-ci.org/rtlee9/serveit.svg?branch=master)](https://travis-ci.org/rtlee9/serveit)\n[![Codacy Grade Badge](https://api.codacy.com/project/badge/Grade/2af32a3840d5441e815f3956659b091f)](https://www.codacy.com/app/ryantlee9/serveit)\n[![Codacy Coverage Badge](https://api.codacy.com/project/badge/Coverage/2af32a3840d5441e815f3956659b091f)](https://www.codacy.com/app/ryantlee9/serveit)\n[![PyPI version](https://badge.fury.io/py/ServeIt.svg)](https://badge.fury.io/py/ServeIt)\n\nServeIt lets you serve model predictions and supplementary information from a RESTful API using your favorite Python ML library in as little as one line of code:\n\n```python\nfrom serveit.server import ModelServer\nfrom sklearn.linear_model import LogisticRegression\nfrom sklearn.datasets import load_iris\n\n# fit logistic regression on Iris data\nclf = LogisticRegression()\ndata = load_iris()\nclf.fit(data.data, data.target)\n\n# initialize server with a model and start serving predictions\nModelServer(clf, clf.predict).serve()\n```\n\nYour new API is now accepting `POST` requests at `localhost:5000/predictions`! Please see the [examples](examples) directory for detailed examples across domains (e.g., regression, image classification), including live examples.\n\n#### Features\nCurrent ServeIt features include:\n\n1. Model inference serving via RESTful API endpoint\n1. Extensible library for inference-time data loading, preprocessing, input validation, and postprocessing\n1. Supplementary information endpoint creation\n1. Automatic JSON serialization of responses\n1. Configurable request and response logging (work in progress)\n\n#### Supported libraries\nThe following libraries are currently supported:\n* Scikit-Learn\n* Keras\n* PyTorch\n\n## Installation: Python 2.7 and Python 3.6\nInstallation is easy with pip: `pip install serveit`\n\n## Building\nYou can build locally with: `python setup.py`\n\n## License\n[MIT](LICENSE.md)\n\nPlease consider buying me a coffee if you like my work:\n\n\u003ca href=\"https://www.buymeacoffee.com/6Ii7vzL\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtlee9%2Fserveit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtlee9%2Fserveit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtlee9%2Fserveit/lists"}