spock
spock is a framework that helps manage complex parameter configurations during research and development of Python applications (by fidelity)
tomli
A lil' TOML parser (by hukkin)
spock | tomli | |
---|---|---|
12 | 5 | |
115 | 439 | |
1.7% | - | |
7.0 | 3.0 | |
6 months ago | 8 days ago | |
Python | Python | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
spock
Posts with mentions or reviews of spock.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-29.
- Managing complex configurations any other way would be highly illogical
- [D] Alternatives to fb Hydra?
-
Why you should use Data Classes in Python
(Note: I wrote a library called spock that was originally based on dataclasses and then shifted to attrs. In the end attrs was just the better and more fully fledged library for what I needed so I’ve always preferred attrs over dataclasses since then)
-
Is Spock-Config the only tool that integrates object-oriented config files and command-line interfaces?
Spock-Config allows one to create OO configuration files. That's how I roll. I currently use PYdantic settings and it's great. But it does not offer command-line re-configuration of what you have in the OO config file.
- My first Python project: reference finder
- Python 3.11 will now have tomllib - Support for Parsing TOML in the Standard Library
-
Spock - Managing complex configurations any other way would be highly illogical...
Check out more in the docs or on GitHub
-
[D] I'm new and scrappy. What tips do you have for better logging and documentation when training or hyperparameter training?
We wrote Spock which actually sits in the middle ground between Hydra and OmegaConf (I’m of the same opinion that Hydra does a little too much feature wise). You can do hierarchical composition within the markdown of any JSON, YAML, or TOML files by simply using the config argument. No code needed to merge. Docs are here if you’re interested.
-
[D] Tools to avoid writing tons of scripts
Spock
tomli
Posts with mentions or reviews of tomli.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-13.
-
What Is Wrong with TOML?
But the whitespace handling involved is an extra complication, at least the provided example fails to be parsed by `tomli`, which is following the currently release TOML spec: https://github.com/hukkin/tomli/issues/199
-
ConfigParser potential inconsistencies
ini files aren't standardized, the syntax is really "whatever the parser implements". For new projects I recommend using toml instead. It's ini-like, but standardized. Python 3.11 even comes with a builtin parser tomllib (earlier python versions can use tomli, which is what tomllib is based on).
-
Python 3.11 will now have tomllib - Support for Parsing TOML in the Standard Library
tomllib is primary the library tomli: https://github.com/hukkin/tomli
-
Upcoming Python Features Brought to You by Python Enhancement Proposals
TOML as a format is by default used by many Python tools, including build tools. This creates a bootstrapping problem for them. Additionally, many popular tools such as flake8 don't include TOML support citing its lack of support in standard library. This PEP proposes to add TOML support to standard library based on tomli which is already used by packages such as pip or pytest.
-
Comparison of Python TOML parser libraries
tomli Relatively fast read-only parsing. Companion library tomli-w for writing.
What are some alternatives?
When comparing spock and tomli you can also consider the following projects:
gin-config - Gin provides a lightweight configuration framework for Python
toml - Tom's Obvious, Minimal Language
dvc - 🦉 ML Experiments and Data Management with Git
tomlkit - Style-preserving TOML library for Python
strictyaml - Type-safe YAML parser and validator.
rtoml - A fast TOML library for python implemented in rust.
reference-finder - Matches PDFs to sentences in text or docx file
pytoml - A TOML-0.4.0 parser/writer for Python.
labml - 🔎 Monitor deep learning model training and hardware usage from your mobile phone 📱
toml - Python lib for TOML
traitlets - A lightweight Traits like module
tomlplusplus - Header-only TOML config file parser and serializer for C++17.