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
3.2
to
3.3
+7
-12
decouple.py

@@ -7,4 +7,5 @@ # coding: utf-8

from io import open
from collections import OrderedDict
from distutils.util import strtobool
# Useful for very coarse version differentiation.

@@ -41,4 +42,2 @@ PY3 = sys.version_info[0] == 3

"""
_BOOLEANS = {'1': True, 'yes': True, 'true': True, 'on': True,
'0': False, 'no': False, 'false': False, 'off': False, '': False}

@@ -53,7 +52,4 @@ def __init__(self, repository):

value = str(value)
if value.lower() not in self._BOOLEANS:
raise ValueError('Not a boolean: %s' % value)
return bool(value) if value == '' else bool(strtobool(value))
return self._BOOLEANS[value.lower()]
@staticmethod

@@ -160,6 +156,6 @@ def _cast_do_nothing(value):

"""
SUPPORTED = {
'settings.ini': RepositoryIni,
'.env': RepositoryEnv,
}
SUPPORTED = OrderedDict([
('settings.ini', RepositoryIni),
('.env', RepositoryEnv),
])

@@ -214,3 +210,2 @@ encoding = DEFAULT_ENCODING

# Helpers

@@ -217,0 +212,0 @@

Metadata-Version: 1.1
Name: python-decouple
Version: 3.2
Version: 3.3
Summary: Strict separation of settings from code.

@@ -5,0 +5,0 @@ Home-page: http://github.com/henriquebastos/python-decouple/

Metadata-Version: 1.1
Name: python-decouple
Version: 3.2
Version: 3.3
Summary: Strict separation of settings from code.

@@ -5,0 +5,0 @@ Home-page: http://github.com/henriquebastos/python-decouple/

@@ -9,3 +9,3 @@ # coding: utf-8

setup(name='python-decouple',
version='3.2',
version='3.3',
description='Strict separation of settings from code.',

@@ -12,0 +12,0 @@ long_description=open(README).read(),