Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instantiate from more sources #12

Open
PFython opened this issue Dec 5, 2020 · 1 comment
Open

Instantiate from more sources #12

PFython opened this issue Dec 5, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed wontfix This will not be worked on

Comments

@PFython
Copy link
Owner

PFython commented Dec 5, 2020

Enable:

CleverDict({"1": "one"}')
E.g. look for string in init and attempt to convert using json.loads

CleverDict(file)
Where file is INI, YAML, TOML, JSON or .py with e.g. variable = value lines

@PFython PFython added the enhancement New feature or request label Dec 5, 2020
@PFython PFython changed the title Instantiate from JSON Instantiate from more sources Dec 6, 2020
@PFython
Copy link
Owner Author

PFython commented Jan 20, 2021

JSON and line-delimeted ("\n") strings and files now supported in Version 1.8.0.

Labelled as "wontfix" after Version 1.8.0 simply because the main authors don't currently have the time for non essential enhancements. If there's a huge uptake in people using CleverDict and asking for this feature that may change, or if you're reading this why not Fork, develop a solution, and contribute a Pull Request yourself?

@PFython PFython added good first issue Good for newcomers help wanted Extra attention is needed wontfix This will not be worked on labels Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant