aiautocropper-url-tools 0.1.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7b195d7e4515adc5b72ff0dad3db8c80015f8e0f01f55ab0fdb3c7c4f63522dd
4
+ data.tar.gz: 9e3adddf8b43119f0f34155bf77f57c5dc978a15b06a8f190cf9417c21c7372f
5
+ SHA512:
6
+ metadata.gz: 44b8a1e88a9f2c743347c9bac0e60cae34ef72600566c6e4bf85e3e89126e7266c345d3d3d58492d9c9c9d40eb77c6ea430cbdd7fc9a2217008dc65f609af283
7
+ data.tar.gz: e78338f8524ef121803a6e6a2f9e80c9df50d9c50ca161f970ade10e0370b528533d39ca38b4b3fe8d48eecd658c86a59a1f33b3bcdd5a1e01ff16c7aa098d15
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bbwdadfg
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # aiautocropper-url-tools
2
+
3
+ `aiautocropper-url-tools` builds canonical HTTPS URLs for [AI Auto Cropper](https://aiautocropper.com/).
4
+
5
+ Offline URL builder for AI Auto Cropper scan-splitting workflows. Not an official SDK.
6
+
7
+ The helper only concatenates known page slugs. It does not call the site, upload files, or sign in.
8
+
9
+ ## JavaScript
10
+
11
+ ```js
12
+ import { pageUrl, pageUrl, workflowUrl } from 'aiautocropper-url-tools';
13
+
14
+ pageUrl('pricing'); // https://aiautocropper.com/pricing
15
+ pageUrl('blog'); // https://aiautocropper.com/blog
16
+ workflowUrl('crop-scanned-photos'); // https://aiautocropper.com/crop-scanned-photos
17
+ ```
18
+
19
+ ## Python
20
+
21
+ ```python
22
+ from aiautocropper_url_tools import page_url, page_url, workflow_url
23
+
24
+ page_url('pricing') # https://aiautocropper.com/pricing
25
+ page_url('blog') # https://aiautocropper.com/blog
26
+ workflow_url('crop-scanned-photos') # https://aiautocropper.com/crop-scanned-photos
27
+ ```
28
+
29
+ The repository also contains equivalent Rust, PHP, and Go helpers, plus a small command that prints the same URLs.
30
+
31
+ Source: https://github.com/bbwdadfg/aiautocropper-url-tools
32
+
33
+ License: MIT.
@@ -0,0 +1,19 @@
1
+ module AiautocropperUrlTools
2
+ BASE = "https://aiautocropper.com"
3
+ PAGES = { "pricing" => "/pricing", "blog" => "/blog" }
4
+ def self.home_url
5
+ BASE + "/"
6
+ end
7
+
8
+ def self.page_url(name)
9
+ path = PAGES[name]
10
+ raise ArgumentError, "unknown page: #{name}" if path.nil?
11
+ BASE + path
12
+ end
13
+
14
+ def self.workflow_url(slug)
15
+ allowed = ["crop-scanned-photos", "split-multiple-photos-from-scan", "crop-photo-album-pages", "auto-crop-photos", "batch-crop-images"]
16
+ raise ArgumentError, "unknown workflow_url: #{slug}" unless allowed.include?(slug)
17
+ BASE + "/" + slug + ""
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aiautocropper-url-tools
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - bbwdadfg
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Offline URL builder for AI Auto Cropper scan-splitting workflows. Not
13
+ an official SDK.
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - LICENSE
19
+ - README.md
20
+ - ruby/lib/aiautocropper_url_tools.rb
21
+ homepage: https://aiautocropper.com/
22
+ licenses:
23
+ - MIT
24
+ metadata:
25
+ homepage_uri: https://aiautocropper.com/
26
+ source_code_uri: https://github.com/wangneo276-lgtm/aiautocropper-url-tools
27
+ rdoc_options: []
28
+ require_paths:
29
+ - ruby/lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 4.0.11
42
+ specification_version: 4
43
+ summary: Offline URL helpers for AI Auto Cropper
44
+ test_files: []