{"id":21388385,"url":"https://github.com/robinvandernoord/2fas-python","last_synced_at":"2026-03-06T15:03:41.483Z","repository":{"id":232593958,"uuid":"744615460","full_name":"robinvandernoord/2fas-python","owner":"robinvandernoord","description":"Unofficial implementation to run .2fas files locally via Python","archived":false,"fork":false,"pushed_at":"2026-01-14T10:12:27.000Z","size":170,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T14:21:31.005Z","etag":null,"topics":["2fas","cli","python"],"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/robinvandernoord.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-17T16:58:06.000Z","updated_at":"2026-01-14T10:12:29.000Z","dependencies_parsed_at":"2025-04-15T20:33:51.306Z","dependency_job_id":"643a0e4d-40cd-4d80-89b3-4f573db9d8ef","html_url":"https://github.com/robinvandernoord/2fas-python","commit_stats":null,"previous_names":["robinvandernoord/2fas-python"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/robinvandernoord/2fas-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2F2fas-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2F2fas-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2F2fas-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2F2fas-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinvandernoord","download_url":"https://codeload.github.com/robinvandernoord/2fas-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2F2fas-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30182686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"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":["2fas","cli","python"],"created_at":"2024-11-22T12:16:58.985Z","updated_at":"2026-03-06T15:03:41.461Z","avatar_url":"https://github.com/robinvandernoord.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2fas Python\n\n2fas-python is an unofficial implementation\nof [2FAS - the Internet’s favorite open-source two-factor authenticator](https://2fas.com).\nIt consists of a core library in Python and a CLI tool.\n\n## Installation\n\nTo install this project, use pip or pipx:\n\n```bash\npip install 2fas\n# or:\npipx install 2fas\n```\n\n## Usage\n\nTo see all available options, you can run:\n\n```bash\n2fas --help\n```\n\nIf you simply run `2fas` or `2fas /path/to/file.2fas`, an interactive menu will show up.\nIf you only want a specific TOTP code, you can run `2fas \u003cservice\u003e` or `2fas /path/to/file.2fas \u003cservice\u003e`.\nMultiple services can be specified: `2fas \u003cservice1\u003e \u003cservice2\u003e [/path/to/file.2fas]`.\nFuzzy matching is applied to (hopefully) catch some typo's.\nYou can run `2fas --all` to generate codes for all TOTP in your `.2fas` file.\n\n### Settings\n\n```bash\n# see all settings:\n2fas --settings # shortcut: -s\n# see a specific setting:\n2fas --setting key\n# update a setting:\n2fas --setting key value\n```\n\nThe `--settings`, `--setting` or `-s` flag can be used to read/write settings.\nThis can also be done from within the interactive menu.\n`2fas` cli settings are stored in `~/.config/2fas.toml` and contains the following settings:\n\n```toml\n[tool.2fas]\nfiles = [\n    \"/some/path/to/file.2fas\",\n    ... # list of known files, used by 'set default file' in the settings menu\n]\ndefault_file = \"/some/path/to/file.2fas\" # which file to use when no .2fas file was explicitly passed?\nauto_verbose = true # run every command as if --verbose was passed?\n\n```\n\n### As a Library\n\nPlease see the documentation of [lib2fas-python](https://github.com/robinvandernoord/lib2fas-python) for more details on\nusing this as a Python library.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinvandernoord%2F2fas-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinvandernoord%2F2fas-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinvandernoord%2F2fas-python/lists"}