{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Mixer generates test data and model instances for Django, SQLAlchemy, Flask-SQLAlchemy, Peewee, Pony, Mongoengine, and Marshmallow, replacing manual fixture creation with automatic fake-data generation.","skillfed_tags":["fixtures","orm-factory","test-data"],"use_cases":["Generate Django model instances with realistic data for unit and integration tests without writing verbose fixtures.","Create SQLAlchemy ORM objects on-the-fly in test suites, with automatic relationship population.","Populate test databases with bulk data using cycle() to generate multiple instances in a loop.","Override specific fields while letting Mixer auto-generate the rest, e.g. blend(User, username='admin').","Test Mongoengine or Marshmallow schemas by generating valid instances with required fields automatically filled.","Mock nested relationships by using double-underscore syntax to set related object fields without manual creation."],"what_it_does":"Mixer is a test-data factory that automatically generates instances of ORM and ODM models with realistic fake data, eliminating the need to hand-write fixtures. It works with Django, SQLAlchemy, Flask-SQLAlchemy, Peewee, Pony, Mongoengine, and Marshmallow, and can also generate instances of plain Python classes. You initialize a mixer for your backend, then call blend() to create a model instance with auto-generated fields; you can override specific fields, control whether objects are saved to the database, and chain operations like cycle() to generate multiple instances.\n\nThe package uses Faker to generate human-friendly data by default but can be configured to randomize values instead. It supports nested model generation through double-underscore syntax, field-level generators via register(), and middleware hooks to post-process generated objects. Because maintenance is dormant and the last release was in 2022, compatibility with very recent framework versions may require verification.","worth_installing":"Yes, if you are testing Django or SQLAlchemy models and want to reduce fixture boilerplate. The package is mature (Production/Stable, 955 stars) and has no known vulnerabilities. However, verify compatibility with your specific framework versions\u2014maintenance is dormant (last release 2022-03-23), so if you use very recent Django or SQLAlchemy releases, test thoroughly or check for open issues in the repository before committing to it."},"id":"mixer","links":{"html":"https://skillfed.io/packages/mixer","md":"https://skillfed.io/packages/mixer.md","pypi":"https://pypi.org/project/mixer/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-03-23","license_spdx":null,"license_treatment":"permissive","name":"mixer","python_support":"supports_current","summary":"Mixer -- Is a fixtures replacement. Supported Django ORM, SqlAlchemy ORM, Mongoengine ODM and custom python objects."},"popularity":{"monthly_downloads":270312,"position":8238,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"7.2.2"}
