Skip to main content

Backup-chan client configuration

This is the module responsible for the client-side connection configuration.

Installing

# The easy way
pip install backupchan-client-config

# Installing from source
git clone https://github.com/Backupchan/client-config.git backupchan-client-config
cd backupchan-client-config
pip install .

Usage

from backupchan_config import *

# Uses the default config path if no argument is passed.
# Use Config("/path/to/config.json") to use a custom config path.
config = Config()

try:
    config.read_config()
except ConfigException:
    config.reset()

# Write a new config.
config.host = "http://127.0.0.1"
config.port = 5000
config.api_key = "bakch-123456etc"
config.save_config()

# Use it to connect to the API.
form backupchan import API
api = API(config.host, config.port, config.api_key)
print(api.list_targets())

Metadata

Release files for backupchan-client-config 0.1.3

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-client-config 0.1.3
File Size Uploaded
backupchan_client_config-0.1.3.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backupchan-client-config 0.1.3
File Interpreter ABI Platform
backupchan_client_config-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / backupchan_client_config-0.1.3.tar.gz

Download URL backupchan_client_config-0.1.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
801297e66939d89a2e3fbbf18e0b97fd5c0d8db02d0d9329497a53d3ec9b4a77
BLAKE2b-256 checksum
How to use checksums
b8a279249e748f33ad45b3398ab77a9522ace4cd0c72586ecb876544d4d2ae9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / backupchan_client_config-0.1.3-py3-none-any.whl

Download URL backupchan_client_config-0.1.3-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ec0501954ef6642d56ae8285315c110e9f727cf992dae217b0391311016110a
BLAKE2b-256 checksum
How to use checksums
e3710803b2f748f0e10196c9f60d568a6166ec0e8f3e6ad4ff73fb56fa6d4286
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.1.3 This release

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