New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

python-decouple

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-decouple - pypi Package Compare versions

Comparing version
2.4
to
3.0
+6
-7
decouple.py

@@ -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 @@

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``

@@ -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``

[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
tag_date = 0

@@ -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(),