Add mojo-dotenv - .env file loader for Mojo#192
Add mojo-dotenv - .env file loader for Mojo#192Mjboothaus wants to merge 5 commits intomodular:mainfrom
Conversation
- Production-ready .env file parser and loader for Mojo - 98%+ compatible with python-dotenv - Variable expansion, multiline values, escape sequences - Auto-discovery with find_dotenv() - 42 comprehensive tests with TestSuite framework - MIT License Version: 0.2.0 Repository: https://github.com/DataBooth/mojo-dotenv
- Mark modular-community submission as complete - PR #192: modular/modular-community#192 - Status: Awaiting review/merge - Add note about Apache 2.0 license under consideration Co-Authored-By: Warp <agent@warp.dev>
Update recipe to use v0.2.1 which includes important improvements: - Improved missing file handling (returns empty dict with WARNING) - Better error visibility and documentation - 7 new tests for missing file scenarios (49 total) - Documented Mojo vs Python getenv() differences - Updated README examples with proper error handling All changes are backward compatible.
|
@Mjboothaus Looks like there is a formatting issue causing the pre-commit check to fail |
|
Hi @bgreni - I have now mirrored the pre-commit hooks in my repo. I have fixed the trailing whitespace issue - so hopefully good to go now. Please note that v 0.2.1 is the latest release. |
|
Hi team! 👋 Just a friendly check-in on this PR. All checks are passing and the pre-commit issues have been resolved. The package is at v0.2.1 and ready for review whenever you have a moment. Happy to make any additional changes if needed. Thanks for maintaining this community repository |
|
Closing this PR in favor of a fresh PR with version 0.2.2. The original PR was missing required components that are now standard for modular-community packages. Changes in new PR (coming next):
See updated submission guide: https://github.com/DataBooth/mojo-toml/blob/main/docs/SUBMITTING_TO_MODULAR_COMMUNITY.md Thank you |
mojo-dotenv v0.2.0
A production-ready
.envfile parser and loader for Mojo with near-100% python-dotenv compatibility.Features:
Repository: https://github.com/DataBooth/mojo-dotenv
License: MIT License
This fills a gap in the Mojo ecosystem for configuration management following 12-factor app methodology.
Testing: