{"id":40497652,"url":"https://github.com/eackermann/snarky","last_synced_at":"2026-01-20T19:01:45.690Z","repository":{"id":57468868,"uuid":"128252885","full_name":"eackermann/snarky","owner":"eackermann","description":"Snarky is a useless Python package that makes it easy to add a jk (just kidding!) keyword argument to any function.","archived":false,"fork":false,"pushed_at":"2018-04-06T17:26:01.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T21:18:33.033Z","etag":null,"topics":["lol","python","useless"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eackermann.png","metadata":{"files":{"readme":"README.rst","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":"2018-04-05T19:13:56.000Z","updated_at":"2018-04-06T17:26:02.000Z","dependencies_parsed_at":"2022-09-19T10:10:12.864Z","dependency_job_id":null,"html_url":"https://github.com/eackermann/snarky","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eackermann/snarky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eackermann%2Fsnarky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eackermann%2Fsnarky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eackermann%2Fsnarky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eackermann%2Fsnarky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eackermann","download_url":"https://codeload.github.com/eackermann/snarky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eackermann%2Fsnarky/sbom","scorecard":{"id":363482,"data":{"date":"2025-08-11","repo":{"name":"github.com/eackermann/snarky","commit":"1aa393f27369c9149c6a37a8404c1da4db2d0a99"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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 '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"}}]},"last_synced_at":"2025-08-18T11:20:45.198Z","repository_id":57468868,"created_at":"2025-08-18T11:20:45.199Z","updated_at":"2025-08-18T11:20:45.199Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"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":["lol","python","useless"],"created_at":"2026-01-20T19:00:35.381Z","updated_at":"2026-01-20T19:01:45.659Z","avatar_url":"https://github.com/eackermann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"======\nSnarky\n======\n\nSnarky is a useless Python package that makes it easy to add a ``jk`` (just kidding!) keyword argument to any function. Moreover, snarky defines several default behaviors for reacting whenever jk==True.\n\nQuick examples\n==============\n\nUsing snarky is really easy. Suppose we have a function:\n\n.. code-block:: python\n\n    def my_func(a, b):\n        \"\"\"Sample function with arguments.\"\"\"\n        return a*b\n\nThen calling our function might look like this:\n\n.. code-block::\n\n    \u003e\u003e\u003e my_func(4, 5)\n    20\n\n    \u003e\u003e\u003e my_func(a=3, b=7)\n    21\n\n    \u003e\u003e\u003e my_func(a=3, b=7, jk=True)\n    ---------------------------------------------------------------------------\n    TypeError                                 Traceback (most recent call last)\n    \u003cipython-input-143-231ea24720af\u003e in \u003cmodule\u003e()\n    ----\u003e 1 my_func(a=3, b=7, jk=True)\n\n    TypeError: my_func() got an unexpected keyword argument 'jk'\n\nBut that's lame! What function doesn't give you the option to say 'just kidding!', right?\n\nThat's where ``snarky`` shines!\n\nSimply add one of several default behaviors, or even define your own! Here, we will apply the default snarky behavior to our function:\n\n.. code-block:: python\n\n    from snarky import *\n\n    @snarky\n    def my_func(a, b):\n        \"\"\"Sample function with arguments.\"\"\"\n        return a*b\n\nNow calling our function might look like this:\n\n.. code-block::\n\n    \u003e\u003e\u003e my_func(4, 5)\n    20\n\n    \u003e\u003e\u003e my_func(a=3, b=7)\n    21\n\n    \u003e\u003e\u003e my_func(a=3, b=7, jk=True)\n    LOL! Then why are you asking me to run 'my_func'? Unbelievable!\n    21\n\nAnd the day is saved.\n\nInstallation\n============\n\nThe easiest way to install snarky is to use ``pip``. From the terminal, run:\n\n.. code-block:: bash\n\n    $ pip install snarky\n\nAlternatively, you can install the latest version of snarky by running the following commands:\n\n.. code-block:: bash\n\n    $ git clone https://github.com/eackermann/snarky.git\n    $ cd snarky\n    $ python setup.py install\n\nLicense\n=======\n\nSnarky is distributed under the MIT license. See the `LICENSE \u003chttps://github.com/eackermann/snarky/blob/master/LICENSE\u003e`_ file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feackermann%2Fsnarky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feackermann%2Fsnarky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feackermann%2Fsnarky/lists"}