Go to file
Villers Krisztián 4ac92ea033 url from .env 2026-05-04 20:45:52 +02:00
.github ok 2026-04-30 16:39:15 +02:00
docs/images README 2026-04-30 16:43:10 +02:00
src url from .env 2026-05-04 20:45:52 +02:00
.env.example url from .env 2026-05-04 20:45:52 +02:00
.gitignore ok 2026-04-30 16:39:15 +02:00
AGENTS.md qwen3.5-9b testing 2026-05-04 15:27:13 +02:00
Cargo.lock ok 2026-04-30 16:39:15 +02:00
Cargo.toml ok 2026-04-30 16:39:15 +02:00
LICENSE more compact readme 2026-04-30 16:53:40 +02:00
README.md more compact readme 2026-04-30 16:53:40 +02:00

README.md

Antares Data Exporter

Octopus ERP Converter

Rust utility to fetch product data from Antares B2B and export to Excel.

Quick Start

cp .env.example .env
# Edit .env with your credentials and output path
cargo build --release
./target/release/antares_get_data

Configuration

.env file:

ANTARES_USERCODE=your_usercode
ANTARES_PASSWORD=your_password_hash
OUT=out

OUT can be:

  • Directory: out → creates out/antares.xlsx
  • File path: exports/data.xlsx → creates file there
  • Must be .xlsx extension if file path

How It Works

  1. Load credentials from .env
  2. Fetch product data from Antares B2B API (300s timeout)
  3. Save raw JSON to antares.json
  4. Export filtered data to Excel
  5. Log all operations to log/YYYY-MM-DD.log

Excel Output

8 columns with selective field mapping and row filtering:

Column Source
BESZCIKKSZAM cikkszam (required)
GYCIKKSZAM cikkszam
BESZCIKKNEV cikk_megnevezes_rovid or cikk_megnevezes (required)
GYARTO "EGYEB"
CIKKAZON vonalkod
KESZLET szabad_keszlet
ME mennyisegi_egyseg_kod
EGYSEGAR netto_kisker_ar or "Alap ár" jellemzo

Rows skipped if cikkszam or product name missing.

Development

cargo build
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
cargo test

License

MIT License © 2026 Orink Hungary Kft.