aboutsummaryrefslogtreecommitdiffstats
path: root/config_file
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-11-26 13:18:44 -0600
committerEugene Triguba <eugenetriguba@gmail.com>2020-11-26 13:18:44 -0600
commitd6832cd600a28c1396c67229245347c1cf9440ca (patch)
treee216eed48e9130be1bd63d4ad0ee3c8cad68d915 /config_file
parentAdd python 3.9 to pyproject and update lockfile (diff)
downloadconfig-file-d6832cd600a28c1396c67229245347c1cf9440ca.zip
Move parsers to parsers directory
Diffstat (limited to 'config_file')
-rw-r--r--config_file/config_file.py6
-rw-r--r--config_file/config_file_path.py10
-rw-r--r--config_file/parsers/__init__.py0
-rw-r--r--config_file/parsers/abstract_parser.py (renamed from config_file/abstract_parser.py)0
-rw-r--r--config_file/parsers/base_parser.py (renamed from config_file/base_parser.py)2
-rw-r--r--config_file/parsers/ini_parser.py (renamed from config_file/ini_parser.py)2
-rw-r--r--config_file/parsers/json_parser.py (renamed from config_file/json_parser.py)0
-rw-r--r--config_file/parsers/parse_value.py (renamed from config_file/parse_value.py)0
-rw-r--r--config_file/parsers/toml_parser.py (renamed from config_file/toml_parser.py)0
-rw-r--r--config_file/parsers/yaml_parser.py (renamed from config_file/yaml_parser.py)0
10 files changed, 10 insertions, 10 deletions
diff --git a/config_file/config_file.py b/config_file/config_file.py
index 18f3e0f..f4979bb 100644
--- a/config_file/config_file.py
+++ b/config_file/config_file.py
@@ -3,7 +3,7 @@ from shutil import copyfile
from typing import Any, Union
from config_file.config_file_path import ConfigFilePath
-from config_file.parse_value import parse_value
+from config_file.parsers.parse_value import parse_value
from config_file.utils import Default
@@ -131,8 +131,8 @@ class ConfigFile:
Returns:
The internal representation of the file
that has been read in converted to a string.
-
- Depreciated:
+
+ Depreciated:
Use str() on the ConfigFile object instead.
"""
return self.__parser.stringify()
diff --git a/config_file/config_file_path.py b/config_file/config_file_path.py
index ecb6531..0558faa 100644
--- a/config_file/config_file_path.py
+++ b/config_file/config_file_path.py
@@ -3,11 +3,11 @@ from pathlib import Path as _Path_
from pathlib import _posix_flavour, _windows_flavour
from typing import Type
-from config_file.abstract_parser import AbstractParser
-from config_file.ini_parser import IniParser
-from config_file.json_parser import JsonParser
-from config_file.toml_parser import TomlParser
-from config_file.yaml_parser import YamlParser
+from config_file.parsers.abstract_parser import AbstractParser
+from config_file.parsers.ini_parser import IniParser
+from config_file.parsers.json_parser import JsonParser
+from config_file.parsers.toml_parser import TomlParser
+from config_file.parsers.yaml_parser import YamlParser
from .utils import split_on_dot
diff --git a/config_file/parsers/__init__.py b/config_file/parsers/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/config_file/parsers/__init__.py
diff --git a/config_file/abstract_parser.py b/config_file/parsers/abstract_parser.py
index 460b238..460b238 100644
--- a/config_file/abstract_parser.py
+++ b/config_file/parsers/abstract_parser.py
diff --git a/config_file/base_parser.py b/config_file/parsers/base_parser.py
index 5063cc7..ea94164 100644
--- a/config_file/base_parser.py
+++ b/config_file/parsers/base_parser.py
@@ -1,9 +1,9 @@
from abc import abstractmethod
from typing import Any, Type
-from config_file.abstract_parser import AbstractParser
from config_file.exceptions import ParsingError
from config_file.nested_lookup import get_occurrence_of_key
+from config_file.parsers.abstract_parser import AbstractParser
from config_file.utils import split_on_dot
diff --git a/config_file/ini_parser.py b/config_file/parsers/ini_parser.py
index 0048288..fe78f05 100644
--- a/config_file/ini_parser.py
+++ b/config_file/parsers/ini_parser.py
@@ -1,6 +1,6 @@
import configparser
from io import StringIO
-from typing import Type, Any
+from typing import Any, Type
from .base_parser import BaseParser
diff --git a/config_file/json_parser.py b/config_file/parsers/json_parser.py
index 58924b4..58924b4 100644
--- a/config_file/json_parser.py
+++ b/config_file/parsers/json_parser.py
diff --git a/config_file/parse_value.py b/config_file/parsers/parse_value.py
index 12032d6..12032d6 100644
--- a/config_file/parse_value.py
+++ b/config_file/parsers/parse_value.py
diff --git a/config_file/toml_parser.py b/config_file/parsers/toml_parser.py
index de5226c..de5226c 100644
--- a/config_file/toml_parser.py
+++ b/config_file/parsers/toml_parser.py
diff --git a/config_file/yaml_parser.py b/config_file/parsers/yaml_parser.py
index fc4239a..fc4239a 100644
--- a/config_file/yaml_parser.py
+++ b/config_file/parsers/yaml_parser.py