datamaker-py 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
datamaker/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+ from .main import DataMaker # noqa
2
+ from .template import Template # noqa
datamaker/core.py ADDED
@@ -0,0 +1,11 @@
1
+ from typing import Callable, Dict, Optional, Any
2
+ from requests import Response # Assuming you're using the 'requests' library for HTTP
3
+
4
+ Fetch = Callable[[str, Optional[dict]], Response]
5
+ HTTPMethod = str # Could further restrict to specific strings like 'get', 'post', etc.
6
+
7
+ RequestClient = Dict[str, Fetch]
8
+ Headers = Dict[str, Optional[str]]
9
+ DefaultQuery = Dict[str, Optional[str]]
10
+
11
+ Agent = Any
datamaker/error.py ADDED
@@ -0,0 +1,2 @@
1
+ class DataMakerError(Exception):
2
+ pass