# Path: analyzer/path_utils.py
# def create_directory(directory):
# 	if not os.path.exists(directory):
# 		os.makedirs(directory)
# 
# Path: analyzer/utils.py
# class Model(object):
# 	def as_dict(self, camel=True):
# 		dictionary = to_dict(self)
# 		if camel:
# 			return change_dict_naming_convention(dictionary, underscore_to_camel)
# 		else:
# 			return dictionary
# 
# 	@classmethod
# 	def from_dict(cls, data, from_camel=True):
# 		if from_camel:
# 			return change_dict_naming_convention(data, camel_to_underscore)
# 		else:
# 			return data
# 
# 	@classmethod
# 	def from_dicts(cls, data, from_camel=True):
# 		return [cls.from_dict(d) for d in data]
# 
# 	def to_mongo_dict(self):
# 		dictionary = self.as_dict()
# 		return to_mongo_dict(dictionary)


import json
import os
import re
from enum import Enum
from analyzer.path_utils import create_directory
from analyzer.utils import Model
		from analyzer.utils import env



class StoragePath(Enum):
	local = 1
	remote = 2

	def base_path(self, identifier):

		if self == StoragePath.local:
			data_path = env("DATA_DIR", "data")
			return os.path.join(data_path, identifier)
		elif self == StoragePath.remote:
			return identifier



# Path: analyzer/path_utils.py
# def create_directory(directory):
# 	if not os.path.exists(directory):
# 		os.makedirs(directory)
# 
# Path: analyzer/utils.py
# class Model(object):
# 	def as_dict(self, camel=True):
# 		dictionary = to_dict(self)
# 		if camel:
# 			return change_dict_naming_convention(dictionary, underscore_to_camel)
# 		else:
# 			return dictionary
# 
# 	@classmethod
# 	def from_dict(cls, data, from_camel=True):
# 		if from_camel:
# 			return change_dict_naming_convention(data, camel_to_underscore)
# 		else:
# 			return data
# 
# 	@classmethod
# 	def from_dicts(cls, data, from_camel=True):
# 		return [cls.from_dict(d) for d in data]
# 
# 	def to_mongo_dict(self):
# 		dictionary = self.as_dict()
# 		return to_mongo_dict(dictionary)


# Path: analyzer/project.py
import json
import os
import re
from enum import Enum
from analyzer.path_utils import create_directory
from analyzer.utils import Model
		from analyzer.utils import env




class StoragePath(Enum):
	local = 1
	remote = 2

	def base_path(self, identifier):

		if self == StoragePath.local:
			data_path = env("DATA_DIR", "data")
			return os.path.join(data_path, identifier)
		elif self == StoragePath.remote:
			return identifier



class Project(Model):