datatailr 0.1.3__tar.gz → 0.1.5__tar.gz

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.

Potentially problematic release.


This version of datatailr might be problematic. Click here for more details.

Files changed (39) hide show
  1. datatailr-0.1.5/PKG-INFO +75 -0
  2. datatailr-0.1.5/README.md +45 -0
  3. datatailr-0.1.5/pyproject.toml +57 -0
  4. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/__init__.py +7 -0
  5. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/base.py +8 -1
  6. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/batch.py +1 -2
  7. datatailr-0.1.5/src/datatailr.egg-info/PKG-INFO +75 -0
  8. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr.egg-info/requires.txt +1 -0
  9. datatailr-0.1.3/PKG-INFO +0 -24
  10. datatailr-0.1.3/README.md +0 -5
  11. datatailr-0.1.3/pyproject.toml +0 -43
  12. datatailr-0.1.3/src/datatailr.egg-info/PKG-INFO +0 -24
  13. {datatailr-0.1.3 → datatailr-0.1.5}/LICENSE +0 -0
  14. {datatailr-0.1.3 → datatailr-0.1.5}/setup.cfg +0 -0
  15. {datatailr-0.1.3 → datatailr-0.1.5}/setup.py +0 -0
  16. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/acl.py +0 -0
  17. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/blob.py +0 -0
  18. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/build/__init__.py +0 -0
  19. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/build/image.py +0 -0
  20. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/dt_json.py +0 -0
  21. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/errors.py +0 -0
  22. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/group.py +0 -0
  23. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/logging.py +0 -0
  24. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/__init__.py +0 -0
  25. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/arguments_cache.py +0 -0
  26. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/batch_decorator.py +0 -0
  27. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/constants.py +0 -0
  28. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/scheduler/utils.py +0 -0
  29. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/user.py +0 -0
  30. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/utils.py +0 -0
  31. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/version.py +0 -0
  32. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr/wrapper.py +0 -0
  33. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr.egg-info/SOURCES.txt +0 -0
  34. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr.egg-info/dependency_links.txt +0 -0
  35. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr.egg-info/entry_points.txt +0 -0
  36. {datatailr-0.1.3 → datatailr-0.1.5}/src/datatailr.egg-info/top_level.txt +0 -0
  37. {datatailr-0.1.3 → datatailr-0.1.5}/src/sbin/run_job.py +0 -0
  38. {datatailr-0.1.3 → datatailr-0.1.5}/src/test_module/__init__.py +0 -0
  39. {datatailr-0.1.3 → datatailr-0.1.5}/src/test_module/test_submodule.py +0 -0
