{"id":19925668,"url":"https://github.com/openscoring/openscoring-python","last_synced_at":"2025-05-03T08:31:12.071Z","repository":{"id":57449203,"uuid":"45832431","full_name":"openscoring/openscoring-python","owner":"openscoring","description":"Python client library for the Openscoring REST web service","archived":false,"fork":false,"pushed_at":"2022-02-23T10:28:48.000Z","size":42,"stargazers_count":32,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T13:37:40.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openscoring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-09T10:55:25.000Z","updated_at":"2023-02-16T19:24:09.000Z","dependencies_parsed_at":"2022-09-14T07:22:01.620Z","dependency_job_id":null,"html_url":"https://github.com/openscoring/openscoring-python","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openscoring","download_url":"https://codeload.github.com/openscoring/openscoring-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252162521,"owners_count":21704266,"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":[],"created_at":"2024-11-12T22:23:39.297Z","updated_at":"2025-05-03T08:31:11.679Z","avatar_url":"https://github.com/openscoring.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Openscoring-Python\n==================\n\nPython client library for the Openscoring REST web service.\n\n# Prerequisites #\n\n* Python 2.7, 3.4 or newer.\n\n# Installation #\n\nInstalling a release version from PyPI:\n\n```\npip install openscoring\n```\n\nAlternatively, installing the latest snapshot version from GitHub:\n\n```\npip install --upgrade git+https://github.com/openscoring/openscoring-python.git\n```\n\n# Usage #\n\nCreating an `Openscoring` object:\n```python\nfrom openscoring import Openscoring\n\nos = Openscoring(base_url = \"http://localhost:8080/openscoring\")\n```\n\nDeploying a PMML document `DecisionTreeIris.pmml` as an `Iris` model:\n```python\nos.deployFile(\"Iris\", \"DecisionTreeIris.pmml\")\n```\n\nEvaluating the `Iris` model with a data record:\n```python\narguments = {\n\t\"Sepal.Length\" : 5.1,\n\t\"Sepal.Width\" : 3.5,\n\t\"Petal.Length\" : 1.4,\n\t\"Petal.Width\" : 0.2\n}\n\nresults = os.evaluate(\"Iris\", arguments)\nprint(results)\n```\n\nThe same, but wrapping the data record into an `EvaluationRequest` object for request identification purposes:\n```python\nfrom openscoring import EvaluationRequest\n\nevaluationRequest = EvaluationRequest(\"record-001\", arguments)\n\nevaluationResponse = os.evaluate(\"Iris\", evaluationRequest)\nprint(evaluationResponse.results)\n```\n\nEvaluating the `Iris` model with data records from the `Iris.csv` CSV file, storing the results to the `Iris-results` CSV file:\n```python\nos.evaluateCsvFile(\"Iris\", \"Iris.csv\", \"Iris-results.csv\")\n```\n\nUndeploying the `Iris` model:\n```python\nos.undeploy(\"Iris\")\n```\n\n# De-installation #\n\nUninstall:\n```\npip uninstall openscoring\n```\n\n# License #\n\nOpenscoring-Python is licensed under the terms and conditions of the [GNU Affero General Public License, Version 3.0](https://www.gnu.org/licenses/agpl-3.0.html).\n\n# Additional information #\n\nOpenscoring-Python is developed and maintained by Openscoring Ltd, Estonia.\n\nInterested in using [Java PMML API](https://github.com/jpmml) or [Openscoring REST API](https://github.com/openscoring) software in your company? Please contact [info@openscoring.io](mailto:info@openscoring.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscoring%2Fopenscoring-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenscoring%2Fopenscoring-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscoring%2Fopenscoring-python/lists"}