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
- Source & tests:
autoconf/,test_autoconf/ - Agent/contributor instructions:
AGENTS.md - Ecosystem: PyAutoLabs on GitHub
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoconf-2026.6.25.641.tar.gz.
File metadata
- Download URL: autoconf-2026.6.25.641.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
549e901daf0db4c59665df3432b773187ec3f538754db92ee53c08ded36a3716
|
|
| MD5 |
ec79ba00587c64cc4b13d13437016467
|
|
| BLAKE2b-256 |
a12d452c0d1fcfffb98cab6d1693878b7a0415253847e286b884e0518373f9b1
|
File details
Details for the file autoconf-2026.6.25.641-py3-none-any.whl.
File metadata
- Download URL: autoconf-2026.6.25.641-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
975b98877658493dda088f9a7c8054dc092b28efdbf2df7f39f0a81cb5ba3a0b
|
|
| MD5 |
86013cb8f72a2547575d82df881adec3
|
|
| BLAKE2b-256 |
d817b814ef2b1ab2cbc90dd883714bfaf98a6e2a1d9f367ed124d617d0112c3b
|