1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
|
From e6982699311bcee9130c87104ece87b63bda016b Mon Sep 17 00:00:00 2001
From: Falk Alexander Seidl <fa@terminal.run>
Date: Mon, 27 Aug 2018 22:37:38 +0200
Subject: [PATCH] Add egg info
---
pykeepass.egg-info/PKG-INFO | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pykeepass.egg-info/SOURCES.txt | 33 +++++++++++++++++++++++++++++++++
pykeepass.egg-info/dependency_links.txt | 1 +
pykeepass.egg-info/entry_points.txt | 6 ++++++
pykeepass.egg-info/requires.txt | 5 +++++
pykeepass.egg-info/top_level.txt | 3 +++
6 files changed, 308 insertions(+)
create mode 100755 pykeepass.egg-info/PKG-INFO
create mode 100755 pykeepass.egg-info/SOURCES.txt
create mode 100755 pykeepass.egg-info/dependency_links.txt
create mode 100755 pykeepass.egg-info/entry_points.txt
create mode 100755 pykeepass.egg-info/requires.txt
create mode 100755 pykeepass.egg-info/top_level.txt
diff --git a/pykeepass.egg-info/PKG-INFO b/pykeepass.egg-info/PKG-INFO
new file mode 100755
index 0000000..81c3591
--- /dev/null
+++ b/pykeepass.egg-info/PKG-INFO
@@ -0,0 +1,260 @@
+Metadata-Version: 1.0
+Name: pykeepass
+Version: 2.8.3
+Summary: Low-level library to interact with keepass databases (supports the v.4 format)
+Home-page: https://github.com/pschmitt/pykeepass
+Author: Philipp Schmitt
+Author-email: philipp@schmitt.co
+License: GPL3
+Description: pykeepass
+ ============
+
+ This library allows you to write entries to a KeePass database
+
+ Simple Example
+ --------------
+ .. code:: python
+
+ from pykeepass import PyKeePass
+
+ # load database
+ >>> kp = PyKeePass('db.kdbx', password='somePassw0rd')
+
+ # find any group by its name
+ >>> group = kp.find_groups(name='social', first=True)
+
+ # get the entries in a group
+ >>> group.entries
+ [Entry: "social/facebook (myusername)", Entry: "social/twitter (myusername)"]
+
+ # find any entry by its title
+ >>> entry = kp.find_entries(title='facebook', first=True)
+
+ # retrieve the associated password
+ >>> entry.password
+ 's3cure_p455w0rd'
+
+ # update an entry
+ >>> entry.notes = 'primary facebook account'
+
+ # create a new group
+ >>> group = kp.add_group(kp.root_group, 'email')
+
+ # create a new entry
+ >>> kp.add_entry(group, 'gmail', 'myusername', 'myPassw0rdXX')
+ Entry: "email/gmail (myusername)"
+
+ # save database
+ >>> kp.save()
+
+
+ Finding Entries
+ ----------------------
+
+ **find_entries** (title=None, username=None, password=None, url=None, notes=None, path=None, uuid=None, string=none, group=None, recursive=True, regex=False, flags=None, history=False, first=False)
+
+ Returns entries which match all provided parameters, where ``title``, ``username``, ``password``, ``url``, ``notes``, ``path`` and ``uuid`` are strings, ``string`` is a dict. This function has optional ``regex`` boolean and ``flags`` string arguments, which means to interpret search strings as `XSLT style`_ regular expressions with `flags`_.
+
+ .. _XSLT style: https://www.xml.com/pub/a/2003/06/04/tr.html
+ .. _flags: https://www.w3.org/TR/xpath-functions/#flags
+
+ The ``path`` string can be a direct path to an entry, or (when ending in ``/``) the path to the group to recursively search under.
+
+ The ``string`` dict allows for searching custom string fields. ex. ``{'custom_field1': 'custom value', 'custom_field2': 'custom value'}``
+
+ The ``group`` argument determines what ``Group`` to search under, and the ``recursive`` boolean controls whether to search recursively.
+
+ The ``history`` (default ``False``) boolean controls whether history entries should be included in the search results.
+
+ The ``first`` (default ``False``) boolean controls whether to return the first matched item, or a list of matched items.
+
+ * if ``first=False``, the function returns a list of ``Entry`` s or ``[]`` if there are no matches
+ * if ``first=True``, the function returns the first ``Entry`` match, or ``None`` if there are no matches
+
+ **entries**
+
+ a flattened list of all entries in the database
+
+ .. code:: python
+
+ >>> kp.entries
+ [Entry: "foo_entry (myusername)", Entry: "foobar_entry (myusername)", Entry: "social/gmail (myusername)", Entry: "social/facebook (myusername)"]
+
+ >>> kp.find_entries(title='gmail', first=True)
+ Entry: "social/gmail (myusername)"
+
+ >>> kp.find_entries(title='foo.*', regex=True)
+ [Entry: "foo_entry (myusername)", Entry: "foobar_entry (myusername)"]
+
+ >>> entry = kp.find_entries(title='foo.*', url='.*facebook.*', regex=True, first=True)
+ >>> entry.url
+ 'facebook.com'
+ >>> entry.title
+ 'foo_entry'
+
+ >>> group = kp.find_group(name='social', first=True)
+ >>> kp.find_entries(title='facebook', group=group, recursive=False, first=True)
+ Entry: "social/facebook (myusername)"
+
+ For backwards compatibility, the following function are also available:
+
+ **find_entries_by_title** (title, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_username** (username, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_password** (password, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_url** (url, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_notes** (notes, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_path** (path, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_uuid** (uuid, regex=False, flags=None, tree=None, history=False, first=False)
+
+ **find_entries_by_string** (string, regex=False, flags=None, tree=None, history=False, first=False)
+
+ Finding Groups
+ ----------------------
+
+ **find_groups** (name=None, path=None, uuid=None, notes=None, group=None, recursive=True, regex=False, flags=None, first=False)
+
+ where ``name``, ``path``, ``uuid`` and ``notes`` are strings. This function has optional ``regex`` boolean and ``flags`` string arguments, which means to interpret search strings as `XSLT style`_ regular expressions with `flags`_.
+
+ .. _XSLT style: https://www.xml.com/pub/a/2003/06/04/tr.html
+ .. _flags: https://www.w3.org/TR/xpath-functions/#flags
+
+ The ``path`` string must end in ``/``.
+
+ The ``group`` argument determines what ``Group`` to search under, and the ``recursive`` boolean controls whether to search recursively.
+
+ The ``first`` (default ``False``) boolean controls whether to return the first matched item, or a list of matched items.
+
+ * if ``first=False``, the function returns a list of ``Group`` s or ``[]`` if there are no matches
+ * if ``first=True``, the function returns the first ``Group`` match, or ``None`` if there are no matches
+
+ **root_group**
+
+ the ``Root`` group to the database
+
+ **groups**
+
+ a flattened list of all groups in the database
+
+ .. code:: python
+
+ >>> kp.groups
+ [Group: "foo", Group "foobar", Group: "social", Group: "social/foo_subgroup"]
+
+ >>> kp.find_groups(name='foo', first=True)
+ Group: "foo"
+
+ >>> kp.find_groups(name='foo.*', regex=True)
+ [Group: "foo", Group "foobar"]
+
+ >>> kp.find_groups(path='social/', regex=True)
+ [Group: "social", Group: "social/foo_subgroup"]
+
+ >>> kp.find_groups(name='social', first=True).subgroups
+ [Group: "social/foo_subgroup"]
+
+ >>> kp.root_group
+ Group: "/"
+
+ For backwards compatibility, the following functions are also available:
+
+ **find_groups_by_name** (name, tree=None, regex=False, flags=None, first=False)
+
+ **find_groups_by_path** (path, tree=None, regex=False, flags=None, first=False)
+
+ **find_groups_by_uuid** (uuid, tree=None, regex=False, flags=None, first=False)
+
+ **find_groups_by_notes** (notes, tree=None, regex=False, flags=None, first=False)
+
+
+ Adding Entries
+ --------------
+ **add_entry** (destination_group, title, username, password, url=None, notes=None, tags=None, expiry_time=None, icon=None, force_creation=False)
+
+ **delete_entry** (entry)
+
+ **move_entry** (entry, destination_group)
+
+ where ``destination_group`` is a ``Group`` instance. ``entry`` is an ``Entry`` instance. ``title``, ``username``, ``password``, ``url``, ``notes``, ``tags``, ``icon`` are strings. ``expiry_time`` is a ``datetime`` instance.
+
+ If ``expiry_time`` is a naive datetime object (i.e. ``expiry_time.tzinfo`` is not set), the timezone is retrieved from ``dateutil.tz.gettz()``.
+
+ .. code:: python
+
+ # add a new entry to the Root group
+ >>> kp.add_entry(kp.root_group, 'testing', 'foo_user', 'passw0rd')
+ Entry: "testing (foo_user)"
+
+ # add a new entry to the social group
+ >>> group = find_groups(name='social', first=True)
+ >>> entry = kp.add_entry(group, 'testing', 'foo_user', 'passw0rd')
+ Entry: "testing (foo_user)"
+
+ # save the database
+ >>> kp.save()
+
+ # delete an entry
+ >>> kp.delete_entry(entry)
+
+ # move an entry
+ >>> kp.move_entry(entry, kp.root_group)
+
+ # save the database
+ >>> kp.save()
+
+ Adding Groups
+ --------------
+ **add_group** (destination_group, group_name, icon=None, notes=None)
+
+ **delete_group** (group)
+
+ **move_group** (group, destination_group)
+
+ ``destination_group`` and ``group`` are instances of ``Group``. ``group_name`` is a string
+
+ .. code:: python
+
+ # add a new group to the Root group
+ >>> group = kp.add_group(kp.root_group, 'social')
+
+ # add a new group to the social group
+ >>> group2 = kp.add_group(group, 'gmail')
+ Group: "social/gmail"
+
+ # save the database
+ >>> kp.save()
+
+ # delete a group
+ >>> kp.delete_group(group)
+
+ # move a group
+ >>> kp.move_group(group2, kp.root_group)
+
+ # save the database
+ >>> kp.save()
+
+ Miscellaneous
+ -------------
+ **read** (filename, password=None, keyfile=None)
+
+ where ``filename``, ``password``, and ``keyfile`` are strings. ``filename`` is the path to the database, ``password`` is the master password string, and ``keyfile`` is the path to the database keyfile. At least one of ``password`` and ``keyfile`` is required.
+
+ **save** (filename=None)
+
+ where ``filename`` is the path of the file to save to. If ``filename`` is not given, the path given in ``read`` will be used.
+
+ **set_credentials** (password=None, keyfile=None)
+
+ clear current database credentials and set to the ones given. ``password`` and ``keyfile`` are strings. At least one of ``password`` and ``keyfile`` is required
+
+ Tests
+ -------------
+
+ To run them issue :code:`$ python tests/tests.py`
+
+Platform: UNKNOWN
diff --git a/pykeepass.egg-info/SOURCES.txt b/pykeepass.egg-info/SOURCES.txt
new file mode 100755
index 0000000..4802dfb
--- /dev/null
+++ b/pykeepass.egg-info/SOURCES.txt
@@ -0,0 +1,33 @@
+pykeepass.egg-info/top_level.txt
+pykeepass.egg-info/PKG-INFO
+pykeepass.egg-info/SOURCES.txt
+pykeepass.egg-info/entry_points.txt
+pykeepass.egg-info/dependency_links.txt
+pykeepass.egg-info/requires.txt
+pykeepass/__init__.py
+pykeepass/group.py
+pykeepass/kdbx_parsing/__init__.py
+pykeepass/kdbx_parsing/pytwofish.py
+pykeepass/kdbx_parsing/twofish.py
+pykeepass/kdbx_parsing/kdbx.py
+pykeepass/kdbx_parsing/kdbx4.py
+pykeepass/kdbx_parsing/common.py
+pykeepass/kdbx_parsing/kdbx3.py
+pykeepass/entry.py
+pykeepass/icons.py
+pykeepass/baseelement.py
+pykeepass/pykeepass.py
+README.rst
+tests/__init__.py
+tests/test3.key
+tests/test4_twofish.kdbx
+tests/test4_aes.kdbx
+tests/tests.py
+tests/test.kdbx
+tests/change.key
+tests/test4.kdbx
+tests/test4.key
+tests/test4_chacha20.kdbx
+tests/test3.kdbx
+tests/test.key
+setup.py
diff --git a/pykeepass.egg-info/dependency_links.txt b/pykeepass.egg-info/dependency_links.txt
new file mode 100755
index 0000000..8b13789
--- /dev/null
+++ b/pykeepass.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/pykeepass.egg-info/entry_points.txt b/pykeepass.egg-info/entry_points.txt
new file mode 100755
index 0000000..8a6aa3f
--- /dev/null
+++ b/pykeepass.egg-info/entry_points.txt
@@ -0,0 +1,6 @@
+[console_scripts]
+pkpwrite = pykeepass.pkpwrite:main
+
+[kdbx_parsing]
+pkpwrite = pykeepass.kdbx_parsing.pkpwrite:main
+
diff --git a/pykeepass.egg-info/requires.txt b/pykeepass.egg-info/requires.txt
new file mode 100755
index 0000000..5ce7025
--- /dev/null
+++ b/pykeepass.egg-info/requires.txt
@@ -0,0 +1,5 @@
+python-dateutil
+construct
+argon2_cffi
+pycryptodome
+lxml
diff --git a/pykeepass.egg-info/top_level.txt b/pykeepass.egg-info/top_level.txt
new file mode 100755
index 0000000..3383ffd
--- /dev/null
+++ b/pykeepass.egg-info/top_level.txt
@@ -0,0 +1,3 @@
+pykeepass
+pykeepass/kdbx_parsing
+tests
--
libgit2 0.27.2
|