$npx skillfedfor your agent

freeze-uuid

Python package for mocking uuid.

With conditionsPyPI TestingReleased May 2024106.0K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — freeze_uuid-0.4.3-py3-none-any.whl
v0.4.3 · released 2024-05-04 · Python >=3.9

Yes, if you write tests for code that generates UUIDs and need deterministic behavior. The package is lightweight, has no dependencies, and solves a real testing problem. However, maintenance is dormant, so it will not receive bug fixes or updates—acceptable for a stable, narrow-scope utility but worth noting if you need ongoing support.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low friction: pure Python wheel with no runtime dependencies.
  • Maintenance is dormant—last commit 2024-05-04, no activity since—so expect no updates or bug fixes going forward.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute freely with minimal restrictions.

last release 2024-05-04 (832 days) · last repo commit 2024-05-04 · 1 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 106,021 downloads/mo, #12,671 on PyPI

Verify before relying

pip install freeze-uuid

from freeze_uuid import freeze_uuid
import uuid

@freeze_uuid('12af6b44-8181-11ee-b890-628ab7cd4d99')
def test_example():
    assert str(uuid.uuid4()) == '12af6b44-8181-11ee-b890-628ab7cd4d99'
  • Whether the package works correctly with all uuid generation methods beyond uuid1 and uuid4.
  • Compatibility with async test frameworks beyond the pytest.mark.asyncio example shown.
  • Whether dormant maintenance status will affect compatibility with future Python versions.
Same gist for agents: .md · .json

What it is and what it does

freeze-uuid is a testing utility that replaces Python's uuid module with a mock that returns fixed or sequenced UUID values. It works as a decorator on test functions or as a context manager, allowing you to control exactly what UUIDs are generated during test execution. This eliminates randomness in tests that depend on UUID generation, making them deterministic and reproducible.

The package supports single fixed UUIDs, default zero-filled UUIDs, lists of sequential UUIDs, and async test functions. It mocks the underlying uuid.UUID class, so it works with any library that generates UUIDs through the standard module. With zero runtime dependencies and a pure-Python wheel, it installs with minimal friction.

Use it for

  • Write deterministic unit tests for code that generates or uses UUIDs without relying on random values.
  • Test database operations where UUID primary keys must match expected values across test runs.
  • Verify UUID handling in async functions using pytest with parametrized test cases.
  • Mock UUID generation in libraries that build on the standard uuid module.
  • Create reproducible integration tests where UUID sequences need to be predictable.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you write tests for code that generates UUIDs and need deterministic behavior.

The package is lightweight, has no dependencies, and solves a real testing problem. However, maintenance is dormant, so it will not receive bug fixes or updates—acceptable for a stable, narrow-scope utility but worth noting if you need ongoing support.

Install

freeze-uuid on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Maintenance is dormant—last commit 2024-05-04, no activity since—so expect no updates or bug fixes going forward.

Requires Python 3.9 or later.

License in practice

MIT license (permissive) means you can use, modify, and distribute freely with minimal restrictions.

Quickstart

pip install freeze-uuid

from freeze_uuid import freeze_uuid
import uuid

@freeze_uuid('12af6b44-8181-11ee-b890-628ab7cd4d99')
def test_example():
    assert str(uuid.uuid4()) == '12af6b44-8181-11ee-b890-628ab7cd4d99'

Verify before relying

  • Whether the package works correctly with all uuid generation methods beyond uuid1 and uuid4.
  • Compatibility with async test frameworks beyond the pytest.mark.asyncio example shown.
  • Whether dormant maintenance status will affect compatibility with future Python versions.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 832 days since the last release
Last repo commit
First released
Downloads106,021 / month, #12,671 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: freeze_uuid-0.4.3-py3-none-any.whl

Tags

Capabilities
mock uuid in testsfreeze uuid valuesuuid testing decoratordeterministic uuid generationuuid test fixturepatch uuid moduleuuid mocking library
Topics
testingmockinguuid

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mock uuid in tests”

  • freeze-uuidDecorator and context manager to mock Python's uuid module, returning…
  • pytest-mockProvides a pytest fixture that wraps the mock library's patching API,…
  • requests-mockIntercepts and mocks HTTP requests made through the requests library,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also uuid-utils · time-machine · uuid6 · uuid7-standard · uuid7 · uuid-extension · c_uuid_v7 · shortuuid · pytest-mock · pytest-freezegun