pirate-ship-api-mcp 1.0.2__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.
- pirate_ship_api_mcp-1.0.2/.github/workflows/ci.yml +42 -0
- pirate_ship_api_mcp-1.0.2/.github/workflows/publish.yml +27 -0
- pirate_ship_api_mcp-1.0.2/.gitignore +11 -0
- pirate_ship_api_mcp-1.0.2/AGENTS.md +76 -0
- pirate_ship_api_mcp-1.0.2/CLAUDE.md +1 -0
- pirate_ship_api_mcp-1.0.2/LICENSE +133 -0
- pirate_ship_api_mcp-1.0.2/PKG-INFO +528 -0
- pirate_ship_api_mcp-1.0.2/README.md +506 -0
- pirate_ship_api_mcp-1.0.2/assets/logo-white.svg +1 -0
- pirate_ship_api_mcp-1.0.2/assets/logo.svg +1 -0
- pirate_ship_api_mcp-1.0.2/examples/carrier_adjustments.py +49 -0
- pirate_ship_api_mcp-1.0.2/examples/compare_rates.py +43 -0
- pirate_ship_api_mcp-1.0.2/examples/draft_batch_from_csv.py +80 -0
- pirate_ship_api_mcp-1.0.2/examples/export_shipments.py +39 -0
- pirate_ship_api_mcp-1.0.2/examples/pickup_quote.py +47 -0
- pirate_ship_api_mcp-1.0.2/examples/refund_candidates.py +54 -0
- pirate_ship_api_mcp-1.0.2/examples/scan_form.py +31 -0
- pirate_ship_api_mcp-1.0.2/examples/ship_from_addresses.py +31 -0
- pirate_ship_api_mcp-1.0.2/examples/spend_report.py +45 -0
- pirate_ship_api_mcp-1.0.2/examples/store_orders.py +30 -0
- pirate_ship_api_mcp-1.0.2/examples/tracking_report.py +51 -0
- pirate_ship_api_mcp-1.0.2/glama.json +4 -0
- pirate_ship_api_mcp-1.0.2/mcp.json +8 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/__init__.py +28 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/api.py +213 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/app.py +31 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/cli.py +198 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/core/__init__.py +0 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/core/account_guard.py +33 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/core/context.py +186 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/core/errors.py +78 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/core/helpers.py +33 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/core/tools.py +106 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/mcp_context.py +126 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/mcp_server.py +67 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/__init__.py +0 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/auth.py +24 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/batches.py +365 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/client.py +66 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/grids.py +114 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/operations.py +99 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/__init__.py +0 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/_labels.py +58 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/_pickups.py +106 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/_settings.py +252 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/change_ship_date.py +48 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_batch.py +153 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_batch_from_orders.py +81 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_email_template.py +47 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_saved_package.py +46 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_scan_form.py +71 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_ship_from_address.py +56 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/create_shipment.py +140 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/delete_batch.py +41 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/delete_email_template.py +33 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/delete_saved_package.py +33 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/delete_ship_from_address.py +45 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/download_labels.py +95 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/export_report.py +77 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/export_shipments.py +54 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_account_balance.py +65 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_batch.py +66 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_label_settings.py +32 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_pickup_quote.py +55 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_rates.py +145 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_receipt.py +128 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_shipment.py +131 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_shipping_stats.py +180 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/get_tracking_email_settings.py +70 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/ignore_orders.py +42 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_batches.py +82 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_carrier_adjustments.py +149 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_email_templates.py +38 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_import_orders.py +44 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_package_types.py +71 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_pickups.py +34 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_receipts.py +83 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_refunds.py +107 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_return_labels.py +99 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_saved_packages.py +41 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_scan_forms.py +72 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_ship_from_addresses.py +37 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_shipments.py +158 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_store_connections.py +58 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/list_transactions.py +86 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/parse_address.py +57 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/rename_batch.py +42 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/search_recipients.py +66 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/set_default_ship_from_address.py +36 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/sync_store_orders.py +64 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/unignore_orders.py +41 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/update_email_template.py +53 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/update_label_settings.py +67 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/update_saved_package.py +56 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/update_ship_from_address.py +80 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/tools/update_tracking_email_settings.py +52 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/pirate_ship/upload.py +49 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/runner.py +106 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/scripting.py +92 -0
- pirate_ship_api_mcp-1.0.2/pirate_ship_api_mcp/session.py +238 -0
- pirate_ship_api_mcp-1.0.2/pyproject.toml +39 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
smoke:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: astral-sh/setup-uv@v6
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.12"
|
|
16
|
+
- name: Install
|
|
17
|
+
run: uv sync
|
|
18
|
+
- name: Compile
|
|
19
|
+
run: uv run python -m compileall -q pirate_ship_api_mcp
|
|
20
|
+
- name: MCP server starts and lists its tools
|
|
21
|
+
run: |
|
|
22
|
+
uv run python - <<'PY'
|
|
23
|
+
import json, subprocess, sys
|
|
24
|
+
proc = subprocess.Popen([".venv/bin/pirate-ship-mcp", "mcp"], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
|
25
|
+
stderr=subprocess.PIPE, text=True)
|
|
26
|
+
def ask(msg, want=None):
|
|
27
|
+
proc.stdin.write(json.dumps(msg) + "\n")
|
|
28
|
+
proc.stdin.flush()
|
|
29
|
+
while want is not None:
|
|
30
|
+
line = proc.stdout.readline()
|
|
31
|
+
if not line:
|
|
32
|
+
sys.exit("server exited: " + proc.stderr.read()[-2000:])
|
|
33
|
+
reply = json.loads(line)
|
|
34
|
+
if reply.get("id") == want:
|
|
35
|
+
return reply
|
|
36
|
+
ask({"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "ci", "version": "1"}}}, 1)
|
|
37
|
+
ask({"jsonrpc": "2.0", "method": "notifications/initialized"})
|
|
38
|
+
tools = ask({"jsonrpc": "2.0", "id": 2, "method": "tools/list"}, 2)["result"]["tools"]
|
|
39
|
+
proc.terminate()
|
|
40
|
+
assert tools, "no tools"
|
|
41
|
+
print(len(tools), "tools")
|
|
42
|
+
PY
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# A tag v<version> (the same as `version` in pyproject.toml) builds the package and publishes it to PyPI
|
|
4
|
+
# through Trusted Publishing: no token, PyPI trusts this workflow in the `pypi` environment.
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags: ["v*"]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
environment: pypi
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: astral-sh/setup-uv@v6
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
- name: Tag matches the package version
|
|
22
|
+
run: |
|
|
23
|
+
version=$(grep -m1 '^version = ' pyproject.toml | cut -d'"' -f2)
|
|
24
|
+
test "v$version" = "$GITHUB_REF_NAME" || { echo "tag $GITHUB_REF_NAME, pyproject $version"; exit 1; }
|
|
25
|
+
- name: Build
|
|
26
|
+
run: uv build
|
|
27
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
You are an AI agent in a clone of this repo. It is a self-hosted Pirate Ship API and MCP server: 51 tools that work in the user's own Pirate Ship account, through the session of their own Google Chrome. Your usual job is one of three: set it up for the user, use its tools for them, or change its code. Human docs: `README.md`.
|
|
4
|
+
|
|
5
|
+
## Before you start
|
|
6
|
+
|
|
7
|
+
- The license allows noncommercial use only (PolyForm Noncommercial 1.0.0, `LICENSE`). If the user is setting this up for a company, a team or clients, say so and point to the hosted version at https://cotlet.dev/integrations/pirate-ship-api-mcp-server. Do not continue the setup for that use.
|
|
8
|
+
- Every tool acts as the user on Pirate Ship. Tools with access `write` create or delete drafts, addresses, packages and templates, or change settings. Tracking email settings and templates change what the user's customers receive.
|
|
9
|
+
- No tool here buys a label, refunds one, books a pickup or disputes a charge. The user does those in Pirate Ship. Do not add them back.
|
|
10
|
+
|
|
11
|
+
## Set it up for the user
|
|
12
|
+
|
|
13
|
+
Do the steps yourself. Ask the user only for what needs their hands in Chrome.
|
|
14
|
+
|
|
15
|
+
1. Check Python: `python3 --version` must be 3.11 or newer.
|
|
16
|
+
2. Install in the repo root:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
python3 -m venv .venv && .venv/bin/pip install -e .
|
|
20
|
+
.venv/bin/pirate-ship-mcp --version
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
On Windows the path is `.venv\Scripts\pirate-ship-mcp`. With uv: `uv venv && uv pip install -e .`.
|
|
24
|
+
3. Ask the user to do two things in Chrome. You cannot open `chrome://` pages for them.
|
|
25
|
+
- Open `chrome://inspect/#remote-debugging` and switch remote debugging on.
|
|
26
|
+
- Be signed in at https://ship.pirateship.com, with "Stay signed in" ticked.
|
|
27
|
+
4. Run `.venv/bin/pirate-ship-mcp connect`. Tell the user to click **Allow** when Chrome asks about the connection. Success prints `Signed in to Pirate Ship as <name> (<email>)`.
|
|
28
|
+
5. Check: `.venv/bin/pirate-ship-mcp status`, then `.venv/bin/pirate-ship-mcp call get_account_balance`.
|
|
29
|
+
6. Add the MCP server to the user's client. Use the absolute path of `.venv/bin/pirate-ship-mcp`:
|
|
30
|
+
- Claude Code: `claude mcp add pirate-ship -- <abs path>/.venv/bin/pirate-ship-mcp mcp`
|
|
31
|
+
- Claude Desktop, Cursor, Codex: the config blocks in `README.md`, section "MCP server".
|
|
32
|
+
- Add `--read-only` after `mcp` if the user only wants to read.
|
|
33
|
+
The client loads new MCP servers on its next start. Tell the user.
|
|
34
|
+
|
|
35
|
+
If step 4 fails:
|
|
36
|
+
|
|
37
|
+
| Message | What to do |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `Chrome remote debugging is off` | Step 3 is not done, or Chrome is Beta, Canary or a custom profile: pass `--profile-dir "<profile folder>"`. |
|
|
40
|
+
| `Could not connect to Chrome` | The user did not click Allow, or Chrome is closed. Run `connect` again. |
|
|
41
|
+
| `This Chrome is not signed in to Pirate Ship` | The user signs in at ship.pirateship.com in that Chrome, then run `connect` again. |
|
|
42
|
+
| No Chrome on this machine (a server) | The user copies the `pirate_id_f0fecf84` cookie from Chrome DevTools (Application, Cookies, https://ship.pirateship.com) and runs `pirate-ship-mcp connect --token` themselves. Never ask them to paste the cookie into the chat. It lasts about a day without use. |
|
|
43
|
+
|
|
44
|
+
## Use the tools
|
|
45
|
+
|
|
46
|
+
- With the MCP server added, call its tools. Without it: `.venv/bin/pirate-ship-mcp call <tool> key=value ...`, or one JSON object as the argument.
|
|
47
|
+
- `.venv/bin/pirate-ship-mcp tools` lists every tool with access and route. `tools --json` adds the input schemas.
|
|
48
|
+
- Start with `get_account_balance` and `list_ship_from_addresses`. `get_rates` quotes a package and saves nothing. `list_saved_packages` gives the `package_preset_id` that batches take.
|
|
49
|
+
- Money is in US dollars, weights in ounces, sizes in inches. Dates are in Chrome's time zone, read at `connect`.
|
|
50
|
+
- Report lists (`list_shipments`, `list_transactions` ...) take `limit` and `offset` and answer with `total`.
|
|
51
|
+
- A draft from `create_shipment` or `create_batch` costs nothing. Descriptions say "buy it with buy_label": that tool is not in this repo, so tell the user to buy the draft in Pirate Ship.
|
|
52
|
+
- Before a `write` tool, show the user what you will change and get their OK.
|
|
53
|
+
- For a script or a cron job, use `pirate_ship_api_mcp.scripting` (`call`, `paginate_offset`, `write_rows`) and the scripts in `examples/` as models.
|
|
54
|
+
- For a REST API (n8n, other languages): `.venv/bin/pirate-ship-mcp serve`, routes under `http://127.0.0.1:8787/api/v1/pirate-ship`, docs at `/docs`.
|
|
55
|
+
|
|
56
|
+
Errors come as `<code>: <message>`. `auth_expired` means Pirate Ship signed the session out: the user signs in again in Chrome and you run `connect`. "Pirate Ship changed its app" means a recorded GraphQL hash is out of date: tell the user to `git pull`, or report it. More codes: `README.md`, section "Errors".
|
|
57
|
+
|
|
58
|
+
## Keep secrets out
|
|
59
|
+
|
|
60
|
+
- `~/.config/pirate-ship-api-mcp/session.json` and `PIRATE_SHIP_AUTH_TOKEN` give full access to the user's Pirate Ship account. Never print, log, commit or copy their content.
|
|
61
|
+
- `serve` listens on 127.0.0.1. Never start it on another address without `PIRATE_SHIP_MCP_TOKEN`.
|
|
62
|
+
|
|
63
|
+
## Change the code
|
|
64
|
+
|
|
65
|
+
| Path | What | Edit? |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| `pirate_ship_api_mcp/pirate_ship/` | the Pirate Ship tools, one file per tool in `tools/`; `client.py` sends one GraphQL operation, `operations.py` is the allowlist of operations and their hashes, `batches.py` and `grids.py` hold shared batch and report code | Yes for a local fix, but the next `git pull` brings our version of these files. Report the bug at https://github.com/cotletdev/pirate-ship-api-mcp-server/issues |
|
|
68
|
+
| `pirate_ship_api_mcp/app.py` | app name, domains, session cookie, REST prefix | Rarely |
|
|
69
|
+
| `pirate_ship_api_mcp/core/` | `@tool` declaration, errors, the account guard, the HTTP client with the session (`context.py`) | Yes |
|
|
70
|
+
| `pirate_ship_api_mcp/session.py` | reading cookies and the time zone from Chrome over CDP, the session file | Yes |
|
|
71
|
+
| `pirate_ship_api_mcp/runner.py`, `api.py`, `mcp_server.py`, `mcp_context.py`, `cli.py` | tool registry, REST API, MCP server, its prompts and resources, command line | Yes |
|
|
72
|
+
| `examples/` | scripts for common jobs | Yes |
|
|
73
|
+
|
|
74
|
+
A new tool is a new file in `pirate_ship_api_mcp/pirate_ship/tools/` with a `@tool(...)` declaration (name, access, input schema, `route`). The registry finds it, and the REST API, the MCP server and the CLI show it without other changes. A new GraphQL operation also needs its name and sha256 in `operations.py`.
|
|
75
|
+
|
|
76
|
+
There is no test suite. After a change, run `.venv/bin/pirate-ship-mcp tools` and one read tool against the user's account.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Required Notice: Copyright (c) 2026 Take Group sp. z o.o. (Cotlet, https://cotlet.dev)
|
|
2
|
+
|
|
3
|
+
# PolyForm Noncommercial License 1.0.0
|
|
4
|
+
|
|
5
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree
|
|
10
|
+
to them as both strict obligations and conditions to all
|
|
11
|
+
your licenses.
|
|
12
|
+
|
|
13
|
+
## Copyright License
|
|
14
|
+
|
|
15
|
+
The licensor grants you a copyright license for the
|
|
16
|
+
software to do everything you might do with the software
|
|
17
|
+
that would otherwise infringe the licensor's copyright
|
|
18
|
+
in it for any permitted purpose. However, you may
|
|
19
|
+
only distribute the software according to [Distribution
|
|
20
|
+
License](#distribution-license) and make changes or new works
|
|
21
|
+
based on the software according to [Changes and New Works
|
|
22
|
+
License](#changes-and-new-works-license).
|
|
23
|
+
|
|
24
|
+
## Distribution License
|
|
25
|
+
|
|
26
|
+
The licensor grants you an additional copyright license
|
|
27
|
+
to distribute copies of the software. Your license
|
|
28
|
+
to distribute covers distributing the software with
|
|
29
|
+
changes and new works permitted by [Changes and New Works
|
|
30
|
+
License](#changes-and-new-works-license).
|
|
31
|
+
|
|
32
|
+
## Notices
|
|
33
|
+
|
|
34
|
+
You must ensure that anyone who gets a copy of any part of
|
|
35
|
+
the software from you also gets a copy of these terms or the
|
|
36
|
+
URL for them above, as well as copies of any plain-text lines
|
|
37
|
+
beginning with `Required Notice:` that the licensor provided
|
|
38
|
+
with the software. For example:
|
|
39
|
+
|
|
40
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
41
|
+
|
|
42
|
+
## Changes and New Works License
|
|
43
|
+
|
|
44
|
+
The licensor grants you an additional copyright license to
|
|
45
|
+
make changes and new works based on the software for any
|
|
46
|
+
permitted purpose.
|
|
47
|
+
|
|
48
|
+
## Patent License
|
|
49
|
+
|
|
50
|
+
The licensor grants you a patent license for the software that
|
|
51
|
+
covers patent claims the licensor can license, or becomes able
|
|
52
|
+
to license, that you would infringe by using the software.
|
|
53
|
+
|
|
54
|
+
## Noncommercial Purposes
|
|
55
|
+
|
|
56
|
+
Any noncommercial purpose is a permitted purpose.
|
|
57
|
+
|
|
58
|
+
## Personal Uses
|
|
59
|
+
|
|
60
|
+
Personal use for research, experiment, and testing for
|
|
61
|
+
the benefit of public knowledge, personal study, private
|
|
62
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
63
|
+
observance, without any anticipated commercial application,
|
|
64
|
+
is use for a permitted purpose.
|
|
65
|
+
|
|
66
|
+
## Noncommercial Organizations
|
|
67
|
+
|
|
68
|
+
Use by any charitable organization, educational institution,
|
|
69
|
+
public research organization, public safety or health
|
|
70
|
+
organization, environmental protection organization,
|
|
71
|
+
or government institution is use for a permitted purpose
|
|
72
|
+
regardless of the source of funding or obligations resulting
|
|
73
|
+
from the funding.
|
|
74
|
+
|
|
75
|
+
## Fair Use
|
|
76
|
+
|
|
77
|
+
You may have "fair use" rights for the software under the
|
|
78
|
+
law. These terms do not limit them.
|
|
79
|
+
|
|
80
|
+
## No Other Rights
|
|
81
|
+
|
|
82
|
+
These terms do not allow you to sublicense or transfer any of
|
|
83
|
+
your licenses to anyone else, or prevent the licensor from
|
|
84
|
+
granting licenses to anyone else. These terms do not imply
|
|
85
|
+
any other licenses.
|
|
86
|
+
|
|
87
|
+
## Patent Defense
|
|
88
|
+
|
|
89
|
+
If you make any written claim that the software infringes or
|
|
90
|
+
contributes to infringement of any patent, your patent license
|
|
91
|
+
for the software granted under these terms ends immediately. If
|
|
92
|
+
your company makes such a claim, your patent license ends
|
|
93
|
+
immediately for work on behalf of your company.
|
|
94
|
+
|
|
95
|
+
## Violations
|
|
96
|
+
|
|
97
|
+
The first time you are notified in writing that you have
|
|
98
|
+
violated any of these terms, or done anything with the software
|
|
99
|
+
not covered by your licenses, your licenses can nonetheless
|
|
100
|
+
continue if you come into full compliance with these terms,
|
|
101
|
+
and take practical steps to correct past violations, within
|
|
102
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
103
|
+
end immediately.
|
|
104
|
+
|
|
105
|
+
## No Liability
|
|
106
|
+
|
|
107
|
+
***As far as the law allows, the software comes as is, without
|
|
108
|
+
any warranty or condition, and the licensor will not be liable
|
|
109
|
+
to you for any damages arising out of these terms or the use
|
|
110
|
+
or nature of the software, under any kind of legal claim.***
|
|
111
|
+
|
|
112
|
+
## Definitions
|
|
113
|
+
|
|
114
|
+
The **licensor** is the individual or entity offering these
|
|
115
|
+
terms, and the **software** is the software the licensor makes
|
|
116
|
+
available under these terms.
|
|
117
|
+
|
|
118
|
+
**You** refers to the individual or entity agreeing to these
|
|
119
|
+
terms.
|
|
120
|
+
|
|
121
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
122
|
+
or other kind of organization that you work for, plus all
|
|
123
|
+
organizations that have control over, are under the control of,
|
|
124
|
+
or are under common control with that organization. **Control**
|
|
125
|
+
means ownership of substantially all the assets of an entity,
|
|
126
|
+
or the power to direct its management and policies by vote,
|
|
127
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
128
|
+
|
|
129
|
+
**Your licenses** are all the licenses granted to you for the
|
|
130
|
+
software under these terms.
|
|
131
|
+
|
|
132
|
+
**Use** means anything you do with the software requiring one
|
|
133
|
+
of your licenses.
|