{"id":37065573,"url":"https://github.com/farzadghanei/miniauth","last_synced_at":"2026-01-14T07:40:37.562Z","repository":{"id":57441743,"uuid":"158074872","full_name":"farzadghanei/miniauth","owner":"farzadghanei","description":"small program (and a Python library) for local user authentication","archived":false,"fork":false,"pushed_at":"2022-12-26T20:50:24.000Z","size":45,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-09T11:03:19.990Z","etag":null,"topics":["authentication","python","python3"],"latest_commit_sha":null,"homepage":"","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/farzadghanei.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-11-18T11:03:32.000Z","updated_at":"2020-11-25T18:43:43.000Z","dependencies_parsed_at":"2023-01-31T01:30:22.471Z","dependency_job_id":null,"html_url":"https://github.com/farzadghanei/miniauth","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/farzadghanei/miniauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzadghanei%2Fminiauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzadghanei%2Fminiauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzadghanei%2Fminiauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzadghanei%2Fminiauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farzadghanei","download_url":"https://codeload.github.com/farzadghanei/miniauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzadghanei%2Fminiauth/sbom","scorecard":{"id":393143,"data":{"date":"2025-08-11","repo":{"name":"github.com/farzadghanei/miniauth","commit":"4442933ea0de1b6854bacdb7b3084991a9187ca3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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":"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":"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":"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":"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":"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: 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 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-18T18:19:41.036Z","repository_id":57441743,"created_at":"2025-08-18T18:19:41.037Z","updated_at":"2025-08-18T18:19:41.037Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413470,"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":["authentication","python","python3"],"created_at":"2026-01-14T07:40:36.758Z","updated_at":"2026-01-14T07:40:37.551Z","avatar_url":"https://github.com/farzadghanei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"********\nMiniAuth\n********\n\n.. image:: https://travis-ci.org/farzadghanei/miniauth.svg?branch=master\n    :target: https://travis-ci.org/farzadghanei/miniauth\n\n\nMiniAuth is a small program (and a Python library) for user authentication.\nwith handy features, making it easy to use in different contexts and integrate with other programs.\n\nMiniAuth is simple and portable, runs on Python versions 2.7 and Python 3.4+ and\nhas no dependencies other than Python standard library.\n\nWhen the Python package is installed, the `miniauth` CLI entrypoint is provided to manage and use a local database of users,\nusing a SQLite backend.\n\nFeatures:\n\n* Passwords are stored salted and hashed. The hash is configurable per record, default is a secure choice (sha512)\n* Supports enabling/disabling users\n* Credentials can be specified in different ways: command line arguments, standard input, files\n* When used as a Python library, a custom storage can be used instead of default SQLite storage\n\nHere is how to create a user and password, then verifying the credentials:\n\n.. code-block::\n\n   $ miniauth save testuser\n   Password:\n\n   $ miniauth verify testuser\n   Password:\n   # exit codes report the result of verification\n\n\nBy default a SQLite DB file is created in current working directory named `miniauth.db`.\nThe path to this file can be configured with the `--storage` option.\n\nWhen verifying the credentials, the password can be specified as an argument, or\nread from standard input or a file.\n\n.. code-block::\n\n   $ miniauth --storage=user.db --verbose save testuser --password testpassword\n   No DB detected on \"user.db\". Creating latest DB schema ...\n   DB schema updated to version user.db on \"1\"\n   created user testuser\n\n   # read password from arguments\n   $ miniauth --storage=user.db --verbose verify testuser testpassword\n   user testuser credentials are correct\n\n   # read password from a file\n   $ cat file_with_password\n   testpassword\n   $ miniauth --storage=user.db --verbose verify testuser --password-file file_with_password\n   user testuser credentials are correct\n\n   # read username and password from a file\n   $ cat file_with_creds\n   testuser\n   testpassword\n   $ miniauth --storage=user.db --verbose verify --creds-file file_with_creds\n   user testuser credentials are correct\n\n\nAuthenticating users can be done in other Python applications using miniauth as a library.\n\n.. code-block:: python\n\n   \u003e\u003e\u003e from miniauth.auth import MiniAuth\n   \u003e\u003e\u003e auth = MiniAuth('users.db')\n   \u003e\u003e\u003e auth.create_user('user', 'password')\n   True\n   \u003e\u003e\u003e auth.verify_user('user', 'password')\n   True\n   \u003e\u003e\u003e auth.verify_user('user', 'invalidpassword')\n   False\n\n\nMiniAuth can use storage backends other than the default SQLite based one.\nStorage classes should inherit `AbstractStorage` and implement the abstract methods.\n\n.. code-block:: python\n\n   \u003e\u003e\u003e from miniauth.storage import AbstractStorage\n   \u003e\u003e\u003e class CustomStorage(AbstractStorage):\n   ...      # implement abstract methods\n   ...      pass\n   \u003e\u003e\u003e auth = MiniAuth('', CustomStorage())\n\n\nInstallation\n============\n\n.. code-block:: bash\n\n   $ pip install miniauth\n\n\nOr installing from source:\n\n.. code-block:: bash\n\n   $ python setup.py install\n\n\nDevelopment\n===========\n\nSource code is on `GitHub \u003chttps://github.com/farzadghanei/miniauth\u003e`_\n\nIn development/test environments `pytest \u003chttps://pypi.org/project/pytest/\u003e`_, `mock \u003chttps://pypi.org/project/mock\u003e`_\n, `pycodestyle \u003chttps://pypi.org/project/pycodestyle/\u003e`_ and `mypy \u003chttps://pypi.org/project/mypy/\u003e`_ are required.\n\n\n.. code-block:: bash\n\n    # on dev/test env\n    $ pip install -r requirements/dev.txt\n\n\nTests\n-----\n\n`Tox \u003chttps://pypi.org/project/tox/\u003e`_ is most convenient to run tests with, since it handles virtualenvs\n\n.. code-block:: bash\n\n    $ tox\n\nOr when development dependencies are installed (preferably with a virtual environment),\ntests can be run by directly calling `pytest`.\n\n.. code-block:: bash\n\n    $ pytest\n\n\nLicense\n=======\nMiniAuth is an open source project released under the terms of MIT license.\n\nThe MIT License (MIT)\n\nCopyright (c) 2018-2019 Farzad Ghanei\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzadghanei%2Fminiauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarzadghanei%2Fminiauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzadghanei%2Fminiauth/lists"}