Scan your whole stack
From OX Research Newsroom
Are you using amplify-excel-migrator?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.23.2
amplify-excel-migrator was last scanned on 1 Dec 2026 at version 1.23.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.23.2 LATEST | 1 Dec 2026 | No rules fired |
| 1.23.1 | 1 Dec 2026 | No rules fired |
| 1.23.0 | 30 Nov 2026 | No rules fired |
| 1.22.0 | 22 Oct 2026 | Not shown |
Findings for v1.23.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.23.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A CLI tool to migrate data from Excel files to AWS Amplify GraphQL API. Developed for the MECO project - https://github.com/sworgkh/meco-observations-amplify
Install the latest stable version from PyPI:
pip install amplify-excel-migrator
Clone the repository and install:
git clone https://github.com/EyalPoly/amplify-excel-migrator.git
cd amplify-excel-migrator
pip install .
The tool has five subcommands:
Save your AWS Amplify configuration:
amplify-migrator config
This will prompt you for:
fill_unknown)fill_unknown is enabled: FK fallback IDs — enter model name → ID pairs, press Enter on an empty model name to finishConfiguration is saved to ~/.amplify-migrator/config.json
View your current saved configuration:
amplify-migrator show
Export your GraphQL schema to an Excel reference workbook:
# Export all models (produces schema-reference.xlsx)
amplify-migrator export-schema
# Export to a specific file
amplify-migrator export-schema --output my-schema.xlsx
# Export as Markdown instead
amplify-migrator export-schema --output my-schema.md
# Export specific models only
amplify-migrator export-schema --models User Post Comment
This generates an Excel workbook with:
Open directly in Excel or Google Sheets — no special software needed.
💡 The exported schema reference can help you prepare your Excel file. For detailed formatting guidelines, see the Excel Format Specification.
Export model records from your Amplify backend to an Excel file:
# Export a single model's records
amplify-migrator export-data --model Reporter
# Export multiple models (each as a separate sheet)
amplify-migrator export-data --model Reporter Article Comment
# Export all models
amplify-migrator export-data --all
# Export to a specific file
amplify-migrator export-data --model Reporter --output reporter_backup.xlsx
amplify-migrator export-data --all --output full_backup.xlsx
Records are sorted by primary field and exported with scalar, enum, and ID fields. When exporting multiple models, each model gets its own sheet in the Excel file. This is useful for backing up data and auditing records. An export is not re-importable as it is: foreign-key columns hold record IDs rather than the names migrate looks up, and custom types are in a single cell. Soft-deleted records are included, with deletedAt set.
If any model can't be read in full, the command says which and exits with status 1.
Run the migration using your saved configuration:
amplify-migrator migrate
You'll only be prompted for your password (for security, passwords are never cached).
The migration core is also usable as a library. MigrationOrchestrator.build_plan() returns an
inspectable MigrationPlan (per-sheet model match, record counts, and rows that failed to parse)
without uploading anything; execute(plan, selected_sheets=...) uploads the chosen sheets and
returns a MigrationResult with a merged per-sheet failures list. This is the seam that lets
non-interactive callers (such as an automated agent) drive a migration. The amplify-migrator migrate CLI is a thin interactive wrapper over this API and behaves exactly as before.
The agent can additionally propose header renames via propose_column_renames to reconcile mismatched
column headers with schema field names before migrating; like value edits, every rename passes through
the same human-approval gate and only approved renames are applied. The agent signals completion with an
explicit finish tool call rather than by ending a message, so a turn that only narrates its plan never
terminates the session prematurely.
For value problems that repeat across many rows — the same #REF!, an enum/casing mismatch, or blank
required cells — the agent proposes bulk fixes at the (column, value) level via propose_value_mappings
("in column C, map value X to Y") instead of editing thousands of cells one at a time. The grouped
dry_run report hands it the exact column and value of each failure group, the human approves each
mapping once, and every matching row is rewritten; mapping from a null from_value fills blank cells or
creates and fills a missing required scalar field. Like every other edit, it passes through the
human-approval gate and only approved mappings are applied. For foreign-key values that match no
existing entity, the dry_run report also lists the closest existing entities (closest_existing, each
with its name and id), so the agent can map a misspelled or variant name to the right record instead of
guessing.
When a required value cannot be determined from the data and has no sensible default — for example a
required foreign key with no column and no plausible candidate — the agent calls ask_user to ask the
human a specific free-form question and uses the answer in a follow-up fix. Unlike edits and uploads,
ask_user is not gated: it is an ordinary blocking round-trip that returns the human's answer to the
model, and the agent is instructed to use it only as a last resort.
Because a value fix is only as good as the failures it targets, propose_changes and
propose_value_mappings are blocked until a dry_run has run since the last workbook change: the first
value fix with no prior dry_run is refused, and any applied edit (including a column rename) invalidates
an earlier dry_run, so the agent must re-run it before the next batch. Header renames themselves stay
ungated, since they normally precede the first dry_run.
When a proposed value edit is structurally invalid (unknown sheet or column, a missing or
out-of-range row), propose_changes returns an instructive error naming the exact problem instead
of a terse failure, so the model can self-correct. A malformed propose_value_mappings call is just as
legible: a call missing its summary or mappings array is refused with the expected shape, and a
single mapping missing a required key (for example to_value) becomes a per-item invalid entry keyed
by its list index while its valid siblings are still applied.
Two loop guards keep a stuck agent from burning every turn. If the model keeps issuing the same
failing tool call, the loop escalates once with a corrective message and then aborts. Separately, if a
run of proposals each applies no changes — even when their arguments vary every time — the loop
nudges the agent to re-run dry_run and, if it still makes no progress, aborts. Any productive step
(an applied edit, or a dry_run between attempts) resets the counter.
Alongside the conversational agent, PreparationPipeline runs the migration as a fixed
sequence and calls the LLM only for the decisions no rule can make: mapping messy headers to
schema fields, and resolving foreign-key values that match no existing record. Every proposal
is human-approved; termination is bounded (no agentic loop). Unresolved items — new entities
to create in Amplify, ambiguous FKs, and unmapped headers — are reported for a follow-up.
Measure it with scripts/eval_pipeline.py (same flags as scripts/eval_agent_trajectory.py).
# First time: configure the tool
amplify-migrator config
# View current configuration
amplify-migrator show
# Export schema documentation (share with team)
amplify-migrator export-schema
# Export existing records to Excel
amplify-migrator export-data --model Reporter
amplify-migrator export-data --all
# Run migration (uses saved config)
amplify-migrator migrate
# View help
amplify-migrator --help
📋 For detailed Excel format requirements, see the Excel Format Specification.
╔════════════════════════════════════════════════════╗
║ Amplify Migrator - Configuration Setup ║
╚════════════════════════════════════════════════════╝
📋 Configuration Setup:
------------------------------------------------------
Excel file path [data.xlsx]: my-data.xlsx
AWS Amplify API endpoint: https://xxx.appsync-api.us-east-1.amazonaws.com/graphql
AWS Region [us-east-1]:
Cognito User Pool ID: us-east-1_xxxxx
Cognito Client ID: your-client-id
Admin Username: admin@example.com
✅ Configuration saved successfully!
💡 You can now run 'amplify-migrator migrate' to start the migration.
╔════════════════════════════════════════════════════╗
║ Migrator Tool for Amplify ║
╠════════════════════════════════════════════════════╣
║ This tool requires admin privileges to execute ║
╚════════════════════════════════════════════════════╝
🔐 Authentication:
------------------------------------------------------
Admin Password: ********
SUPER_ADMINS group (configurable via admin_group_name)Your Excel file must follow specific formatting guidelines for sheet names, column headers, data types, and special field handling. For comprehensive format requirements, examples, and troubleshooting, see:
📋 Excel Format Specification Guide
When records fail to upload, the tool provides a robust recovery mechanism to help you identify and fix issues without starting over.
data_failed_records_20251201_143022.xlsx)The tool tracks which records succeeded and failed, providing row-level context to help you quickly identify and resolve issues. Simply export the failed records, fix the errors in the Excel file, and re-run the migration with the corrected file.
Sometimes records are genuinely incomplete — for example, some observations have no known reporter or photographer. Two config options let you migrate these records instead of failing them.
If non-FK required fields are blank, enable fill_unknown via amplify-migrator config (answer yes when prompted) to substitute a type-appropriate placeholder instead of failing the record:
| Field type | Placeholder |
|---|---|
String, AWSEmail, AWSURL, enum, … |
"UNKNOWN" |
Int, AWSTimestamp |
0 |
Float |
0.0 |
Boolean |
false |
AWSDate |
"1970-01-01" |
AWSDateTime |
"1970-01-01T00:00:00.000Z" |
If a required FK field (e.g. reporter, photographer) is blank, configure a fallback ID so the record is linked to a placeholder instead of failing. Steps:
scripts/create_placeholders.py to do this.amplify-migrator config, answer yes to fill_unknown, then enter each model name and its placeholder ID when prompted.Run amplify-migrator show to confirm everything was picked up.
Both options are off by default and designed for re-migration runs against the exported failed-records file, not for the initial clean migration.
By default, every record is checked against existing Amplify data before it's created, and skipped
if it's already there. Skipped records are counted in the summary. For models with a review step or
soft delete, a row is reported as a failure instead when the existing record is not approved
(reviewStatus is NEW) or has been deleted; the existing record is left unchanged.
SpeciesCommonName counts as a duplicate only when the group and name match too, and Individual
only when both names match, unless you configure other composite keys for them.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.