pasteup 0.1.0__tar.gz → 0.3.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.
- pasteup-0.3.0/.github/dependabot.yml +43 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/.github/workflows/release.yml +7 -6
- {pasteup-0.1.0 → pasteup-0.3.0}/.github/workflows/tests.yml +7 -4
- pasteup-0.3.0/CHANGELOG.md +93 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/PKG-INFO +351 -48
- pasteup-0.3.0/README.md +748 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/pyproject.toml +5 -4
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/__init__.py +1 -1
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/models/schemas.py +182 -1
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/routes/jobs.py +404 -84
- pasteup-0.3.0/src/pasteup/services/folder_browser.py +156 -0
- pasteup-0.3.0/src/pasteup/services/folder_scanner.py +283 -0
- pasteup-0.3.0/src/pasteup/services/runs.py +171 -0
- pasteup-0.3.0/src/pasteup/services/showcase.py +369 -0
- pasteup-0.3.0/src/pasteup/services/upscaler.py +234 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/css/styles.css +287 -5
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/js/app.js +848 -64
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/templates/index.html +93 -5
- pasteup-0.3.0/tests/test_background_runs.py +262 -0
- pasteup-0.3.0/tests/test_browse_folder_api.py +169 -0
- pasteup-0.3.0/tests/test_macos_metadata_files.py +127 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_request_safety.py +1 -0
- pasteup-0.3.0/tests/test_seller_folder_flow.py +299 -0
- pasteup-0.3.0/tests/test_showcase_sheets.py +257 -0
- pasteup-0.3.0/tests/test_ui_generation_modes.py +280 -0
- pasteup-0.3.0/tests/test_upscale_images.py +249 -0
- pasteup-0.3.0/tests/test_workflow_pins.py +41 -0
- pasteup-0.1.0/CHANGELOG.md +0 -33
- pasteup-0.1.0/README.md +0 -445
- pasteup-0.1.0/src/pasteup/services/folder_scanner.py +0 -164
- pasteup-0.1.0/tests/test_ui_generation_modes.py +0 -124
- {pasteup-0.1.0 → pasteup-0.3.0}/.gitignore +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/LICENSE +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/SECURITY.md +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/scripts/protect-repo.sh +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/__main__.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/cli.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/main.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/models/__init__.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/routes/__init__.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/routes/ui.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/services/__init__.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/services/cover_collage.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/services/exporter.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/services/grid_composer.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/services/image_batcher.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/services/video_exporter.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/shortcut.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/favicon.svg +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/fonts/OFL-Caveat.txt +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/fonts/OFL-PatrickHand.txt +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/fonts/caveat-latin-700.woff2 +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/src/pasteup/static/fonts/patrick-hand-latin-400.woff2 +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/conftest.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_batch_cover_collage_api.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_cli.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_cover_collage.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_cover_collage_api.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_generate_all_folders.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_generate_single_folder_video_status.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_grid_composer.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_image_batcher.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_page_dpi_and_geometry.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_partial_page_and_generation_options.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_scan_folder_api.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_scan_selected_batch_folders.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_transparent_png_handling.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_ui_defaults.py +0 -0
- {pasteup-0.1.0 → pasteup-0.3.0}/tests/test_video_exporter.py +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Version updates. Nothing else moves a pin: the workflows name each action by
|
|
2
|
+
# commit, and pyproject.toml pins with ~=. Each update arrives as a pull request
|
|
3
|
+
# that must pass ci-passed, so a breaking bump shows up as red CI rather than
|
|
4
|
+
# in a release.
|
|
5
|
+
#
|
|
6
|
+
# Security updates are separate (Settings > Code security) and skip the
|
|
7
|
+
# cooldowns below: a fix for a known vulnerability is proposed at once.
|
|
8
|
+
version: 2
|
|
9
|
+
updates:
|
|
10
|
+
# Every workflow in .github/workflows. Dependabot rewrites a pinned commit
|
|
11
|
+
# and the `# vX.Y.Z` comment beside it together.
|
|
12
|
+
- package-ecosystem: github-actions
|
|
13
|
+
directory: /
|
|
14
|
+
schedule:
|
|
15
|
+
interval: weekly
|
|
16
|
+
# A release must be a week old before it is proposed, so one that is pulled
|
|
17
|
+
# or found compromised in its first days never reaches a pull request.
|
|
18
|
+
cooldown:
|
|
19
|
+
default-days: 7
|
|
20
|
+
groups:
|
|
21
|
+
# One pull request for all of them: checkout and setup-python appear in
|
|
22
|
+
# both workflows, and the release-only actions move rarely.
|
|
23
|
+
actions:
|
|
24
|
+
patterns: ["*"]
|
|
25
|
+
|
|
26
|
+
# [project] dependencies and the dev extra in pyproject.toml.
|
|
27
|
+
- package-ecosystem: pip
|
|
28
|
+
directory: /
|
|
29
|
+
schedule:
|
|
30
|
+
interval: weekly
|
|
31
|
+
# ~= already takes bug-fix releases at install time, so propose only what a
|
|
32
|
+
# pin keeps out, such as a new minor of a 0.x package (fastapi 0.144).
|
|
33
|
+
# Stated rather than left to `auto`, which widens the range instead for
|
|
34
|
+
# anything it takes to be a library, keeping the old version allowed.
|
|
35
|
+
versioning-strategy: increase-if-necessary
|
|
36
|
+
cooldown:
|
|
37
|
+
default-days: 7
|
|
38
|
+
groups:
|
|
39
|
+
# The dev extra ships to nobody, so its tools share one pull request.
|
|
40
|
+
# Each runtime dependency gets its own, so a bump that breaks something
|
|
41
|
+
# is the only change in its pull request.
|
|
42
|
+
dev-tools:
|
|
43
|
+
patterns: ["pytest", "httpx2", "ruff"]
|
|
@@ -34,10 +34,11 @@ jobs:
|
|
|
34
34
|
# repository's trusted publisher would then be asked to upload.
|
|
35
35
|
if: github.repository == 'ftymoshchuk/pasteup'
|
|
36
36
|
steps:
|
|
37
|
-
# The
|
|
38
|
-
#
|
|
39
|
-
|
|
40
|
-
- uses: actions/
|
|
37
|
+
# The same commits tests.yml runs on. .github/dependabot.yml moves both
|
|
38
|
+
# files' pins in one pull request, so a new release of an action is met
|
|
39
|
+
# in CI first, not here: this runs once per release, the worst moment.
|
|
40
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
41
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
41
42
|
with:
|
|
42
43
|
python-version: "3.13"
|
|
43
44
|
|
|
@@ -163,7 +164,7 @@ jobs:
|
|
|
163
164
|
|
|
164
165
|
# Pinned to the commit, not the tag: a tag can be moved by whoever owns
|
|
165
166
|
# the action, and this is the one step here holding a credential.
|
|
166
|
-
- uses: pypa/gh-action-pypi-publish@
|
|
167
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
167
168
|
|
|
168
169
|
# An upload that succeeded is not yet a package anyone can install. Install
|
|
169
170
|
# it by name from PyPI, the way a user would, and check it is this version
|
|
@@ -172,7 +173,7 @@ jobs:
|
|
|
172
173
|
needs: publish
|
|
173
174
|
runs-on: ubuntu-latest
|
|
174
175
|
steps:
|
|
175
|
-
- uses: actions/setup-python@
|
|
176
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
176
177
|
with:
|
|
177
178
|
python-version: "3.13"
|
|
178
179
|
|
|
@@ -21,9 +21,12 @@ jobs:
|
|
|
21
21
|
# 3.11 is the floor: mullion and the app's StrEnum use need it.
|
|
22
22
|
python-version: ["3.11", "3.12", "3.13"]
|
|
23
23
|
steps:
|
|
24
|
-
|
|
24
|
+
# Pinned by commit, like every action here: a tag can be moved by whoever
|
|
25
|
+
# owns the action. .github/dependabot.yml moves the pins, in this file and
|
|
26
|
+
# release.yml together.
|
|
27
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
25
28
|
|
|
26
|
-
- uses: actions/setup-python@
|
|
29
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
27
30
|
with:
|
|
28
31
|
python-version: ${{ matrix.python-version }}
|
|
29
32
|
cache: pip
|
|
@@ -52,9 +55,9 @@ jobs:
|
|
|
52
55
|
build:
|
|
53
56
|
runs-on: ubuntu-latest
|
|
54
57
|
steps:
|
|
55
|
-
- uses: actions/checkout@
|
|
58
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
56
59
|
|
|
57
|
-
- uses: actions/setup-python@
|
|
60
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
58
61
|
with:
|
|
59
62
|
python-version: "3.13"
|
|
60
63
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Pasteup are recorded here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). While Pasteup is
|
|
6
|
+
0.x, a minor version may change behaviour.
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.3.0] - 2026-11-28
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- A bundle can keep its images in format folders, such as `PNG Files` beside
|
|
14
|
+
`JPG Files`, as clip art is often sold. It used to fail its check with "No
|
|
15
|
+
supported image files were found at the top level". Sheets and covers use
|
|
16
|
+
its PNG folder, so each item shows once; upscaling copies each format folder
|
|
17
|
+
in its own format.
|
|
18
|
+
- **Saves to** can be changed, by typing or with a **Browse…** of its own,
|
|
19
|
+
instead of always being a `---Created---` folder next to the folder scanned.
|
|
20
|
+
The page remembers the choice for that folder. An output folder inside the
|
|
21
|
+
folder of bundles, such as a `-Done-` folder, is no longer listed as a
|
|
22
|
+
bundle.
|
|
23
|
+
- **Showcase** preview sheets: every image, trimmed to its content, side by
|
|
24
|
+
side in rows (or columns) that fill each sheet, shared evenly over the
|
|
25
|
+
fewest sheets that hold up to **Most images a sheet**: 14 make two sheets of
|
|
26
|
+
7. Nothing is cropped, overlaps or left out. It's the app's layout from now
|
|
27
|
+
on; **Grid of 12** is still there. (`layout`, `images_per_page`)
|
|
28
|
+
- Making images for many bundles, or upscaling, now shows how far it has got:
|
|
29
|
+
which bundle it's on, how many are left, how many of a bundle's images are
|
|
30
|
+
upscaled, and how long it has taken, where it used to say only "Working…"
|
|
31
|
+
until the end. Reloading the page keeps showing it. If Pasteup is stopped
|
|
32
|
+
part way, the page says so instead of waiting forever.
|
|
33
|
+
(`POST /api/jobs/runs/...`, `GET /api/jobs/runs/{run_id}`)
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- Upscaled images go straight into `PNG` and `JPG` folders inside the bundle's
|
|
37
|
+
output folder, without an `Upscaled` folder around them.
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
- In **Many bundles** mode, a bundle with the same name as the output folder
|
|
41
|
+
was left out even when the output folder was somewhere else.
|
|
42
|
+
|
|
43
|
+
## [0.2.0] - 2026-10-16
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
- **Browse…** beside the folder field opens a folder browser, so a folder can be
|
|
47
|
+
picked instead of typed. It opens at the folder in the field, or at your home
|
|
48
|
+
folder, says how many images the folder you're in holds, and scans the one
|
|
49
|
+
you choose. Typing or pasting a path still works.
|
|
50
|
+
(`POST /api/jobs/browse-folder`)
|
|
51
|
+
- Upscaled images, from a tile of their own in step 3: every image of a bundle,
|
|
52
|
+
or of each picked bundle, made 2x, 3x or 4x bigger and saved in an
|
|
53
|
+
`Upscaled` folder as a PNG, which keeps any transparency, and a JPG on
|
|
54
|
+
white. (`POST /api/jobs/upscale-images`, `POST /api/jobs/upscale-images-batch`)
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
- Hidden files are no longer counted as images. A Mac writes a hidden `._`
|
|
58
|
+
file beside the files it copies to an exFAT or FAT32 drive or to some network
|
|
59
|
+
shares, so such a bundle could scan as twice its size, and making sheets then
|
|
60
|
+
reported the extra files as unreadable.
|
|
61
|
+
- Hidden folders, such as the `.Spotlight-V100` and `.Trashes` a Mac keeps on
|
|
62
|
+
those drives, and the `__MACOSX` folder left by unpacking a zip made on a
|
|
63
|
+
Mac, are no longer offered as bundles. Covers no longer take images from
|
|
64
|
+
them, nor from a `---Created---` folder inside the bundle.
|
|
65
|
+
- After a scan or making images, keyboard focus returns to the button that
|
|
66
|
+
started it, instead of falling back to the top of the page.
|
|
67
|
+
|
|
68
|
+
## [0.1.0] - 2026-10-16
|
|
69
|
+
|
|
70
|
+
The first release on PyPI.
|
|
71
|
+
|
|
72
|
+
### Added
|
|
73
|
+
- Preview sheets: every image of a bundle in 4x3 grids on a white page, as PNG
|
|
74
|
+
or JPG, sized in pixels, inches or millimetres, with the DPI stamped into
|
|
75
|
+
the file. A part-filled last page is optional.
|
|
76
|
+
- Cover collages in three layouts, optionally limited to images you name.
|
|
77
|
+
- Preview videos: an MP4 slideshow of the sheets, as long as you ask, with a
|
|
78
|
+
crossfade or flip between them. Needs ffmpeg.
|
|
79
|
+
- Batch mode: every bundle folder inside a folder, listed, checked and made in
|
|
80
|
+
one go.
|
|
81
|
+
- Image clean-up: transparent PNGs land on white, phone photos are turned
|
|
82
|
+
upright, and near-white backgrounds can be made pure white or transparent.
|
|
83
|
+
- A hand-drawn browser interface in three steps, with each result beside the
|
|
84
|
+
step that made it. It runs entirely on your computer and needs no internet
|
|
85
|
+
connection.
|
|
86
|
+
- The `pasteup` command opens the app in your browser, reuses a copy that is
|
|
87
|
+
already running and moves to a free port when another program has 8000.
|
|
88
|
+
`pasteup --shortcut` makes a double-click launcher.
|
|
89
|
+
|
|
90
|
+
[Unreleased]: https://github.com/ftymoshchuk/pasteup/compare/v0.3.0...HEAD
|
|
91
|
+
[0.3.0]: https://github.com/ftymoshchuk/pasteup/compare/v0.2.0...v0.3.0
|
|
92
|
+
[0.2.0]: https://github.com/ftymoshchuk/pasteup/compare/v0.1.0...v0.2.0
|
|
93
|
+
[0.1.0]: https://github.com/ftymoshchuk/pasteup/releases/tag/v0.1.0
|