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

Use JSON to store the manifest #21

Open
gatl opened this issue Jan 6, 2020 · 2 comments
Open

Use JSON to store the manifest #21

gatl opened this issue Jan 6, 2020 · 2 comments

Comments

@gatl
Copy link

gatl commented Jan 6, 2020

This allows for other projects to read the manifest and closes the security hole that is the eval() being called on a data file. JSON is not YAML, but it also does not need to look bad.

import json
import gogrepo
manifest = gogrepo.load_manifest()
print(json.dumps(manifest[3], indent=1, sort_keys=True)

You could perhaps replace all the manifest serialization and deserialization code with less than 10 lines of code.

@cmykflutterby
Copy link

I second this. i was about to write a script to integrate this with dropbox and parse files and file sizes to estimate space etc. JSON format or another format that we can use a standard lib to process would be a great help

@Kalanyr
Copy link
Owner

Kalanyr commented Jul 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants