{"id":37074280,"url":"https://github.com/uta-smile/smile-python","last_synced_at":"2026-01-14T08:45:08.183Z","repository":{"id":57468642,"uuid":"76317438","full_name":"uta-smile/smile-python","owner":"uta-smile","description":"SMILE Lab python helper library.","archived":false,"fork":false,"pushed_at":"2018-01-19T03:45:56.000Z","size":48,"stargazers_count":4,"open_issues_count":6,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-27T20:20:28.591Z","etag":null,"topics":["python-library"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uta-smile.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2016-12-13T03:03:55.000Z","updated_at":"2021-08-10T04:43:13.000Z","dependencies_parsed_at":"2022-09-19T09:31:41.252Z","dependency_job_id":null,"html_url":"https://github.com/uta-smile/smile-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uta-smile/smile-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uta-smile%2Fsmile-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uta-smile%2Fsmile-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uta-smile%2Fsmile-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uta-smile%2Fsmile-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uta-smile","download_url":"https://codeload.github.com/uta-smile/smile-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uta-smile%2Fsmile-python/sbom","scorecard":{"id":912948,"data":{"date":"2025-08-11","repo":{"name":"github.com/uta-smile/smile-python","commit":"8918d1bb9ef76922ef976f6e3a10578b3a0af1c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"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":"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":7,"reason":"Found 6/8 approved changesets -- score normalized to 7","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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["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-24T19:55:25.712Z","repository_id":57468642,"created_at":"2025-08-24T19:55:25.712Z","updated_at":"2025-08-24T19:55:25.712Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414692,"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":["python-library"],"created_at":"2026-01-14T08:45:07.439Z","updated_at":"2026-01-14T08:45:08.147Z","avatar_url":"https://github.com/uta-smile.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smile-python\nSMILE Lab python helper library.\n\n## Installation\n\n```bash\npip install smile\n```\n\n## Usage\nThis library aims to provide a general way to handle logging and command-line parameters.\nIts usage is described in the following example:\n\nIn **example.py**, we have\n\n```python\nimport smile as sm\nfrom smile import flags\nfrom smile import logging\n\nflags.DEFINE_string(\"param\", \"default_value\", \"A general flag.\")\n\nwith flags.Subcommand(\"echo\", dest=\"action\"):\n    flags.DEFINE_string(\"echo_text\", \"\", \"The text to be echoed out.\")\n\nwith flags.Subcommand(\"echo_bool\", dest=\"action\"):\n    flags.DEFINE_bool(\"just_do_it\", False, \"some help infomation\")\n\nFLAGS = flags.FLAGS\n\n\ndef main(_):\n    \"\"\"Print out the FLAGS in the main function.\"\"\"\n    logging.info(\"param = %s\", FLAGS.param)\n    if FLAGS.action == \"echo\":\n        logging.warning(FLAGS.echo_text)\n    elif FLAGS.action == \"echo_bool\":\n        logging.info(\"Just do it? %s\", \"Yes!\" if FLAGS.just_do_it else \"No :(\")\n\n\nif __name__ == \"__main__\":\n    sm.app.run()\n```\n\nThen in terminal, use one of the following way to pass new parameters to the variable of `param`\n\n```bash\npython example.py --param=new_value echo --echo_text \"Hello, SMILE!\"\n```\nand **YESSSSS!**, we support:\n\n  * **subcommands**: much like `git commit` or `git rm --cached huang.c`.\n  * **positional arguments**: \"abc.py\" in `git add abc.py`\n    \n### More about logging\n\nThe `logging` module can be used together with flags to filter logs, e.g.,\n\n```bash\npython example.py --param=new_value echo --echo_text \"Hello, SMILE!\" --verbosity -1\n```\n\nThis will filter out the INFO level logs and only display WARN level or below logs.\n\nFor more details, view [logging/__init__.py](https://github.com/abseil/abseil-py/blob/master/absl/logging/__init__.py).\n\n## More examples\n\nPlease refer to [smoke_test.py](tests/smoke_tests/smoke_test.py).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futa-smile%2Fsmile-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futa-smile%2Fsmile-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futa-smile%2Fsmile-python/lists"}