scruby-plugin 0.2.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.
@@ -0,0 +1,17 @@
1
+ # Copyright (c) 2026 Gennady Kostyunin
2
+ # SPDX-License-Identifier: MIT
3
+ """Scruby-Plugin - Library for creating Scruby plugins."""
4
+
5
+ from __future__ import annotations
6
+
7
+ __all__ = ("ScrubyPlugin",)
8
+
9
+ import weakref
10
+ from typing import Any
11
+
12
+
13
+ class ScrubyPlugin: # noqa: RUF067
14
+ """Base class for creating Scruby plugins."""
15
+
16
+ def __init__(self, scruby: Any) -> None: # noqa: D107
17
+ self.scruby = weakref.ref(scruby)
scruby_plugin/py.typed ADDED
File without changes
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.4
2
+ Name: scruby-plugin
3
+ Version: 0.2.0
4
+ Summary: Library for creating Scruby plugins.
5
+ Keywords: scruby,plugin,database
6
+ Author: kebasyaty
7
+ Author-email: kebasyaty <kebasyaty@gmail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: MacOS :: MacOS X
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Programming Language :: Python :: Implementation :: CPython
23
+ Classifier: Topic :: Software Development :: Libraries
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.12, <4.0
26
+ Project-URL: Bug Tracker, https://github.com/kebasyaty/scruby-plugin/issues
27
+ Project-URL: Changelog, https://github.com/kebasyaty/scruby-plugin/blob/v0/CHANGELOG.md
28
+ Project-URL: Homepage, https://kebasyaty.github.io/scruby-plugin/
29
+ Project-URL: Repository, https://github.com/kebasyaty/scruby-plugin
30
+ Project-URL: Source, https://github.com/kebasyaty/scruby-plugin
31
+ Description-Content-Type: text/markdown
32
+
33
+ # scruby-plugin
34
+
35
+ Library for creating Scruby plugins.
36
+
37
+ <br>
38
+ <br>
39
+
40
+ <p>
41
+ <a href="https://github.com/kebasyaty/scruby-plugin/actions/workflows/test.yml" alt="Build Status"><img src="https://github.com/kebasyaty/scruby-plugin/actions/workflows/test.yml/badge.svg" alt="Build Status"></a>
42
+ <a href="https://pypi.python.org/pypi/scruby-plugin/" alt="PyPI pyversions"><img src="https://img.shields.io/pypi/pyversions/scruby-plugin.svg" alt="PyPI pyversions"></a>
43
+ <a href="https://pypi.python.org/pypi/scruby-plugin/" alt="PyPI status"><img src="https://img.shields.io/pypi/status/scruby-plugin.svg" alt="PyPI status"></a>
44
+ <a href="https://pypi.python.org/pypi/scruby-plugin/" alt="PyPI version fury.io"><img src="https://badge.fury.io/py/scruby-plugin.svg" alt="PyPI version fury.io"></a>
45
+ <br>
46
+ <a href="https://pyrefly.org/" alt="Types: Pyrefly"><img src="https://img.shields.io/badge/types-Pyrefly-FFB74D.svg" alt="Types: Pyrefly"></a>
47
+ <a href="https://docs.astral.sh/ruff/" alt="Code style: Ruff"><img src="https://img.shields.io/badge/code%20style-Ruff-FDD835.svg" alt="Code style: Ruff"></a>
48
+ <a href="https://pypi.org/project/scruby-plugin"><img src="https://img.shields.io/pypi/format/scruby-plugin" alt="Format"></a>
49
+ <a href="https://pepy.tech/projects/scruby-plugin"><img src="https://static.pepy.tech/badge/scruby-plugin" alt="PyPI Downloads"></a>
50
+ <a href="https://github.com/kebasyaty/scruby-plugin/blob/main/LICENSE" alt="GitHub license"><img src="https://img.shields.io/github/license/kebasyaty/scruby-plugin" alt="GitHub license"></a>
51
+ </p>
52
+
53
+ <br>
54
+
55
+ ## Requirements
56
+
57
+ [View the list of requirements](https://github.com/kebasyaty/scruby-plugin/blob/v0/REQUIREMENTS.md "Requirements").
58
+
59
+ ## Installation
60
+
61
+ ```shell
62
+ uv add scruby-plugin
63
+ ```
64
+
65
+ ## Usage
66
+
67
+ ```python
68
+ from typing import Any
69
+ from scruby_plugin import ScrubyPlugin
70
+
71
+ class PluginName(ScrubyPlugin):
72
+ def __init__(self, scruby: Any) -> None:
73
+ ScrubyPlugin.__init__(self, scruby)
74
+
75
+ ...your code...
76
+ ```
77
+
78
+ ## Changelog
79
+
80
+ [View the change history](https://github.com/kebasyaty/scruby-plugin/blob/v0/CHANGELOG.md "Changelog").
81
+
82
+ ## License
83
+
84
+ This project is licensed under the [MIT](https://github.com/kebasyaty/scruby-plugin/blob/main/LICENSE "MIT").
@@ -0,0 +1,6 @@
1
+ scruby_plugin/__init__.py,sha256=LQGjuPOGApeKRrISomnqXLPhDzqO5Qoi5TWAL0ND1nU,423
2
+ scruby_plugin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ scruby_plugin-0.2.0.dist-info/licenses/LICENSE,sha256=mvh5qv1YJGyuVCkRxonDDNOzxlwXszKvwxXfOeXKrqw,1074
4
+ scruby_plugin-0.2.0.dist-info/WHEEL,sha256=eycQt0QpYmJMLKpE3X9iDk8R04v2ZF0x82ogq-zP6bQ,79
5
+ scruby_plugin-0.2.0.dist-info/METADATA,sha256=PpVl1rsu9O686YnTnTgupiSBvozzAV28z1kSmm3sG6c,3664
6
+ scruby_plugin-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.9.24
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gennady Kostyunin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.