{ "info": { "author": "WAKAYAMA Shirou", "author_email": "shirou.faw@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License (GPL)", "Topic :: Security", "Topic :: Utilities" ], "description": "=====================================\r\nkptool: KeePass v1 DB tool\r\n=====================================\r\n\r\n-------------------------\r\nWhat's this\r\n-------------------------\r\n\r\nKeePass version 1 database file access tool that includes access\r\nmodule.\r\n\r\nCurrently, support search the entries or groups as the command line\r\ntool.\r\n\r\n-------------------------\r\nHow to Use\r\n-------------------------\r\n\r\nExample:\r\n\r\n::\r\n\r\n % python kptool.py \r\n password required\r\n kptool> Ent\r\n Entry2:\r\n pass : entry\r\n modified: 2010-10-01 22:01:02\r\n Entry1:\r\n url : URL\r\n pass : testtest\r\n modified: 2010-09-26 13:18:13\r\n kptool> ^D\r\n\r\n-------------------------\r\nBuilding and installation\r\n-------------------------\r\n\r\n % python setup.py install\r\n\r\n-------------------------\r\nTesting\r\n-------------------------\r\n\r\n % python setup.py test\r\n\r\n-------------------------\r\nRequirement\r\n-------------------------\r\n\r\n- Python 2.6 or later\r\n- pyCrypto\r\n- argparse\r\n\r\n-------------------------\r\nKeePassdb module API\r\n-------------------------\r\n\r\nConstructor(kdbfilepath, masterpassword)\r\n Create DB from KeePass DB file path and Master password.\r\n\r\n >>> from kptool.keepassdb import keepassdb\r\n >>> password = \"Hogehoge\"\r\n >>> k = keepassdb.KeepassDBv1(\"tests/keepass-test.kdb\", password)\r\n\r\nget_groups()\r\n Get groups.\r\n\r\n >>> for g in k.get_groups():\r\n ... if ('groups' in g):\r\n ... \"%s %s in %s\" % (g['title'], g['group_id'], g['groups'])\r\n ... else: \r\n ... \"%s %s\" % (g['title'], g['group_id'])\r\n 'Group1 2877859699'\r\n 'SubGroup1 1203768070 in 2877859699'\r\n 'Group2 2251441873'\r\n\r\nget_entries()\r\n Get entries. \r\n Note: KeepassDB has a history. get_entries() get all entries include\r\n history. Since that, entries that have same title may be acquired.\r\n\r\n >>> for e in k.get_entries():\r\n ... print \"%s %s %s\" % (e['title'], e['username'], e['created'])\r\n Entry2 entry2 2010-10-01 22:00:51\r\n SubGroup1 gr 2010-10-01 22:00:29\r\n Entry1 test 2010-09-26 13:17:55\r\n \u65e5\u672c\u8a9e\u3067\u3059 sub 2010-10-01 21:59:33\r\n Meta-Info SYSTEM 2010-10-01 22:01:04\r\n\r\nget_entries_from_groupid(groupid)\r\n Get entries from groupid. Groupid should be Integer.\r\n\r\n >>> for e in k.get_entries_from_groupid(2877859699):\r\n ... e['title']\r\n 'Entry1'\r\n 'Meta-Info'\r\n\r\nfind_groups(searchword)\r\n Find groups that has in title or id.\r\n \r\n >>> for g in k.find_groups(\"up1\"):\r\n ... g['title']\r\n 'Group1'\r\n 'SubGroup1'\r\n\r\nfind_entries(searchword)\r\n Find entries that has in title, url, comment or username.\r\n\r\n >>> for e in k.find_entries(\"Ent\"):\r\n ... e['title']\r\n 'Entry2'\r\n 'Entry1'\r\n\r\nclear()\r\n Clears any currently loaded groups and entries in the database.\r\n\r\n >>> k.clear()\r\n >>> k.get_entries()\r\n []\r\n >>> k.get_groups()\r\n []\r\n\r\n*******************\r\nEntry Field Lists\r\n*******************\r\n\r\n:id: entry id. String.\r\n:group_id: group id. Integer.\r\n:icon: icon Integer.\r\n:title: title. ASCII or UTF-8\r\n:url: url\r\n:username: username \r\n:password: password\r\n:comment: comment. ASCII or UTF-8.\r\n:created: created date. Datetime object.\r\n:modifed: modified date. Datetime object.\r\n:accessed: accessed date. Datetime object.\r\n:expires: \r\n expires date. Datetime object.\r\n if \"never\", shows 2999-12-28 23:59:59.\r\n:bin_desc:\r\n:binary:\r\n\r\n*******************\r\nGroup Field Lists\r\n*******************\r\n:group_id: group id. Integer.\r\n:title: title\r\n:icon: icon\r\n:level: level. start from 0.\r\n:comment: comment.\r\n\r\n-------------------------\r\nBUGS\r\n-------------------------\r\n\r\n- Only Rijndael is supported.\r\n- Only passkeys are supported (no key files).\r\n- Only read methods is supported.\r\n\r\n-------------------------\r\nTODO\r\n-------------------------\r\n\r\n- Write methods.\r\n- KeePass db version 2 support.\r\n\r\n-------------------------\r\nLicense\r\n-------------------------\r\n\r\nGPL version2\r\n\r\n-------------------------\r\nAcknowledgement\r\n-------------------------\r\n\r\nKnowledge about the KeePass DB v1 format was gleaned from the source\r\ncode of keepassx-0.4.3 and File::KeePass in the CPAN.\r\n\r\nKeePassX 0.4.3 bears the copyright of\r\n\r\n Copyright (C) 2005-2008 Tarek Saidi \r\n Copyright (C) 2007-2009 Felix Geyer \r\n\r\nFile::KeePass bears the copyright of \r\n\r\n Paul Seamons ", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shirou/kptool", "keywords": "security,password", "license": "GPL v2", "maintainer": "", "maintainer_email": "", "name": "kptool", "package_url": "https://pypi.org/project/kptool/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/kptool/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/shirou/kptool" }, "release_url": "https://pypi.org/project/kptool/0.1dev/", "requires_dist": null, "requires_python": null, "summary": "Keepass v1 DB tool", "version": "0.1dev" }, "last_serial": 660601, "releases": { "0.1dev": [ { "comment_text": "", "digests": { "md5": "5b439d0e5dacbed3191ee79dc80f96b1", "sha256": "59edf95941ff381498f97ebaa5bb19a2a8fdb8f61b2e7ba9efabdf31ee53a715" }, "downloads": -1, "filename": "kptool-0.1dev.tar.gz", "has_sig": false, "md5_digest": "5b439d0e5dacbed3191ee79dc80f96b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20342, "upload_time": "2010-11-20T08:20:25", "url": "https://files.pythonhosted.org/packages/dc/cb/bb4f9049b8032aeb1564d3fb083a04abfe4d72353519b692f7910b1a2f7d/kptool-0.1dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b439d0e5dacbed3191ee79dc80f96b1", "sha256": "59edf95941ff381498f97ebaa5bb19a2a8fdb8f61b2e7ba9efabdf31ee53a715" }, "downloads": -1, "filename": "kptool-0.1dev.tar.gz", "has_sig": false, "md5_digest": "5b439d0e5dacbed3191ee79dc80f96b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20342, "upload_time": "2010-11-20T08:20:25", "url": "https://files.pythonhosted.org/packages/dc/cb/bb4f9049b8032aeb1564d3fb083a04abfe4d72353519b692f7910b1a2f7d/kptool-0.1dev.tar.gz" } ] }