pypixel-core 0.4.0__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.
- pypixel_core-0.4.0/.gitignore +13 -0
- pypixel_core-0.4.0/LICENSE +194 -0
- pypixel_core-0.4.0/PKG-INFO +59 -0
- pypixel_core-0.4.0/PyPixelCore/LICENSE +194 -0
- pypixel_core-0.4.0/PyPixelCore/__init__.py +162 -0
- pypixel_core-0.4.0/PyPixelCore/animation/__init__.py +42 -0
- pypixel_core-0.4.0/PyPixelCore/animation/effects.py +294 -0
- pypixel_core-0.4.0/PyPixelCore/animation/image.py +276 -0
- pypixel_core-0.4.0/PyPixelCore/animation/interpolation.py +102 -0
- pypixel_core-0.4.0/PyPixelCore/animation/move.py +71 -0
- pypixel_core-0.4.0/PyPixelCore/animation/text.py +165 -0
- pypixel_core-0.4.0/PyPixelCore/animation/work_piece.py +76 -0
- pypixel_core-0.4.0/PyPixelCore/assets/__init__.py +39 -0
- pypixel_core-0.4.0/PyPixelCore/assets/async_tasks.py +160 -0
- pypixel_core-0.4.0/PyPixelCore/assets/manager.py +513 -0
- pypixel_core-0.4.0/PyPixelCore/assets/paths.py +10 -0
- pypixel_core-0.4.0/PyPixelCore/assets/scope.py +85 -0
- pypixel_core-0.4.0/PyPixelCore/config/__init__.py +17 -0
- pypixel_core-0.4.0/PyPixelCore/config/declarations.py +24 -0
- pypixel_core-0.4.0/PyPixelCore/config/runtime.py +204 -0
- pypixel_core-0.4.0/PyPixelCore/config/schema.py +206 -0
- pypixel_core-0.4.0/PyPixelCore/config/services.py +50 -0
- pypixel_core-0.4.0/PyPixelCore/config/session.py +229 -0
- pypixel_core-0.4.0/PyPixelCore/config/store.py +133 -0
- pypixel_core-0.4.0/PyPixelCore/config/toml.py +273 -0
- pypixel_core-0.4.0/PyPixelCore/config/transaction.py +60 -0
- pypixel_core-0.4.0/PyPixelCore/diagnostics/__init__.py +48 -0
- pypixel_core-0.4.0/PyPixelCore/diagnostics/registry.py +419 -0
- pypixel_core-0.4.0/PyPixelCore/diagnostics/ui.py +1004 -0
- pypixel_core-0.4.0/PyPixelCore/diagnostics/window.py +307 -0
- pypixel_core-0.4.0/PyPixelCore/game/__init__.py +29 -0
- pypixel_core-0.4.0/PyPixelCore/game/game_panel.py +533 -0
- pypixel_core-0.4.0/PyPixelCore/game/game_state.py +48 -0
- pypixel_core-0.4.0/PyPixelCore/platform/__init__.py +1 -0
- pypixel_core-0.4.0/PyPixelCore/platform/clipboard.py +100 -0
- pypixel_core-0.4.0/PyPixelCore/platform/display.py +15 -0
- pypixel_core-0.4.0/PyPixelCore/platform/files.py +288 -0
- pypixel_core-0.4.0/PyPixelCore/platform/network/__init__.py +1 -0
- pypixel_core-0.4.0/PyPixelCore/platform/network/errors.py +4 -0
- pypixel_core-0.4.0/PyPixelCore/platform/network/message.py +71 -0
- pypixel_core-0.4.0/PyPixelCore/platform/network/socket_link.py +557 -0
- pypixel_core-0.4.0/PyPixelCore/qa/__init__.py +111 -0
- pypixel_core-0.4.0/PyPixelCore/qa/__main__.py +207 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_perf_protocol.py +41 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_plan_protocol.py +41 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_semantic_protocol.py +118 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_stream_protocol.py +63 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_support.py +780 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_window_protocol.py +54 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_window_service.py +102 -0
- pypixel_core-0.4.0/PyPixelCore/qa/_workflow_protocol.py +40 -0
- pypixel_core-0.4.0/PyPixelCore/qa/actions.py +399 -0
- pypixel_core-0.4.0/PyPixelCore/qa/adapters/__init__.py +76 -0
- pypixel_core-0.4.0/PyPixelCore/qa/agent.py +1151 -0
- pypixel_core-0.4.0/PyPixelCore/qa/artifacts.py +240 -0
- pypixel_core-0.4.0/PyPixelCore/qa/assertions.py +678 -0
- pypixel_core-0.4.0/PyPixelCore/qa/benchmark.py +85 -0
- pypixel_core-0.4.0/PyPixelCore/qa/commands.py +966 -0
- pypixel_core-0.4.0/PyPixelCore/qa/evidence.py +155 -0
- pypixel_core-0.4.0/PyPixelCore/qa/fixtures.py +503 -0
- pypixel_core-0.4.0/PyPixelCore/qa/history.py +71 -0
- pypixel_core-0.4.0/PyPixelCore/qa/html_report.py +61 -0
- pypixel_core-0.4.0/PyPixelCore/qa/inspection.py +33 -0
- pypixel_core-0.4.0/PyPixelCore/qa/intents.py +241 -0
- pypixel_core-0.4.0/PyPixelCore/qa/perf.py +322 -0
- pypixel_core-0.4.0/PyPixelCore/qa/plan.py +243 -0
- pypixel_core-0.4.0/PyPixelCore/qa/portable.py +176 -0
- pypixel_core-0.4.0/PyPixelCore/qa/probe.py +306 -0
- pypixel_core-0.4.0/PyPixelCore/qa/process.py +25 -0
- pypixel_core-0.4.0/PyPixelCore/qa/protocol.py +873 -0
- pypixel_core-0.4.0/PyPixelCore/qa/report.py +163 -0
- pypixel_core-0.4.0/PyPixelCore/qa/runner.py +290 -0
- pypixel_core-0.4.0/PyPixelCore/qa/scene.py +825 -0
- pypixel_core-0.4.0/PyPixelCore/qa/schema.py +123 -0
- pypixel_core-0.4.0/PyPixelCore/qa/semantics.py +476 -0
- pypixel_core-0.4.0/PyPixelCore/qa/session.py +407 -0
- pypixel_core-0.4.0/PyPixelCore/qa/stream.py +138 -0
- pypixel_core-0.4.0/PyPixelCore/qa/summary.py +193 -0
- pypixel_core-0.4.0/PyPixelCore/qa/targets.py +115 -0
- pypixel_core-0.4.0/PyPixelCore/qa/transport.py +311 -0
- pypixel_core-0.4.0/PyPixelCore/qa/visual.py +181 -0
- pypixel_core-0.4.0/PyPixelCore/qa/windows.py +203 -0
- pypixel_core-0.4.0/PyPixelCore/qa/wire.py +79 -0
- pypixel_core-0.4.0/PyPixelCore/qa/worker.py +165 -0
- pypixel_core-0.4.0/PyPixelCore/render/__init__.py +66 -0
- pypixel_core-0.4.0/PyPixelCore/render/atlas.py +27 -0
- pypixel_core-0.4.0/PyPixelCore/render/camera.py +50 -0
- pypixel_core-0.4.0/PyPixelCore/render/images.py +39 -0
- pypixel_core-0.4.0/PyPixelCore/render/nine_patch.py +24 -0
- pypixel_core-0.4.0/PyPixelCore/render/particles.py +1762 -0
- pypixel_core-0.4.0/PyPixelCore/render/presentation.py +46 -0
- pypixel_core-0.4.0/PyPixelCore/render/surface_cache.py +35 -0
- pypixel_core-0.4.0/PyPixelCore/render/text/__init__.py +39 -0
- pypixel_core-0.4.0/PyPixelCore/render/text/cache.py +148 -0
- pypixel_core-0.4.0/PyPixelCore/render/text/fallback.py +100 -0
- pypixel_core-0.4.0/PyPixelCore/render/text/fonts.py +205 -0
- pypixel_core-0.4.0/PyPixelCore/render/text/renderer.py +299 -0
- pypixel_core-0.4.0/PyPixelCore/resources/among.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/Cubic-11-OFL.txt +108 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/Fusion-Pixel-OFL.txt +96 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/LICENSES/cubic-11/OFL.txt +108 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/README.md +29 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/Unifont-LICENSE.txt +476 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/Unifont-OFL.txt +90 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/Zpix-README.md +111 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/cubic-11.ttf +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/fusion-pixel-12px-monospaced-zh_hans.ttf +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/fonts/unifont.otf +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/pypixel_icon.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/pypixel_icon_128.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/pypixel_icon_16.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/pypixel_icon_32.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/pypixel_icon_64.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/pypixel_logo.jpg +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/README.md +7 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/default-disabled.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/default-hover.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/default-normal.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/default-pressed.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/primary-disabled.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/primary-hover.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/primary-normal.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/primary-pressed.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/ember/skin.json +162 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/default-disabled.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/default-hover.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/default-normal.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/default-pressed.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/primary-disabled.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/primary-hover.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/primary-normal.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/primary-pressed.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/skins/woodland/skin.json +162 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/before_step.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/cunchu.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/desktop.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/error_icon.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/file-open.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/file_img.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/folder_img.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/idea_icon.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/inform_icon.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/next_step.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/pic_img.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/quest_icon.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/system_animation_img/video_img.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/resources/ui/pixel_controls.json +44 -0
- pypixel_core-0.4.0/PyPixelCore/resources/warning.png +0 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/__init__.py +39 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/child_windows.py +101 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/controller.py +1536 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/group.py +73 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/groups.py +625 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/navigation.py +138 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/recorder.py +467 -0
- pypixel_core-0.4.0/PyPixelCore/runtime/work_queue.py +95 -0
- pypixel_core-0.4.0/PyPixelCore/settings.py +287 -0
- pypixel_core-0.4.0/PyPixelCore/timing/__init__.py +51 -0
- pypixel_core-0.4.0/PyPixelCore/timing/cycle_time_timer.py +44 -0
- pypixel_core-0.4.0/PyPixelCore/timing/cycle_timer.py +62 -0
- pypixel_core-0.4.0/PyPixelCore/timing/frequency_time_timer.py +83 -0
- pypixel_core-0.4.0/PyPixelCore/timing/frequency_timer.py +84 -0
- pypixel_core-0.4.0/PyPixelCore/timing/only_time_timer.py +75 -0
- pypixel_core-0.4.0/PyPixelCore/timing/only_timer.py +53 -0
- pypixel_core-0.4.0/PyPixelCore/timing/time_clock.py +50 -0
- pypixel_core-0.4.0/PyPixelCore/ui/__init__.py +147 -0
- pypixel_core-0.4.0/PyPixelCore/ui/configuration.py +167 -0
- pypixel_core-0.4.0/PyPixelCore/ui/containers/__init__.py +30 -0
- pypixel_core-0.4.0/PyPixelCore/ui/containers/panel.py +533 -0
- pypixel_core-0.4.0/PyPixelCore/ui/containers/panel_list.py +835 -0
- pypixel_core-0.4.0/PyPixelCore/ui/contracts.py +127 -0
- pypixel_core-0.4.0/PyPixelCore/ui/declarative/__init__.py +11 -0
- pypixel_core-0.4.0/PyPixelCore/ui/declarative/builder.py +116 -0
- pypixel_core-0.4.0/PyPixelCore/ui/declarative/schema.py +149 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/__init__.py +54 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/_chooser_art.py +366 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/_process_window.py +438 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/dialog.py +618 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/file_chooser.py +1209 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/qrcode_window.py +251 -0
- pypixel_core-0.4.0/PyPixelCore/ui/dialogs/style.py +51 -0
- pypixel_core-0.4.0/PyPixelCore/ui/forms/__init__.py +33 -0
- pypixel_core-0.4.0/PyPixelCore/ui/forms/_widgets.py +68 -0
- pypixel_core-0.4.0/PyPixelCore/ui/forms/controls.py +32 -0
- pypixel_core-0.4.0/PyPixelCore/ui/forms/style.py +34 -0
- pypixel_core-0.4.0/PyPixelCore/ui/forms/view.py +261 -0
- pypixel_core-0.4.0/PyPixelCore/ui/layout/__init__.py +36 -0
- pypixel_core-0.4.0/PyPixelCore/ui/layout/hbox.py +24 -0
- pypixel_core-0.4.0/PyPixelCore/ui/layout/hint.py +62 -0
- pypixel_core-0.4.0/PyPixelCore/ui/layout/panel.py +451 -0
- pypixel_core-0.4.0/PyPixelCore/ui/layout/vbox.py +23 -0
- pypixel_core-0.4.0/PyPixelCore/ui/primitives/__init__.py +33 -0
- pypixel_core-0.4.0/PyPixelCore/ui/primitives/base.py +485 -0
- pypixel_core-0.4.0/PyPixelCore/ui/primitives/block.py +248 -0
- pypixel_core-0.4.0/PyPixelCore/ui/primitives/button_base.py +334 -0
- pypixel_core-0.4.0/PyPixelCore/ui/primitives/visibility.py +106 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/__init__.py +15 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/base.py +54 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/default.py +6 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/pack.py +173 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/pixel/__init__.py +3 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/pixel/painters.py +206 -0
- pypixel_core-0.4.0/PyPixelCore/ui/skins/pixel/skin.py +147 -0
- pypixel_core-0.4.0/PyPixelCore/ui/theme.py +471 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/__init__.py +87 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/bar.py +189 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/check_box.py +101 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/context_menu.py +78 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/dynamic_image_block.py +508 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/edit_text.py +786 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/icon_button.py +181 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/image_button.py +184 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/log_view.py +80 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/menu_bar.py +320 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/multi_line_text_block.py +248 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/progress_bar.py +104 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/qr_code_block.py +52 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/select_button.py +217 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/simplify_button.py +146 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/slider.py +177 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/super_multi_line_text_block.py +351 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/switch.py +150 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/text_block.py +224 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/text_button.py +241 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/text_view.py +660 -0
- pypixel_core-0.4.0/PyPixelCore/ui/widgets/tip_box.py +176 -0
- pypixel_core-0.4.0/PyPixelCore/version.py +3 -0
- pypixel_core-0.4.0/README.md +37 -0
- pypixel_core-0.4.0/pyproject.toml +46 -0
- pypixel_core-0.4.0/tests/__init__.py +1 -0
- pypixel_core-0.4.0/tests/core/__init__.py +1 -0
- pypixel_core-0.4.0/tests/core/test_pixel_controls.py +139 -0
- pypixel_core-0.4.0/tests/core/test_qa_visibility.py +180 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
木兰宽松许可证,第2版
|
|
2
|
+
|
|
3
|
+
木兰宽松许可证,第2版
|
|
4
|
+
|
|
5
|
+
2020年1月 http://license.coscl.org.cn/MulanPSL2
|
|
6
|
+
|
|
7
|
+
您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
|
|
8
|
+
|
|
9
|
+
0. 定义
|
|
10
|
+
|
|
11
|
+
“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
|
|
12
|
+
|
|
13
|
+
“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
|
|
14
|
+
|
|
15
|
+
“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
|
|
16
|
+
|
|
17
|
+
“法人实体” 是指提交贡献的机构及其“关联实体”。
|
|
18
|
+
|
|
19
|
+
“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是
|
|
20
|
+
指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
|
|
21
|
+
|
|
22
|
+
1. 授予版权许可
|
|
23
|
+
|
|
24
|
+
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可
|
|
25
|
+
以复制、使用、修改、分发其“贡献”,不论修改与否。
|
|
26
|
+
|
|
27
|
+
2. 授予专利许可
|
|
28
|
+
|
|
29
|
+
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定
|
|
30
|
+
撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡
|
|
31
|
+
献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软
|
|
32
|
+
件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“
|
|
33
|
+
关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或
|
|
34
|
+
其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权
|
|
35
|
+
行动之日终止。
|
|
36
|
+
|
|
37
|
+
3. 无商标许可
|
|
38
|
+
|
|
39
|
+
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定
|
|
40
|
+
的声明义务而必须使用除外。
|
|
41
|
+
|
|
42
|
+
4. 分发限制
|
|
43
|
+
|
|
44
|
+
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“
|
|
45
|
+
本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
|
|
46
|
+
|
|
47
|
+
5. 免责声明与责任限制
|
|
48
|
+
|
|
49
|
+
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对
|
|
50
|
+
任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于
|
|
51
|
+
何种法律理论,即使其曾被建议有此种损失的可能性。
|
|
52
|
+
|
|
53
|
+
6. 语言
|
|
54
|
+
|
|
55
|
+
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文
|
|
56
|
+
版为准。
|
|
57
|
+
|
|
58
|
+
条款结束
|
|
59
|
+
|
|
60
|
+
如何将木兰宽松许可证,第2版,应用到您的软件
|
|
61
|
+
|
|
62
|
+
如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
|
|
63
|
+
|
|
64
|
+
1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
|
|
65
|
+
|
|
66
|
+
2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
|
|
67
|
+
|
|
68
|
+
3, 请将如下声明文本放入每个源文件的头部注释中。
|
|
69
|
+
|
|
70
|
+
Copyright (c) [Year] [name of copyright holder]
|
|
71
|
+
[Software Name] is licensed under Mulan PSL v2.
|
|
72
|
+
You can use this software according to the terms and conditions of the Mulan
|
|
73
|
+
PSL v2.
|
|
74
|
+
You may obtain a copy of Mulan PSL v2 at:
|
|
75
|
+
http://license.coscl.org.cn/MulanPSL2
|
|
76
|
+
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
|
|
77
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
78
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
79
|
+
See the Mulan PSL v2 for more details.
|
|
80
|
+
|
|
81
|
+
Mulan Permissive Software License,Version 2
|
|
82
|
+
|
|
83
|
+
Mulan Permissive Software License,Version 2 (Mulan PSL v2)
|
|
84
|
+
|
|
85
|
+
January 2020 http://license.coscl.org.cn/MulanPSL2
|
|
86
|
+
|
|
87
|
+
Your reproduction, use, modification and distribution of the Software shall
|
|
88
|
+
be subject to Mulan PSL v2 (this License) with the following terms and
|
|
89
|
+
conditions:
|
|
90
|
+
|
|
91
|
+
0. Definition
|
|
92
|
+
|
|
93
|
+
Software means the program and related documents which are licensed under
|
|
94
|
+
this License and comprise all Contribution(s).
|
|
95
|
+
|
|
96
|
+
Contribution means the copyrightable work licensed by a particular
|
|
97
|
+
Contributor under this License.
|
|
98
|
+
|
|
99
|
+
Contributor means the Individual or Legal Entity who licenses its
|
|
100
|
+
copyrightable work under this License.
|
|
101
|
+
|
|
102
|
+
Legal Entity means the entity making a Contribution and all its
|
|
103
|
+
Affiliates.
|
|
104
|
+
|
|
105
|
+
Affiliates means entities that control, are controlled by, or are under
|
|
106
|
+
common control with the acting entity under this License, ‘control’ means
|
|
107
|
+
direct or indirect ownership of at least fifty percent (50%) of the voting
|
|
108
|
+
power, capital or other securities of controlled or commonly controlled
|
|
109
|
+
entity.
|
|
110
|
+
|
|
111
|
+
1. Grant of Copyright License
|
|
112
|
+
|
|
113
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
114
|
+
grants to you a perpetual, worldwide, royalty-free, non-exclusive,
|
|
115
|
+
irrevocable copyright license to reproduce, use, modify, or distribute its
|
|
116
|
+
Contribution, with modification or not.
|
|
117
|
+
|
|
118
|
+
2. Grant of Patent License
|
|
119
|
+
|
|
120
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
121
|
+
grants to you a perpetual, worldwide, royalty-free, non-exclusive,
|
|
122
|
+
irrevocable (except for revocation under this Section) patent license to
|
|
123
|
+
make, have made, use, offer for sale, sell, import or otherwise transfer its
|
|
124
|
+
Contribution, where such patent license is only limited to the patent claims
|
|
125
|
+
owned or controlled by such Contributor now or in future which will be
|
|
126
|
+
necessarily infringed by its Contribution alone, or by combination of the
|
|
127
|
+
Contribution with the Software to which the Contribution was contributed.
|
|
128
|
+
The patent license shall not apply to any modification of the Contribution,
|
|
129
|
+
and any other combination which includes the Contribution. If you or your
|
|
130
|
+
Affiliates directly or indirectly institute patent litigation (including a
|
|
131
|
+
cross claim or counterclaim in a litigation) or other patent enforcement
|
|
132
|
+
activities against any individual or entity by alleging that the Software or
|
|
133
|
+
any Contribution in it infringes patents, then any patent license granted to
|
|
134
|
+
you under this License for the Software shall terminate as of the date such
|
|
135
|
+
litigation or activity is filed or taken.
|
|
136
|
+
|
|
137
|
+
3. No Trademark License
|
|
138
|
+
|
|
139
|
+
No trademark license is granted to use the trade names, trademarks, service
|
|
140
|
+
marks, or product names of Contributor, except as required to fulfill notice
|
|
141
|
+
requirements in section 4.
|
|
142
|
+
|
|
143
|
+
4. Distribution Restriction
|
|
144
|
+
|
|
145
|
+
You may distribute the Software in any medium with or without modification,
|
|
146
|
+
whether in source or executable forms, provided that you provide recipients
|
|
147
|
+
with a copy of this License and retain copyright, patent, trademark and
|
|
148
|
+
disclaimer statements in the Software.
|
|
149
|
+
|
|
150
|
+
5. Disclaimer of Warranty and Limitation of Liability
|
|
151
|
+
|
|
152
|
+
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY
|
|
153
|
+
KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR
|
|
154
|
+
COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT
|
|
155
|
+
LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
156
|
+
FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO
|
|
157
|
+
MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF
|
|
158
|
+
THE POSSIBILITY OF SUCH DAMAGES.
|
|
159
|
+
|
|
160
|
+
6. Language
|
|
161
|
+
|
|
162
|
+
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION
|
|
163
|
+
AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF
|
|
164
|
+
DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION
|
|
165
|
+
SHALL PREVAIL.
|
|
166
|
+
|
|
167
|
+
END OF THE TERMS AND CONDITIONS
|
|
168
|
+
|
|
169
|
+
How to Apply the Mulan Permissive Software License,Version 2
|
|
170
|
+
(Mulan PSL v2) to Your Software
|
|
171
|
+
|
|
172
|
+
To apply the Mulan PSL v2 to your work, for easy identification by
|
|
173
|
+
recipients, you are suggested to complete following three steps:
|
|
174
|
+
|
|
175
|
+
i. Fill in the blanks in following statement, including insert your software
|
|
176
|
+
name, the year of the first publication of your software, and your name
|
|
177
|
+
identified as the copyright owner;
|
|
178
|
+
|
|
179
|
+
ii. Create a file named "LICENSE" which contains the whole context of this
|
|
180
|
+
License in the first directory of your software package;
|
|
181
|
+
|
|
182
|
+
iii. Attach the statement to the appropriate annotated syntax at the
|
|
183
|
+
beginning of each source file.
|
|
184
|
+
|
|
185
|
+
Copyright (c) [Year] [name of copyright holder]
|
|
186
|
+
[Software Name] is licensed under Mulan PSL v2.
|
|
187
|
+
You can use this software according to the terms and conditions of the Mulan
|
|
188
|
+
PSL v2.
|
|
189
|
+
You may obtain a copy of Mulan PSL v2 at:
|
|
190
|
+
http://license.coscl.org.cn/MulanPSL2
|
|
191
|
+
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
|
|
192
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
193
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
194
|
+
See the Mulan PSL v2 for more details.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pypixel-core
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: An AI agent-friendly pygame framework for pixel-art GUIs and 2D games, with headless UI interaction and structured QA results
|
|
5
|
+
Project-URL: Source, https://gitee.com/arisuyi/py-pixel/tree/arisu
|
|
6
|
+
Project-URL: Documentation, https://gitee.com/arisuyi/py-pixel/blob/arisu/PyPixelCore/docs/README.md
|
|
7
|
+
Author: Arisu
|
|
8
|
+
License-Expression: MulanPSL-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Requires-Dist: numpy
|
|
12
|
+
Requires-Dist: pygame>=2.6
|
|
13
|
+
Requires-Dist: tomli; python_version < '3.11'
|
|
14
|
+
Provides-Extra: opengl
|
|
15
|
+
Requires-Dist: pyopengl; extra == 'opengl'
|
|
16
|
+
Provides-Extra: qr
|
|
17
|
+
Requires-Dist: qrcode; extra == 'qr'
|
|
18
|
+
Provides-Extra: recording
|
|
19
|
+
Requires-Dist: imageio-ffmpeg; extra == 'recording'
|
|
20
|
+
Requires-Dist: opencv-python; extra == 'recording'
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
# PyPixelCore
|
|
24
|
+
|
|
25
|
+
PyPixelCore 是对 AI 智能体友好的像素 GUI 与 2D 游戏框架,基于 pygame,提供像素控件、声明式布局、主题和动画。
|
|
26
|
+
|
|
27
|
+
开发者可以给控件设置稳定的 `qa_id`。智能体通过内置 QA 探针按 ID 定位控件,在无头模式下模拟点击并验证界面变化。例如,打开设置页后,它可以断言页面标题已显示;如果按钮被裁剪,还可以读取可见区域和失败原因,按需查看截图。
|
|
28
|
+
|
|
29
|
+
## 安装与使用
|
|
30
|
+
|
|
31
|
+
发行名为 `pypixel-core`,Python 导入名为 `PyPixelCore`。发布到 PyPI 后可用 `python -m pip install pypixel-core` 安装。
|
|
32
|
+
|
|
33
|
+
使用 Python 3.10 或更高版本。从源码安装时,在本仓库根目录运行:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
python -m pip install .
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
应用从 `PyPixelCore` 导入框架。窗口、按钮和 QA 工厂的示例见[快速开始](https://gitee.com/arisuyi/py-pixel/blob/arisu/PyPixelCore/docs/quickstart.md)。查找控件或验证交互见[按任务开发](https://gitee.com/arisuyi/py-pixel/blob/arisu/PyPixelCore/docs/qa-task.md)。
|
|
40
|
+
|
|
41
|
+
## 开发与打包
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
python -m pip install -e .
|
|
45
|
+
python -m unittest discover -s tests/core
|
|
46
|
+
python -m pip install build twine
|
|
47
|
+
python -m build
|
|
48
|
+
python -m twine check --strict dist/*.whl dist/*.tar.gz
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
版本来自 `PyPixelCore/version.py`。构建生成源码包和 wheel,保存在 `dist/`。发布时向 PyPI 上传本次构建的两个文件。二维码、OpenGL 和录屏的可选依赖分别通过 `.[qr]`、`.[opengl]`、`.[recording]` 安装。
|
|
52
|
+
|
|
53
|
+
### Windows 发布到 PyPI
|
|
54
|
+
|
|
55
|
+
双击仓库根目录的 `publish-pypi.bat`。脚本使用项目的 `.venv`,首次运行会按需创建环境并安装构建工具。每次在新的 `dist/release-*/` 目录内构建 wheel 和源码包,校验通过后上传到正式 PyPI。按终端提示粘贴 PyPI API token;已配置 `TWINE_PASSWORD` 时会自动使用。仅验证构建可运行 `.\publish-pypi.bat --check`。
|
|
56
|
+
|
|
57
|
+
发布新代码前更新 `PyPixelCore/version.py` 中的 `__version__`。同一次发布中断后可用相同源码和版本重跑,PyPI 上已存在的文件会跳过。
|
|
58
|
+
|
|
59
|
+
框架使用木兰宽松许可证第 2 版。随包字体的授权及 Zpix 的单独配置见[字体说明](https://gitee.com/arisuyi/py-pixel/blob/arisu/PyPixelCore/resources/fonts/README.md)。仓库保留[框架手册](https://gitee.com/arisuyi/py-pixel/tree/arisu/PyPixelCore/docs)和[开发技能](https://gitee.com/arisuyi/py-pixel/tree/arisu/PyPixelCore/skills)。
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
木兰宽松许可证,第2版
|
|
2
|
+
|
|
3
|
+
木兰宽松许可证,第2版
|
|
4
|
+
|
|
5
|
+
2020年1月 http://license.coscl.org.cn/MulanPSL2
|
|
6
|
+
|
|
7
|
+
您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
|
|
8
|
+
|
|
9
|
+
0. 定义
|
|
10
|
+
|
|
11
|
+
“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
|
|
12
|
+
|
|
13
|
+
“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
|
|
14
|
+
|
|
15
|
+
“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
|
|
16
|
+
|
|
17
|
+
“法人实体” 是指提交贡献的机构及其“关联实体”。
|
|
18
|
+
|
|
19
|
+
“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是
|
|
20
|
+
指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
|
|
21
|
+
|
|
22
|
+
1. 授予版权许可
|
|
23
|
+
|
|
24
|
+
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可
|
|
25
|
+
以复制、使用、修改、分发其“贡献”,不论修改与否。
|
|
26
|
+
|
|
27
|
+
2. 授予专利许可
|
|
28
|
+
|
|
29
|
+
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定
|
|
30
|
+
撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡
|
|
31
|
+
献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软
|
|
32
|
+
件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“
|
|
33
|
+
关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或
|
|
34
|
+
其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权
|
|
35
|
+
行动之日终止。
|
|
36
|
+
|
|
37
|
+
3. 无商标许可
|
|
38
|
+
|
|
39
|
+
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定
|
|
40
|
+
的声明义务而必须使用除外。
|
|
41
|
+
|
|
42
|
+
4. 分发限制
|
|
43
|
+
|
|
44
|
+
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“
|
|
45
|
+
本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
|
|
46
|
+
|
|
47
|
+
5. 免责声明与责任限制
|
|
48
|
+
|
|
49
|
+
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对
|
|
50
|
+
任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于
|
|
51
|
+
何种法律理论,即使其曾被建议有此种损失的可能性。
|
|
52
|
+
|
|
53
|
+
6. 语言
|
|
54
|
+
|
|
55
|
+
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文
|
|
56
|
+
版为准。
|
|
57
|
+
|
|
58
|
+
条款结束
|
|
59
|
+
|
|
60
|
+
如何将木兰宽松许可证,第2版,应用到您的软件
|
|
61
|
+
|
|
62
|
+
如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
|
|
63
|
+
|
|
64
|
+
1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
|
|
65
|
+
|
|
66
|
+
2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
|
|
67
|
+
|
|
68
|
+
3, 请将如下声明文本放入每个源文件的头部注释中。
|
|
69
|
+
|
|
70
|
+
Copyright (c) [Year] [name of copyright holder]
|
|
71
|
+
[Software Name] is licensed under Mulan PSL v2.
|
|
72
|
+
You can use this software according to the terms and conditions of the Mulan
|
|
73
|
+
PSL v2.
|
|
74
|
+
You may obtain a copy of Mulan PSL v2 at:
|
|
75
|
+
http://license.coscl.org.cn/MulanPSL2
|
|
76
|
+
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
|
|
77
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
78
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
79
|
+
See the Mulan PSL v2 for more details.
|
|
80
|
+
|
|
81
|
+
Mulan Permissive Software License,Version 2
|
|
82
|
+
|
|
83
|
+
Mulan Permissive Software License,Version 2 (Mulan PSL v2)
|
|
84
|
+
|
|
85
|
+
January 2020 http://license.coscl.org.cn/MulanPSL2
|
|
86
|
+
|
|
87
|
+
Your reproduction, use, modification and distribution of the Software shall
|
|
88
|
+
be subject to Mulan PSL v2 (this License) with the following terms and
|
|
89
|
+
conditions:
|
|
90
|
+
|
|
91
|
+
0. Definition
|
|
92
|
+
|
|
93
|
+
Software means the program and related documents which are licensed under
|
|
94
|
+
this License and comprise all Contribution(s).
|
|
95
|
+
|
|
96
|
+
Contribution means the copyrightable work licensed by a particular
|
|
97
|
+
Contributor under this License.
|
|
98
|
+
|
|
99
|
+
Contributor means the Individual or Legal Entity who licenses its
|
|
100
|
+
copyrightable work under this License.
|
|
101
|
+
|
|
102
|
+
Legal Entity means the entity making a Contribution and all its
|
|
103
|
+
Affiliates.
|
|
104
|
+
|
|
105
|
+
Affiliates means entities that control, are controlled by, or are under
|
|
106
|
+
common control with the acting entity under this License, ‘control’ means
|
|
107
|
+
direct or indirect ownership of at least fifty percent (50%) of the voting
|
|
108
|
+
power, capital or other securities of controlled or commonly controlled
|
|
109
|
+
entity.
|
|
110
|
+
|
|
111
|
+
1. Grant of Copyright License
|
|
112
|
+
|
|
113
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
114
|
+
grants to you a perpetual, worldwide, royalty-free, non-exclusive,
|
|
115
|
+
irrevocable copyright license to reproduce, use, modify, or distribute its
|
|
116
|
+
Contribution, with modification or not.
|
|
117
|
+
|
|
118
|
+
2. Grant of Patent License
|
|
119
|
+
|
|
120
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
121
|
+
grants to you a perpetual, worldwide, royalty-free, non-exclusive,
|
|
122
|
+
irrevocable (except for revocation under this Section) patent license to
|
|
123
|
+
make, have made, use, offer for sale, sell, import or otherwise transfer its
|
|
124
|
+
Contribution, where such patent license is only limited to the patent claims
|
|
125
|
+
owned or controlled by such Contributor now or in future which will be
|
|
126
|
+
necessarily infringed by its Contribution alone, or by combination of the
|
|
127
|
+
Contribution with the Software to which the Contribution was contributed.
|
|
128
|
+
The patent license shall not apply to any modification of the Contribution,
|
|
129
|
+
and any other combination which includes the Contribution. If you or your
|
|
130
|
+
Affiliates directly or indirectly institute patent litigation (including a
|
|
131
|
+
cross claim or counterclaim in a litigation) or other patent enforcement
|
|
132
|
+
activities against any individual or entity by alleging that the Software or
|
|
133
|
+
any Contribution in it infringes patents, then any patent license granted to
|
|
134
|
+
you under this License for the Software shall terminate as of the date such
|
|
135
|
+
litigation or activity is filed or taken.
|
|
136
|
+
|
|
137
|
+
3. No Trademark License
|
|
138
|
+
|
|
139
|
+
No trademark license is granted to use the trade names, trademarks, service
|
|
140
|
+
marks, or product names of Contributor, except as required to fulfill notice
|
|
141
|
+
requirements in section 4.
|
|
142
|
+
|
|
143
|
+
4. Distribution Restriction
|
|
144
|
+
|
|
145
|
+
You may distribute the Software in any medium with or without modification,
|
|
146
|
+
whether in source or executable forms, provided that you provide recipients
|
|
147
|
+
with a copy of this License and retain copyright, patent, trademark and
|
|
148
|
+
disclaimer statements in the Software.
|
|
149
|
+
|
|
150
|
+
5. Disclaimer of Warranty and Limitation of Liability
|
|
151
|
+
|
|
152
|
+
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY
|
|
153
|
+
KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR
|
|
154
|
+
COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT
|
|
155
|
+
LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
156
|
+
FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO
|
|
157
|
+
MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF
|
|
158
|
+
THE POSSIBILITY OF SUCH DAMAGES.
|
|
159
|
+
|
|
160
|
+
6. Language
|
|
161
|
+
|
|
162
|
+
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION
|
|
163
|
+
AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF
|
|
164
|
+
DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION
|
|
165
|
+
SHALL PREVAIL.
|
|
166
|
+
|
|
167
|
+
END OF THE TERMS AND CONDITIONS
|
|
168
|
+
|
|
169
|
+
How to Apply the Mulan Permissive Software License,Version 2
|
|
170
|
+
(Mulan PSL v2) to Your Software
|
|
171
|
+
|
|
172
|
+
To apply the Mulan PSL v2 to your work, for easy identification by
|
|
173
|
+
recipients, you are suggested to complete following three steps:
|
|
174
|
+
|
|
175
|
+
i. Fill in the blanks in following statement, including insert your software
|
|
176
|
+
name, the year of the first publication of your software, and your name
|
|
177
|
+
identified as the copyright owner;
|
|
178
|
+
|
|
179
|
+
ii. Create a file named "LICENSE" which contains the whole context of this
|
|
180
|
+
License in the first directory of your software package;
|
|
181
|
+
|
|
182
|
+
iii. Attach the statement to the appropriate annotated syntax at the
|
|
183
|
+
beginning of each source file.
|
|
184
|
+
|
|
185
|
+
Copyright (c) [Year] [name of copyright holder]
|
|
186
|
+
[Software Name] is licensed under Mulan PSL v2.
|
|
187
|
+
You can use this software according to the terms and conditions of the Mulan
|
|
188
|
+
PSL v2.
|
|
189
|
+
You may obtain a copy of Mulan PSL v2 at:
|
|
190
|
+
http://license.coscl.org.cn/MulanPSL2
|
|
191
|
+
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
|
|
192
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
193
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
194
|
+
See the Mulan PSL v2 for more details.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"""PyPixelCore public interfaces; implementations are organized by subsystem."""
|
|
2
|
+
from importlib import import_module
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from PyPixelCore.settings import BlockType as BlockType
|
|
7
|
+
from PyPixelCore.settings import ColorType as ColorType
|
|
8
|
+
from PyPixelCore.settings import FPSType as FPSType
|
|
9
|
+
from PyPixelCore.timing import OnlyTimer as OnlyTimer
|
|
10
|
+
from PyPixelCore.timing import CycleTimer as CycleTimer
|
|
11
|
+
from PyPixelCore.timing import FrequencyTimer as FrequencyTimer
|
|
12
|
+
from PyPixelCore.timing import OnlyTimeTimer as OnlyTimeTimer
|
|
13
|
+
from PyPixelCore.timing import CycleTimeTimer as CycleTimeTimer
|
|
14
|
+
from PyPixelCore.timing import FrequencyTimeTimer as FrequencyTimeTimer
|
|
15
|
+
from PyPixelCore.timing import update_frame_clock as update_frame_clock
|
|
16
|
+
from PyPixelCore.timing import now_ms as now_ms
|
|
17
|
+
from PyPixelCore.assets import PixelResourceManager as PixelResourceManager
|
|
18
|
+
from PyPixelCore.assets import Resource as Resource
|
|
19
|
+
from PyPixelCore.assets import PreloadApply as PreloadApply
|
|
20
|
+
from PyPixelCore.assets import AsyncTaskManager as AsyncTaskManager
|
|
21
|
+
from PyPixelCore.ui.theme import Theme as Theme
|
|
22
|
+
from PyPixelCore.ui.theme import ThemePalette as ThemePalette
|
|
23
|
+
from PyPixelCore.ui.theme import WARM_PAPER as WARM_PAPER
|
|
24
|
+
from PyPixelCore.ui.theme import DARK_INK as DARK_INK
|
|
25
|
+
from PyPixelCore.ui.theme import OCEAN as OCEAN
|
|
26
|
+
from PyPixelCore.ui.theme import LIGHT as LIGHT
|
|
27
|
+
from PyPixelCore.ui.theme import BUILTIN_PALETTES as BUILTIN_PALETTES
|
|
28
|
+
from PyPixelCore.ui.theme import get_theme as get_theme
|
|
29
|
+
from PyPixelCore.game import GamePanel as GamePanel
|
|
30
|
+
from PyPixelCore.game import GameState as GameState
|
|
31
|
+
from PyPixelCore.render import ParticleSystem as ParticleSystem
|
|
32
|
+
from PyPixelCore.render import ParticleStyle as ParticleStyle
|
|
33
|
+
from PyPixelCore.render import ParticlePreset as ParticlePreset
|
|
34
|
+
from PyPixelCore.render import ParticleShape as ParticleShape
|
|
35
|
+
from PyPixelCore.render import SoftwareBackend as SoftwareBackend
|
|
36
|
+
from PyPixelCore.render import GLPointBackend as GLPointBackend
|
|
37
|
+
from PyPixelCore.render import GL_FRIENDLY_SHAPES as GL_FRIENDLY_SHAPES
|
|
38
|
+
from PyPixelCore.render import GLAvailable as GLAvailable
|
|
39
|
+
from PyPixelCore.render import create_default_presets as create_default_presets
|
|
40
|
+
from PyPixelCore.runtime.recorder import VideoRecorder as VideoRecorder
|
|
41
|
+
from PyPixelCore.render.text.fonts import FontResources as FontResources
|
|
42
|
+
from PyPixelCore.render.text.fonts import FontSpec as FontSpec
|
|
43
|
+
from PyPixelCore.render.text.fonts import TextStyle as TextStyle
|
|
44
|
+
from PyPixelCore.runtime.work_queue import FrameWorkQueue as FrameWorkQueue
|
|
45
|
+
from PyPixelCore.config import PyPixelConfig as PyPixelConfig
|
|
46
|
+
from PyPixelCore.config import WindowConfig as WindowConfig
|
|
47
|
+
from PyPixelCore.config import LayerConfig as LayerConfig
|
|
48
|
+
from PyPixelCore.config import RuntimeConfig as RuntimeConfig
|
|
49
|
+
from PyPixelCore.config import QAConfig as QAConfig
|
|
50
|
+
from PyPixelCore.config import RecordingConfig as RecordingConfig
|
|
51
|
+
from PyPixelCore.version import __version__ as __version__
|
|
52
|
+
|
|
53
|
+
__all__ = [
|
|
54
|
+
'BlockType',
|
|
55
|
+
'ColorType',
|
|
56
|
+
'FPSType',
|
|
57
|
+
'OnlyTimer',
|
|
58
|
+
'CycleTimer',
|
|
59
|
+
'FrequencyTimer',
|
|
60
|
+
'OnlyTimeTimer',
|
|
61
|
+
'CycleTimeTimer',
|
|
62
|
+
'FrequencyTimeTimer',
|
|
63
|
+
'update_frame_clock',
|
|
64
|
+
'now_ms',
|
|
65
|
+
'PixelResourceManager',
|
|
66
|
+
'Resource',
|
|
67
|
+
'PreloadApply',
|
|
68
|
+
'AsyncTaskManager',
|
|
69
|
+
'Theme',
|
|
70
|
+
'ThemePalette',
|
|
71
|
+
'WARM_PAPER',
|
|
72
|
+
'DARK_INK',
|
|
73
|
+
'OCEAN',
|
|
74
|
+
'LIGHT',
|
|
75
|
+
'BUILTIN_PALETTES',
|
|
76
|
+
'get_theme',
|
|
77
|
+
'GamePanel',
|
|
78
|
+
'GameState',
|
|
79
|
+
'ParticleSystem',
|
|
80
|
+
'ParticleStyle',
|
|
81
|
+
'ParticlePreset',
|
|
82
|
+
'ParticleShape',
|
|
83
|
+
'SoftwareBackend',
|
|
84
|
+
'GLPointBackend',
|
|
85
|
+
'GL_FRIENDLY_SHAPES',
|
|
86
|
+
'GLAvailable',
|
|
87
|
+
'create_default_presets',
|
|
88
|
+
'VideoRecorder',
|
|
89
|
+
'FontResources',
|
|
90
|
+
'FontSpec',
|
|
91
|
+
'TextStyle',
|
|
92
|
+
'FrameWorkQueue',
|
|
93
|
+
'PyPixelConfig',
|
|
94
|
+
'WindowConfig',
|
|
95
|
+
'LayerConfig',
|
|
96
|
+
'RuntimeConfig',
|
|
97
|
+
'QAConfig',
|
|
98
|
+
'RecordingConfig',
|
|
99
|
+
'__version__',
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
_EXPORTS = {
|
|
103
|
+
'BlockType': 'PyPixelCore.settings',
|
|
104
|
+
'ColorType': 'PyPixelCore.settings',
|
|
105
|
+
'FPSType': 'PyPixelCore.settings',
|
|
106
|
+
'OnlyTimer': 'PyPixelCore.timing',
|
|
107
|
+
'CycleTimer': 'PyPixelCore.timing',
|
|
108
|
+
'FrequencyTimer': 'PyPixelCore.timing',
|
|
109
|
+
'OnlyTimeTimer': 'PyPixelCore.timing',
|
|
110
|
+
'CycleTimeTimer': 'PyPixelCore.timing',
|
|
111
|
+
'FrequencyTimeTimer': 'PyPixelCore.timing',
|
|
112
|
+
'update_frame_clock': 'PyPixelCore.timing',
|
|
113
|
+
'now_ms': 'PyPixelCore.timing',
|
|
114
|
+
'PixelResourceManager': 'PyPixelCore.assets',
|
|
115
|
+
'Resource': 'PyPixelCore.assets',
|
|
116
|
+
'PreloadApply': 'PyPixelCore.assets',
|
|
117
|
+
'AsyncTaskManager': 'PyPixelCore.assets',
|
|
118
|
+
'Theme': 'PyPixelCore.ui.theme',
|
|
119
|
+
'ThemePalette': 'PyPixelCore.ui.theme',
|
|
120
|
+
'WARM_PAPER': 'PyPixelCore.ui.theme',
|
|
121
|
+
'DARK_INK': 'PyPixelCore.ui.theme',
|
|
122
|
+
'OCEAN': 'PyPixelCore.ui.theme',
|
|
123
|
+
'LIGHT': 'PyPixelCore.ui.theme',
|
|
124
|
+
'BUILTIN_PALETTES': 'PyPixelCore.ui.theme',
|
|
125
|
+
'get_theme': 'PyPixelCore.ui.theme',
|
|
126
|
+
'GamePanel': 'PyPixelCore.game',
|
|
127
|
+
'GameState': 'PyPixelCore.game',
|
|
128
|
+
'ParticleSystem': 'PyPixelCore.render',
|
|
129
|
+
'ParticleStyle': 'PyPixelCore.render',
|
|
130
|
+
'ParticlePreset': 'PyPixelCore.render',
|
|
131
|
+
'ParticleShape': 'PyPixelCore.render',
|
|
132
|
+
'SoftwareBackend': 'PyPixelCore.render',
|
|
133
|
+
'GLPointBackend': 'PyPixelCore.render',
|
|
134
|
+
'GL_FRIENDLY_SHAPES': 'PyPixelCore.render',
|
|
135
|
+
'GLAvailable': 'PyPixelCore.render',
|
|
136
|
+
'create_default_presets': 'PyPixelCore.render',
|
|
137
|
+
'VideoRecorder': 'PyPixelCore.runtime.recorder',
|
|
138
|
+
'FontResources': 'PyPixelCore.render.text.fonts',
|
|
139
|
+
'FontSpec': 'PyPixelCore.render.text.fonts',
|
|
140
|
+
'TextStyle': 'PyPixelCore.render.text.fonts',
|
|
141
|
+
'FrameWorkQueue': 'PyPixelCore.runtime.work_queue',
|
|
142
|
+
'PyPixelConfig': 'PyPixelCore.config',
|
|
143
|
+
'WindowConfig': 'PyPixelCore.config',
|
|
144
|
+
'LayerConfig': 'PyPixelCore.config',
|
|
145
|
+
'RuntimeConfig': 'PyPixelCore.config',
|
|
146
|
+
'QAConfig': 'PyPixelCore.config',
|
|
147
|
+
'RecordingConfig': 'PyPixelCore.config',
|
|
148
|
+
'__version__': 'PyPixelCore.version',
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def __getattr__(name):
|
|
153
|
+
owner = _EXPORTS.get(name)
|
|
154
|
+
if owner is None:
|
|
155
|
+
raise AttributeError(name)
|
|
156
|
+
value = getattr(import_module(owner), name)
|
|
157
|
+
globals()[name] = value
|
|
158
|
+
return value
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def __dir__():
|
|
162
|
+
return sorted(set(globals()) | set(__all__))
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Interpolation and reusable visual effects."""
|
|
2
|
+
from importlib import import_module
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from .interpolation import Tween as Tween
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from PyPixelCore.animation.interpolation import linear as linear
|
|
9
|
+
from PyPixelCore.animation.interpolation import ease_in_out as ease_in_out
|
|
10
|
+
from PyPixelCore.animation.interpolation import ping_pong as ping_pong
|
|
11
|
+
from PyPixelCore.animation.effects import Animation as Animation
|
|
12
|
+
from PyPixelCore.animation.work_piece import WorkPiece as WorkPiece
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
'Tween',
|
|
16
|
+
'linear',
|
|
17
|
+
'ease_in_out',
|
|
18
|
+
'ping_pong',
|
|
19
|
+
'Animation',
|
|
20
|
+
'WorkPiece',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
_EXPORTS = {
|
|
24
|
+
'linear': 'PyPixelCore.animation.interpolation',
|
|
25
|
+
'ease_in_out': 'PyPixelCore.animation.interpolation',
|
|
26
|
+
'ping_pong': 'PyPixelCore.animation.interpolation',
|
|
27
|
+
'Animation': 'PyPixelCore.animation.effects',
|
|
28
|
+
'WorkPiece': 'PyPixelCore.animation.work_piece',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def __getattr__(name):
|
|
33
|
+
owner = _EXPORTS.get(name)
|
|
34
|
+
if owner is None:
|
|
35
|
+
raise AttributeError(name)
|
|
36
|
+
value = getattr(import_module(owner), name)
|
|
37
|
+
globals()[name] = value
|
|
38
|
+
return value
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def __dir__():
|
|
42
|
+
return sorted(set(globals()) | set(__all__))
|