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

Support other JSON-compatible systems via DataProviders #13

Open
controversial opened this issue Jul 20, 2016 · 0 comments
Open

Support other JSON-compatible systems via DataProviders #13

controversial opened this issue Jul 20, 2016 · 0 comments

Comments

@controversial
Copy link
Owner

livejson could provide a DataProvider ABC, allowing users to bridge the livejson interface to other JSON-compatible systems, such as CouchDB, Mongo, and YAML.

A DataProvider could choose either to

  • provide a method for retrieving a dict of the whole data structure, and a method for setting the data structure's contents to the contents of another dict
  • Implement methods for all of livejson's functionality, like getting / setting at specific indexes, setting all data, etc. This could theoretically allow much more flexibility as far as performance is concerned.

As part of this extension, livejson will be refactored to use a DataProvider for its JSON file access.

livejson will be slightly rebranded as a module for accessing JSON-like structures, rather than strictly JSON. However, only normal JSON files will be supported out of the box; I don't plan to add any more DataProviders to livejson core. Writing these will be up to the user.

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

No branches or pull requests

1 participant