Benign python Download

jgtpricedb 0.2.0

“Database-backed incremental price store for the JGT trading platform (PDSP heir)”

SQLAlchemy ORMWrites bytes with pathlib.Path.write_bytes()

Evidence

Reads file content (Python) export.py · lines 140–149
140:2… path = Path(path)
141 try:
142 with path.open("rb") as handle:
143 chunk = handle.read(8192)
144 except OSError:
145 return None
⋯4 lines
Writes bytes with pathlib.Path.write_bytes() export.py · lines 418–427
418:29… ad: bytes, *, atomic: bool) -> None:
419 if not atomic:
420 path.write_bytes(payload)
421 return
422 staging = path.with_name(f".{path.name}.{os.getpid()}.tmp")
423 try:
424 staging.write_bytes(payload)
425 os.replace(staging, path)
426 finally:
427 if staging.exists(): # pragma: no cover - f …
SQLAlchemy ORM store.py · lines 12–22
12:41…
13from typing import Iterator, Literal, Protocol, Sequence
14
15from sqlalchemy import (Engine, create_engine, delete, event, func, insert, select,
16 update)
17from sqlalchemy.exc import IntegrityError
18from sqlalchemy.orm import Session, sessionmaker
19
20from .identity import pov as make_pov
21from .markets import classify_market
22from .models import (
SQLAlchemy ORM models.py · lines 1–19
⋯8 lines
9from datetime import datetime, timezone
10
11from sqlalchemy import (
12 BigInteger,
13 Boolean,
⋯6 lines
Python module-level function call models.py · lines 277–291
277:16… Mapped[datetime] = mapped_column(UtcInstant, nullable=False)
278
279
280Index("ux_bars_key", Bar.bar_key, unique=True)
281
282#: C1 / I2 — at most one forming bar per series, enforced by the database.
283Index(
284 "ux_bars_forming",
285 Bar.series_id,
⋯6 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.