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

System API and SQLite as default DB #27

Open
Abdur-rahmaanJ opened this issue May 31, 2020 · 5 comments
Open

System API and SQLite as default DB #27

Abdur-rahmaanJ opened this issue May 31, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@Abdur-rahmaanJ
Copy link
Contributor

It would be nice to have a system api to expose to app devs.

Lets say someone makes an app to tune volume. Instead of he writing his method, he just uses the system way of changing sound. We don't need everything but at least some system things

Also for storage, was thinking of having sqlite to store system info, using sqlalchemy

@dargonforce
Copy link
Collaborator

sqlite is a good choice of db for something like this, although it might be slightly overdesigning to use a sql db. if we do choose to use a sql db then I suggest creating some kind of library (snakesettings or w/e) for accessing and modifying the database, don't leave that up to users.

@dargonforce
Copy link
Collaborator

rather than introducing a new dependency, we could also do something very simple like a key->value map stored in memory, stored to disk as JSON or something. Don't want to introduce too much complexity where it isn't needed

@Abdur-rahmaanJ
Copy link
Contributor Author

Yes that's the system API. For users to use. We might have a json api, yes to play and get a feel before moving to something serious

@dargonforce
Copy link
Collaborator

however we end up doing it, it should be implemented in such a way that that users will have no knowledge of the implementation

@Abdur-rahmaanJ
Copy link
Contributor Author

Yaps that's what an API is. Maintainers sweat to let users have a cool experience

@dargonforce dargonforce added the enhancement New feature or request label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants