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

velocity-python

Latest version: v0.16.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: paulslogin
60 Versions
11.3K Downloads

Scan summary

velocity-python was last scanned on 23 Nov 2026 at version 0.16.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 60 versions; the latest 5 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 0.16.0.
  • Downloads: 11,303 downloads.

Versions

60 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.16.0 LATEST 23 Nov 2026 No rules fired
0.15.6 20 Nov 2026 No rules fired
0.15.5 20 Nov 2026 No rules fired
0.15.4 20 Nov 2026 Not shown
0.15.3 20 Nov 2026 Not shown

No rules fired in 0.16.0

Findings

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

README

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

Velocity-Python

A rapid application development library for Python that eliminates boilerplate between your code and your database. Write business logic, not SQL plumbing.

@engine.transaction
def create_order(tx, customer_email, items):
    customer = tx.table("customers").find({"email": customer_email})
    order = tx.table("orders").insert({
        "customer_id": customer["sys_id"],
        "status": "pending",
        "total": sum(i["price"] for i in items),
    })
    tx.table("order_items").insert_many([
        {"order_id": order["sys_id"], "product": i["name"], "price": i["price"]}
        for i in items
    ])
    return order

No connection management, no cursor juggling, no commit/rollback boilerplate. Velocity handles it all.

Python 3.9+ License: MIT


Why Velocity?

Most Python database libraries fall into two camps:

  1. Heavy ORMs (SQLAlchemy, Django ORM) — powerful but complex. You write Python classes that map to tables, manage sessions, deal with migration frameworks, and learn a large API surface before writing your first query.

  2. Raw drivers (psycopg, sqlite3) — full control, but you're writing SQL strings, managing connections, handling cursors, serializing parameters, and building your own transaction/error-handling patterns from scratch.

Velocity occupies the middle ground: a thin, opinionated layer that gives you the convenience of an ORM with the transparency of raw SQL. Tables are just names. Rows are just dicts. Transactions are just context managers. You don't define models — Velocity discovers your schema at runtime and adapts to it.

Design Principles
Principle What It Means
Convention over configuration Sensible defaults everywhere. Override only what you need.
Dicts in, dicts out No custom model classes to learn. Rows are dictionaries.
Transaction-scoped Every operation runs inside an explicit transaction. No surprise autocommit.
Auto-schema Tables and columns are created on the fly in development. Locked down in production.
Driver-agnostic PostgreSQL (primary), MySQL, SQLite — same API surface. SQL Server as a read-only source (tx.execute).
Lambda-native Connection pooling, warm-start reuse, and SQS batch handling built in.

Installation

# Core (no database driver — useful for testing or SQLite)
pip install velocity-python

# PostgreSQL (recommended)
pip install velocity-python[postgres]

# With AWS Lambda support
pip install velocity-python[postgres,aws]

# Everything
pip install velocity-python[all]
Available Extras
Extra Packages Use Case
postgres psycopg[binary]>=3.2.0 PostgreSQL connections
aws boto3, requests Lambda handlers, SQS, Amplify
excel openpyxl Excel export
parquet pyarrow Parquet export
ods odfpy OpenDocument spreadsheet export
templates jinja2 Template rendering
pdf weasyprint HTML → PDF rendering (native Pango/Cairo from the OS or a layer)
http requests HTTP utilities
payment stripe, braintree Stripe and Braintree adapters
mysql mysql-connector-python MySQL connections
sqlserver python-tds SQL Server connections
redis, mongodb, elasticsearch, cassandra, couchbase the matching client NoSQL adapters (docs/nosql.md)
all postgres, aws, excel, templates, http, payment, pdf Typical full install

Requires Python 3.9+ and uses psycopg v3 (not psycopg2) for PostgreSQL.


Quick Start

1. Connect
from velocity.db.servers.postgres import initialize

# From environment variables (DBHost, DBDatabase, DBUser, DBPassword)
engine = initialize()

# Or explicit config
engine = initialize(config={
    "host": "localhost",
    "dbname": "myapp",
    "user": "postgres",
    "password": "secret",
})
2. Use Transactions
# As a decorator (recommended for Lambda handlers)
@engine.transaction
def get_active_users(tx):
    return tx.table("users").select(where={"active": True}).all()

