Skip to main content

PyAuto Configration

Project description

PyAutoConf

PyAutoConf (package autoconf) is the configuration, serialization, and I/O foundation of the PyAuto ecosystem. It provides a layered configuration system with workspace overrides, dict / JSON / CSV serialization of arbitrary objects, and FITS I/O.

PyAutoFit, PyAutoArray, PyAutoGalaxy, and PyAutoLens all depend on autoconf: it supplies their packaged default config, the object-serialization used to persist models and results, and shared utilities (test_mode, jax_wrapper). Centralising these here keeps a single, consistent config and I/O layer beneath every library.

Install

pip install autoconf

Examples

Layered config — read a directory of YAML into a queryable Config:

from autoconf.conf import Config

config = Config("path/to/config")          # directory of YAML files
value = config["general"]["model"]["section"]["value"]

JSON serialization — round-trip arbitrary Python objects:

from autoconf.dictable import output_to_json, from_json

data = {"sersic_index": 4.0, "centre": [0.0, 0.0]}
output_to_json(data, "model.json")
restored = from_json("model.json")         # == data

FITS I/O — write and read a NumPy array:

import numpy as np
from autoconf.fitsable import output_to_fits, ndarray_via_fits_from

arr = np.arange(12.0).reshape(3, 4)
output_to_fits(values=arr, file_path="demo.fits", overwrite=True)
loaded = ndarray_via_fits_from(file_path="demo.fits", hdu=0)   # np.allclose(arr, loaded)

Links

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

autoconf-2026.7.6.649.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

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

autoconf-2026.7.6.649-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file autoconf-2026.7.6.649.tar.gz.

File metadata

  • Download URL: autoconf-2026.7.6.649.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.13

File hashes

Hashes for autoconf-2026.7.6.649.tar.gz
Algorithm Hash digest
SHA256 cba75c47c307192dc687b6c68bfc2e285f5818c98f2f4c004df097b48473814f
MD5 22d91807e231e58c397c846add71b5b9
BLAKE2b-256 1b3014087940207e75b7726d175ff20d7cc3d5431e30a7313962be04f9f91226

See more details on using hashes here.

File details

Details for the file autoconf-2026.7.6.649-py3-none-any.whl.

File metadata

File hashes

Hashes for autoconf-2026.7.6.649-py3-none-any.whl
Algorithm Hash digest
SHA256 cadeb8d26506b34b71640a5e33700137e071ec6971d22fde7e507bd67f69c9b9
MD5 0fb3e0e04635d66e539b06227900c271
BLAKE2b-256 be55f6ccb0a2243fad6295b3766b7a7aff0a37762d70abbf09cdc7ebced13428

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