@@ -0,0 +1,75 @@
1
+ Metadata-Version: 2.4
2
+ Name: datatailr
3
+ Version: 0.1.5
4
+ Summary: Ready-to-Use Platform That Drives Business Insights
5
+ Author-email: Datatailr <info@datatailr.com>
6
+ License-Expression: MIT
7
+ Project-URL: homepage, https://www.datatailr.com/
8
+ Project-URL: documentation, https://docs.datatailr.com/
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Environment :: Console
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Provides-Extra: dev
23
+ Requires-Dist: ruff; extra == "dev"
24
+ Requires-Dist: pre-commit; extra == "dev"
25
+ Requires-Dist: mypy; extra == "dev"
26
+ Requires-Dist: types-setuptools; extra == "dev"
27
+ Requires-Dist: toml; extra == "dev"
28
+ Requires-Dist: coverage; extra == "dev"
29
+ Dynamic: license-file
30
+
31
+ [![Datatailr Logo](https://framerusercontent.com/images/6CmFcG0o2ryoa5cMuDsvwESVWA.svg)](https://www.datatailr.com/)
32
+
33
+ ___
34
+ **Datatailr: empowers your team to streamline analytics and data workflows
35
+ from idea to production without infrastructure hurdles.**
36
+
37
+ ## What is Datatailr?
38
+
39
+ Datatailr is a platform that simplifies the process of building and deploying data applications.
40
+
41
+ It makes it easier to run and maintain large-scale data processing and analytics workloads.
42
+
43
+ ## What is this package?
44
+ This is the Python package for Datatailr, which allows you to interact with the Datatailr platform.
45
+
46
+ It provides the tools to build, deploy, and manage batch jobs, data pipelines, services and analytics applications.
47
+
48
+ Datatailr manages the underlying infrastructure so your applications can be deployed in an easy, secure and scalable way.
49
+
50
+ ## Installation
51
+
52
+ ### Installing the `dt` command line tool
53
+ Before you can use the Datatailr Python package, you need to install the `dt` command line tool.
54
+ **[INSTALLATION INSTRUCTIONS FOR DATATAILR GO HERE]**
55
+
56
+ ### Installing the Python package
57
+ You can install the Datatailr Python package using pip:
58
+ ```bash
59
+ pip install datatailr
60
+ ```
61
+
62
+ ### Testing the installation
63
+ ```python
64
+ import datatailr
65
+
66
+ print(datatailr.__version__)
67
+ print(datatailr.__provider__)
68
+ ```
69
+
70
+
71
+ ## Quickstart
72
+
73
+
74
+ ___
75
+ Visit [our website](https://www.datatailr.com/) for more!
@@ -0,0 +1,45 @@
1
+ [![Datatailr Logo](https://framerusercontent.com/images/6CmFcG0o2ryoa5cMuDsvwESVWA.svg)](https://www.datatailr.com/)
2
+
3
+ ___
4
+ **Datatailr: empowers your team to streamline analytics and data workflows
5
+ from idea to production without infrastructure hurdles.**
6
+
7
+ ## What is Datatailr?
8
+
9
+ Datatailr is a platform that simplifies the process of building and deploying data applications.
10
+
11
+ It makes it easier to run and maintain large-scale data processing and analytics workloads.
12
+
13
+ ## What is this package?
14
+ This is the Python package for Datatailr, which allows you to interact with the Datatailr platform.
15
+
16
+ It provides the tools to build, deploy, and manage batch jobs, data pipelines, services and analytics applications.
17
+
18
+ Datatailr manages the underlying infrastructure so your applications can be deployed in an easy, secure and scalable way.
19
+
20
+ ## Installation
21
+
22
+ ### Installing the `dt` command line tool
23
+ Before you can use the Datatailr Python package, you need to install the `dt` command line tool.
24
+ **[INSTALLATION INSTRUCTIONS FOR DATATAILR GO HERE]**
25
+
26
+ ### Installing the Python package
27
+ You can install the Datatailr Python package using pip:
28
+ ```bash
29
+ pip install datatailr
30
+ ```
31
+
32
+ ### Testing the installation
33
+ ```python
34
+ import datatailr
35
+
36
+ print(datatailr.__version__)
37
+ print(datatailr.__provider__)
38
+ ```
39
+
40
+
41
+ ## Quickstart
42
+
43
+
44
+ ___
45
+ Visit [our website](https://www.datatailr.com/) for more!
@@ -0,0 +1,57 @@
1
+ [build-system]
2
+ requires = ["setuptools>=60", "wheel", "toml"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "datatailr"
7
+ version = "0.1.5"
8
+ description = "Ready-to-Use Platform That Drives Business Insights"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ authors = [
12
+ { name="Datatailr", email="info@datatailr.com" }
13
+ ]
14
+ license = "MIT"
15
+ license-files = [
16
+ "LICENSE",
17
+ ]
18
+ classifiers = [
19
+
20
+ 'Programming Language :: Python :: 3',
21
+ 'Programming Language :: Python :: 3 :: Only',
22
+ 'Programming Language :: Python :: 3.9',
23
+ 'Programming Language :: Python :: 3.10',
24
+ 'Programming Language :: Python :: 3.11',
25
+ 'Programming Language :: Python :: 3.12',
26
+ 'Programming Language :: Python :: 3.13',
27
+ 'Environment :: Console',
28
+ "Operating System :: OS Independent",
29
+ 'Topic :: Scientific/Engineering'
30
+ ]
31
+
32
+ [project.urls]
33
+ homepage = "https://www.datatailr.com/"
34
+ documentation = "https://docs.datatailr.com/"
35
+
36
+ [project.scripts]
37
+ run_dt_job = "datatailr.sbin.run_job:main"
38
+
39
+ [project.optional-dependencies]
40
+ dev = [
41
+ "ruff",
42
+ "pre-commit",
43
+ "mypy",
44
+ "types-setuptools",
45
+ "toml",
46
+ "coverage",
47
+ ]
48
+
49
+ [tool.ruff]
50
+ src = [
51
+ "src",
52
+ "../../tests/src/python"
53
+ ]
54
+ lint.ignore = ["F841"]
55
+ show-fixes = true
56
+ fix = true
57
+ output-format = "full"
@@ -24,6 +24,7 @@ from datatailr.wrapper import (
24
24
  dt__System,
25
25
  dt__Tag,
26
26
  dt__User,
27
+ mock_cli_tool,
27
28
  )
28
29
  from datatailr.group import Group
29
30
  from datatailr.user import User
@@ -34,6 +35,11 @@ from datatailr.dt_json import dt_json
34
35
  from datatailr.utils import Environment, is_dt_installed
35
36
  from datatailr.version import __version__
36
37
 
38
+ system = dt__System()
39
+ if isinstance(system, mock_cli_tool):
40
+ __provider__ = "not installed"
41
+ else:
42
+ __provider__ = system.provider()
37
43
 
38
44
  __all__ = [
39
45
  "ACL",
@@ -43,6 +49,7 @@ __all__ = [
43
49
  "Image",
44
50
  "User",
45
51
  "__version__",
52
+ "__provider__",
46
53
  "dt__Blob",
47
54
  "dt__Dns",
48
55
  "dt__Email",
@@ -20,11 +20,18 @@ from typing import Callable, Optional, Tuple, Union
20
20
 
21
21
  from datatailr import ACL, Environment, User, dt__Job, is_dt_installed
22
22
  from datatailr.build.image import Image
23
+ from datatailr.errors import BatchJobError
23
24
  from datatailr.logging import DatatailrLogger
24
25
 
25
26
  logger = DatatailrLogger(os.path.abspath(__file__)).get_logger()
26
27
 
27
28
 
29
+ class RepoValidationError(BatchJobError):
30
+ def __init__(self, message: str):
31
+ super().__init__(message)
32
+ self.message = message
33
+
34
+
28
35
  class JobType(Enum):
29
36
  """
30
37
  Enum representing different types of DataTailr jobs.
@@ -220,7 +227,7 @@ class Job:
220
227
  if is_dt_installed():
221
228
  check_result = self.verify_repo_is_ready()
222
229
  if not check_result[0]:
223
- return False, check_result[1]
230
+ raise RepoValidationError(check_result[1])
224
231
  logger.info(
225
232
  f"Running job '{self.name}' in environment '{self.environment}' as '{self.run_as}'"
226
233
  )
@@ -288,11 +288,10 @@ class Batch(Job):
288
288
  return json.dumps(self.to_dict(), indent=4)
289
289
 
290
290
  def __repr__(self):
291
- jobs_repr = ", ".join(repr(job) for job in self.__jobs)
292
291
  return (
293
292
  f"Batch(name={self.name}, environment={self.environment}, "
294
293
  f"run_as={self.run_as}, resources={self.resources}, "
295
- f"acl={self.acl}, jobs=[{jobs_repr}])"
294
+ f"acl={self.acl}, {len(self.__jobs)} jobs)"
296
295
  )
297
296
 
298
297
  def set_autorun(self, auto_run):
@@ -0,0 +1,75 @@
1
+ Metadata-Version: 2.4
2
+ Name: datatailr
3
+ Version: 0.1.5
4
+ Summary: Ready-to-Use Platform That Drives Business Insights
5
+ Author-email: Datatailr <info@datatailr.com>
6
+ License-Expression: MIT
7
+ Project-URL: homepage, https://www.datatailr.com/
8
+ Project-URL: documentation, https://docs.datatailr.com/
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Environment :: Console
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Provides-Extra: dev
23
+ Requires-Dist: ruff; extra == "dev"
24
+ Requires-Dist: pre-commit; extra == "dev"
25
+ Requires-Dist: mypy; extra == "dev"
26
+ Requires-Dist: types-setuptools; extra == "dev"
27
+ Requires-Dist: toml; extra == "dev"
28
+ Requires-Dist: coverage; extra == "dev"
29
+ Dynamic: license-file
30
+
31
+ [![Datatailr Logo](https://framerusercontent.com/images/6CmFcG0o2ryoa5cMuDsvwESVWA.svg)](https://www.datatailr.com/)
32
+
33
+ ___
34
+ **Datatailr: empowers your team to streamline analytics and data workflows
35
+ from idea to production without infrastructure hurdles.**
36
+
37
+ ## What is Datatailr?
38
+
39
+ Datatailr is a platform that simplifies the process of building and deploying data applications.
40
+
41
+ It makes it easier to run and maintain large-scale data processing and analytics workloads.
42
+
43
+ ## What is this package?
44
+ This is the Python package for Datatailr, which allows you to interact with the Datatailr platform.
45
+
46
+ It provides the tools to build, deploy, and manage batch jobs, data pipelines, services and analytics applications.
47
+
48
+ Datatailr manages the underlying infrastructure so your applications can be deployed in an easy, secure and scalable way.
49
+
50
+ ## Installation
51
+
52
+ ### Installing the `dt` command line tool
53
+ Before you can use the Datatailr Python package, you need to install the `dt` command line tool.
54
+ **[INSTALLATION INSTRUCTIONS FOR DATATAILR GO HERE]**
55
+
56
+ ### Installing the Python package
57
+ You can install the Datatailr Python package using pip:
58
+ ```bash
59
+ pip install datatailr
60
+ ```
61
+
62
+ ### Testing the installation
63
+ ```python
64
+ import datatailr
65
+
66
+ print(datatailr.__version__)
67
+ print(datatailr.__provider__)
68
+ ```
69
+
70
+
71
+ ## Quickstart
72
+
73
+
74
+ ___
75
+ Visit [our website](https://www.datatailr.com/) for more!
@@ -5,3 +5,4 @@ pre-commit
5
5
  mypy
6
6
  types-setuptools
7
7
  toml
8
+ coverage
datatailr-0.1.3/PKG-INFO DELETED
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: datatailr
3
- Version: 0.1.3
4
- Summary: The datatailr package
5
- Author-email: Datatailr <pypi@datatailr.com>
6
- License-Expression: MIT
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Operating System :: OS Independent
9
- Requires-Python: >=3.7
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Provides-Extra: dev
13
- Requires-Dist: ruff; extra == "dev"
14
- Requires-Dist: pre-commit; extra == "dev"
15
- Requires-Dist: mypy; extra == "dev"
16
- Requires-Dist: types-setuptools; extra == "dev"
17
- Requires-Dist: toml; extra == "dev"
18
- Dynamic: license-file
19
-
20
- # datatailr
21
-
22
- Datatailr empowers your team to streamline analytics and data workflows from idea to production without infrastructure hurdles.
23
-
24
- Visit [our website](https://www.datatailr.com/) for more!
datatailr-0.1.3/README.md DELETED
@@ -1,5 +0,0 @@
1
- # datatailr
2
-
3
- Datatailr empowers your team to streamline analytics and data workflows from idea to production without infrastructure hurdles.
4
-
5
- Visit [our website](https://www.datatailr.com/) for more!
@@ -1,43 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=60", "wheel", "toml"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "datatailr"
7
- version = "0.1.3"
8
- description = "The datatailr package"
9
- readme = "README.md"
10
- requires-python = ">=3.7"
11
- authors = [
12
- { name="Datatailr", email="pypi@datatailr.com" }
13
- ]
14
- license = "MIT"
15
- license-files = [
16
- "LICENSE",
17
- ]
18
- classifiers = [
19
- "Programming Language :: Python :: 3",
20
- "Operating System :: OS Independent"
21
- ]
22
-
23
- [project.scripts]
24
- run_dt_job = "datatailr.sbin.run_job:main"
25
-
26
- [project.optional-dependencies]
27
- dev = [
28
- "ruff",
29
- "pre-commit",
30
- "mypy",
31
- "types-setuptools",
32
- "toml",
33
- ]
34
-
35
- [tool.ruff]
36
- src = [
37
- "src",
38
- "../../tests/src/python"
39
- ]
40
- lint.ignore = ["F841"]
41
- show-fixes = true
42
- fix = true
43
- output-format = "full"
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: datatailr
3
- Version: 0.1.3
4
- Summary: The datatailr package
5
- Author-email: Datatailr <pypi@datatailr.com>
6
- License-Expression: MIT
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Operating System :: OS Independent
9
- Requires-Python: >=3.7
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Provides-Extra: dev
13
- Requires-Dist: ruff; extra == "dev"
14
- Requires-Dist: pre-commit; extra == "dev"
15
- Requires-Dist: mypy; extra == "dev"
16
- Requires-Dist: types-setuptools; extra == "dev"
17
- Requires-Dist: toml; extra == "dev"
18
- Dynamic: license-file
19
-
20
- # datatailr
21
-
22
- Datatailr empowers your team to streamline analytics and data workflows from idea to production without infrastructure hurdles.
23
-
24
- Visit [our website](https://www.datatailr.com/) for more!
File without changes
File without changes
File without changes
File without changes