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.0.tar.gz (5.0 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.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: backupchan_presets-0.4.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for backupchan_presets-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a229a3a306534a5202707c1901bfaf888b66120670fffa0ab931791b37ca3340
MD5 1c055fc1675aa045667c6a0e96ef1279
BLAKE2b-256 f93b1465b6227ec3c17c906d815955ee75b6b27d55a3852b5edc38db16f4711c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backupchan_presets-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c84bbb64aea5008bfd5c16b7831818662d441fefd5554a3833195a8e78a5287
MD5 836dbac2a0afa273589f8165b6b61280
BLAKE2b-256 7c2a19a91726f75e275f00862faa137cbea2485450d774b0e6e4645efc606034

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