{"id":13683072,"url":"https://github.com/hargoniX/keepassxc-proxy-client","last_synced_at":"2025-04-30T12:33:15.200Z","repository":{"id":44920841,"uuid":"300759454","full_name":"hargoniX/keepassxc-proxy-client","owner":"hargoniX","description":"A client for keepassxc-proxy so passwords can easily be requested via CLI","archived":false,"fork":false,"pushed_at":"2023-09-14T21:53:55.000Z","size":39,"stargazers_count":31,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-10T01:03:26.682Z","etag":null,"topics":["cli","crypto","keepassxc","password","python"],"latest_commit_sha":null,"homepage":"https://github.com/hargoniX/keepassxc-proxy-client","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hargoniX.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}},"created_at":"2020-10-02T23:43:49.000Z","updated_at":"2024-08-03T00:01:08.000Z","dependencies_parsed_at":"2024-04-28T00:31:03.332Z","dependency_job_id":"11acd63a-f7ff-4a28-a5b7-9fb259a281d5","html_url":"https://github.com/hargoniX/keepassxc-proxy-client","commit_stats":{"total_commits":17,"total_committers":4,"mean_commits":4.25,"dds":0.5294117647058824,"last_synced_commit":"901a64fb4da2ec458447fff269359d9da909cf28"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hargoniX%2Fkeepassxc-proxy-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hargoniX%2Fkeepassxc-proxy-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hargoniX%2Fkeepassxc-proxy-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hargoniX%2Fkeepassxc-proxy-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hargoniX","download_url":"https://codeload.github.com/hargoniX/keepassxc-proxy-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224211912,"owners_count":17274342,"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","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":["cli","crypto","keepassxc","password","python"],"created_at":"2024-08-02T13:01:59.564Z","updated_at":"2024-11-12T03:30:16.258Z","avatar_url":"https://github.com/hargoniX.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# keepassxc_proxy_client\n\nA small library as well as CLI tool to fetch information from a running keepassxc instance.\n\n## CLI\n\nSee `keepassxc_proxy_client --help` for usage.\n\n## Library\n\nYou can use it like this:\n```python\nimport keepassxc_proxy_client\nimport keepassxc_proxy_client.protocol\n\nconnection = keepassxc_proxy_client.protocol.Connection()\nconnection.connect()\nprint(connection.get_databasehash())\n# This will open a keepassxc dialogue\nprint(connection.associate())\nprint(connection.test_associate())\nprint(connection.dump_associate())\nprint(connection.get_logins(\"https://github.com\"))\n```\nPlease always use a URL with http or https for retreiving logins, otherwise no logins will be found.\nYou can use `connection.get_logins(\"https://github.com\")` when you actually stored URL just as \"github.com\" \nwithin KeepassXC. This will work. \nHowever it won't work using get_logins(\"github.com\") even if you have stored URL as \"github.com\".\n\nTo connect and retreive logins from KeepassXC Browser integration has to be enabled in settings. \nCheckboxes for different Browser don't need to be checked. Enabled browser integration is enough \nfor keepassxc_proxy_client to work.\n\n\nIf you want to dump and later read in the associate information you can do this\nas follows:\n\n```python\nimport keepassxc_proxy_client\nimport keepassxc_proxy_client.protocol\n\nconnection = keepassxc_proxy_client.protocol.Connection()\nconnection.connect()\nconnection.associate()\nname, public_key = connection.dump_associate()\nprint(\"Got connection named '\", name, \"' with key\", public_key)\n# save it and read it in again for later\n\n#Later usage\n\nconnection = keepassxc_proxy_client.protocol.Connection()\nconnection.connect()\nconnection.load_associate(name, public_key)\nprint(connection.test_associate())\n```\n\nIt is recommended to store the private key in a secure location since it basically acts\nas a key file to all your passwords that are associated with a URL, since get_logins() can only fetch\npasswords that are associated with one.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FhargoniX%2Fkeepassxc-proxy-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FhargoniX%2Fkeepassxc-proxy-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FhargoniX%2Fkeepassxc-proxy-client/lists"}