modelit 0.2.6__tar.gz → 0.2.7__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.
- {modelit-0.2.6 → modelit-0.2.7}/CONTRIBUTING.md +6 -0
- {modelit-0.2.6 → modelit-0.2.7}/PKG-INFO +3 -1
- {modelit-0.2.6 → modelit-0.2.7}/README.md +2 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/cli.py +8 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit.egg-info/PKG-INFO +3 -1
- {modelit-0.2.6 → modelit-0.2.7}/.github/workflows/publish.yml +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/.github/workflows/test.yml +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/.gitignore +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/LICENSE +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/MANIFEST.in +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/__init__.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/__main__.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/registry.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/abstract_factory_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/adapter_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/advanced_exceptions/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/assertions/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/backpropagation/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/bridge_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/builder_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/cnn/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/command_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/composite_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/decorator_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/diffusion/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/facade_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/factory_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/flyweight_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/gan/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/interpreter_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/java_default_methods/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_digital_signature/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_encryption/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_hashing/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_hmac/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_mac/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_rsa/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/jca_secure_random/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/lstm/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/mediator_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/memento_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/observer_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/pca_ae/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/perceptron/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/prototype_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/proxy_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/rnn/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/sofm/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/EmailSender.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/Main.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/NotificationSender.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/NotificationService.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/PushSender.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/SlackSender.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/SmsSender.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/AreaCalculator.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/Circle.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/Main.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/Pentagon.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/Rectangle.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/Shape.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_shapes/Triangle.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/state_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/streams_employee/Employee.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/streams_employee/Main.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/streams_word_freq/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/template_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/thread_deadlock/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/thread_deadlock_solved/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/vae/template.py +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit/templates/visitor_pattern/template.java +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit.egg-info/SOURCES.txt +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit.egg-info/dependency_links.txt +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit.egg-info/entry_points.txt +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/modelit.egg-info/top_level.txt +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/pyproject.toml +0 -0
- {modelit-0.2.6 → modelit-0.2.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: modelit
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Local-first ML starter templates you can print or save
|
|
5
5
|
Author: Yashsmith
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,6 +28,7 @@ ModelIt is a tiny Python package for storing your ML/DL boilerplate templates.
|
|
|
28
28
|
- `perceptron()` prints the full code
|
|
29
29
|
- `perceptron(output="code1.py")` saves it to a file
|
|
30
30
|
- `modelit create perceptron` works from the terminal
|
|
31
|
+
- `modelit list` shows everything available
|
|
31
32
|
- single-file templates write to a file
|
|
32
33
|
- multi-file templates write to a folder
|
|
33
34
|
|
|
@@ -70,6 +71,7 @@ python3 code1.py
|
|
|
70
71
|
### CLI
|
|
71
72
|
|
|
72
73
|
```bash
|
|
74
|
+
modelit list
|
|
73
75
|
modelit create perceptron
|
|
74
76
|
modelit create perceptron --output code1.py
|
|
75
77
|
```
|
|
@@ -8,6 +8,7 @@ ModelIt is a tiny Python package for storing your ML/DL boilerplate templates.
|
|
|
8
8
|
- `perceptron()` prints the full code
|
|
9
9
|
- `perceptron(output="code1.py")` saves it to a file
|
|
10
10
|
- `modelit create perceptron` works from the terminal
|
|
11
|
+
- `modelit list` shows everything available
|
|
11
12
|
- single-file templates write to a file
|
|
12
13
|
- multi-file templates write to a folder
|
|
13
14
|
|
|
@@ -50,6 +51,7 @@ python3 code1.py
|
|
|
50
51
|
### CLI
|
|
51
52
|
|
|
52
53
|
```bash
|
|
54
|
+
modelit list
|
|
53
55
|
modelit create perceptron
|
|
54
56
|
modelit create perceptron --output code1.py
|
|
55
57
|
```
|
|
@@ -11,6 +11,11 @@ def _create(args: argparse.Namespace) -> None:
|
|
|
11
11
|
build_template_callable(args.name)(output=args.output)
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
def _list(args: argparse.Namespace) -> None:
|
|
15
|
+
for name in available_models():
|
|
16
|
+
print(name)
|
|
17
|
+
|
|
18
|
+
|
|
14
19
|
def main(argv: list[str] | None = None) -> None:
|
|
15
20
|
parser = argparse.ArgumentParser(prog="modelit", description="Print or save ML template code.")
|
|
16
21
|
subparsers = parser.add_subparsers(dest="command", required=True)
|
|
@@ -20,5 +25,8 @@ def main(argv: list[str] | None = None) -> None:
|
|
|
20
25
|
create_parser.add_argument("-o", "--output", help="Write to a file for single-file templates or a directory for multi-file templates")
|
|
21
26
|
create_parser.set_defaults(func=_create)
|
|
22
27
|
|
|
28
|
+
list_parser = subparsers.add_parser("list", help="List available templates")
|
|
29
|
+
list_parser.set_defaults(func=_list)
|
|
30
|
+
|
|
23
31
|
args = parser.parse_args(argv)
|
|
24
32
|
args.func(args)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: modelit
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Local-first ML starter templates you can print or save
|
|
5
5
|
Author: Yashsmith
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,6 +28,7 @@ ModelIt is a tiny Python package for storing your ML/DL boilerplate templates.
|
|
|
28
28
|
- `perceptron()` prints the full code
|
|
29
29
|
- `perceptron(output="code1.py")` saves it to a file
|
|
30
30
|
- `modelit create perceptron` works from the terminal
|
|
31
|
+
- `modelit list` shows everything available
|
|
31
32
|
- single-file templates write to a file
|
|
32
33
|
- multi-file templates write to a folder
|
|
33
34
|
|
|
@@ -70,6 +71,7 @@ python3 code1.py
|
|
|
70
71
|
### CLI
|
|
71
72
|
|
|
72
73
|
```bash
|
|
74
|
+
modelit list
|
|
73
75
|
modelit create perceptron
|
|
74
76
|
modelit create perceptron --output code1.py
|
|
75
77
|
```
|
|
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
|
{modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/NotificationSender.java
RENAMED
|
File without changes
|
{modelit-0.2.6 → modelit-0.2.7}/modelit/templates/solid_notification/NotificationService.java
RENAMED
|
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
|