{"id":2588410,"name":"wtfpython","ecosystem":"npm","description":"A collection of surprising Python snippets and lesser known features. [ARCHIVED]","homepage":"https://github.com/satwikkansal/wtfPython#readme","licenses":"WTFPL 2.0","normalized_licenses":["WTFPL"],"repository_url":"https://github.com/satwikkansal/wtfPython","keywords_array":["python","specification","notes","wtf","learning","guide","handbook"],"namespace":null,"versions_count":20,"first_release_published_at":"2017-08-30T19:25:52.411Z","latest_release_published_at":"2019-12-19T19:53:31.859Z","latest_release_number":"2.2.2","last_synced_at":"2026-03-25T23:49:31.183Z","created_at":"2022-04-10T03:56:48.129Z","updated_at":"2026-03-25T23:49:31.183Z","registry_url":"https://www.npmjs.com/package/wtfpython","install_command":"npm install wtfpython","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"2.2.2"}},"repo_metadata":{"id":37523250,"uuid":"101684374","full_name":"satwikkansal/wtfpython","owner":"satwikkansal","description":"What the f*ck Python? 😱","archived":false,"fork":false,"pushed_at":"2025-05-10T11:50:03.000Z","size":1544,"stargazers_count":36605,"open_issues_count":69,"forks_count":2668,"subscribers_count":714,"default_branch":"master","last_synced_at":"2025-09-13T04:43:39.576Z","etag":null,"topics":["documentation","gotchas","interview-questions","pitfalls","python","python-interview-questions","snippets","wats","wtf"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/satwikkansal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","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}},"created_at":"2017-08-28T20:22:19.000Z","updated_at":"2025-09-13T04:43:14.000Z","dependencies_parsed_at":"2023-01-23T21:45:49.107Z","dependency_job_id":"0c0ee1ae-f79e-4d7c-8428-5462fd17c994","html_url":"https://github.com/satwikkansal/wtfpython","commit_stats":{"total_commits":425,"total_committers":78,"mean_commits":5.448717948717949,"dds":"0.23529411764705888","last_synced_commit":"86e78697fb7a565be24126e4c2639fefc106bcff"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/satwikkansal/wtfpython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satwikkansal","download_url":"https://codeload.github.com/satwikkansal/wtfpython/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/sbom","scorecard":{"id":801620,"data":{"date":"2022-08-15","repo":{"name":"github.com/satwikkansal/wtfpython","commit":"621339914401cbcf59a2d7d067537f47c52a9a2e"},"scorecard":{"version":"v4.5.0-26-g10b6052","commit":"10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93"},"score":6.3,"checks":[{"name":"Maintained","score":10,"reason":"4 commit(s) out of 30 and 9 issue activity out of 30 found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#maintained"}},{"name":"Code-Review","score":6,"reason":"GitHub code reviews found for 18 commits out of the last 30 -- score normalized to 6","details":["Warn: no reviews found for commit: d3a25fa14ea0d484aa556053ea0ce2cfcff7a8c0","Warn: no reviews found for commit: fe9ed47217714e38e527c7b205f458e23c8b3b87","Warn: no reviews found for commit: 00c550371292ca481117d836a9565be14dc4b203","Warn: no reviews found for commit: cd4d7c0e340789bd001e5e9eae0e3c5bb7c7f7f1","Warn: no reviews found for commit: 205c9ede019b0ed8194aee533c3e8ab72917be02","Warn: no reviews found for commit: 2e2d65a9ec63906fbc3b0b10b8c8892c090adc0d","Warn: no reviews found for commit: 086be4ed19cad2782f8a2e5ff84423821225fa61","Warn: no reviews found for commit: 9fc6db6215cd2773b4fed4fcf1a69fbe172a4b4c","Warn: no reviews found for commit: 6642876c640d5d4b06c1397d52f2074ef8dc0288","Warn: no reviews found for commit: aaa74c46a717ffe2b375b9838f29edd3281a9bd9","Warn: no reviews found for commit: f0bd1cb481947a81a5ea164aa333d5224f194702","Warn: no reviews found for commit: 048a620502d7eb6ccd4ece1fe805ba867da910a2"],"documentation":{"short":"Determines if the project requires code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no badge detected","details":null,"documentation":{"short":"Determines if the project has a CII Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"no vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":["Warn: no GitHub releases found"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#signed-releases"}},{"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/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"tokens are read-only in GitHub workflows","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"no published package detected","details":["Warn: no GitHub 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/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: : LICENSE:1"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info: GitHub-owned GitHubActions are pinned","Info: Third-party GitHubActions are pinned","Info: Dockerfile dependencies are pinned","Info: no insecure (not pinned by hash) dependency downloads found in Dockerfiles","Info: no insecure (not pinned by hash) dependency downloads found in shell scripts"],"documentation":{"short":"Determines if the project has declared and pinned its dependencies.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#pinned-dependencies"}},{"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/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":null,"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#fuzzing"}},{"name":"Dependency-Update-Tool","score":0,"reason":"no update tool detected","details":["Warn: dependabot config file not detected in source location.\n\t\t\tWe recommend setting this configuration in code so it can be easily verified by others.","Warn: renovatebot config file not detected in source location.\n\t\t\tWe recommend setting this configuration in code so it can be easily verified by others."],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":null,"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#security-policy"}},{"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/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T10:38:40.127Z","repository_id":37523250,"created_at":"2025-08-23T10:38:40.127Z","updated_at":"2025-08-23T10:38:40.127Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275232705,"owners_count":25428225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"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"},"owner_record":{"login":"satwikkansal","name":"Satwik Kansal","uuid":"10217535","kind":"user","description":"Fintech, Backend, AI, Python\r\n","email":"","website":"https://satwikkansal.xyz","location":null,"twitter":"satwikkansal","company":"Freelancer","icon_url":"https://avatars.githubusercontent.com/u/10217535?u=b12d6ef74ea297de9e46da6933b1a5b7ba9e6a61\u0026v=4","repositories_count":64,"last_synced_at":"2025-09-13T04:40:39.507Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/satwikkansal","funding_links":[],"total_stars":37699,"followers":1238,"following":4,"created_at":"2022-11-15T07:33:40.280Z","updated_at":"2025-09-13T04:40:39.507Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satwikkansal","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satwikkansal/repositories"},"tags":[{"name":"v3.0.0","sha":"b8e4cd169325ce9de7f09e6187fa72840084858c","kind":"commit","published_at":"2019-12-21T17:08:00.000Z","download_url":"https://codeload.github.com/satwikkansal/wtfpython/tar.gz/v3.0.0","html_url":"https://github.com/satwikkansal/wtfpython/releases/tag/v3.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/satwikkansal/wtfpython@v3.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/tags/v3.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/tags/v3.0.0/manifests"},{"name":"v2.0.0","sha":"601d1e43968d676ddb908c505bc8fc4e81edb859","kind":"commit","published_at":"2018-01-22T14:05:37.000Z","download_url":"https://codeload.github.com/satwikkansal/wtfpython/tar.gz/v2.0.0","html_url":"https://github.com/satwikkansal/wtfpython/releases/tag/v2.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/satwikkansal/wtfpython@v2.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/tags/v2.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/tags/v2.0.0/manifests"}]},"repo_metadata_updated_at":"2026-01-02T02:15:02.730Z","dependent_packages_count":0,"downloads":38,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":29.3873461691818,"dependent_repos_count":10.373648108865972,"dependent_packages_count":52.16365939791549,"stargazers_count":0.48843118897953725,"forks_count":0.7099385483905027,"docker_downloads_count":null,"average":18.62460468266666},"purl":"pkg:npm/wtfpython","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/wtfpython","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/wtfpython","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/wtfpython/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-31T09:17:09.210Z","issues_count":117,"pull_requests_count":73,"avg_time_to_close_issue":47085079.609375,"avg_time_to_close_pull_request":44946392.56521739,"issues_closed_count":64,"pull_requests_closed_count":69,"pull_request_authors_count":43,"issue_authors_count":91,"avg_comments_per_issue":2.7777777777777777,"avg_comments_per_pull_request":1.8904109589041096,"merged_pull_requests_count":44,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":24,"past_year_pull_requests_count":20,"past_year_avg_time_to_close_issue":3473240.75,"past_year_avg_time_to_close_pull_request":539142.6111111111,"past_year_issues_closed_count":4,"past_year_pull_requests_closed_count":18,"past_year_pull_request_authors_count":4,"past_year_issue_authors_count":11,"past_year_avg_comments_per_issue":1.0,"past_year_avg_comments_per_pull_request":2.65,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":15,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/satwikkansal%2Fwtfpython/issues","maintainers":[{"login":"satwikkansal","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/satwikkansal"}],"active_maintainers":[{"login":"satwikkansal","count":4,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/satwikkansal"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/wtfpython/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/wtfpython/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/wtfpython/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/wtfpython/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/wtfpython/codemeta","maintainers":[{"uuid":"satwikkansal","login":"satwikkansal","name":null,"email":"satwikkansal@gmail.com","url":null,"packages_count":1,"html_url":"https://www.npmjs.com/~satwikkansal","role":null,"created_at":"2022-11-15T12:09:36.598Z","updated_at":"2022-11-15T12:09:36.598Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/satwikkansal/packages"}]}