spoc 0.3.2__tar.gz → 0.3.4__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.
Files changed (85) hide show
  1. {spoc-0.3.2 → spoc-0.3.4}/PKG-INFO +1 -1
  2. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/__about__.py +1 -1
  3. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/__init__.py +2 -0
  4. spoc-0.3.4/src/spoc/utils.py +16 -0
  5. {spoc-0.3.2 → spoc-0.3.4}/.github/workflows/docs.yml +0 -0
  6. {spoc-0.3.2 → spoc-0.3.4}/.github/workflows/release.yml +0 -0
  7. {spoc-0.3.2 → spoc-0.3.4}/.gitignore +0 -0
  8. {spoc-0.3.2 → spoc-0.3.4}/.prettierignore +0 -0
  9. {spoc-0.3.2 → spoc-0.3.4}/CONTRIBUTING.md +0 -0
  10. {spoc-0.3.2 → spoc-0.3.4}/LICENSE +0 -0
  11. {spoc-0.3.2 → spoc-0.3.4}/README.md +0 -0
  12. {spoc-0.3.2 → spoc-0.3.4}/Taskfile.yml +0 -0
  13. {spoc-0.3.2 → spoc-0.3.4}/docs/.gitignore +0 -0
  14. {spoc-0.3.2 → spoc-0.3.4}/docs/custom_theme/css/extra.css +0 -0
  15. {spoc-0.3.2 → spoc-0.3.4}/docs/custom_theme/main.html +0 -0
  16. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/advanced/lifecycle.md +0 -0
  17. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/advanced/plugins.md +0 -0
  18. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/advanced/workers.md +0 -0
  19. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/api/components.md +0 -0
  20. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/api/core-utils.md +0 -0
  21. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/api/framework.md +0 -0
  22. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/api/importer.md +0 -0
  23. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/api/tools.md +0 -0
  24. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/api/workers.md +0 -0
  25. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/assets/images/logo.png +0 -0
  26. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/assets/images/title.png +0 -0
  27. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/contributing.md +0 -0
  28. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/core/app-system.md +0 -0
  29. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/core/components.md +0 -0
  30. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/core/dependencies.md +0 -0
  31. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/core/framework.md +0 -0
  32. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/core/importer.md +0 -0
  33. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/examples/app-example.md +0 -0
  34. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/examples/basic.md +0 -0
  35. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/getting-started/configuration.md +0 -0
  36. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/getting-started/installation.md +0 -0
  37. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/getting-started/quick-start.md +0 -0
  38. {spoc-0.3.2 → spoc-0.3.4}/docs/docs/index.md +0 -0
  39. {spoc-0.3.2 → spoc-0.3.4}/docs/main.py +0 -0
  40. {spoc-0.3.2 → spoc-0.3.4}/docs/mkdocs.yml +0 -0
  41. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/another/__init__.py +0 -0
  42. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/another/models.py +0 -0
  43. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/another/views.py +0 -0
  44. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/auth/__init__.py +0 -0
  45. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/auth/models.py +0 -0
  46. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/auth/views.py +0 -0
  47. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/demo/__init__.py +0 -0
  48. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/demo/extras.py +0 -0
  49. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/demo/models.py +0 -0
  50. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/demo/views.py +0 -0
  51. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/other/__init__.py +0 -0
  52. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/other/models.py +0 -0
  53. {spoc-0.3.2 → spoc-0.3.4}/examples/apps/other/views.py +0 -0
  54. {spoc-0.3.2 → spoc-0.3.4}/examples/config/__init__.py +0 -0
  55. {spoc-0.3.2 → spoc-0.3.4}/examples/config/settings.py +0 -0
  56. {spoc-0.3.2 → spoc-0.3.4}/examples/config/spoc.toml +0 -0
  57. {spoc-0.3.2 → spoc-0.3.4}/examples/framework/__init__.py +0 -0
  58. {spoc-0.3.2 → spoc-0.3.4}/examples/framework/framework.py +0 -0
  59. {spoc-0.3.2 → spoc-0.3.4}/examples/main.py +0 -0
  60. {spoc-0.3.2 → spoc-0.3.4}/examples/workers.py +0 -0
  61. {spoc-0.3.2 → spoc-0.3.4}/pyproject.toml +0 -0
  62. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/case_style.py +0 -0
  63. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/components.py +0 -0
  64. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/__init__.py +0 -0
  65. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/config_loader.py +0 -0
  66. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/exceptions.py +0 -0
  67. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/importer.py +0 -0
  68. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/logging_utils.py +0 -0
  69. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/singleton.py +0 -0
  70. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/toml_core.py +0 -0
  71. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/core/utils.py +0 -0
  72. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/framework.py +0 -0
  73. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/inject_apps.py +0 -0
  74. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/tools.py +0 -0
  75. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/types.py +0 -0
  76. {spoc-0.3.2 → spoc-0.3.4}/src/spoc/workers.py +0 -0
  77. {spoc-0.3.2 → spoc-0.3.4}/tests/TEST.md +0 -0
  78. {spoc-0.3.2 → spoc-0.3.4}/tests/__init__.py +0 -0
  79. {spoc-0.3.2 → spoc-0.3.4}/tests/test_components.py +0 -0
  80. {spoc-0.3.2 → spoc-0.3.4}/tests/test_config_loader.py +0 -0
  81. {spoc-0.3.2 → spoc-0.3.4}/tests/test_importer.py +0 -0
  82. {spoc-0.3.2 → spoc-0.3.4}/tests/test_singleton.py +0 -0
  83. {spoc-0.3.2 → spoc-0.3.4}/tests/test_tools.py +0 -0
  84. {spoc-0.3.2 → spoc-0.3.4}/tests/test_workers.py +0 -0
  85. {spoc-0.3.2 → spoc-0.3.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spoc
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Elastic Framework Builder
5
5
  Author-email: hlop3z <23062270+hlop3z@users.noreply.github.com>
6
6
  License-File: LICENSE
@@ -1,5 +1,5 @@
1
1
  """Project Info."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.4"
4
4
  __license__ = "BSD-3-Clause"
5
5
  __author__ = "hlop3z"
@@ -23,6 +23,7 @@ from .core.utils import DependencyGraph
23
23
  from .framework import Config, Framework, Hook, Schema
24
24
  from .inject_apps import inject_apps
25
25
  from .case_style import case_style
26
+ from .utils import get_info
26
27
 
27
28
  __all__ = [
28
29
  # Framework Utilities
@@ -34,6 +35,7 @@ __all__ = [
34
35
  "Importer",
35
36
  # Components
36
37
  "Components",
38
+ "get_info",
37
39
  # Exceptions
38
40
  "SpocError",
39
41
  "AppNotFoundError",
@@ -0,0 +1,16 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ utils.py
4
+
5
+ Provides utilities for the SPOC framework.
6
+ """
7
+ from typing import Any
8
+
9
+ from .components import Internal
10
+
11
+
12
+ def get_info(obj: Any) -> Internal | None:
13
+ """
14
+ Get the Component(Info) for a given object.
15
+ """
16
+ return getattr(obj, "__spoc__", None)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes