waysnip 0.1.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.
- waysnip-0.1.0/.github/workflows/ci.yml +27 -0
- waysnip-0.1.0/.github/workflows/release.yml +36 -0
- waysnip-0.1.0/.gitignore +10 -0
- waysnip-0.1.0/CHANGELOG.md +22 -0
- waysnip-0.1.0/LICENSE +674 -0
- waysnip-0.1.0/PKG-INFO +147 -0
- waysnip-0.1.0/README.md +119 -0
- waysnip-0.1.0/data/waysnip-autostart.desktop +9 -0
- waysnip-0.1.0/data/waysnip.desktop +10 -0
- waysnip-0.1.0/docs/capture.md +50 -0
- waysnip-0.1.0/docs/configuration.md +106 -0
- waysnip-0.1.0/docs/faq.md +52 -0
- waysnip-0.1.0/docs/gallery.md +31 -0
- waysnip-0.1.0/docs/getting-started.md +42 -0
- waysnip-0.1.0/docs/index.md +25 -0
- waysnip-0.1.0/docs/install.md +58 -0
- waysnip-0.1.0/docs/shortcuts.md +52 -0
- waysnip-0.1.0/docs/tools.md +51 -0
- waysnip-0.1.0/mkdocs.yml +31 -0
- waysnip-0.1.0/pyproject.toml +37 -0
- waysnip-0.1.0/scripts/setup-keybinding.sh +103 -0
- waysnip-0.1.0/tests/__init__.py +0 -0
- waysnip-0.1.0/tests/conftest.py +65 -0
- waysnip-0.1.0/tests/test_base.py +283 -0
- waysnip-0.1.0/tests/test_cli.py +58 -0
- waysnip-0.1.0/tests/test_clipboard.py +49 -0
- waysnip-0.1.0/tests/test_config.py +188 -0
- waysnip-0.1.0/tests/test_constants.py +72 -0
- waysnip-0.1.0/tests/test_integration.py +316 -0
- waysnip-0.1.0/tests/test_save.py +76 -0
- waysnip-0.1.0/tests/test_tools.py +87 -0
- waysnip-0.1.0/waysnip/__init__.py +1 -0
- waysnip-0.1.0/waysnip/__main__.py +6 -0
- waysnip-0.1.0/waysnip/app.py +275 -0
- waysnip-0.1.0/waysnip/capture/__init__.py +14 -0
- waysnip-0.1.0/waysnip/capture/clipboard.py +62 -0
- waysnip-0.1.0/waysnip/capture/portal.py +137 -0
- waysnip-0.1.0/waysnip/capture/region_selector.py +400 -0
- waysnip-0.1.0/waysnip/cli.py +270 -0
- waysnip-0.1.0/waysnip/config.py +121 -0
- waysnip-0.1.0/waysnip/constants.py +52 -0
- waysnip-0.1.0/waysnip/editor/__init__.py +29 -0
- waysnip-0.1.0/waysnip/editor/canvas.py +129 -0
- waysnip-0.1.0/waysnip/editor/commands.py +114 -0
- waysnip-0.1.0/waysnip/editor/editor_window.py +441 -0
- waysnip-0.1.0/waysnip/editor/properties_panel.py +297 -0
- waysnip-0.1.0/waysnip/editor/scene.py +118 -0
- waysnip-0.1.0/waysnip/editor/toolbar.py +231 -0
- waysnip-0.1.0/waysnip/editor/tools/__init__.py +46 -0
- waysnip-0.1.0/waysnip/editor/tools/arrow.py +168 -0
- waysnip-0.1.0/waysnip/editor/tools/base.py +311 -0
- waysnip-0.1.0/waysnip/editor/tools/blur.py +209 -0
- waysnip-0.1.0/waysnip/editor/tools/crop.py +151 -0
- waysnip-0.1.0/waysnip/editor/tools/ellipse.py +120 -0
- waysnip-0.1.0/waysnip/editor/tools/freehand.py +119 -0
- waysnip-0.1.0/waysnip/editor/tools/highlight.py +126 -0
- waysnip-0.1.0/waysnip/editor/tools/line.py +149 -0
- waysnip-0.1.0/waysnip/editor/tools/numbered_marker.py +177 -0
- waysnip-0.1.0/waysnip/editor/tools/rectangle.py +137 -0
- waysnip-0.1.0/waysnip/editor/tools/select_tool.py +178 -0
- waysnip-0.1.0/waysnip/editor/tools/text.py +240 -0
- waysnip-0.1.0/waysnip/gallery/__init__.py +14 -0
- waysnip-0.1.0/waysnip/gallery/gallery_window.py +191 -0
- waysnip-0.1.0/waysnip/gallery/thumbnail_delegate.py +76 -0
- waysnip-0.1.0/waysnip/gallery/thumbnail_model.py +81 -0
- waysnip-0.1.0/waysnip/resources/style.qss +262 -0
- waysnip-0.1.0/waysnip/save.py +156 -0
- waysnip-0.1.0/waysnip/settings_dialog.py +312 -0
- waysnip-0.1.0/waysnip/tray.py +100 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-24.04
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.12"
|
|
16
|
+
- name: Install system deps
|
|
17
|
+
run: |
|
|
18
|
+
sudo apt-get update
|
|
19
|
+
sudo apt-get install -y libgl1 libegl1 libxkbcommon0 xvfb
|
|
20
|
+
- name: Install
|
|
21
|
+
run: pip install -e ".[dev]"
|
|
22
|
+
- name: Lint
|
|
23
|
+
run: ruff check waysnip/ tests/
|
|
24
|
+
- name: Test
|
|
25
|
+
env:
|
|
26
|
+
QT_QPA_PLATFORM: offscreen
|
|
27
|
+
run: python -m pytest tests/ -v
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-24.04
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write
|
|
12
|
+
contents: write
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.12"
|
|
18
|
+
- name: Install system deps
|
|
19
|
+
run: |
|
|
20
|
+
sudo apt-get update
|
|
21
|
+
sudo apt-get install -y libgl1 libegl1 libxkbcommon0 xvfb
|
|
22
|
+
- name: Install
|
|
23
|
+
run: pip install -e ".[dev]" build
|
|
24
|
+
- name: Test
|
|
25
|
+
env:
|
|
26
|
+
QT_QPA_PLATFORM: offscreen
|
|
27
|
+
run: python -m pytest tests/ -v
|
|
28
|
+
- name: Build
|
|
29
|
+
run: python -m build
|
|
30
|
+
- name: Publish to PyPI
|
|
31
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
32
|
+
- name: Create GitHub release
|
|
33
|
+
uses: softprops/action-gh-release@v2
|
|
34
|
+
with:
|
|
35
|
+
files: dist/*
|
|
36
|
+
generate_release_notes: true
|
waysnip-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to WaySnip will be documented here.
|
|
4
|
+
Format based on [Keep a Changelog](https://keepachangelog.com/).
|
|
5
|
+
|
|
6
|
+
## [0.1.0] - 2026-04-06
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- Region, window, and fullscreen capture via gnome-screenshot and xdg-desktop-portal
|
|
10
|
+
- Annotation editor with 11 tools: select, rectangle, ellipse, arrow, line, text, numbered markers, freehand, highlight, blur/pixelate, crop
|
|
11
|
+
- Properties panel with color picker, recent colors, stroke width, opacity
|
|
12
|
+
- Undo/redo support
|
|
13
|
+
- PNG metadata for re-editable annotations (original image + annotation data embedded in PNG iTXt chunks)
|
|
14
|
+
- Gallery with thumbnail browser and context menu (copy, edit, reveal, flatten, delete)
|
|
15
|
+
- System tray icon with configurable left-click action
|
|
16
|
+
- Settings dialog with 5 tabs (Capture, Save, Editor, Tray, About)
|
|
17
|
+
- CLI with subcommands: region, window, fullscreen, gallery, config, tray, setup, uninstall
|
|
18
|
+
- PrintScreen keybinding setup for GNOME (`waysnip setup`)
|
|
19
|
+
- Autostart on login
|
|
20
|
+
- Dark theme stylesheet
|
|
21
|
+
- Copy to clipboard on capture and on save (configurable)
|
|
22
|
+
- Configurable save directory and filename patterns with strftime
|