{"id":21879352,"url":"https://github.com/animator/titus2","last_synced_at":"2026-03-09T08:02:45.777Z","repository":{"id":62584843,"uuid":"135735184","full_name":"animator/titus2","owner":"animator","description":"Titus 2 : Portable Format for Analytics (PFA) implementation for Python 3.4+","archived":false,"fork":false,"pushed_at":"2023-02-09T01:33:47.000Z","size":8357,"stargazers_count":23,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-23T20:39:25.760Z","etag":null,"topics":["analytics","inference","inference-engine","ml-engine","model-deployment","model-evaluation","model-serving","pfa","pfa-standard","pmml","python","scoring","scoring-engine","titus"],"latest_commit_sha":null,"homepage":"https://realworldpython.github.io/titus2/","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/animator.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,"zenodo":null}},"created_at":"2018-06-01T15:35:55.000Z","updated_at":"2024-01-13T23:58:22.000Z","dependencies_parsed_at":"2025-04-15T03:10:29.413Z","dependency_job_id":"c2b4cea0-1d6c-40b4-b440-063ca33dd23b","html_url":"https://github.com/animator/titus2","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/animator/titus2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animator%2Ftitus2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animator%2Ftitus2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animator%2Ftitus2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animator%2Ftitus2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/animator","download_url":"https://codeload.github.com/animator/titus2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animator%2Ftitus2/sbom","scorecard":{"id":196889,"data":{"date":"2025-08-11","repo":{"name":"github.com/animator/titus2","commit":"f1712196d7ad705c6598f13b24bcb1e580bc93fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.2.1 not signed: https://api.github.com/repos/animator/titus2/releases/91828394","Warn: release artifact v1.2.0 not signed: https://api.github.com/repos/animator/titus2/releases/31724213","Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/animator/titus2/releases/21707732","Warn: release artifact v1.2.1 does not have provenance: https://api.github.com/repos/animator/titus2/releases/91828394","Warn: release artifact v1.2.0 does not have provenance: https://api.github.com/repos/animator/titus2/releases/31724213","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/animator/titus2/releases/21707732"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-16T21:58:29.120Z","repository_id":62584843,"created_at":"2025-08-16T21:58:29.120Z","updated_at":"2025-08-16T21:58:29.120Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["analytics","inference","inference-engine","ml-engine","model-deployment","model-evaluation","model-serving","pfa","pfa-standard","pmml","python","scoring","scoring-engine","titus"],"created_at":"2024-11-28T08:16:03.643Z","updated_at":"2026-03-09T08:02:45.760Z","avatar_url":"https://github.com/animator.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://realworldpython.github.io/titus2/images/logo-text.png\" alt=\"titus2 logo\"\u003e\n\u003c/div\u003e\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/titus2)](https://pypi.org/project/titus2)\n[![PyPI version](https://badge.fury.io/py/titus2.svg)](https://pypi.org/project/titus2)\n![Maintenance](https://img.shields.io/maintenance/yes/2023)\n[![GitHub](https://img.shields.io/github/license/animator/titus2)](https://github.com/animator/titus2/blob/master/LICENSE)\n\n# Project Documentation - [Link](https://realworldpython.github.io/titus2/)\n\n\u003e **Data Scientist**: Why is my cutting edge model still not in production?\n\u003e\nScenario 1:\n\u003e **IT Team**: We are still implementing the scoring engine in Go/Java/C++.   \n\nScenario 2:\n\u003e **IT Team**: We are still figuring out how to read the model.pkl file you provided.   \n\n. .\n\nand the push to production pang continues ..\n\n# New Features!\n\n  - `titus2` home page and documentation has been migrated to [https://realworldpython.github.io](https://realworldpython.github.io/titus2/).   \n\n### Changes in titus2 v1.2.1\n\nView the complete changelog [here](https://github.com/animator/titus2/blob/master/CHANGELOG.md).\n\nTitus 2 - Portable Format for Analytics (PFA) implementation for Python 3.4-3.9 \n========\n\nTitus 2 is a fork of the original Titus python library which resides in the (now defunct) [Hadrian repository](https://github.com/opendatagroup/hadrian). Titus is not actively maintained by the Open Data Group and only supports Python 2, so this fork was created to actively support its development for Python 3.\n\nTitus 2 is a complete, independent implementation of [Portable Format for Analytics (PFA)](https://realworldpython.guide/titus2/pfa/) in pure Python. PFA is a specification for scoring/inference engines: event-based processors that perform predictive or analytic calculations. It is a model interchange format which helps smoothen the transition from statistical model development to large-scale and/or online production. `titus2` also focuses on model development, so it includes model producers and PFA manipulation tools in addition to runtime execution (scoring) engine.\n\n### Requirements\n\nTitus 2 uses a number of open source projects to work properly:\n\n* `avro-python3 \u003e= 1.8.2`\n* `numpy == 1.14.0` (python 3.4 \u0026 3.5) or `numpy \u003e=1.15.0, \u003c1.20` (python 3.6+)\n* `pytz \u003e= 2019.1`\n* `pyyaml \u003e= 5.1.2`\n* `ply \u003e= 3.11`\n\nThe above packages are available via `pip` and are automatically installed during setup.\n\n### Installation\n\nTitus requires [Python 3.4+](https://www.python.org/download/) to run.\nIt can be installed via pip/pip3 as follows:\n```sh\n$ pip install titus2\n```\n\nor you can directly install the latest build from github repository via \n```sh\n$ pip install git+https://github.com/animator/titus2.git\n```\n\nAfter installation please run the following elementary example in python\n\n```python\nfrom titus.genpy import PFAEngine\n\npfa = {\"input\": \"double\",\n \"output\": \"double\",\n \"action\": [\n   {\"+\": [\"input\", 100]}\n ]}\nengine, = PFAEngine.fromJson(pfa)\n\nl = [1.0, 2.0, 3.0, 4.0, 5.0]\n\nfor num in l:\n    print(num, engine.action(num))\n```\n\n### User Guide and Tutorials\n\nSee the [Project Documentation](https://realworldpython.github.io/titus2/) for user guide and tutorials.\n\n### Current Testing Framework\n\nTo run the tests, you can execute\n\n```\npython3 setup.py test\n```\n\nTo generate the coverage report, you can execute\n\n```\npip3 install coverage\ncoverage run setup.py test\ncoverage report\n```\n\n**Testing Status**:\n\n  - Unit testing status available [here](https://travis-ci.org/animator/titus2) [![Build Status](https://travis-ci.org/animator/titus2.svg?branch=master)](https://travis-ci.org/animator/titus2) \n  - Conformance testing status available [here](https://travis-ci.org/animator/pfa) [![Build Status](https://travis-ci.org/animator/pfa.svg?branch=master)](https://travis-ci.org/animator/pfa) \n\n### Issues, Questions and Feature Requests\n\nPlease raise an issue/question/request [here](https://github.com/animator/titus2/issues).\n\n### Development\n\nWant to contribute? Great!\n\nPlease raise an [issue](https://github.com/animator/titus2/issues) to discuss your ideas and send a [pull request](https://github.com/animator/titus2/pulls).\n\n### Todos\n\n - Write MORE Tests for `scripts/*`.\n - Add `scikit-learn` model export to PFA tutorials.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimator%2Ftitus2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanimator%2Ftitus2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimator%2Ftitus2/lists"}