Scan your whole stack
From OX Research Newsroom
Are you using nextfake?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
nextfake was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.1.0 | 21 Nov 2026 | No rules fired |
Findings for v1.0.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 1.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Rust-powered, multi-core synthetic data for Python. A Faker-style API that understands your Pydantic models, dataclasses and TypedDicts — and writes straight to Arrow, Polars, Pandas, Parquet, CSV and JSONL at millions of rows per second.
Measured speedups (6-column User schema, Apple M2 Max, release build — see Benchmarks):
| Benchmark | vs Faker | vs Mimesis | vs Polyfactory | nextfake time |
|---|---|---|---|---|
| 100,000 Python dicts | 414x | 35x | — | 41 ms |
| 100,000 Pydantic v2 models (validated) | — | — | 17x | 1,787 ms |
| 1,000,000 rows -> Polars DataFrame | 3,674x* | 308x | — | 44 ms |
| 1,000,000 rows -> Parquet on disk (zstd) | 2,380x* | 197x | — | 70 ms |
* Faker's 1M-row times are linear extrapolations from a measured 100k-row run (a full run
would take ~3 minutes). The Pydantic benchmark validates every model, so nextfake's time there
is dominated by Pydantic + email-validator (validate=False is 4.5x faster).
gen.generate(User, count=10_000) reads your Pydantic v2 model, dataclass
or TypedDict — Optional, Literal, Enum, nested models, aliases, ge/gt/le/lt,
min_length/max_length — and picks realistic providers from field names
(user_email → e-mail, signup_date → datetime, ip_address → IPv4, is_active → bool).py.typed and complete stubs; gen.generate(User, 100) is inferred as
list[User] under mypy --strict.en_US, en_GB, de_DE, fr_FR,
ja_JP) are compiled into the binary — no data files, no runtime I/O.pip install nextfake # core (no dependencies)
pip install "nextfake[all]" # + pydantic, polars, pyarrow, pandas
Wheels are built for CPython ≥ 3.10 (abi3) on Linux (manylinux & musllinux, x86_64/aarch64),
macOS (arm64/x86_64) and Windows x64. Building from source needs a Rust toolchain:
pip install maturin && maturin develop --release.
import nextfake
gen = nextfake.Faker(locale="en_US", seed=42) # threads=None -> all cores
gen.name() # 'Charlotte Palmer'
gen.email() # 'vincent_robinson@parker.com'
gen.credit_card_number() # Luhn-valid
gen.uuid7() # time-ordered, monotonically sortable
gen.emails(100_000) # parallel batch -> list[str]
# Schema-driven generation
from datetime import datetime
from pydantic import BaseModel, EmailStr, Field
class User(BaseModel):
id: int
full_name: str
email: EmailStr
city: str
ip_address: str
age: int = Field(ge=18, le=65)
created_at: datetime
users = gen.generate(User, count=1_000) # list[User], validated by Pydantic
rows = gen.to_dicts(User, 100_000) # list[dict]
df = gen.to_polars(User, 1_000_000) # polars.DataFrame (built in Rust)
table = gen.to_arrow(User, 1_000_000) # pyarrow.Table (zero-copy)
gen.to_parquet(User, 5_000_000, "users.parquet") # streamed, bounded memory
gen.to_csv(User, 1_000_000, "users.csv")
gen.to_jsonl(User, 1_000_000, "users.jsonl")
# No model? Use a dict schema (provider names or types; "?" = nullable)
gen.to_polars({"id": "int", "email": "email", "created_at": "datetime", "phone": "phone_number?"}, 10)
Module-level shortcuts use a shared default generator: nextfake.name(),
nextfake.seed(1), nextfake.generate(User, 10), nextfake.to_polars(...), ...
from faker import Faker
import polars as pl
fake = Faker()
rows = [
{
"id": i,
"full_name": fake.name(),
"email": fake.email(),
"city": fake.city(),
"ip_address": fake.ipv4(),
"created_at": fake.date_time(),
}
for i in range(1_000_000)
]
df = pl.DataFrame(rows)
df.write_parquet("users.parquet")
import nextfake
gen = nextfake.Faker()
gen.to_parquet(
{
"id": "int",
"full_name": "name",
"email": "email",
"city": "city",
"ip_address": "ipv4",
"created_at": "datetime",
},
1_000_000,
"users.parquet",
)
from polyfactory import Use
from polyfactory.factories.pydantic_factory import (
ModelFactory,
)
class UserFactory(ModelFactory[User]):
__model__ = User
# semantic fields must be wired by hand
full_name = Use(ModelFactory.__faker__.name)
city = Use(ModelFactory.__faker__.city)
users = UserFactory.batch(100_000)
import nextfake
gen = nextfake.Faker()
# full_name, city, email, ip_address, ...
# are inferred from field names + types
users = gen.generate(User, 100_000)
| Source | Supported |
|---|---|
Pydantic v2 BaseModel |
field types, Field(ge/gt/le/lt/multiple_of/min_length/max_length/decimal_places/max_digits), aliases (incl. AliasChoices, AliasPath), strict mode, defaults, nested models, EmailStr, HttpUrl/AnyUrl, IPvAnyAddress, SecretStr, PaymentCardNumber, AwareDatetime/NaiveDatetime, PastDate/FutureDate/PastDatetime/FutureDatetime |
dataclasses |
all init fields, defaults, field(metadata={"nextfake": spec}) |
TypedDict |
Required/NotRequired, nested TypedDicts |
dict schema |
{"col": "provider" \| "type" \| Spec \| python_type \| {nested}}, "provider?" for nullable |
| Types | int, float, bool, str, bytes, Decimal, date, datetime, time, timedelta, UUID, IPv4Address, IPv6Address, Literal[...] (incl. None and mixed types), Enum, Optional[T], T \| None, Annotated[T, spec] |
Provider selection order: explicit overrides= → Annotated[..., nextfake.Spec] →
Literal/Enum → field-name heuristics (reconciled with the annotation) → type default,
narrowed by constraints.
A few of the heuristics (see nextfake.infer_provider("field_name")):
| Field name | Provider | Field name | Provider |
|---|---|---|---|
full_name, customer_name, author |
name |
created_at, signup_date, updatedAt |
datetime |
user_email, contactEmail |
email |
price, amount, total_amount |
price |
ip, ip_address, client_ip |
ipv4 |
is_active, has_children, verified |
bool |
country_code, billing_country_code |
country_code |
zip, postal_code |
postcode |
phone, mobile_phone |
phone_number |
description, bio, notes |
paragraph |
id (int) / user_id (str) |
serial / uuid4 |
dob, birthday |
date_of_birth |
Heuristics respect the annotation: created_at: int becomes a Unix timestamp,
signup_date: str an ISO-8601 string, user_id: str a UUID.
Constraints are honoured so generated models always validate:
email: str = Field(max_length=20) redraws until a
whole address fits instead of cutting one in half. Only when no draw fits (a 2-letter
country code with min_length=3) is the value padded or truncated.ge/gt/le/lt, multiple_of, and for Decimal also
decimal_places and max_digits; values are drawn on the exact grid, never rounded past a
bound.ConfigDict(strict=True) or Field(strict=True)) receive exact types
(UUID, Decimal, Enum members, ...).PastDate/PastDatetime use the fixed default ranges, so they
reproduce forever. FutureDate/FutureDatetime are relative to today unless you pin
Faker(reference_date=date(2030, 1, 1)).from typing import Annotated, Literal, Optional
from pydantic import BaseModel, Field
import nextfake
class Order(BaseModel):
reference: Annotated[str, nextfake.Pattern("ORD-????-####")] # inline spec
quantity: int = Field(ge=1, le=10) # constraints honoured
coupon: Optional[str] = None # None with p = null_probability
status: Literal["new", "paid", "shipped"]
gen = nextfake.Faker(seed=1, null_probability=0.2)
orders = gen.generate(
Order,
count=10_000,
overrides={
"quantity": nextfake.Int(1, 3),
"status": nextfake.Choice(["new", "paid", "shipped"], weights=[0.7, 0.2, 0.1]),
"coupon": nextfake.Pattern("SAVE##").nullable(0.9),
},
)
Specs: Provider(name, **params), Int(min, max, multiple_of=),
Float(min, max, decimals=, multiple_of=), Price, Bool, Choice, Date,
DateTime(..., utc=), Time, Duration, UnixTime, Serial, Pattern, Sentence,
Paragraph/Text, String, Constant, Nullable, plus .nullable(p),
.length(min_length, max_length), .truncate(n), .with_params(...).
| Method | Returns | Notes |
|---|---|---|
generate(schema, n) |
list[Model] |
Pydantic-validated (validate=False → model_construct), dataclass instances, converted TypedDicts |
to_dicts / to_tuples / to_columns |
Python objects | Built directly from Rust buffers; immutable strings & dates are shared |
to_arrow_stream |
ArrowStream |
__arrow_c_stream__ PyCapsule — no dependency needed (DuckDB, pyarrow, Polars, ...) |
to_arrow / to_polars / to_pandas |
tables / DataFrames | Zero-copy Arrow import (Polars needs no pyarrow) |
to_arrow_ipc |
bytes |
Arrow IPC stream |
to_parquet(path, compression="zstd") |
Path |
Row groups × columns encoded in parallel; zstd, snappy, lz4, gzip, none |
to_csv(path, delimiter=",") / to_jsonl(path) |
Path |
RFC-4180 quoting / ISO-8601 dates |
Disk writers stream in bounded waves with a dedicated I/O thread and recycled buffers: peak memory is flat whether you write 1M or 100M rows.
Arrow types: int64, float64, bool, string, date32, timestamp[us] (naive UTC),
timestamp[us, tz=UTC] (DateTime(utc=True), AwareDatetime), time64[us], duration[us].
CSV / JSONL write ISO-8601 dates, times and durations (P1DT2H3M4S).
a = nextfake.Faker(seed=7, threads=1).to_polars(User, 1_000_000)
b = nextfake.Faker(seed=7, threads=32).to_polars(User, 1_000_000)
assert a.equals(b) # identical, any thread count / CPU
(chunk, column) pair has its own
ChaCha8Rng, keyed by (seed, chunk) with a 64-bit stream derived from the column name.
Work is scheduled across all cores, results are reassembled in order.to_dicts, to_arrow, to_polars, to_parquet, ...FutureDate/FutureDatetime fields are the one calendar-relative exception — pin them
with Faker(reference_date=...).gen.name()) use a sequential session RNG; each bulk call draws a new
batch seed from it. Reproducibility therefore means: same seed, same nextfake version, same
sequence of calls on the Faker.tests/test_golden.py).nextfake.__all__ and their documented
behaviour only change in a major release; deprecations warn for at least one minor release.1.0.x) never
change generated values. Minor releases (1.x) may — for example to fix a provider or add
realism — and every such change is listed under Changed data in
CHANGELOG.md. Pin nextfake~=1.0.0 if your snapshots must never move.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.