Comments (2)
While looking through configparser and how this could be implemented I'm noticing how crappy the configparser library really is.
ConfigParser doesn't handle:
- Nested dictionaries (treated as strings)
- Lists (treated as strings)
- Proper typing (everything is considered to be a string)
I'm unsure if this is part of the ini spec but it's pretty damn bad.
So any kind of serialization and loading methods using ConfigParser will need to have custom logic for writing the content in a restoreable manner.
from file-config.
Solution to dealing with this is just to create a custom ConfigParser
class which deals with the serialization and de-serialization of the parser instance.
from file-config.
Related Issues (20)
- XML Serialization Support
- Fix Codacy Integration
- Standardize type matching checks
- Utilize defusedxml for XMLParser
- Schema builder skipping nested typing types when generating object types HOT 1
- is_regex_type raises AttributeError when evaluating typing types HOT 2
- Config dump handler does not pass kwargs like dumps HOT 1
- Typcasting with typing._GenericAlias fails HOT 1
- Loading a config from a dictionary or file does not use the specified default value HOT 1
- If subsections are missing the library raises an error HOT 1
- Default for missing nested config should be the default state of the nested config HOT 7
- Setup testing for Windows HOT 1
- Testing for serializing handlers
- Improve tests for "schema_builder" and "_file_config"
- Preferring a serializing handler for a config disables other handlers for that config HOT 1
- Loading a config using typehints instead of types skips nested configs HOT 1
- defusedxml.lxml is raising deprecation warnings
- Editable $id and $schema properties for config generated JSONSchema
- feature request: accept path str in load and dump methods HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from file-config.