{"id":19211336,"url":"https://github.com/truebrain/wikitexthtml","last_synced_at":"2025-10-25T03:39:21.197Z","repository":{"id":39665366,"uuid":"307302693","full_name":"TrueBrain/wikitexthtml","owner":"TrueBrain","description":"Library to render WikiText to HTML","archived":false,"fork":false,"pushed_at":"2023-06-07T09:48:59.000Z","size":87,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T14:42:58.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TrueBrain.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}},"created_at":"2020-10-26T08:13:56.000Z","updated_at":"2025-07-09T06:17:26.000Z","dependencies_parsed_at":"2024-11-09T13:42:16.069Z","dependency_job_id":"7ae97a6b-23d2-4c2c-96e9-edf24deaedff","html_url":"https://github.com/TrueBrain/wikitexthtml","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.08510638297872342,"last_synced_commit":"77a08af95ab9ad5fa5ef4e3a74b4205e75d63b6e"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/TrueBrain/wikitexthtml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrueBrain%2Fwikitexthtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrueBrain%2Fwikitexthtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrueBrain%2Fwikitexthtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrueBrain%2Fwikitexthtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrueBrain","download_url":"https://codeload.github.com/TrueBrain/wikitexthtml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrueBrain%2Fwikitexthtml/sbom","scorecard":{"id":143960,"data":{"date":"2025-08-11","repo":{"name":"github.com/TrueBrain/wikitexthtml","commit":"966feac36859c55381ee8cc9f00dbfd61aedc236"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"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":"Code-Review","score":1,"reason":"Found 4/23 approved changesets -- score normalized to 1","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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/commit-checker.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/testing.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commit-checker.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/commit-checker.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/commit-checker.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/commit-checker.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/commit-checker.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/commit-checker.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/testing.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/testing.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/TrueBrain/wikitexthtml/testing.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/testing.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/testing.yml:56","Warn: pipCommand not pinned by hash: .github/workflows/testing.yml:57","Warn: pipCommand not pinned by hash: .github/workflows/testing.yml:73","Warn: pipCommand not pinned by hash: .github/workflows/testing.yml:74","Warn: pipCommand not pinned by hash: .github/workflows/testing.yml:77","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   8 pipCommand dependencies pinned"],"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 1.2.0 not signed: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/107640699","Warn: release artifact 1.1.2 not signed: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/71966770","Warn: release artifact 1.1.1 not signed: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/68067603","Warn: release artifact 1.1.0 not signed: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/67832120","Warn: release artifact 1.0.2 not signed: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/64023903","Warn: release artifact 1.2.0 does not have provenance: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/107640699","Warn: release artifact 1.1.2 does not have provenance: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/71966770","Warn: release artifact 1.1.1 does not have provenance: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/68067603","Warn: release artifact 1.1.0 does not have provenance: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/67832120","Warn: release artifact 1.0.2 does not have provenance: https://api.github.com/repos/TrueBrain/wikitexthtml/releases/64023903"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T08:56:57.804Z","repository_id":39665366,"created_at":"2025-08-16T08:56:57.804Z","updated_at":"2025-08-16T08:56:57.804Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280901463,"owners_count":26410586,"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-25T02:00:06.499Z","response_time":81,"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":[],"created_at":"2024-11-09T13:42:11.090Z","updated_at":"2025-10-25T03:39:21.169Z","avatar_url":"https://github.com/TrueBrain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wikitexthtml\n\n[![GitHub License](https://img.shields.io/github/license/TrueBrain/wikitexthtml)](https://github.com/TrueBrain/wikitexthtml/blob/main/LICENSE)\n[![GitHub Tag](https://img.shields.io/github/v/tag/TrueBrain/wikitexthtml?include_prereleases\u0026label=stable)](https://github.com/TrueBrain/wikitexthtml/releases)\n[![GitHub commits since latest release](https://img.shields.io/github/commits-since/TrueBrain/wikitexthtml/latest/main)](https://github.com/TrueBrain/wikitexthtml/commits/main)\n\n[![GitHub Workflow Status (Testing)](https://img.shields.io/github/actions/workflow/status/TrueBrain/wikitexthtml/testing.yml?branch=main\u0026label=main)](https://github.com/TrueBrain/wikitexthtml/actions/workflows/testing.yml)\n[![GitHub Workflow Status (Release)](https://img.shields.io/github/actions/workflow/status/TrueBrain/wikitexthtml/release.yml?label=release)](https://github.com/TrueBrain/wikitexthtml/actions/workflows/release.yml)\n\nwikitexthtml is a library that renders HTML from WikiText.\n\n## Dependencies\n\n- Python3.8 or higher.\n- `python-slugify` (via `setup.py`), for slugs in anchors\n- `ply` (via `setup.py`), to implement `{{#ifexpr}}` and `{{#expr}}`\n- `wikitextparser` (via `setup.py`), to make sense of wikitext\n\n## Installation\n\n```bash\npip install wikitexthtml\n```\n\nOr for development work:\n\n```bash\npython3 -m venv .env\n.env/bin/pip install -e .\n```\n\n## Usage\n\nExtend [Page](https://github.com/TrueBrain/wikitexthtml/blob/main/wikitexthtml/page.py) by implementing the missing functions as seen in [prototype.py](https://github.com/TrueBrain/wikitexthtml/blob/main/wikitexthtml/prototype.py).\nThis way you can customize where files are read from (from disk, from a database, etc) and how to sanitize titles and URLs.\nIn the [tests](https://github.com/TrueBrain/wikitexthtml/tree/main/tests/) folder examples of this can be found.\n\nNow you can instantiate this new class and call `render()` on it.\nThe result will be available in `html`. For example:\n\n```python\nclass WikiPage(Page):\n    ...\n\nprint(WikiPage(\"Main Page\").render().html)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruebrain%2Fwikitexthtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruebrain%2Fwikitexthtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruebrain%2Fwikitexthtml/lists"}