-
Notifications
You must be signed in to change notification settings - Fork 478
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: theskumar/python-dotenv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.15.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: theskumar/python-dotenv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 13 files changed
- 3 contributors
Commits on Dec 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8815885 - Browse repository at this point
Copy the full SHA 8815885View commit details -
Decouple variable parsing and expansion
This is now done in two steps: - Parse the value into a sequence of atoms (literal of variable). - Resolve that sequence into a string.
Configuration menu - View commit details
-
Copy full SHA for 17dba65 - Browse repository at this point
Copy the full SHA 17dba65View commit details -
Fix variable expansion order without override
This fixes an issue when a variable is resolved differently in two bindings. For instance, take the following env file: ``` PORT=8000 URL=http://localhost:${PORT} ``` With `PORT` set to `1234` in the environment, the environment resulting from `dotenv_load(override=False)` would be: ``` PORT=1234 URL=http://localhost:8000 ``` This was inconsistent and is fixed by this commit. The environment would now be: ``` PORT=1234 URL=http://localhost:1234 ``` with override, and ``` PORT=8000 URL=http://localhost:8000 ``` without override. The behavior of `load_dotenv` is unchanged and always assumes `override=True`.Configuration menu - View commit details
-
Copy full SHA for 26ff5b7 - Browse repository at this point
Copy the full SHA 26ff5b7View commit details
Commits on Dec 27, 2020
-
This mainly reorganizes the readme based on questions and feedback from users on GitHub over the years: - Getting Started: Short section which covers the main use case and doesn't go into details. - Pip command at the very beginning so that users are less likely to mistakenly install another package. - Basic application code to load the .env file into the environment. - Introduction to the syntax of .env files with a short example. - Other common use cases: - Load configuration without altering the environment - Parse configuration as a stream - Load .env files in IPython - Command-line Interface - File format: Details about the syntax of .env files, previously scattered around. - Related Projects: I'm not sure we really need that one but I guess we can keep it for now. - Acknowledgements Minor changes: - I removed the "saythanks" link since it is dead. - I removed the banner made in ASCII art since it read ".env" and not "python-dotenv", which I found distracting. We could make another one but I don't have time right now. It also saves the user some scrolling.Configuration menu - View commit details
-
Copy full SHA for 2e0ea48 - Browse repository at this point
Copy the full SHA 2e0ea48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1927225 - Browse repository at this point
Copy the full SHA 1927225View commit details
Commits on Jan 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ac670cf - Browse repository at this point
Copy the full SHA ac670cfView commit details
Commits on Feb 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a7fe93f - Browse repository at this point
Copy the full SHA a7fe93fView commit details
Commits on Mar 27, 2021
-
The default value for the `encoding` paramter of `load_dotenv` and `dotenv_values` is now `"utf-8"` instead of `None` (which selected the encoding based on the user's locale). It is passed directly to `io.open`. The rationale for this change is that the encoding of a project file like `.env` should not depend on the user's locale by default. UTF-8 makes sense as the default encoding since it is also used for Python source files. The main drawback is that it departs from `open`'s default value of `None` for the `encoding` parameter. The default value of `None` was a source of confusion for some users. The Flask and Docker Compose projects already use `encoding="utf-8"` to enforce the use of UTF-8 and avoid that sort of confusion. This is a breaking change but only for users with a non-UTF-8 locale and non-UTF-8 characters in their .env files.
Configuration menu - View commit details
-
Copy full SHA for b158aa7 - Browse repository at this point
Copy the full SHA b158aa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b96db46 - Browse repository at this point
Copy the full SHA b96db46View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.15.0...v0.16.0