Skip to main content

PyAuto Configration

Project description

PyAutoNerves

PyAutoNerves

🧬 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.

PyAutoNerves (package autonerves) 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 autonerves: 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 autonerves

Examples

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

from autonerves.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 autonerves.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 autonerves.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


Download files

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

Source Distribution

autonerves-2026.7.22.1.tar.gz (151.5 kB view details)

Uploaded Source

Built Distribution

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

autonerves-2026.7.22.1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file autonerves-2026.7.22.1.tar.gz.

File metadata

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

File hashes

Hashes for autonerves-2026.7.22.1.tar.gz
Algorithm Hash digest
SHA256 a9f8fc0297549b589a5ababe46c1213eaa493b79f71c924a880dec5738b09a9a
MD5 ad5a8078571550b8085d4282b9dd6a0e
BLAKE2b-256 4052c1a484cf790df4233e4b364755e7828cbf3657217d413bd4ea96e9a482fb

See more details on using hashes here.

File details

Details for the file autonerves-2026.7.22.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autonerves-2026.7.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a48e48c7949ff89c16536b7d20445048c5e5dd86b300d8f29545d967b2f3b87f
MD5 ee2c621730694af2359f779d8afc9aba
BLAKE2b-256 034a02fd3da72c114b8fbbc5e47b935640944ba1082899ba1d6e0b6dbbe29e88

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