Go to file
Villers Krisztián e0aa44fd10 elevated logging features 2026-05-05 22:07:44 +02:00
.github elevated logging features 2026-05-05 22:07:44 +02:00
docs/images md 2026-05-05 17:15:49 +02:00
src elevated logging features 2026-05-05 22:07:44 +02:00
.env.example cont 2026-05-05 15:16:14 +02:00
.gitignore ok 2026-04-30 16:39:15 +02:00
Cargo.lock cont 2026-05-05 15:16:14 +02:00
Cargo.toml cont 2026-05-05 15:16:14 +02:00
LICENSE more compact readme 2026-04-30 16:53:40 +02:00
README.md readme 2026-05-05 21:29:48 +02:00
run.bat batch file to run 2026-05-05 16:53:55 +02:00

README.md

Antares -> Octopus 8

antares logo cross octopus lgog

Rust utility to fetch product data from Antares B2B and export to Excel which can be imported by Octopus 8.

Quick Start

Linux / MacOS:

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

Windows:

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

Configuration

.env file:

URL=https://b2b.antares.hu/YOUR_BASE_URI_HERE
ANTARES_USERCODE=given_usercode
ANTARES_PASSWORD=given_password
OUT=out\\test.xlsx

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 (600s 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" (const)
CIKKAZON vonalkod
KESZLET szabad_keszlet
ME mennyisegi_egyseg_kod
EGYSEGAR netto_kisker_ar or "Alap ár" jellemzo.jellemzo_nev

Rows skipped if BESZCIKKSZAM or BESZCIKKNEV missing!