$npx skillfedfor your agent

async-factory-boy

factory_boy extension with asynchronous ORM support

With conditionsPyPI Python ModulesReleased Aug 2023199.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — async_factory_boy-1.0.1-py2.py3-none-any.whl
v1.0.1 · released 2023-08-12 · Python >=3.7 · 1 runtime deps: factory-boy

Yes, if you are writing async tests for SQLAlchemy or Tortoise ORM and want to avoid sync-to-async bridging in your factories. The low install friction and permissive license are favorable. However, dormant maintenance (last release August 2023, last commit June 2024) means you should verify compatibility with your ORM versions and be prepared to fork or patch if issues arise. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; async/await syntax is mandatory for usage.
  • Low install friction with a single dependency on factory-boy.
  • Maintenance is dormant—last commit was 2024-06-12 and no releases since 2023-08-12—so expect no active bug fixes or feature updates, though the codebase is not archived.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package with minimal legal friction.

last release 2023-08-12 (1098 days) · last repo commit 2024-06-12 · 25 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 199,223 downloads/mo, #9,713 on PyPI

Verify before relying

pip install async_factory_boy

from async_factory_boy.factory.sqlalchemy import AsyncSQLAlchemyFactory

class TestModelFactory(AsyncSQLAlchemyFactory):
    class Meta:
        model = TestModel
        session = session
    name = Faker("name")

test = await TestModelFactory.create()
  • Whether the package works with current versions of SQLAlchemy's async API (sqlalchemy.ext.asyncio) or only legacy async patterns.
  • Whether Tortoise ORM support is actively maintained or if breaking changes in Tortoise have introduced compatibility issues.
  • Real-world test coverage and whether dormancy signals unresolved issues or simply stable, complete functionality.
Same gist for agents: .md · .json

What it is and what it does

async_factory_boy is a factory_boy extension that wraps asynchronous ORM operations, letting you define test fixtures for SQLAlchemy and Tortoise ORM using async/await syntax. Instead of blocking database calls in your test factories, you call `await TestModelFactory.create()` or `await TestModelFactory.build()` to generate test data asynchronously.

The package works by subclassing factory_boy's Factory and providing ORM-specific variants (AsyncSQLAlchemyFactory, AsyncTortoiseFactory) that handle async session management. It integrates with factory_boy's Faker support for generating realistic field values. The single runtime dependency is factory-boy itself, making installation straightforward.

Use it for

  • Generate test data in async test suites without blocking the event loop or wrapping factories in sync wrappers.
  • Build SQLAlchemy async session fixtures for pytest-asyncio or similar async test frameworks.
  • Create Tortoise ORM test models in async test code without falling back to synchronous factory patterns.
  • Populate test databases in async integration tests where the application code is fully async.
  • Reduce boilerplate in async test setup by reusing factory definitions across multiple test modules.

Worth the install?

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

With conditions

Yes, if you are writing async tests for SQLAlchemy or Tortoise ORM and want to avoid sync-to-async bridging in your factories.

The low install friction and permissive license are favorable. However, dormant maintenance (last release August 2023, last commit June 2024) means you should verify compatibility with your ORM versions and be prepared to fork or patch if issues arise. No known vulnerabilities.

Install

async-factory-boy on PyPI

Before you install

Low install friction with a single dependency on factory-boy. Maintenance is dormant—last commit was 2024-06-12 and no releases since 2023-08-12—so expect no active bug fixes or feature updates, though the codebase is not archived.

Requires Python 3.8 or later; async/await syntax is mandatory for usage.

License in practice

MIT license is permissive; you can use, modify, and distribute this package with minimal legal friction.

Quickstart

pip install async_factory_boy

from async_factory_boy.factory.sqlalchemy import AsyncSQLAlchemyFactory

class TestModelFactory(AsyncSQLAlchemyFactory):
    class Meta:
        model = TestModel
        session = session
    name = Faker("name")

test = await TestModelFactory.create()

Verify before relying

  • Whether the package works with current versions of SQLAlchemy's async API (sqlalchemy.ext.asyncio) or only legacy async patterns.
  • Whether Tortoise ORM support is actively maintained or if breaking changes in Tortoise have introduced compatibility issues.
  • Real-world test coverage and whether dormancy signals unresolved issues or simply stable, complete functionality.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
factory-boy
MaintenanceDormant 1,098 days since the last release
Last repo commit
First released
Downloads199,223 / month, #9,713 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing

Evidence: async_factory_boy-1.0.1-py2.py3-none-any.whl

Tags

Capabilities
async factory fixturesfactory_boy async ormsqlalchemy async test factorytortoise orm test fixturesasync database test data generationasync factory patternorm async factory
Topics
async-testingorm-fixturesfactory-pattern
PyPI keywords
factory_boyfactoryfixturesasyncSQLAlchemyTortoiseasync_factory_boy

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 › “async factory fixtures”

  • async-factory-boyExtends factory_boy to generate test fixtures asynchronously for…
  • pytest-factoryboyIntegrates factory_boy with pytest to register factories as fixtures,…
  • wagtail-factoriesProvides factory-boy classes for generating test fixtures and mock…

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

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also factory-boy · pytest-factoryboy · mixer · tortoise-orm · wagtail-factories · model-mommy · pypika-tortoise · ormar · testing.common.database · sqlalchemy-mixins