# As a context manager
with engine.transaction() as tx:
    tx.table("users").insert({"name": "Alice", "email": "alice@example.com"})
3. CRUD Operations
@engine.transaction
def demo(tx):
    users = tx.table("users")

    # Insert
    row = users.insert({"name": "Bob", "email": "bob@example.com"})

    # Read
    user = users.row(row["sys_id"])                    # by primary key
    user = users.find({"email": "bob@example.com"})    # by lookup

    # Update
    user["name"] = "Robert"                            # immediate write-through

    # Delete
    users.delete({"sys_id": row["sys_id"]})
4. Bulk Operations
@engine.transaction
def import_customers(tx, records):
    tx.table("customers").insert_many(records)              # multi-row INSERT
    tx.table("customers").upsert_many(records, pk="email")  # INSERT ... ON CONFLICT UPDATE

Documentation

Full documentation is included in the docs/ directory of the source distribution. What changed in each release, and what callers must do before upgrading, is in CHANGELOG.md (Breaking / Deploy ordering / Added / Fixed per version).

Guide File Description
Database ORM docs/database.md Connections, DB_TUNNEL, transactions, tables, rows, results, queries, purge, schema management
Schema Management docs/schema-management.md Runtime auto-heal, declarative ensure_schema(), schema locking, conflict handling
Performance & Optimization docs/performance.md Connection pooling, batch operations, query caching, prepared statements, N+1 prevention, observability
Configuration Reference docs/configuration.md Every environment variable and SSM config key velocity reads, ssm_config, S3 buckets, engine options
AWS Lambda Handlers docs/aws-handlers.md LambdaHandler, SqsHandler, auth modes, per-record transactions, DataService client boundary, async jobs (JobHandler + job result stores), failure events
AWS Auth Modes docs/AWS_HANDLERS_AUTH.md Cognito auth, public endpoints, webhooks
Deployment docs/deploy.md velocity.aws.deploy: least-privilege IAM, function settings, layers, SQS queue reconcile
Cross-database Mirroring docs/mirroring.md Keep a table identical in two databases (demo ↔ production) by natural key; rwx hooks, FK translation, reconcile
Operations Dashboard docs/operations.md What the automation is doing: schedules, jobs, failures, stuck work, with drill-down (velocity.aws.ops + velocity-react OpsDashboard)
NoSQL Adapters docs/nosql.md Redis, DynamoDB, MongoDB, Elasticsearch, Cassandra, Couchbase behind one capability-honest contract
Payment Processing docs/payment.md Stripe and Braintree adapters, processor mirrors, payment lifecycle
Utilities docs/utilities.md Excel/PDF export, data conversion, formatting, timers, email parsing and SMTP sending
Testing Guide docs/TESTING.md Running tests, markers, coverage
Security docs/SECURITY.md Pre-commit hooks, credential scanning
Changelog CHANGELOG.md Per-release breaking changes, deploy ordering, additions and fixes

Architecture

Engine (singleton — survives Lambda warm starts)
├── ConnectionPool (thread-safe, configurable min/max)
└── Transaction (one per request, borrows from pool)
     ├── Table (CRUD, batch ops, schema management)
     │    ├── Row (dict-like, lazy-cache, write-through, batch_update())
     │    └── Result (streaming cursor iteration, transforms)
     ├── View (create, grant, ensure)
     └── Sequence (create, next, current, configure)

Transactions auto-commit on success, auto-rollback on exception. Connections are returned to the pool (or discarded on error). The Engine persists across Lambda invocations, so the pool stays warm.


Multi-Database Support

Database Driver Status
PostgreSQL psycopg[binary]>=3.2.0 Primary, fully tested
MySQL mysql-connector-python Supported
SQLite sqlite3 (stdlib) Supported
SQL Server python-tds Read-only source: tx.execute(...) only (tx.table raises NotImplementedError); TLS required by default (encrypt)
# PostgreSQL
from velocity.db.servers.postgres import initialize
engine = initialize()

# MySQL
from velocity.db.servers.mysql import initialize
engine = initialize()

# SQLite
from velocity.db.servers.sqlite import initialize
engine = initialize(config={"database": "myapp.db"})

# SQL Server (read-only source: raw tx.execute only; encrypt="require" by default)
from velocity.db.servers.sqlserver import initialize
engine = initialize()

Project Structure

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 velocity-python

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

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

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229