-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathsetup.py
72 lines (48 loc) · 1.77 KB
/
setup.py
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
"""
pickleDB
--------
pickleDB is lightweight, fast, and simple database based on the orjson module. And it's BSD licensed!
pickleDB is Fun
```````````````
::
>>> from pickledb import PickleDB
>>> db = PickleDB('test.db')
>>> db.set('key', 'value')
>>> db.get('key')
'value'
>>> db.save()
True
And Easy to Install
```````````````````
::
$ pip install pickledb
Links
`````
* `Website <https://patx.github.io/pickledb>`_
* `Github Repo <https://github.com/patx/pickledb>`_
Key Improvements in Version 1.0
```````````````````````````````
* pickleDB 1.0 is a reimagined version designed for speed, simplicity, and reliability. This version is NOT backwards compatible. Key changes include:
* Atomic Saves: Ensures data integrity during writes, eliminating potential corruption issues.
* Faster Serialization: Switched to `orjson` for significantly improved speed.
* Streamlined API: Removed legacy methods (e.g., `ladd`, `dmerge`) in favor of native Python operations.
* Unified Handling of Data Types: Treats all Python-native types (lists, dicts, etc.) as first-class citizens.
* Explicit Saves: The `auto_save` feature was removed to provide users greater control and optimize performance.
"""
from distutils.core import setup
setup(name="pickleDB",
version="1.1.1",
description="A lightweight and simple database using json.",
long_description=__doc__,
author="Harrison Erd",
author_email="[email protected]",
license="three-clause BSD",
url="http://github.com/patx/pickledb",
classifiers = [
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Database" ],
py_modules=['pickledb'],
install_requires=['orjson'],
)