{"id":19979146,"url":"https://github.com/tarunbatra/password-validator-python","last_synced_at":"2026-03-02T13:42:37.547Z","repository":{"id":39575722,"uuid":"259291069","full_name":"tarunbatra/password-validator-python","owner":"tarunbatra","description":"Validates password according to flexible and intuitive specification","archived":false,"fork":false,"pushed_at":"2020-05-31T21:06:33.000Z","size":5878,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-29T03:34:51.558Z","etag":null,"topics":["password","password-validator","pypi","python","python-library","schema","validate","validation","validation-library"],"latest_commit_sha":null,"homepage":"https://tarunbatra.com/password-validator-python","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/tarunbatra.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":"2020-04-27T11:16:25.000Z","updated_at":"2025-09-01T18:10:42.000Z","dependencies_parsed_at":"2022-09-26T17:31:25.443Z","dependency_job_id":null,"html_url":"https://github.com/tarunbatra/password-validator-python","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tarunbatra/password-validator-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Fpassword-validator-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Fpassword-validator-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Fpassword-validator-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Fpassword-validator-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarunbatra","download_url":"https://codeload.github.com/tarunbatra/password-validator-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunbatra%2Fpassword-validator-python/sbom","scorecard":{"id":869117,"data":{"date":"2025-08-11","repo":{"name":"github.com/tarunbatra/password-validator-python","commit":"e5d5a14cec12c1c091e2ad536dca1a375206ff2e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/24 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/tarunbatra/password-validator-python/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/tarunbatra/password-validator-python/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/tarunbatra/password-validator-python/main.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:35","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:38","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"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":"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":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/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":"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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/tarunbatra/password-validator-python/releases/27076682","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/tarunbatra/password-validator-python/releases/27076682"],"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"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 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-24T03:36:50.108Z","repository_id":39575722,"created_at":"2025-08-24T03:36:50.109Z","updated_at":"2025-08-24T03:36:50.109Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30005048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T12:19:43.414Z","status":"ssl_error","status_checked_at":"2026-03-02T12:19:02.215Z","response_time":60,"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":["password","password-validator","pypi","python","python-library","schema","validate","validation","validation-library"],"created_at":"2024-11-13T03:36:48.298Z","updated_at":"2026-03-02T13:42:37.527Z","avatar_url":"https://github.com/tarunbatra.png","language":"Python","readme":"| |logo|\n\n| |pypi version| |build| |coverage| |python version| |github release|\n\npassword_validator\n==================\n\nThis is a python port of ``npm`` package\n`password-validator \u003chttps://github.com/tarunbatra/password-validator\u003e`__.\n\nInstall\n-------\n\n``pip install password-validator``\n\nUsage\n-----\n\n.. code:: py\n\n    from password_validator import PasswordValidator\n\n    # Create a schema\n    schema = PasswordValidator()\n\n    # Add properties to it\n    schema\\\n    .min(8)\\\n    .max(100)\\\n    .has().uppercase()\\\n    .has().lowercase()\\\n    .has().digits()\\\n    .has().no().spaces()\\\n\n    # Validate against a password string\n    print(schema.validate('validPASS123'));\n    # =\u003e True\n    print(schema.validate('invalidPASS'));\n    # =\u003e False\n\nRules\n-----\n\nRules supported as of now are:\n\n+--------------------+-------------------------------------------------------------------+\n| Rules              | Descriptions                                                      |\n+====================+===================================================================+\n| **digits()**       | specifies password must include digits                            |\n+--------------------+-------------------------------------------------------------------+\n| **letters()**      | specifies password must include letters                           |\n+--------------------+-------------------------------------------------------------------+\n| **lowercase()**    | specifies password must include lowercase letters                 |\n+--------------------+-------------------------------------------------------------------+\n| **uppercase()**    | specifies password must include uppercase letters                 |\n+--------------------+-------------------------------------------------------------------+\n| **symbols()**      | specifies password must include symbols                           |\n+--------------------+-------------------------------------------------------------------+\n| **spaces()**       | specifies password must include spaces                            |\n+--------------------+-------------------------------------------------------------------+\n| **min(len)**       | specifies minimum length                                          |\n+--------------------+-------------------------------------------------------------------+\n| **max(len)**       | specifies maximum length                                          |\n+--------------------+-------------------------------------------------------------------+\n| **no([regex])**    | inverts the result of validations applied next                    |\n+--------------------+-------------------------------------------------------------------+\n| **has([regex])**   | inverts the effect of **no()** and applies a regex (optional)     |\n+--------------------+-------------------------------------------------------------------+\n\nFor more examples and complete API reference, check the `documentation \u003chttps://tarunbatra.com/password-validator-python\u003e`__.\n\nLicense\n-------\n\n`MIT License \u003chttps://choosealicense.com/licenses/mit/\u003e`__\n\n.. |pypi version| image:: https://img.shields.io/pypi/v/password-validator?color=blue\u0026logo=password_validator\u0026style=flat-square\n    :alt: GitHub release\n   :target: https://pypi.org/project/password-validator\n.. |python version| image:: https://img.shields.io/pypi/pyversions/password-validator?color=red\u0026logo=version\u0026style=flat-square\n    :alt: Python version\n.. |logo| image:: https://res.cloudinary.com/tbking/image/upload/v1490803400/password-validator/logo.png\n    :alt: Password Validator\n    :target: https://tarunbatra.com/password-validator-python\n.. |build| image:: https://img.shields.io/github/workflow/status/tarunbatra/password-validator-python/CI?logo=github\u0026style=flat-square\n    :alt: Build\n    :target: https://github.com/tarunbatra/password-validator-python/actions?query=workflow%3ACI\n.. |coverage| image:: https://img.shields.io/codecov/c/gh/tarunbatra/password-validator-python?logo=codecov\u0026style=flat-square\n    :alt: Code Coverage\n    :target: https://codecov.io/gh/tarunbatra/password-validator-python\n.. |github release| image:: https://img.shields.io/github/v/release/tarunbatra/password-validator-python?color=magenta\u0026include_prereleases\u0026logo=github\u0026sort=semver\u0026style=flat-square\n    :alt: GitHub release\n    :target: https://github.com/tarunbatra/password-validator-python/releases/latest\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarunbatra%2Fpassword-validator-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarunbatra%2Fpassword-validator-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarunbatra%2Fpassword-validator-python/lists"}