sonolus.py 0.1.0__tar.gz → 0.1.1__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 sonolus.py might be problematic. Click here for more details.
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/.gitignore +2 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/PKG-INFO +1 -1
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/pyproject.toml +1 -1
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/bucket.py +2 -3
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/effect.py +2 -3
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/options.py +2 -5
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/particle.py +2 -3
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/sprite.py +2 -3
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/uv.lock +1 -1
- sonolus_py-0.1.0/profile +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/.python-version +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/LICENSE +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/README.md +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/scripts/generate.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/scripts/runtimes/Engine/Tutorial/Blocks.json +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/scripts/runtimes/Functions.json +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/scripts/runtimes/Level/Play/Blocks.json +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/scripts/runtimes/Level/Preview/Blocks.json +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/scripts/runtimes/Level/Watch/Blocks.json +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/allocate.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/blocks.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/excepthook.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/finalize.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/flow.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/interpret.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/ir.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/mode.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/node.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/ops.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/optimize.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/passes.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/place.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/simplify.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/utils.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/backend/visitor.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/cli.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/collection.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/compile.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/defaults.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/engine.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/level.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/node.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/build/project.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/py.typed +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/archetype.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/array.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/callbacks.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/comptime.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/containers.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/debug.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/engine.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/globals.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/graphics.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/icon.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/builtin_impls.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/context.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/descriptor.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/error.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/generic.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/impl.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/introspection.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/native.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/internal/value.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/interval.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/iterator.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/level.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/math.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/num.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/pointer.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/project.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/range.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/record.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/runtime.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/text.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/timing.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/transform.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/ui.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/values.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/sonolus/script/vec.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/__init__.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/conftest.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_array.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_array_map.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_assert.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_helpers.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_interval.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_num.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_range.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_record.py +0 -0
- {sonolus_py-0.1.0 → sonolus_py-0.1.1}/tests/script/test_var_array.py +0 -0
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
from enum import IntEnum
|
|
5
|
-
from typing import Annotated, Any,
|
|
5
|
+
from typing import Annotated, Any, NewType, dataclass_transform, get_origin
|
|
6
6
|
|
|
7
7
|
from sonolus.backend.mode import Mode
|
|
8
8
|
from sonolus.backend.ops import Op
|
|
@@ -158,8 +158,7 @@ def bucket(*, sprites: list[BucketSprite], unit: str | None = None) -> Any:
|
|
|
158
158
|
return BucketInfo(sprites, unit)
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
|
|
162
|
-
_buckets_: list[BucketInfo]
|
|
161
|
+
type Buckets = NewType("Buckets", Any)
|
|
163
162
|
|
|
164
163
|
|
|
165
164
|
@dataclass_transform()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
|
-
from typing import Annotated, Any,
|
|
4
|
+
from typing import Annotated, Any, NewType, dataclass_transform, get_origin
|
|
5
5
|
|
|
6
6
|
from sonolus.backend.ops import Op
|
|
7
7
|
from sonolus.script.internal.introspection import get_field_specifiers
|
|
@@ -86,8 +86,7 @@ def effect(name: str) -> Any:
|
|
|
86
86
|
return EffectInfo(name)
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
_effects_: list[str]
|
|
89
|
+
type Effects = NewType("Effects", Any)
|
|
91
90
|
|
|
92
91
|
|
|
93
92
|
@dataclass_transform()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ruff: noqa: A002
|
|
2
2
|
from dataclasses import dataclass
|
|
3
|
-
from typing import Annotated, Any,
|
|
3
|
+
from typing import Annotated, Any, NewType, dataclass_transform, get_origin
|
|
4
4
|
|
|
5
5
|
from sonolus.backend.mode import Mode
|
|
6
6
|
from sonolus.backend.place import BlockPlace
|
|
@@ -124,10 +124,7 @@ def select_option(
|
|
|
124
124
|
return SelectOption(name, standard, advanced, scope, default, values)
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
_options_: ClassVar[list[SliderOption | ToggleOption | SelectOption]]
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
type Options = NewType("Options", Any)
|
|
131
128
|
type OptionInfo = SliderOption | ToggleOption | SelectOption
|
|
132
129
|
|
|
133
130
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
|
-
from typing import Annotated, Any,
|
|
4
|
+
from typing import Annotated, Any, NewType, dataclass_transform, get_origin
|
|
5
5
|
|
|
6
6
|
from sonolus.backend.ops import Op
|
|
7
7
|
from sonolus.script.graphics import QuadLike, flatten_quad
|
|
@@ -73,8 +73,7 @@ def particle(name: str) -> Any:
|
|
|
73
73
|
return ParticleInfo(name)
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
_particles_: list[str]
|
|
76
|
+
type Particles = NewType("Particles", Any)
|
|
78
77
|
|
|
79
78
|
|
|
80
79
|
@dataclass_transform()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
|
-
from typing import Annotated, Any,
|
|
2
|
+
from typing import Annotated, Any, NewType, dataclass_transform, get_origin
|
|
3
3
|
|
|
4
4
|
from sonolus.backend.ops import Op
|
|
5
5
|
from sonolus.script.graphics import QuadLike, flatten_quad
|
|
@@ -193,8 +193,7 @@ def skin_sprite(name: str) -> Any:
|
|
|
193
193
|
return SkinSprite(name)
|
|
194
194
|
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
_sprites_: list[str]
|
|
196
|
+
type Skin = NewType("Skin", Any)
|
|
198
197
|
|
|
199
198
|
|
|
200
199
|
@dataclass_transform()
|
sonolus_py-0.1.0/profile
DELETED
|
Binary file
|
|
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
|
|
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
|