lobstrio 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.
- lobstrio-0.4.0/.github/demo.gif +0 -0
- lobstrio-0.4.0/.github/logo.svg +10 -0
- lobstrio-0.4.0/.github/workflows/test.yml +33 -0
- lobstrio-0.4.0/.gitignore +37 -0
- lobstrio-0.4.0/CHANGELOG.md +77 -0
- lobstrio-0.4.0/CONTRIBUTING.md +109 -0
- lobstrio-0.4.0/LICENSE +190 -0
- lobstrio-0.4.0/PKG-INFO +351 -0
- lobstrio-0.4.0/README.md +314 -0
- lobstrio-0.4.0/pyproject.toml +66 -0
- lobstrio-0.4.0/src/lobstr_cli/__init__.py +5 -0
- lobstrio-0.4.0/src/lobstr_cli/__main__.py +17 -0
- lobstrio-0.4.0/src/lobstr_cli/cli.py +90 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/__init__.py +0 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/accounts.py +176 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/auth.py +81 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/crawlers.py +236 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/delivery.py +238 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/go.py +176 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/results.py +52 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/run.py +236 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/squid.py +149 -0
- lobstrio-0.4.0/src/lobstr_cli/commands/task.py +129 -0
- lobstrio-0.4.0/src/lobstr_cli/config.py +72 -0
- lobstrio-0.4.0/src/lobstr_cli/display.py +104 -0
- lobstrio-0.4.0/src/lobstr_cli/resolve.py +150 -0
- lobstrio-0.4.0/tests/conftest.py +0 -0
- lobstrio-0.4.0/tests/test_cli.py +89 -0
- lobstrio-0.4.0/tests/test_client.py +44 -0
- lobstrio-0.4.0/tests/test_commands_accounts.py +213 -0
- lobstrio-0.4.0/tests/test_commands_auth.py +108 -0
- lobstrio-0.4.0/tests/test_commands_crawlers.py +292 -0
- lobstrio-0.4.0/tests/test_commands_delivery.py +207 -0
- lobstrio-0.4.0/tests/test_commands_go.py +196 -0
- lobstrio-0.4.0/tests/test_commands_results.py +89 -0
- lobstrio-0.4.0/tests/test_commands_run.py +201 -0
- lobstrio-0.4.0/tests/test_commands_squid.py +227 -0
- lobstrio-0.4.0/tests/test_commands_task.py +163 -0
- lobstrio-0.4.0/tests/test_config.py +53 -0
- lobstrio-0.4.0/tests/test_display.py +150 -0
- lobstrio-0.4.0/tests/test_resolve.py +436 -0
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64.201" height="64.178" viewBox="0 0 64.201 64.178">
|
|
2
|
+
<g id="_64x64" data-name="64x64" transform="translate(8273.063 -117.934)">
|
|
3
|
+
<rect id="Прямоугольник_11500" data-name="Прямоугольник 11500" width="64" height="64" transform="translate(-8273 118)" fill="none"/>
|
|
4
|
+
<g id="Group_786" data-name="Group 786" transform="translate(-8273 118)">
|
|
5
|
+
<path id="Path_1-3" data-name="Path 1-3" d="M1137.722,4429.706a6.9,6.9,0,0,0,.835-.779,19.745,19.745,0,0,1,8.78-7.25,2.135,2.135,0,0,0,1.014-.937,19.885,19.885,0,0,1,8.255-9.343,4.385,4.385,0,0,0,.514-.608c-1.642-.2-3.065-.468-4.5-.552-5.944-.363-12.141-6.7-10.991-14.352a2.542,2.542,0,0,1,2.431-2.384,12.978,12.978,0,0,1,14.453,9.47c.526,1.9.292,3.994.438,6a8.2,8.2,0,0,0,.231,1.183,70.43,70.43,0,0,1,7.93.051c6.335.745,12.276,6.46,13.387,12.668.091.515-.341,1.122-.531,1.685-.437-.406-1.107-.737-1.275-1.231-1.835-5.415-5.084-9.5-10.9-10.875a30.725,30.725,0,0,0-6.448-.27c-1.011-.016-1.213.619-1.255,1.523-.11,2.429-.3,4.854-.539,7.271-.126,1.29.713,1.5,1.821,1.764.651-1.565,1.267-3.152,1.971-4.7.355-.781.613-2.1,1.76-1.679,1.245.457.356,1.6.109,2.356-.5,1.539-1.2,3.014-1.742,4.547-.12.337.071.783.119,1.18.385-.1.876-.092,1.139-.323,1.293-1.156,2.5-2.4,3.792-3.562.558-.5,1.213-1.483,1.994-.608.259.292-.177,1.488-.61,2.029-.986,1.231-2.211,2.279-3.258,3.471a4.664,4.664,0,0,0-.583,1.448,5.156,5.156,0,0,0,1.7.09c1.517-.458,2.988-1.066,4.489-1.6a2.214,2.214,0,0,1,.968-.232,6.054,6.054,0,0,1,1.234.471c-.207.375-.322.9-.642,1.094a18.581,18.581,0,0,1-2.347,1.1c-.838.369-1.705.68-2.512,1.1a4.7,4.7,0,0,0-.961.922c.4.361.753.949,1.211,1.044,1.412.29,2.866.372,4.3.57.805.11,2.063-.1,1.971,1.1-.1,1.285-1.358.905-2.226.864-1.2-.045-2.388-.164-3.641-.256v6.5c1.764.143,3.386.242,5,.411a16.566,16.566,0,0,1,8.723,3.862,2.349,2.349,0,0,1,.687,3.068,17.834,17.834,0,0,1-10.3,10.117,2.374,2.374,0,0,1-2.961-.707,17.194,17.194,0,0,1-4.243-11.177c-.026-.621-.014-1.243-.029-1.868a1.214,1.214,0,0,0-.123-.32l-5.85-.306c-.084,1.334-.1,2.662-.289,3.961-.066.461-.547.868-.846,1.292-.36-.434-.953-.819-1.035-1.292a19.626,19.626,0,0,1-.24-3.714c.018-.947-.414-1.562-1.245-1.613-.39-.024-.958.588-1.209,1.039-.556,1-.929,2.1-1.445,3.118-.328.661-.709,1.616-1.651,1.095-.3-.171-.285-1.275-.109-1.861.367-1.228.946-2.395,1.415-3.594.225-.578.788-1.153-.072-1.743-.876-.6-1.329.045-1.849.514-1.074.969-2.116,1.969-3.207,2.915a7.449,7.449,0,0,1-1.228.718,1.22,1.22,0,0,1-.422-1.682,1.26,1.26,0,0,1,.312-.343c.91-1,1.874-1.941,2.766-2.947.5-.564,1.424-1.017.728-2.032-.672-.974-1.364-.246-2.032-.036-1.377.424-2.726.95-4.122,1.3-.387.1-.894-.253-1.345-.4.231-.376.372-.906.712-1.106.906-.533,1.9-.932,2.859-1.378.69-.324,1.384-.629,2.056-.932-.15-1.389-.74-1.756-2.061-1.609a33.044,33.044,0,0,1-6.078.15c-1.494-.11-2,.519-2.2,1.752-1.194,7.342,2.244,13.82,9.074,16.432a21.683,21.683,0,0,1,2.684,1.042c.4.216.588.829.876,1.264-.438.188-.906.582-1.321.542a13.848,13.848,0,0,1-7.155-3.192c-5.541-4.421-7.509-10.077-6.063-16.969.438-2.1.219-1.869-1.415-2.041-2.56-.264-5.175.091-7.649-1.2a12.834,12.834,0,0,1-7.11-14.205,1.719,1.719,0,0,1,1.642-1.517c8.687-1.312,15.361,4.258,15.5,12.978C1137.731,4428.059,1137.722,4428.667,1137.722,4429.706Zm29.946,7.672a14.575,14.575,0,0,0-14.613-14.537h-.27c-3,0-3.45.412-3.417,3.4a14.751,14.751,0,0,0,14.639,14.6C1167.313,4440.94,1167.67,4440.653,1167.668,4437.378Zm4.993,4.729c-.671,0-1.2.044-1.733-.008-1.368-.144-1.971.554-2.067,1.794a15.289,15.289,0,0,0,3.129,10.618,1.7,1.7,0,0,0,1.523.451,14.776,14.776,0,0,0,8.321-7.942,1.343,1.343,0,0,0-.392-1.871c-.025-.017-.052-.033-.078-.048A13.253,13.253,0,0,0,1172.661,4442.107Zm-39.567-12.971a6.289,6.289,0,0,0,1.481-.035,1.163,1.163,0,0,0,.767-.749c.846-8.03-5.547-12.361-11.531-12.064a2.065,2.065,0,0,0-1.433,1.378c-.55,6.661,5.07,11.961,10.715,11.471Zm10.82-33.558c-1.716,7.216,5.036,13.861,12.488,12.376,1.188-6.787-3.442-13.364-12.49-12.376Zm13.781,17.571a17.345,17.345,0,0,0-7.146,7.388c2.237.2,4.187.387,6.142.507a.989.989,0,0,0,.714-.586,12.9,12.9,0,0,0,.29-7.309Zm-10.664,10.99a13.2,13.2,0,0,0-6.494,6.137,19.369,19.369,0,0,0,4.852.217c2.11-.217,2.108-.337,1.945-2.417-.059-.76.007-1.526-.038-2.289-.03-.489-.155-.981-.265-1.65Z" transform="translate(-1120.321 -4393.363)" fill="red" stroke="red" stroke-width="0.1"/>
|
|
6
|
+
<path id="Path_2-3" data-name="Path 2-3" d="M1154.106,4423.227c-.468.342-.787.749-1.018.7-.331-.066-.6-.458-.895-.713.265-.3.509-.792.8-.825S1153.605,4422.826,1154.106,4423.227Z" transform="translate(-1116.922 -4390.707)" fill="red" stroke="red" stroke-width="0.1"/>
|
|
7
|
+
<path id="Path_3-3" data-name="Path 3-3" d="M1150.639,4426.708c-.511.346-.856.742-1.058.681-.331-.1-.57-.507-.845-.782.28-.278.539-.734.848-.771C1149.836,4425.807,1150.148,4426.28,1150.639,4426.708Z" transform="translate(-1117.292 -4390.386)" fill="red" stroke="red" stroke-width="0.1"/>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: |
|
|
26
|
+
pip install "lobstrio-sdk @ git+https://github.com/lobstrio/lobstrio-sdk.git"
|
|
27
|
+
pip install -e ".[dev]"
|
|
28
|
+
|
|
29
|
+
- name: Lint
|
|
30
|
+
run: ruff check src/ tests/
|
|
31
|
+
|
|
32
|
+
- name: Run tests
|
|
33
|
+
run: pytest --tb=short -q
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
*.egg
|
|
5
|
+
dist/
|
|
6
|
+
build/
|
|
7
|
+
.eggs/
|
|
8
|
+
*.whl
|
|
9
|
+
|
|
10
|
+
# Virtual environments
|
|
11
|
+
.venv/
|
|
12
|
+
venv/
|
|
13
|
+
env/
|
|
14
|
+
|
|
15
|
+
# IDE
|
|
16
|
+
.vscode/
|
|
17
|
+
.idea/
|
|
18
|
+
*.swp
|
|
19
|
+
*.swo
|
|
20
|
+
|
|
21
|
+
# Testing
|
|
22
|
+
.pytest_cache/
|
|
23
|
+
.coverage
|
|
24
|
+
htmlcov/
|
|
25
|
+
|
|
26
|
+
# Config (don't commit tokens)
|
|
27
|
+
.env
|
|
28
|
+
|
|
29
|
+
# OS
|
|
30
|
+
.DS_Store
|
|
31
|
+
Thumbs.db
|
|
32
|
+
|
|
33
|
+
# Playwright
|
|
34
|
+
.playwright-mcp/
|
|
35
|
+
|
|
36
|
+
# Internal docs/plans
|
|
37
|
+
docs/
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.4.0] - 2026-03-13
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Replaced internal HTTP client with `lobstrio-sdk` for all API calls
|
|
13
|
+
- All commands now use typed SDK models and resource methods
|
|
14
|
+
- Removed `pytest-httpx` dev dependency (tests mock SDK methods directly)
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
- Deleted internal `client.py` (replaced by `lobstrio-sdk`)
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Fixed double CLI execution when invoked via console script entry point
|
|
23
|
+
- Fixed install command in README (`pip install lobstrio`, not `lobstrio-cli`)
|
|
24
|
+
|
|
25
|
+
## [0.3.0] - 2026-03-06
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Account management commands: `accounts ls`, `show`, `rm`, `types`, `sync`, `sync-status`, `update`
|
|
30
|
+
- Account sync with multiple cookie input methods: `--cookie`, `--cookies-json`, `--cookies-file`
|
|
31
|
+
- Account resolution by hash prefix or username
|
|
32
|
+
- Delivery configuration commands: `delivery email`, `googlesheet`, `s3`, `webhook`, `sftp`
|
|
33
|
+
- Delivery test commands: `delivery test-email`, `test-googlesheet`, `test-s3`, `test-webhook`, `test-sftp`
|
|
34
|
+
- `crawlers show` now uses dedicated API endpoint with input parameters and result fields
|
|
35
|
+
- Query params support in `client.post()` for delivery endpoints
|
|
36
|
+
|
|
37
|
+
## [0.2.0] - 2026-03-06
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- Slug-based resolution for crawlers: hash → slug → name (slug is now the primary identifier)
|
|
42
|
+
- Slug prefix matching for crawlers (e.g. `google-maps` matches `google-maps-leads-scraper`)
|
|
43
|
+
- Name-based resolution for squids: alias → hash → name (exact match, then substring)
|
|
44
|
+
- `crawlers show` command with grouped detail output (credits, flags, worker stats)
|
|
45
|
+
- `print_detail_grouped` display function for sectioned detail views
|
|
46
|
+
- Slug column in `crawlers ls` output
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- License changed from MIT to Apache 2.0
|
|
51
|
+
- Crawler commands now prioritize slug over name for identification
|
|
52
|
+
- README updated with slug-based examples and identifier resolution documentation
|
|
53
|
+
|
|
54
|
+
## [0.1.0] - 2025-03-05
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- Full CLI for the Lobstr.io scraping API
|
|
59
|
+
- `go` command for one-shot scraping workflow (create squid, add tasks, run, download)
|
|
60
|
+
- Crawler browsing and search (`crawlers ls`, `crawlers search`, `crawlers params`)
|
|
61
|
+
- Squid management (`squid create`, `ls`, `show`, `update`, `empty`, `rm`)
|
|
62
|
+
- Task management (`task add`, `ls`, `show`, `rm`, `upload`, `upload-status`)
|
|
63
|
+
- Run lifecycle (`run start`, `ls`, `show`, `stats`, `tasks`, `abort`, `download`, `watch`)
|
|
64
|
+
- Results export in JSON and CSV formats
|
|
65
|
+
- Config management with TOML storage (`config set-token`, `show`, `set-alias`)
|
|
66
|
+
- `whoami` command for account info and balance
|
|
67
|
+
- Hash prefix resolution for squids and crawlers
|
|
68
|
+
- Squid aliases (`@name` shortcuts)
|
|
69
|
+
- Global flags: `--json`, `--quiet`, `--verbose`, `--token`
|
|
70
|
+
- `--key` flag for keyword-based crawlers
|
|
71
|
+
- `--delete` flag to clean up squid after `go` completes
|
|
72
|
+
- `--empty` flag to clear old tasks when reusing a squid
|
|
73
|
+
- Squid reuse by `--name` in `go` command
|
|
74
|
+
- Auto-cleanup of orphaned squids on error
|
|
75
|
+
- Download retry with export wait
|
|
76
|
+
- Full hash validation for run/task endpoints
|
|
77
|
+
- Rich terminal output with tables and progress bars
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Contributing to lobstrio-cli
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in contributing!
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
1. Fork the repo and clone it locally
|
|
8
|
+
2. Install in development mode:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pip install -e ".[dev]"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
3. Run tests to make sure everything works:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pytest
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Making changes
|
|
21
|
+
|
|
22
|
+
1. Create a branch for your change:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
git checkout -b my-feature
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
2. Make your changes and add tests
|
|
29
|
+
3. Run the test suite:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pytest -v
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
4. Lint your code:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
ruff check src/ tests/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
5. Commit and push your branch, then open a pull request
|
|
42
|
+
|
|
43
|
+
## Code style
|
|
44
|
+
|
|
45
|
+
- Follow existing patterns in the codebase
|
|
46
|
+
- Use type hints
|
|
47
|
+
- Keep functions focused and small
|
|
48
|
+
- Add tests for new functionality
|
|
49
|
+
|
|
50
|
+
## Project structure
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
src/lobstr_cli/
|
|
54
|
+
__init__.py # Package version
|
|
55
|
+
__main__.py # Entry point
|
|
56
|
+
cli.py # Root Typer app, global flags
|
|
57
|
+
config.py # TOML config management
|
|
58
|
+
display.py # Rich output helpers
|
|
59
|
+
resolve.py # Hash/name resolution utilities
|
|
60
|
+
commands/
|
|
61
|
+
accounts.py # account management and sync
|
|
62
|
+
auth.py # config and whoami commands
|
|
63
|
+
crawlers.py # crawler browsing
|
|
64
|
+
delivery.py # delivery configuration
|
|
65
|
+
squid.py # squid management
|
|
66
|
+
task.py # task management
|
|
67
|
+
run.py # run lifecycle
|
|
68
|
+
go.py # one-shot workflow
|
|
69
|
+
results.py # result fetching
|
|
70
|
+
tests/
|
|
71
|
+
test_client.py # SDK error types and client tests
|
|
72
|
+
test_config.py # Config tests
|
|
73
|
+
test_resolve.py # Resolution logic tests
|
|
74
|
+
test_display.py # Display output tests
|
|
75
|
+
test_cli.py # CLI integration tests
|
|
76
|
+
test_commands_*.py # Command-level tests
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Reporting issues
|
|
80
|
+
|
|
81
|
+
Open an issue at [github.com/lobstrio/lobstrio-cli/issues](https://github.com/lobstrio/lobstrio-cli/issues) with:
|
|
82
|
+
|
|
83
|
+
- What you expected to happen
|
|
84
|
+
- What actually happened
|
|
85
|
+
- Steps to reproduce
|
|
86
|
+
- CLI version (`lobstr --version`)
|
|
87
|
+
|
|
88
|
+
## Versioning
|
|
89
|
+
|
|
90
|
+
We follow [Semantic Versioning](https://semver.org/) (`MAJOR.MINOR.PATCH`):
|
|
91
|
+
|
|
92
|
+
| Bump | When | Examples |
|
|
93
|
+
|------|------|----------|
|
|
94
|
+
| **PATCH** (`0.1.0` → `0.1.1`) | Bug fixes, typo corrections, small tweaks — no new features, nothing breaking | Fix crash on empty results, fix typo in help text |
|
|
95
|
+
| **MINOR** (`0.1.0` → `0.2.0`) | New features, new commands, new options — backwards compatible | Add `crawlers show` command, add slug resolution |
|
|
96
|
+
| **MAJOR** (`0.2.0` → `1.0.0`) | Breaking changes — renamed/removed commands, changed output format, changed config format | Rename `squid` to `scraper`, change JSON output schema |
|
|
97
|
+
|
|
98
|
+
While the major version is `0` (pre-1.0), the API is not considered stable and minor bumps may include small breaking changes.
|
|
99
|
+
|
|
100
|
+
When bumping the version:
|
|
101
|
+
1. Update `version` in `pyproject.toml`
|
|
102
|
+
2. Add a new section at the top of `CHANGELOG.md` with the date and changes
|
|
103
|
+
|
|
104
|
+
## Pull requests
|
|
105
|
+
|
|
106
|
+
- Keep PRs focused on a single change
|
|
107
|
+
- Include tests
|
|
108
|
+
- Update CHANGELOG.md if adding features or fixing bugs
|
|
109
|
+
- Reference related issues in the PR description
|
lobstrio-0.4.0/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 lobstrio
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|