Backup-chan presets
This is a library for creating presets for backups. A preset allows to define the destination target and what file on the system to upload, under a unique name.
Installing
# The easy way
pip install backupchan-presets
# Installing from source
git clone https://github.com/Backupchan/presets.git backupchan-presets
cd backupchan-presets
pip install .
Testing
pytest
Example usage
from backupchan_presets import Presets
from backupchan import API
api = API("host", 8000, "api-key")
# Create a new preset.
presets = Presets()
presets.add("myPreset", "00000000-0000-0000-0000-000000", "/home/me/Documents/stuff")
presets.save() # Save it into the configuration file.
presets["myPreset"].upload(api, False)
# Or load existing presets from a file.
presets.load()
presets["anotherPreset"].upload(api, False)
Metadata
Release files for backupchan-presets 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| backupchan_presets-0.4.1.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backupchan_presets-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / backupchan_presets-0.4.1.tar.gz
| Download URL | backupchan_presets-0.4.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8324278d7b62ce271712c48a7116c0cb32beeedef622d6e1d5dd80297c3fbd1
|
|
BLAKE2b-256 checksum How to use checksums |
80f4eda1537c72bce010c26d5adfbe811903a7f9e9d34bb6e624244a685ba693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / backupchan_presets-0.4.1-py3-none-any.whl
| Download URL | backupchan_presets-0.4.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3b6a1035464d2c71cb7f9ebbaab552bdce76aab6ff917cb157589e6c03179ab
|
|
BLAKE2b-256 checksum How to use checksums |
54114e8237036aa54d50dc8e8eb59fec23de3f8acc6dee4cc6586cd64d90475e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|