Skip to main content

JSON Schema validation and environment variable loading for baqup agent configuration

Project description

baqup-schema

JSON Schema validation and environment variable loading for baqup agent configuration.

⚠️ This is a placeholder package. Full implementation coming soon.

What is baqup?

baqup is a container-native backup orchestration system. It uses a controller-agent architecture where:

  • The controller discovers workloads via Docker labels
  • Agents perform backup/restore operations
  • Configuration is defined via JSON Schema

This package provides schema validation for agent configuration, used by both:

  • Agents (to validate their own configuration at startup)
  • Controller (to pre-flight validate before spawning agents)

Planned Features

  • JSON Schema validation (draft-2020-12)
  • Environment variable loading with type coercion
  • Custom format validators (path, hostname, etc.)
  • Conditional validation support

Installation

pip install baqup-schema

Usage (Preview API)

from baqup_schema import load_from_env, validate

# Load and validate from environment variables
config = load_from_env("agent-schema.json")

# Or validate an existing dict
result = validate(schema, config_dict)
if not result.valid:
    for error in result.errors:
        print(f"{error.path}: {error.message}")

Related Packages

Package Description
baqup-schema Schema validation (this package)
baqup-agent Agent SDK for Python

Links

License

Fair Source License - see LICENSE for details.

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

baqup_schema-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

baqup_schema-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file baqup_schema-0.0.1.tar.gz.

File metadata

  • Download URL: baqup_schema-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for baqup_schema-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9c82a433cbfff6407e8c10ba94bd6ce52c6dcbb57b75e4a8d874f7c97c20987f
MD5 15be3774bf9a58117104d184070e1466
BLAKE2b-256 ea386bf169e2dfad32024c5605737c5ebb0bfea1ac3a8bf8131b204e8689fda2

See more details on using hashes here.

File details

Details for the file baqup_schema-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: baqup_schema-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for baqup_schema-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97388e044bd6d697aeb6aaf44560debd48fb010492f8c46d5df86482631869f1
MD5 630c130551e73730ab5082769df14333
BLAKE2b-256 3d62ca40a66062fc4ea93fec18e5f4304271cb82ce38642ff468a322849e1882

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