{"id":17472953,"url":"https://github.com/uyjulian/pytjs","last_synced_at":"2026-06-16T23:31:44.660Z","repository":{"id":57457827,"uuid":"338961886","full_name":"uyjulian/pytjs","owner":"uyjulian","description":"TJS2 bindings to Python","archived":false,"fork":false,"pushed_at":"2025-08-15T15:24:22.000Z","size":460,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T06:28:10.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/uyjulian.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":"2021-02-15T03:57:52.000Z","updated_at":"2025-08-15T15:24:26.000Z","dependencies_parsed_at":"2022-09-07T01:53:38.359Z","dependency_job_id":null,"html_url":"https://github.com/uyjulian/pytjs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/uyjulian/pytjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uyjulian%2Fpytjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uyjulian%2Fpytjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uyjulian%2Fpytjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uyjulian%2Fpytjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uyjulian","download_url":"https://codeload.github.com/uyjulian/pytjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uyjulian%2Fpytjs/sbom","scorecard":{"id":913799,"data":{"date":"2025-08-11","repo":{"name":"github.com/uyjulian/pytjs","commit":"fe85887bf127b1cf4982d04d5b48f8e40e152472"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"Code-Review","score":0,"reason":"Found 0/27 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build_upload_pypi.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":"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":"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/build_upload_pypi.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/uyjulian/pytjs/build_upload_pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_upload_pypi.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/uyjulian/pytjs/build_upload_pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_upload_pypi.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/uyjulian/pytjs/build_upload_pypi.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/build_upload_pypi.yml:43","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":"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: MIT License: 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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build_upload_pypi.yml:14"],"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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"}}]},"last_synced_at":"2025-08-24T20:14:01.931Z","repository_id":57457827,"created_at":"2025-08-24T20:14:01.931Z","updated_at":"2025-08-24T20:14:01.931Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34428196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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-10-18T17:59:35.957Z","updated_at":"2026-06-16T23:31:44.642Z","avatar_url":"https://github.com/uyjulian.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytjs\n\n## About\n\nThis repository contains a Python interface to TJS2.  \n\n## Installation (from PyPI)\n\n```bash\npython3 -m pip install pytjs\n```\n\n## Installation (from source)\n\nFirst, clone this repository, including all submodules.  \n```bash\ngit clone --recursive https://github.com/uyjulian/pytjs.git\n```\nNow, you can run `pip install` on the repository path.  \n```bash\npython3 -m pip install ./pytjs\n```\n\n## Usage\n\nFirstly, you need to initialize a TJS script engine.  \n```py\nimport pytjs\n\nScriptEngine = pytjs.tTJS()\n```\nYou can then get things in its global environment.  \n```py\nScriptEngineGlobal = ScriptEngine.GetGlobal()\nprint(ScriptEngineGlobal.Dictionary) # \u003ctTJSDispatch2Wrapper 0x7ffcd1c271f0:0x0\u003e\n# or\nprint(ScriptEngineGlobal['Dictionary']) # \u003ctTJSDispatch2Wrapper 0x7ffcd1c271f0:0x0\u003e\n```\nYou can also set values in the global environment.  \n```py\nScriptEngineGlobal = ScriptEngine.GetGlobal()\nScriptEngineGlobal.test = \"test\"\n# or\nScriptEngineGlobal[\"test\"] = \"test\"\n```\nYou can evaluate expressions in the script engine environment.  \n```py\nprint(ScriptEngine.EvalExpression(\"123\")) # 123\n# 123\n```\nYou can iterate through Array and Dictionary objects.\n```py\narr = ScriptEngine.EvalExpression(\"['test', 'test2']\")\nfor v in arr:\n\tprint(v)\n# test\n# test2\ndic = ScriptEngine.EvalExpression(\"%['test' =\u003e 'test2']\")\nfor v in dic:\n\tprint(v, dic[v])\n# test\n# test2\n```\n\n## License\n\nThis project is licensed under the MIT license. Please read the `LICENSE` file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuyjulian%2Fpytjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuyjulian%2Fpytjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuyjulian%2Fpytjs/lists"}