def envfile_to_params(data):

	"""
	Converts environment file content into a dictionary with all the parameters.
	If your input looks like:

	# comment
	NUMBER=123
	KEY="value"

	Then the generated dictionary will be the following:

	{
		"NUMBER": "123",
		"KEY": "value"
	}
	"""

	params = filter(lambda x: len(x) == 2, map(lambda x: x.strip().split("="), data.splitlines()))
	return { k: v[1:-1] if v.startswith('"') and v.endswith('"') else v for (k, v) in params }