toml
Python lib for TOML (by uiri)
appdirs
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". (by ActiveState)
toml | appdirs | |
---|---|---|
2 | 5 | |
1,058 | 1,028 | |
- | 1.4% | |
5.2 | 0.0 | |
7 months ago | about 1 year ago | |
Python | Python | |
MIT License | 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.
toml
Posts with mentions or reviews of toml.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-14.
-
Comparison of Python TOML parser libraries
toml This was initially vendored in pip itself to deal with pyproject.toml. Even so pip has since moved to tomli.
-
Restore Window Positions on Ubuntu after monitors wake up
TOML - I use TOML as the configuration file format. I like TOML as it makes sense.
appdirs
Posts with mentions or reviews of appdirs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-19.
-
Building CLI time tracker with Python
Database location and schema To store database user files directory was used. The issue here is that each OS has it's own path for this directory. But there is no problem, Python is known for having libraries almost for everything and identifying user directory is no exception: for this job appdirs has been chosen. When app starts for the first time it will check whether database exists and if no database file was found it will create an empty database with the following schema:
-
Any way to improve my coding? [QR Code Gen]
The "correct", or atleast an excellent way of handling userdata in Python is using appdirs. This gives you logical paths for Mac Windows and Linux
-
Is /home/[user name]/.[app name] the recommended place to save app data?
If you're using Python to build apps, use appdirs or app_paths.
- Is it possible to run a script before file deletion happens in a certain directory?
-
Restore Window Positions on Ubuntu after monitors wake up
Appdirs - I use appdirs to determine the best location to store the settings in your home folder.
What are some alternatives?
When comparing toml and appdirs you can also consider the following projects:
tomli-w - A lil' TOML writer (counterpart to https://github.com/hukkin/tomli)
tomlplusplus - Header-only TOML config file parser and serializer for C++17.
tomli - A lil' TOML parser
pytoml - A TOML-0.4.0 parser/writer for Python.
pytomlpp - A python wrapper for tomlplusplus
qtoml - Another Python TOML encoder/decoder
rtoml - A fast TOML library for python implemented in rust.
mypy - Optional static typing for Python
coveragepy - The code coverage tool for Python
typeshed - Collection of library stubs for Python, with static types
black - The uncompromising Python code formatter
tomlkit - Style-preserving TOML library for Python