PyAutoNerves
PyAutoNerves is the Nerves of the PyAutoScientist — the configuration,
serialization, and I/O foundation (package autonerves) connecting the
workspace's conventions to every library. 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. As a released library it ships with every
nightly train — see the
PyAutoHands release board for the
current version.
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
- Source & tests:
autonerves/,test_autonerves/ - Agent/contributor instructions:
AGENTS.md - The organism this repo is the Nerves of: PyAutoBrain/ORGANISM.md, documented in full at https://pyautoscientist.readthedocs.io
- Ecosystem: PyAutoLabs on GitHub
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 autonerves-2026.9.8.1.tar.gz.
File metadata
- Download URL: autonerves-2026.9.8.1.tar.gz
- Upload date:
- Size: 156.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
672a1fe4d22d06d52e3fcd2bb433a69fb224d770e46a6b7cc591ab25afdf643d
|
|
| MD5 |
59db3ff47f8c5a319b8a9aff3a148b56
|
|
| BLAKE2b-256 |
a1d76055ce0e284819f8bf7691f972b233de8f2834bb9da74df96b6804c7e5b1
|
File details
Details for the file autonerves-2026.9.8.1-py3-none-any.whl.
File metadata
- Download URL: autonerves-2026.9.8.1-py3-none-any.whl
- Upload date:
- Size: 41.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079b14662ff4936eeff67b4a028f0b1373279db6c57712116998252736749492
|
|
| MD5 |
79fe01f53da20b75db296d77feb56a55
|
|
| BLAKE2b-256 |
db9ed92d8b65d49d92e8c2e6b350b695e83fd735489bf5f3b6ff2a4c603244eb
|