scruby-plugin 0.8.2__py3-none-any.whl → 1.0.1__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.
- scruby_plugin/plugin.py +1 -1
- {scruby_plugin-0.8.2.dist-info → scruby_plugin-1.0.1.dist-info}/METADATA +6 -12
- scruby_plugin-1.0.1.dist-info/RECORD +7 -0
- scruby_plugin-0.8.2.dist-info/RECORD +0 -7
- {scruby_plugin-0.8.2.dist-info → scruby_plugin-1.0.1.dist-info}/WHEEL +0 -0
- {scruby_plugin-0.8.2.dist-info → scruby_plugin-1.0.1.dist-info}/licenses/LICENSE +0 -0
scruby_plugin/plugin.py
CHANGED
|
@@ -17,7 +17,7 @@ class ScrubyPlugin:
|
|
|
17
17
|
"""Base class for creating Scruby plugins."""
|
|
18
18
|
|
|
19
19
|
# What version of Scruby is the plugin for?
|
|
20
|
-
SCRUBY_VERSION: ClassVar[Literal[
|
|
20
|
+
SCRUBY_VERSION: ClassVar[Literal[1]] = 1
|
|
21
21
|
|
|
22
22
|
def __init__(self, scruby_self: Scruby) -> None: # noqa: D107
|
|
23
23
|
self.scruby_self = weakref.ref(scruby_self)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scruby-plugin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Library for creating Scruby plugins.
|
|
5
5
|
Project-URL: Bug Tracker, https://github.com/kebasyaty/scruby-plugin/issues
|
|
6
|
-
Project-URL: Changelog, https://github.com/kebasyaty/scruby-plugin/blob/
|
|
6
|
+
Project-URL: Changelog, https://github.com/kebasyaty/scruby-plugin/blob/v1/CHANGELOG.md
|
|
7
7
|
Project-URL: Homepage, https://github.com/kebasyaty/scruby-plugin
|
|
8
8
|
Project-URL: Repository, https://github.com/kebasyaty/scruby-plugin
|
|
9
9
|
Project-URL: Source, https://github.com/kebasyaty/scruby-plugin
|
|
@@ -52,7 +52,7 @@ Library for creating plugins for <a href="https://pypi.org/project/scruby/" alt=
|
|
|
52
52
|
|
|
53
53
|
<br>
|
|
54
54
|
|
|
55
|
-
[](https://github.com/kebasyaty/scruby-plugin/blob/v1/REQUIREMENTS.md "Requirements")
|
|
56
56
|
|
|
57
57
|
## Installation
|
|
58
58
|
|
|
@@ -84,7 +84,7 @@ class PluginName(ScrubyPlugin):
|
|
|
84
84
|
import anyio
|
|
85
85
|
from typing import Any
|
|
86
86
|
from pydantic import Field
|
|
87
|
-
from scruby import Scruby, ScrubyModel
|
|
87
|
+
from scruby import Scruby, ScrubyModel
|
|
88
88
|
from scruby_plugin import ScrubyPlugin
|
|
89
89
|
from pprint import pprint as pp
|
|
90
90
|
|
|
@@ -99,12 +99,6 @@ class CollectionMeta(ScrubyPlugin):
|
|
|
99
99
|
return await scruby_self.get_meta()
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
# Plugins connection.
|
|
103
|
-
ScrubyConfig.plugins = [
|
|
104
|
-
CollectionMeta,
|
|
105
|
-
]
|
|
106
|
-
|
|
107
|
-
|
|
108
102
|
class Car(ScrubyModel):
|
|
109
103
|
"""Car model."""
|
|
110
104
|
brand: str = Field(strict=True, frozen=True)
|
|
@@ -141,6 +135,6 @@ if __name__ == "__main__":
|
|
|
141
135
|
|
|
142
136
|
<br>
|
|
143
137
|
|
|
144
|
-
[](https://github.com/kebasyaty/scruby-plugin/blob/v1/CHANGELOG.md "Changelog")
|
|
145
139
|
|
|
146
|
-
[](https://github.com/kebasyaty/scruby-plugin/blob/main/LICENSE "MIT")
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
scruby_plugin/__init__.py,sha256=kWaqpz4RYNT9Kc9FF6jj0GX1Mppm1uhFfArPY6EYneI,241
|
|
2
|
+
scruby_plugin/plugin.py,sha256=yRbiJFTYjaNNA8bk3e57vUoBshOxnRDisbQSHNhXUuM,615
|
|
3
|
+
scruby_plugin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
scruby_plugin-1.0.1.dist-info/METADATA,sha256=NH3EtPpPtDXGtlTvL775_5xORKi7h-nicuJx2o9ZNPc,5474
|
|
5
|
+
scruby_plugin-1.0.1.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
6
|
+
scruby_plugin-1.0.1.dist-info/licenses/LICENSE,sha256=mvh5qv1YJGyuVCkRxonDDNOzxlwXszKvwxXfOeXKrqw,1074
|
|
7
|
+
scruby_plugin-1.0.1.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
scruby_plugin/__init__.py,sha256=kWaqpz4RYNT9Kc9FF6jj0GX1Mppm1uhFfArPY6EYneI,241
|
|
2
|
-
scruby_plugin/plugin.py,sha256=CppRJLFDYl6M97gqQL8_0jtaG_6JVftdk6J76PCc03w,615
|
|
3
|
-
scruby_plugin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
scruby_plugin-0.8.2.dist-info/METADATA,sha256=UvO9XatRoZIhq18c9ynRMiiFAe0YjXfYWBKsFipmVoc,5559
|
|
5
|
-
scruby_plugin-0.8.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
6
|
-
scruby_plugin-0.8.2.dist-info/licenses/LICENSE,sha256=mvh5qv1YJGyuVCkRxonDDNOzxlwXszKvwxXfOeXKrqw,1074
|
|
7
|
-
scruby_plugin-0.8.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|