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

nextfake

Latest version: v1.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: chetanxrathore
2 Stars
0 Forks
2 Versions
280 Downloads
Rust Repo language

Scan summary

nextfake was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 3 days (21–23 Nov 2026).
  • Findings: No rules fired in version 1.0.0.
  • Downloads: 280 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 23 Nov 2026 No rules fired
0.1.0 21 Nov 2026 No rules fired

No rules fired in 1.0.0

Findings

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.

README

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

nextfake

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.

CI Python License Typed


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

Why nextfake?

  • Fast by construction. Generation runs in Rust on every core (rayon), with the GIL released. Bulk paths never create intermediate Python strings or dicts: Arrow buffers are built directly in Rust and handed to pyarrow / Polars zero-copy through the Arrow PyCapsule interface, and files are streamed to disk from Rust.
  • Schema-aware. 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).
  • Reproducible everywhere. A seed produces byte-for-byte identical data on 1 thread or 64, on any machine, in any output format.
  • Typed. Ships py.typed and complete stubs; gen.generate(User, 100) is inferred as list[User] under mypy --strict.
  • Zero required dependencies. Pydantic, Polars, pyarrow and pandas are optional integrations detected at runtime. Five locales (en_US, en_GB, de_DE, fr_FR, ja_JP) are compiled into the binary — no data files, no runtime I/O.

Installation

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.

Quick start

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

Side by side

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)

Schema inference

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:

  • Lengths keep providers meaningful: 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.
  • Numbers respect 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.
  • Strict models (ConfigDict(strict=True) or Field(strict=True)) receive exact types (UUID, Decimal, Enum members, ...).
  • Past/future types: 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)).
Overrides, constraints and nulls
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(...).

Exports

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

Determinism & parallelism

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
  • Rows are split into fixed 16,384-row chunks; every (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.
  • Adding or reordering columns never changes the values of existing columns, and the first k rows of a dataset don't depend on how many rows you generate.
  • The same seed gives the same data in to_dicts, to_arrow, to_polars, to_parquet, ...
  • Default date ranges are fixed (2020–2025 for datetimes), not relative to "now", so a seed reproduces forever. UUIDv7 timestamps start at 2025-01-01 for seeded generators. FutureDate/FutureDatetime fields are the one calendar-relative exception — pin them with Faker(reference_date=...).
  • Single-value calls (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.
  • Identical output on Linux, macOS and Windows, x86_64 and arm64 is enforced in CI by a golden-output test (tests/test_golden.py).
Stability policy (1.x)
  • API: semantic versioning. Public names in nextfake.__all__ and their documented behaviour only change in a major release; deprecations warn for at least one minor release.
  • Generated data: for a given seed, schema and locale, patch releases (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.

Providers

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 nextfake

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229