{"id":31539764,"url":"https://github.com/franbarinstance/neutraltemplate","last_synced_at":"2026-03-08T14:40:04.898Z","repository":{"id":300423136,"uuid":"972276078","full_name":"FranBarInstance/neutraltemplate","owner":"FranBarInstance","description":"Neutralts template engine for the Web, python package ","archived":false,"fork":false,"pushed_at":"2025-09-09T11:07:51.000Z","size":245,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T14:15:44.039Z","etag":null,"topics":["neutral","python-rust","python-template","python-template-engine","python-templating","template-engine","templating","templating-engine","templating-language"],"latest_commit_sha":null,"homepage":"https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/","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/FranBarInstance.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-24T20:12:32.000Z","updated_at":"2025-09-09T11:07:07.000Z","dependencies_parsed_at":"2025-06-21T16:40:12.217Z","dependency_job_id":null,"html_url":"https://github.com/FranBarInstance/neutraltemplate","commit_stats":null,"previous_names":["franbar1966/neutraltemplate","franbarinstance/neutraltemplate"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/FranBarInstance/neutraltemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranBarInstance%2Fneutraltemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranBarInstance%2Fneutraltemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranBarInstance%2Fneutraltemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranBarInstance%2Fneutraltemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FranBarInstance","download_url":"https://codeload.github.com/FranBarInstance/neutraltemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranBarInstance%2Fneutraltemplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278290911,"owners_count":25962654,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["neutral","python-rust","python-template","python-template-engine","python-templating","template-engine","templating","templating-engine","templating-language"],"created_at":"2025-10-04T09:14:25.887Z","updated_at":"2025-10-04T09:14:28.551Z","avatar_url":"https://github.com/FranBarInstance.png","language":"Python","readme":"Python package for Neutral TS\n=============================\n\nNeutral is a templating engine for the web written in Rust, designed to work with any programming language (language-agnostic) via IPC/Package and natively as library/crate in Rust.\n\nInstall Package\n---------------\n\n```\npip install neutraltemplate\n```\n\nUsage\n-----\n\nSee: [examples](https://github.com/FranBarInstance/neutralts-docs/tree/master/examples/python)\n\n```\nfrom neutraltemplate import NeutralTemplate\n\nschema = \"\"\"\n{\n    \"config\": {\n        \"cache_prefix\": \"neutral-cache\",\n        \"cache_dir\": \"\",\n        \"cache_on_post\": false,\n        \"cache_on_get\": true,\n        \"cache_on_cookies\": true,\n        \"cache_disable\": false,\n        \"disable_js\": false,\n        \"filter_all\": false\n    },\n    \"inherit\": {\n        \"locale\": {\n            \"current\": \"en\",\n            \"trans\": {\n                \"en\": {\n                    \"Hello nts\": \"Hello\",\n                    \"ref:greeting-nts\": \"Hello\"\n                },\n                \"es\": {\n                    \"Hello nts\": \"Hola\",\n                    \"ref:greeting-nts\": \"Hola\"\n                },\n                \"el\": {\n                    \"Hello nts\": \"Γεια σας\",\n                    \"ref:greeting-nts\": \"Γεια σας\"\n                }\n            }\n        }\n    },\n    \"data\": {\n        \"CONTEXT\": {\n            \"ROUTE\": \"\",\n            \"HOST\": \"\",\n            \"GET\": {},\n            \"POST\": {},\n            \"HEADERS\": {},\n            \"FILES\": {},\n            \"COOKIES\": {},\n            \"SESSION\": {},\n            \"ENV\": {}\n        },\n        \"hello\": \"Hello\",\n        \"arr\": {\n            \"hello\": \"Hello\"\n        }\n    }\n}\n\"\"\"\n\ntemplate = NeutralTemplate(\"file.ntpl\", schema)\ncontents = template.render()\n\n# e.g.: 200\nstatus_code = template.get_status_code()\n\n# e.g.: OK\nstatus_text = template.get_status_text()\n\n# empty if no error\nstatus_param = template.get_status_param()\n\n# act accordingly at this point according to your framework\n\n```\n\nLinks\n-----\n\nNeutral TS template engine Python Package.\n\n- [Template docs](https://franbarinstance.github.io/neutralts-docs/docs/neutralts/doc/)\n- [Repository](https://github.com/FranBarInstance/neutraltemplate)\n- [Crate](https://crates.io/crates/neutralts)\n- [PYPI Package](https://pypi.org/project/neutraltemplate/)\n- [Examples](https://github.com/FranBarInstance/neutralts-docs/tree/master/examples/python)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranbarinstance%2Fneutraltemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranbarinstance%2Fneutraltemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranbarinstance%2Fneutraltemplate/lists"}