Skip to main content

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)

Source distribution for backupchan-presets 0.4.1
File Size Uploaded
backupchan_presets-0.4.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backupchan-presets 0.4.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page