Not your typical self-hosted kind of project, but useful for other self-hosted projects
For myself, I had been storing critical values like passwords and tokens in my .env file and just loading them up with load_dotenv()
I got frustrated that I couldn’t find a relatively native python library that didn’t require calling restful APIs and wasn’t just reading from plaintext, so finally decided to put on that gauntlet and say “Fine, I’ll do it myself”
Please feel free to use or fork for your own needs :) And let me know if this is a silly endeavour or you see any major issues! It’s very barebones and simple (hence the name)
Thanks for the comment! Yes this is meant more for your personal projects than for using in existing projects
The idea behind needing a password to get a password, totally understand, my main goal was to have local encrypted storage, the nice thing about this implementation is that you can have all your env files saved and shared in your git repo for all devs to have access to, but only can decrypt it if given the master password shared elsewhere (keeper, vault etc) so you don’t have to load all values from a vault, just the master
100% though this doesn’t cover a large range of usage, hence the name “simple” haha, wouldn’t be opposed to expanding but I think it covers my proposed use cases as-is
I certainly understand the main purpose and honestly you have a good point about git.
Let’s say that I can utilize your code within my personal app, but my personal app leverages a database (postgres). How would I integrate my app, the database and your library? Unless I’m missing something, I would still need a .env for the database since I don’t have access to the source code of the database.