Skip to main content

PyAutoConf

🧬 PyAutoScientist → https://github.com/PyAutoLabs/PyAutoScientist — this repo is one organ of the PyAuto organism.

📖 Full documentation → https://pyautoscientist.readthedocs.io — the whole PyAutoScientist organism, including how to fork and run your own.

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. Within the PyAutoScientist organism it is the Nerves — the layer connecting the workspace's conventions to 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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: autoconf-2026.7.15.1.tar.gz
  • Upload date:
  • Size: 44.1 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.15.1.tar.gz
Algorithm Hash digest
SHA256 9ad1d542108aa9c22e9c4755b3897044426d60ac1abedfaf990b8ff523995004
MD5 239bb8a53e25fcbee94b09d77a3b3c9b
BLAKE2b-256 ccd9e9835d8ad9a174f013052442380bb1eb5bfd33a05b06232dcb310c3e8ad2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autoconf-2026.7.15.1-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.13

File hashes

Hashes for autoconf-2026.7.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8107de15f8c1fea7eb3c5effe8eae6fcf40d1f35724598a994c14799a7e85843
MD5 a4d5f2750940d6650d7c1a94784be1e9
BLAKE2b-256 417f7bf1c1f255e5eb23ebd03294b8a8ef78ff278645bace4d94011486fc927c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.7.15.1 This release

2 files

2026.7.9.1

2 files

2026.5.29.4

2 files

2026.5.21.1

2 files

2026.5.14.2

2 files

2026.5.8.2

2 files

2026.5.8.1

2 files

2026.5.1.4

2 files

2026.4.13.6

2 files

2026.4.13.5

2 files

2026.4.13.3

2 files

2026.4.5.3

2 files

2026.2.26.4

2 files

2026.2.26.3

2 files

2026.1.21.3

2 files

2025.12.21.1

2 files

2025.12.15.2

2 files

2025.12.15.1

2 files

2025.11.29.3

2 files

2025.11.18.1

2 files

2025.11.5.1

2 files

2025.10.21.1

2 files

2025.10.20.5

2 files

2025.10.20.4

2 files

2025.10.20.2

2 files

2025.10.20.1

2 files

2025.10.16.2

2 files

2025.10.16.1

2 files

2025.5.10.1

2 files

2025.5.9.48

2 files

2025.5.9.36

2 files

2025.5.9.29

2 files

2025.5.9.28

2 files

2025.5.9.11

2 files

2025.5.7.16

2 files

2025.1.18.7

2 files

2024.11.13.2

2 files

2024.11.6.1

2 files

2024.9.21.2

2 files

2024.9.21.1

2 files

2024.7.16.1

2 files

2024.5.16.0

2 files

2024.1.27.4

2 files

2023.10.23.3

2 files

2023.10.23.2

2 files

2023.9.18.4

2 files

2023.7.5.2

2 files

2023.6.18.3

2 files

2023.6.12.5

2 files

2023.6.12.4

2 files

2023.3.27.1

2 files

2023.3.21.5

2 files

2023.3.21.4

1 file

2023.3.21.3

2 files

2023.3.21.2

2 files

2023.1.15.1

2 files

2022.11.26.11

2 files

2022.7.11.1

2 files

2022.7.10.1

2 files

2022.6.29.2

2 files

2022.6.29.1

2 files

2022.5.2.1

2 files

2022.3.30.1

2 files

2022.3.18.2

2 files

2022.3.18.1

2 files

2022.2.14.1

2 files

2022.2.13.1

2 files

2021.10.14.1

2 files

2021.9.12.1

2 files

2021.8.12.1

2 files

2021.6.4.1

2 files

2021.6.2.1

2 files

2021.5.27.1

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.7

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page