{"id":20489912,"url":"https://github.com/fuzailpalnak/py_oneliner","last_synced_at":"2026-06-10T07:31:20.073Z","repository":{"id":56015343,"uuid":"306525569","full_name":"fuzailpalnak/py_oneliner","owner":"fuzailpalnak","description":"A Library build with a purpose to have single line console print across project and avoid unnecessary console prints. The Library has the capability to handle all print statements in one line across the project","archived":false,"fork":false,"pushed_at":"2021-09-13T09:44:25.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T17:18:15.594Z","etag":null,"topics":["oneliner","printer","python","singleline"],"latest_commit_sha":null,"homepage":"","language":"Python","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/fuzailpalnak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"fuzailpalnak","open_collective":null,"ko_fi":"fuzailpalnak","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-10-23T04:04:02.000Z","updated_at":"2024-08-12T20:07:01.000Z","dependencies_parsed_at":"2022-08-15T11:30:51.777Z","dependency_job_id":null,"html_url":"https://github.com/fuzailpalnak/py_oneliner","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fuzailpalnak/py_oneliner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzailpalnak%2Fpy_oneliner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzailpalnak%2Fpy_oneliner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzailpalnak%2Fpy_oneliner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzailpalnak%2Fpy_oneliner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuzailpalnak","download_url":"https://codeload.github.com/fuzailpalnak/py_oneliner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzailpalnak%2Fpy_oneliner/sbom","scorecard":{"id":414976,"data":{"date":"2025-08-11","repo":{"name":"github.com/fuzailpalnak/py_oneliner","commit":"f43fe152657cbda9da7e963085a31f134d116488"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/9 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":"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":-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":"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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-18T23:35:50.360Z","repository_id":56015343,"created_at":"2025-08-18T23:35:50.360Z","updated_at":"2025-08-18T23:35:50.360Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34142637,"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-10T02:00:07.152Z","response_time":89,"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":["oneliner","printer","python","singleline"],"created_at":"2024-11-15T17:14:45.410Z","updated_at":"2026-06-10T07:31:19.663Z","avatar_url":"https://github.com/fuzailpalnak.png","language":"Python","funding_links":["https://patreon.com/fuzailpalnak","https://ko-fi.com/fuzailpalnak","https://ko-fi.com/fuzailpalnak'"],"categories":[],"sub_categories":[],"readme":"# py_oneliner\n![Licence](https://img.shields.io/github/license/fuzailpalnak/py_oneliner)\n![Python](https://img.shields.io/badge/python-v3.6+-blue.svg)\n![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)\n![Downloads](https://pepy.tech/badge/py-oneliner)\n\nA Library build with a propose, single line console print across project to avoid unnecessary console prints.\nThe Library has the capability to handle all print statements in one line across the project.\n\nWhen there are several tasks to be looped, which also have their own sub task,\nand these sub task have to be looped over, Therefore, knowing the status of each loop, during execution\nis essential, or, knowing where the code has reached for that matter, keeping all that in mind, the library is design\nto just display the sequence of execution in one-line console print, so user is aware about the progress.\n\n\n\u003ca href='https://ko-fi.com/fuzailpalnak' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n![demo4](https://user-images.githubusercontent.com/24665570/96991506-29e99500-1546-11eb-8180-195bb5334c8b.gif)\n\n## Installation\n    \n    pip install py-oneliner\n\n## Usage\n\n### One Line Print   \n```python\nfrom py_oneliner import one_liner\none_liner.one_line(tag=\"TEST\", tag_data=\"TESTING PRINT\")\n``` \n\n## One Line Print with Reset  \n`to_reset_data` will reset the fused print statement when specified `tag` is encountered\n \n```python\nfrom py_oneliner import one_liner\none_liner.one_line(tag=\"TEST\", tag_data=\"TESTING PRINT\", to_reset_data=True)\n``` \n\n## Example\n\n#### WithOut Color\n\n```python\nfrom py_oneliner import one_liner\nStages = [\"Start\", \"Middle\", \"End\"]\n\nfor s in Stages:\n    one_liner.one_line(tag=s, tag_data=s, to_reset_data=True)\n\n    for i, j1 in enumerate(2 * [1]):\n        one_liner.one_line(\"first_loop\", f\"{i + 1}/{2}\")\n\n    for i, j1 in enumerate(3 * [1]):\n        one_liner.one_line(\n            \"second_loop\", f\"{i + 1}/{3}\"\n        )\n        for x, y in enumerate(2 * [1]):\n            one_liner.one_line(\n                \"second_loop_nested_1\",\n                f\"{x + 1}/{2}\",\n            )\n```\n![demo1](https://user-images.githubusercontent.com/24665570/96997734-f0b62280-154f-11eb-9066-1031f9719599.gif)\n\n\n#### With Color\n\n```python\nfrom py_oneliner import one_liner\nStages = [\"Start\", \"Middle\", \"End\"]\n\nfor s in Stages:\n    one_liner.one_line(tag=s, tag_data=s, to_reset_data=True)\n\n    for i, j1 in enumerate(2 * [1]):\n        one_liner.one_line(\"first_loop\", f\"{i + 1}/{2}\", tag_color=\"red\", tag_data_color=\"green\")\n    for i, j1 in enumerate(3 * [1]):\n        one_liner.one_line(\n            \"second_loop\", f\"{i + 1}/{3}\", tag_color=\"yellow\", tag_data_color=\"grey\"\n        )\n        for x, y in enumerate(2 * [1]):\n            one_liner.one_line(\n                \"second_loop_nested_1\",\n                f\"{x + 1}/{2}\",\n                tag_color=\"magenta\",\n                tag_data_color=\"cyan\"\n            )\n\n```\n![demo2](https://user-images.githubusercontent.com/24665570/96997880-396ddb80-1550-11eb-912f-276a574b09de.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuzailpalnak%2Fpy_oneliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuzailpalnak%2Fpy_oneliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuzailpalnak%2Fpy_oneliner/lists"}