Debian Codegraph @

src/borgstore.egg-info/PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: borgstore
3 Version: 0.7.0
4 Summary: key/value store
5 Author-email: Thomas Waldmann <[email protected]>
6 License-Expression: BSD-3-Clause
7 Project-URL: Homepage, https://github.com/borgbackup/borgstore
8 Keywords: kv,key/value,store
9 Classifier: Development Status :: 3 - Alpha
10 Classifier: Intended Audience :: Developers
11 Classifier: Operating System :: POSIX
12 Classifier: Programming Language :: Python
13 Classifier: Programming Language :: Python :: 3
14 Classifier: Programming Language :: Python :: 3.11
15 Classifier: Programming Language :: Python :: 3.12
16 Classifier: Programming Language :: Python :: 3.13
17 Classifier: Programming Language :: Python :: 3.14
18 Classifier: Programming Language :: Python :: 3.15
19 Classifier: Topic :: Software Development :: Libraries
20 Classifier: Topic :: Software Development :: Libraries :: Python Modules
21 Requires-Python: >=3.11
22 Description-Content-Type: text/x-rst
23 License-File: LICENSE.rst
24 Provides-Extra: rest
25 Requires-Dist: requests>=2.25.1; extra == "rest"
26 Provides-Extra: rclone
27 Requires-Dist: requests>=2.25.1; extra == "rclone"
28 Provides-Extra: sftp
29 Requires-Dist: paramiko>=1.9.1; extra == "sftp"
30 Provides-Extra: s3
31 Requires-Dist: boto3; extra == "s3"
32 Provides-Extra: blake3
33 Requires-Dist: blake3>=1.0; sys_platform != "win32" and extra == "blake3"
34 Requires-Dist: blake3!=1.0.9,>=1.0; sys_platform == "win32" and extra == "blake3"
35 Provides-Extra: none
36 Dynamic: license-file
37
38 BorgStore
39 =========
40
41 borgstore implements a general purpose key/value store in Python.
42
43 Overview
44 --------
45
46 Keys are simple strings like `config/main` or `data/0123456789abcdef` `[str]`
47 (config and data are namespaces here). Values are binary objects `[bytes]` -
48 when storing, a `memoryview` is accepted as well, so callers can avoid copying.
49
50 The `Store` class is the high-level API, so you can comfortably work with the
51 kv store without caring for low-level details.
52
53 The `backends` package has misc. storage backend implementations.
54
55 The `server` package has a REST server implementation, complementing the REST
56 client functionality in the `rest` backend. To actually store stuff, the REST server
57 can use any backend internally, e.g. the `posixfs` backend.
58
59 Store features
60 --------------
61
62 - supports URLs, like `file:///srv/borgstore` or `https://myserver/path`
63 - easy to use, high-level `Store` API: create/destroy, open/close, list,
64 load/store, delete, move, soft delete/undelete, hash, defrag, ...
65 - uses a backend to implement the storage
66 - optionally uses an additional caching backend, with a configurable cache
67 policy per namespace
68 - name nesting / unnesting, recursive directory listing
69 - statistics collection
70 - latency/bandwidth emulator
71
72 Backend features
73 ----------------
74
75 - existing backends for local filesystem, sftp, REST, S3 / B2 (native) and
76 many other cloud storage protocols via rclone
77 - new backends are simple to implement
78 - key validation
79 - partial loads / range requests
80 - stored object hashing (hashlib algorithms, e.g. sha256, and optionally blake3)
81 - stored object defragmentation
82 - quota support (only `posixfs`)
83 - permissions checking (only `posixfs`)
84
85 REST server features
86 --------------------
87
88 - server-side permissions/quota enforcement
89 - server-side hashsum check of transferred objects before storing
90 - network traffic optimization by doing stuff server-side:
91
92 - stored object hashing
93 - stored object defragmentation
94 - the REST server can internally use any backend for storage, e.g. `posixfs`
95 - for the REST server, we provide CI tested configs for:
96
97 - an nginx-based reverse proxy
98 - systemd-based on-demand `borgstore.server` process creation
99
100 State of this project
101 ---------------------
102
103 **API is still unstable and expected to change as development goes on.**
104
105 **As long as the API is unstable, there will be no data migration tools,
106 such as tools for upgrading an existing store's data to a new release.**
107
108 There are tests, and they pass for the basic functionality, so some functionality is already working well.
109
110 There might be missing features or optimization potential. Feedback is welcome!
111
112 Many possible backends are still missing. If you want to create and support one, pull requests are welcome.
113
114 Borg?
115 -----
116
117 Please note that this code is currently **not** used by the stable release of
118 BorgBackup (also known as "borg"), but only by Borg 2 beta 10+ and the master branch.