Skip to main content

Presets library for Backup-chan.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backupchan_presets-0.4.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backupchan_presets-0.4.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file backupchan_presets-0.4.1.tar.gz.

File metadata

  • Download URL: backupchan_presets-0.4.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for backupchan_presets-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c8324278d7b62ce271712c48a7116c0cb32beeedef622d6e1d5dd80297c3fbd1
MD5 724c4cba554b82d3a8d701e038ee5d72
BLAKE2b-256 80f4eda1537c72bce010c26d5adfbe811903a7f9e9d34bb6e624244a685ba693

See more details on using hashes here.

File details

Details for the file backupchan_presets-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for backupchan_presets-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b6a1035464d2c71cb7f9ebbaab552bdce76aab6ff917cb157589e6c03179ab
MD5 5d9c96d1b1737542f67883d15ac21d1d
BLAKE2b-256 54114e8237036aa54d50dc8e8eb59fec23de3f8acc6dee4cc6586cd64d90475e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page