{"id":37069884,"url":"https://github.com/dkundih/duality","last_synced_at":"2026-01-14T08:02:59.410Z","repository":{"id":46730708,"uuid":"424268373","full_name":"dkundih/duality","owner":"dkundih","description":"Decorator library for the creation of CLI applications and scripts.","archived":false,"fork":false,"pushed_at":"2024-12-23T12:49:27.000Z","size":4915,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-23T13:44:12.722Z","etag":null,"topics":["algorithms","algorithms-and-data-structures","data-science","data-visualization","decorator","decorators","digital-transformation","logistics","logistics-4-0","machine-learning","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/duality/","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/dkundih.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["dkundih"],"patreon":"dkundih","custom":["https://buymeacoffee.com/dkundih"]}},"created_at":"2021-11-03T14:59:08.000Z","updated_at":"2024-12-23T12:49:31.000Z","dependencies_parsed_at":"2024-12-07T11:31:16.247Z","dependency_job_id":null,"html_url":"https://github.com/dkundih/duality","commit_stats":{"total_commits":315,"total_committers":1,"mean_commits":315.0,"dds":0.0,"last_synced_commit":"235fbeb8a91da494a5c61cccac9a994f4074a54a"},"previous_names":[],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/dkundih/duality","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkundih%2Fduality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkundih%2Fduality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkundih%2Fduality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkundih%2Fduality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkundih","download_url":"https://codeload.github.com/dkundih/duality/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkundih%2Fduality/sbom","scorecard":{"id":346895,"data":{"date":"2025-08-11","repo":{"name":"github.com/dkundih/duality","commit":"e0526de63a2061a0719b720670cc74ebc1d0df2a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":-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":"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: Apache License 2.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":"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"}}]},"last_synced_at":"2025-08-18T07:16:05.742Z","repository_id":46730708,"created_at":"2025-08-18T07:16:05.742Z","updated_at":"2025-08-18T07:16:05.742Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["algorithms","algorithms-and-data-structures","data-science","data-visualization","decorator","decorators","digital-transformation","logistics","logistics-4-0","machine-learning","python"],"created_at":"2026-01-14T08:02:58.660Z","updated_at":"2026-01-14T08:02:59.389Z","avatar_url":"https://github.com/dkundih.png","language":"Python","readme":"![duality-header](https://raw.githubusercontent.com/dkundih/duality/main/_logistics/duality.jpg)\r\n\r\n[![Downloads](https://img.shields.io/pypi/dm/duality?color=F43\u0026label=Downloads\u0026style=flat-square)](https://pypi.org/project/duality)\r\n[![License](https://img.shields.io/pypi/l/duality?color=178\u0026label=License\u0026style=flat-square)](https://github.com/dkundih/duality/blob/main/LICENSE)\r\n[![PyPi version](https://img.shields.io/pypi/v/duality?color=178\u0026\u0026label=PyPi%20version\u0026style=flat-square)](https://pypi.org/project/duality)\r\n[![Python version](https://img.shields.io/pypi/pyversions/duality?color=178\u0026label=Python%20version\u0026style=flat-square)](https://pypi.org/project/duality)\r\n[![Latest publish](https://img.shields.io/github/last-commit/dkundih/duality?color=178\u0026label=Latest%20publish\u0026style=flat-square)](https://github.com/dkundih/duality)\r\n[![Format](https://img.shields.io/pypi/format/duality?color=178\u0026label=Format\u0026style=flat-square)](https://pypi.org/project/duality)\r\n\r\nduality\r\n=====\r\n\r\nDecorator library for the creation of CLI applications and scripts.\r\nUse permitted according to the terms of use and conditions set by the attached license.\r\n\r\n\r\n**Example of use - SCRIPT**\r\n\r\nExample code over a Car object. - DualityApp.script (v5.3.3)\r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/duality/main/_logistics/T_dynamicScript1.jpg'/\u003e\r\n\r\nExample use in the terminal. - DualityApp.script (v5.3.3)\r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/duality/main/_logistics/T_dynamicScript2.jpg'/\u003e\r\n\r\n\r\n**Example of use - WHEEL**\r\n\r\nExample code over a Car object. - DualityApp.wheel (v5.3.3)\r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/duality/main/_logistics/T_dynamicWheel1.jpg'/\u003e\r\n\r\nExample use in the terminal. - DualityApp.wheel (v5.3.3)\r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/duality/main/_logistics/T_dynamicWheel2.jpg'/\u003e\r\n\r\n**Example of use - APPLY CUSTOM COLORING**\r\n\r\nExample code for the creation of a university with custom coloring defined in the 'myset' dictionary. (v5.3.3)\r\n\r\nNOTE: Fore coloring is defined as F(c, m, y, k, r, g, b) - for example, 'Fr' stands for fore coloring in red.\r\n\r\nBackground coloring is defined as B(c, m, y, k, r, g, b) - for example, 'Br' stands for background coloring in red.\r\n\r\nDictionary keys must be named as shown, only coloring values are subject to change.\r\n\r\nIn order to apply custom coloring, define color_mode = 'custom', custom_color_mode = your_dictionary_name_here.\r\n\r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/duality/main/_logistics/T_customColoring1.jpg'/\u003e\r\n\r\nExample use in the terminal with custom coloring applied. (v5.3.3)\r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/duality/main/_logistics/T_customColoring2.jpg'/\u003e\r\n\r\n**Installation**\r\n\r\n```sh\r\n# using pip\r\npip install duality\r\n```\r\n**Import**\r\n\r\n```sh\r\n# for Python environment\r\nimport duality\r\n```\r\n\r\n**A word from the author!**\r\n\r\nThe module itself, its maintenance, updates and stability, logo, videos, promotional materials and everything associated with duality are done by **David Kundih** from **Croatia**.\r\n\r\n\u003ch1 align='center'\u003e Hi! :wave:\u003c/h1\u003e\r\n \r\n\u003cimg src='https://raw.githubusercontent.com/dkundih/dkundih/main/.logistics/BLUERED_GHiLI.jpg'/\u003e\r\n \r\n\u003ch4 align='center'\u003eMy latest projects:\u003c/h4\u003e\r\n\u003cp align='center'\u003e\r\n\u003ca href=\"https://github.com/dkundih/vandal\"\u003evandal\u003c/p\u003e  \r\n\u003cp align='center'\u003e\r\n\u003ca href=\"https://github.com/dkundih/duality\"\u003eduality\u003c/p\u003e \r\n\r\n\u003cp align='center'\u003e\r\n\u003ca href=\"https://www.pypi.org/user/dkundih/\"\u003e\u003cimg height=\"25\" src=\"https://raw.githubusercontent.com/dkundih/dkundih/main/.logistics/pypi.jpg\"\u003e\u003c/a\u003e\r\n\u003ca href=\"https://www.researchgate.net/profile/David-Kundih\"\u003e\u003cimg height=\"25\" src=\"https://raw.githubusercontent.com/dkundih/dkundih/main/.logistics/rg.jpg\"\u003e\u003c/a\u003e\r\n","funding_links":["https://github.com/sponsors/dkundih","https://patreon.com/dkundih","https://buymeacoffee.com/dkundih"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkundih%2Fduality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkundih%2Fduality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkundih%2Fduality/lists"}