{"id":37076244,"url":"https://github.com/lowobservable/pytn3270","last_synced_at":"2026-01-14T08:58:16.744Z","repository":{"id":47448240,"uuid":"204607476","full_name":"lowobservable/pytn3270","owner":"lowobservable","description":"Python TN3270 library","archived":false,"fork":false,"pushed_at":"2025-09-06T01:10:21.000Z","size":90,"stargazers_count":32,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-06T01:16:53.790Z","etag":null,"topics":["3270","ibm","mainframe","tn3270"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lowobservable.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-27T02:57:45.000Z","updated_at":"2025-09-05T23:22:47.000Z","dependencies_parsed_at":"2025-09-06T01:11:49.688Z","dependency_job_id":"b5c11dc5-3654-4f50-964a-7988643d851a","html_url":"https://github.com/lowobservable/pytn3270","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/lowobservable/pytn3270","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowobservable%2Fpytn3270","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowobservable%2Fpytn3270/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowobservable%2Fpytn3270/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowobservable%2Fpytn3270/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowobservable","download_url":"https://codeload.github.com/lowobservable/pytn3270/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowobservable%2Fpytn3270/sbom","scorecard":{"id":600315,"data":{"date":"2025-08-11","repo":{"name":"github.com/lowobservable/pytn3270","commit":"ae1522b4c3c49123a9f1bae049840248f64b8599"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"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":"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":1,"reason":"Found 3/30 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":"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.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/lowobservable/pytn3270/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/lowobservable/pytn3270/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/lowobservable/pytn3270/build.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/build.yml:22","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.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":"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":"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: ISC 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":"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":"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":-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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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-21T00:14:37.196Z","repository_id":47448240,"created_at":"2025-08-21T00:14:37.196Z","updated_at":"2025-08-21T00:14:37.196Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["3270","ibm","mainframe","tn3270"],"created_at":"2026-01-14T08:58:16.272Z","updated_at":"2026-01-14T08:58:16.736Z","avatar_url":"https://github.com/lowobservable.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytn3270\n\nPython TN3270 library.\n\nInspired by [pyte](https://github.com/selectel/pyte), this is a pure Python TN3270 library providing data stream parsing and in-memory emulation. It does not include a user interface or routines to support automation, instead it is designed to be used to build user-facing emulators and automation libraries.\n\n## Features\n\npytn3270 is a work in progress and only supports basic TN3270 emulation.\n\n## Usage\n\nInstall using `pip`:\n\n```\npip install pytn3270\n```\n\nConnect to a mainframe:\n\n```\nfrom tn3270 import Telnet, Emulator, AID, CharacterCell\n\ntelnet = Telnet('IBM-3279-2-E')\n\ntelnet.open('mainframe', 23)\n\nemulator = Emulator(telnet, 24, 80)\n\n# Wait until the keyboard is unlocked.\nwhile emulator.keyboard_locked:\n    print('Waiting for keyboard to be unlocked...')\n\n    emulator.update(timeout=1)\n\n# Convert the screen contents to a string, replacing attribute cells with '@'.\n#\n# Note that this is not supposed to demonstrate an efficient implementation.\nscreen = ''\n\nfor cell in emulator.cells:\n    if isinstance(cell, CharacterCell):\n        byte = cell.byte\n\n        if byte == 0:\n            screen += ' '\n        else:\n            screen += bytes([byte]).decode('ibm037')\n    else:\n        screen += '@'\n\n# Display the screen.\nfor line in [screen[index:index+80] for index in range(0, len(screen), 80)]:\n    print(line)\n```\n\n## References\n\nIf you are looking for information on the TN3270 protocol I'd recommend the\nfollowing resources:\n\n  * Steve Millington's [TN3270 Protocol Cheat Sheet](http://ruelgnoj.co.uk/3270/)\n\nFor information on the 3270 data stream (as used by TN3270) I'd recommend:\n\n  * IBM [3270 Data Stream Programmer's Reference](https://bitsavers.computerhistory.org/pdf/ibm/3270/GA23-0059-4_3270_Data_Stream_Programmers_Reference_Dec88.pdf) (GA23-0059-4)\n  * IBM CICS [The 3270 Family of Terminals](https://www.ibm.com/support/knowledgecenter/en/SSGMGV_3.1.0/com.ibm.cics.ts31.doc/dfhp3/dfhp3bg.htm#DFHP3BG)\n  * Greg Price's [3270 Programming Overview](http://www.prycroft6.com.au/misc/3270.html)\n  * Tommy Sprinkles' [3270 Data Stream Programming](https://www.tommysprinkle.com/mvs/P3270/start.htm)\n\n## See Also\n\n* [oec](https://github.com/lowobservable/oec) - IBM 3270 terminal controller\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowobservable%2Fpytn3270","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowobservable%2Fpytn3270","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowobservable%2Fpytn3270/lists"}