python-decouple
Advanced tools
+6
-7
@@ -102,6 +102,8 @@ # coding: utf-8 | ||
| def __contains__(self, key): | ||
| return self.parser.has_option(self.SECTION, key) | ||
| return (key in os.environ or | ||
| self.parser.has_option(self.SECTION, key)) | ||
| def get(self, key): | ||
| return self.parser.get(self.SECTION, key) | ||
| return (os.environ.get(key) or | ||
| self.parser.get(self.SECTION, key)) | ||
@@ -126,9 +128,6 @@ | ||
| def __contains__(self, key): | ||
| return key in self.data or key in os.environ | ||
| return key in os.environ or key in self.data | ||
| def get(self, key): | ||
| try: | ||
| return self.data[key] | ||
| except KeyError: | ||
| return os.environ[key] | ||
| return os.environ.get(key) or self.data[key] | ||
@@ -135,0 +134,0 @@ |
+6
-5
| Metadata-Version: 1.1 | ||
| Name: python-decouple | ||
| Version: 2.4 | ||
| Version: 3.0 | ||
| Summary: Strict separation of settings from code. | ||
@@ -203,10 +203,11 @@ Home-page: http://github.com/henriquebastos/python-decouple/ | ||
| Can read values from ini files. | ||
| Can read values from ``os.environ`` and ini files, in that order. | ||
| **Note:** Since version 3.0 *decouple* respects unix precedence of environment variables *over* config files. | ||
| - ``RepositoryEnv`` | ||
| Can read ``.env`` files and when a parameter does not exist there, | ||
| it tries to find it on ``os.environ``. | ||
| Can read values from ``os.environ`` and ``.env`` files. | ||
| This process does **not** change nor add any environment variables. | ||
| **Note:** Since version 3.0 *decouple* respects unix precedence of environment variables *over* config files. | ||
@@ -213,0 +214,0 @@ - ``RepositoryShell`` |
| Metadata-Version: 1.1 | ||
| Name: python-decouple | ||
| Version: 2.4 | ||
| Version: 3.0 | ||
| Summary: Strict separation of settings from code. | ||
@@ -203,10 +203,11 @@ Home-page: http://github.com/henriquebastos/python-decouple/ | ||
| Can read values from ini files. | ||
| Can read values from ``os.environ`` and ini files, in that order. | ||
| **Note:** Since version 3.0 *decouple* respects unix precedence of environment variables *over* config files. | ||
| - ``RepositoryEnv`` | ||
| Can read ``.env`` files and when a parameter does not exist there, | ||
| it tries to find it on ``os.environ``. | ||
| Can read values from ``os.environ`` and ``.env`` files. | ||
| This process does **not** change nor add any environment variables. | ||
| **Note:** Since version 3.0 *decouple* respects unix precedence of environment variables *over* config files. | ||
@@ -213,0 +214,0 @@ - ``RepositoryShell`` |
+5
-4
@@ -195,10 +195,11 @@ Python Decouple: Strict separation of settings from code | ||
| Can read values from ini files. | ||
| Can read values from ``os.environ`` and ini files, in that order. | ||
| **Note:** Since version 3.0 *decouple* respects unix precedence of environment variables *over* config files. | ||
| - ``RepositoryEnv`` | ||
| Can read ``.env`` files and when a parameter does not exist there, | ||
| it tries to find it on ``os.environ``. | ||
| Can read values from ``os.environ`` and ``.env`` files. | ||
| This process does **not** change nor add any environment variables. | ||
| **Note:** Since version 3.0 *decouple* respects unix precedence of environment variables *over* config files. | ||
@@ -205,0 +206,0 @@ - ``RepositoryShell`` |
+1
-1
| [egg_info] | ||
| tag_build = | ||
| tag_date = 0 | ||
| tag_svn_revision = 0 | ||
| tag_date = 0 | ||
+1
-1
@@ -9,3 +9,3 @@ # coding: utf-8 | ||
| setup(name='python-decouple', | ||
| version='2.4', | ||
| version='3.0', | ||
| description='Strict separation of settings from code.', | ||
@@ -12,0 +12,0 @@ long_description=open(README).read(), |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
41667
1.1%200
-0.5%