Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

bidlab

Latest version: v0.6.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: NovelioPI
0 Stars
0 Forks
6 Versions
537 Downloads
Python Repo language

Scan summary

bidlab was last scanned on 24 Nov 2026 at version 0.6.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.6.0.
  • Downloads: 537 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.0 LATEST 24 Nov 2026 No rules fired
0.5.0 23 Nov 2026 No rules fired
0.3.1 23 Nov 2026 No rules fired
0.3.0 23 Nov 2026 Not shown
0.2.0 23 Nov 2026 Not shown

No rules fired in 0.6.0

Findings

Findings for v0.6.0. 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 0.6.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

bidlab

A Python library for testing ad bidding methods, such as pacing, bid shading, and learning bidders, in simulated auctions.

You write a bidder class and a short Python script. bidlab runs the auctions, hides what a real bidder could not see, and reports the same metrics for every method.

Install

pip install bidlab               # core: numpy, scipy, cloudpickle
pip install "bidlab[pandas]"     # adds Results.to_pandas()

bidlab needs Python 3.12 or later. To work on bidlab itself, run uv sync in a clone of this repo. Changes per release are in the changelog.

Quickstart

import bidlab as bl


def true_value(bidder):
    # OracleValue outputs the true value; put your own estimator here to test it.
    return bl.Stack(bl.OracleValue(), bidder)


config = bl.SimConfig(
    campaigns=[
        bl.Campaign("truthful", true_value(bl.Linear()), budget=50, base_value=5),
        bl.Campaign("pid", true_value(bl.PidPacing()), budget=15, base_value=5),
        bl.Campaign("bandit", true_value(bl.UcbMultiplier()), budget=50, base_value=5),
    ],
    auction=bl.SecondPrice(reserve=0.01),
    episodes=5,
    steps=500,
)

results = bl.run(config, seed=range(3))
print(results.summary())

summary() shows, for each bidder, the mean across seeds and a 95% Student-t interval.

How one step works

  1. The market draws the impression's public features and each campaign's conversion probability pᵢ, and optionally a click probability qᵢ. The default market, LogisticMarket, uses pᵢ = σ(x · φᵢ + βᵢ) for a random feature vector x, with no click stage (qᵢ = 1).
  2. Each bidder's forward gets the inputs it names, such as time, budget_left, floor, market and each public feature. The simulator passes no value: each bidder estimates its own. bl.OracleValue reads the truth from market: the campaign's base value w times the chance of its event, which is 1 for an impression, qᵢ for a click, and qᵢ × pᵢ for a conversion, the default. A bid policy such as bl.PidPacing sits after it in a bl.Stack.
  3. Each bid is capped at the bidder's remaining budget. The bidder does not see that amount; it tracks its own spend.
  4. The auction picks a winner: FirstPrice or SecondPrice, with an optional reserve price. A market can add a floor and a hidden market price, the highest bid from outside; a campaign must beat it to win. With SimConfig(competing=False), each campaign bids alone against the market price on one shared draw, so bidders can be compared on the same traffic.
  5. The winner is clicked with probability q, then converts with probability p of the winner.
  6. Each bidder gets its own BidResult: the auction's time, its bid, and whether it won. It also holds the price it paid, whether it was clicked and converted, and its realized_value. A bidder computes its own reward from it. A loser never sees the winning price.

bl.OracleValue(noise=0.5) makes that value wrong by a set amount. Simulation covers the clock and reproducibility.

Write a bidder

Subclass bl.Bidder and implement forward. Like a PyTorch module, forward names the inputs it needs, such as forward(self, time_left, budget_left). Its output is the bid. After another bidder in a bl.Stack, it also gets that bidder's output as value.

class FlatBid(bl.Bidder):
    def __init__(self, amount):
        self.amount = amount

    def forward(self):
        return self.amount


flat = bl.SimConfig(
    campaigns=[
        bl.Campaign("flat", FlatBid(0.2), budget=50, base_value=5),
        bl.Campaign("truthful", true_value(bl.Linear()), budget=50, base_value=5),
    ],
    episodes=2,
    steps=200,
)
print(bl.run(flat, seed=range(2)).summary())

Bidders covers every input, the other hooks, learning from results, and stacking bidders with bl.Stack.

Guides

Guide Covers
Simulation Each step in detail, the clock, delayed feedback, parallel runs, reproducibility
Campaigns Budget, the event a campaign pays for, base value, CPA target, segments
Bidders Inputs, hooks, value models and bid control, Stack, built-in bidders
Composite bidders Bidders that hold and call other bidders
Markets Built-in markets, segments and targeting, custom markets
Rewards A reward in the bidder's own code, logging it, comparing bidders
Logging and callbacks self.log in a bidder, and watching a run
Results Results, RunLog, metric functions, regret
Profiling Time per bidder hook, simulator time and memory with profiler=True

Metrics defines every metric and its limits.

Examples

Each script runs on its own, prints its results, and ends with the answer to its question.

Script Question
getting_started/basic.py When the budget is tight, does PID pacing earn more surplus than truthful bidding?
campaigns/events.py With the same budget, does a click campaign pay less per click than a conversion campaign?
campaigns/benchmark.py On one shared market, does PID pacing earn more surplus than truthful bidding?
campaigns/market_budget.py With a budget at half the market's cost, does truthful bidding run out early while PID pacing lasts the day?
bidders/segment_rate.py Does a bidder that counts conversions per segment learn that sports converts better than news?
bidders/value_estimators.py Does a two-stage model on the public features estimate conversions better than counting?
bidders/oracle_noise.py Does noise in the value estimate cost a truthful bidder surplus?
composite/night_shade.py When a parent shades harder at night, does its child PID raise its multiplier at night?
markets/segments.py Does a sports-only bidder win any auction outside sports?
markets/custom_market.py Does the all-day bidder pay more per win at night, when the night-only bidder joins?
markets/independent_values.py In a first-price auction with uniform values, does shading to (n-1)/n beat truthful bidding?
markets/replay_log.py On a replayed first-price log, does PID pacing win more conversions than a fixed bid?
rewards/cpa_target.py Does bidding target/value of the value meet a CPA target that truthful bidding misses?
rewards/custom_reward.py Does a bandit rewarded for conversions pick a higher multiplier than one rewarded for surplus?
logging/pid_trace.py Does PID pacing spend its whole budget in each episode?
simulation/clock.py With a 12-hour day from 9:00, does an even-schedule bidder still have budget at 20:00, when truthful bidding has run out?
simulation/profiling.py Is UcbMultiplier's update slower per call than PidPacing's?
results/regret.py With no budget limit in a second-price auction, is truthful bidding's regret zero?
results/reserve.py Does a reserve price of 0.1 raise the platform's revenue?

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases bidlab

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229