Skip to main content

No project description provided

Project description

keepassxc-protocol

Interaction protocol for KeePassXC GUI

(Not tested with Linux, but might work.)

Examples

Get logins:

from keepassxc_protocol import Connection

con = Connection()
con.associate() # Associate request for current ACTIVE database

response = con.get_logins("https://example.test") # Get ALL data for example.test. CAN be specified without http\https.
entry = response.entries[0] # First entry for example.test.

print(entry.group) # Output: "group2"
print(entry.login) # Output: "example_test_login"
print(entry.password) # Output: "example_test_password"
print(entry.name) # Output: "example_test"
print(entry.uuid) # Output: "4cbbe6a7efeb46458c5501e7203209e5"
print(entry.totp) # Output: "579423"

print(response.model_dump_json(indent=2))
# Output:
# {
#   "count": 1,
#   "nonce": "/r+xzDXU77NPZxA1CvHv/XWGFx2sgqXa",
#   "success": "true",
#   "hash": "8f1b004cbd837de560b9257b61443f9ae21ee24f4561c87b8f2bb3a6fa7627e0",
#   "version": "2.7.10",
#   "entries": [
#     {
#       "group": "group2",
#       "login": "example_test_login",
#       "name": "example_test",
#       "password": "example_test_password",
#       "uuid": "4cbbe6a7efeb46458c5501e7203209e5",
#       "stringFields": [],
#       "totp": "579423"
#     }
#   ]
# }

Save associates

from keepassxc_protocol import Connection

con = Connection()
con.associate() # Associate request for current ACTIVE database

associates = con.dump_associate_json() # Get ALL associates as json string

with open("associates.json", "w") as f:
    f.write(associates)

Load associates

from keepassxc_protocol import Connection

con = Connection()

with open("associates.json", "r") as f:
    associates = f.read()

con.load_associates_json(associates) # Load associates from json string.
                                     # This REPLACES the current associates if they exist.

response = con.get_logins("https://example.test") # Get ALL data for example.test.

Features

Actions (link):

  • ✅associate
  • ✅change-public-keys
  • ❌create-new-group
  • ❌generate-password
  • ✅get-database-gropus
  • ✅get-databasehash
  • ✅get-logins
  • ❎get-totp (deprecated? totp is available in get-logins)
  • ❌lock-database
  • ❌request-autotype
  • ❌set-login
  • ✅test-associate
  • ❌passkey-get
  • ❌passkey-register

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keepassxc_protocol-1.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keepassxc_protocol-1.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file keepassxc_protocol-1.1.0.tar.gz.

File metadata

  • Download URL: keepassxc_protocol-1.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keepassxc_protocol-1.1.0.tar.gz
Algorithm Hash digest
SHA256 334c3388929a538af90d0b1728dbb15d0036cc027bf84b020cadc3a33070f73b
MD5 4c4f7b3341b9fd4fb60170d66605835d
BLAKE2b-256 36a4f97f7558fd3203c0eaac13a18422647b8354900e1b23249c71f72e6dfb90

See more details on using hashes here.

File details

Details for the file keepassxc_protocol-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: keepassxc_protocol-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keepassxc_protocol-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ac279342f45419674c9d1061d8bcee1a19dcb8fd340aab6539d2c0917cac8b0
MD5 24cc0650c93206dc3788af557dc3f137
BLAKE2b-256 933d8d291c5faed343c50ff2c36001655166fb4d34f73ed5785c4e0f9445e11e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page