--- id: faker-enum version: "0.0.2" license: MIT License license_treatment: permissive maintenance: abandoned --- # faker-enum — Enum provider for the Faker Python package. License: permissive · Maintenance: abandoned · Downloads: 278.9K/mo ## What it is and what it does faker_enum is a provider plugin for Faker that extends it to generate random enum values. It works by registering an EnumProvider with a Faker instance, then calling a method to pick a random member from any Python enum class you define. This is useful in test suites where you need to populate enum-typed fields with varied test data. The package depends only on faker and has no other runtime dependencies, keeping installation simple. However, it has been abandoned since its initial release on 2018-10-26 and carries Alpha status, meaning compatibility with modern versions of Faker or current Python releases is uncertain. Use it for: - Generate random enum values in unit tests without manually specifying all possible choices. - Populate test fixtures with varied enum-typed fields for data-driven testing. - Create synthetic test data for APIs or databases that accept enum parameters. - Mock enum selections in property-based tests using Faker's randomization. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds enum value generation to the Faker library, allowing you to randomly select from Python enum members during test data generation. No. The package is abandoned (last commit 2018-10-26) and carries Alpha status. While it has no known vulnerabilities and low install friction, the lack of maintenance means it is likely incompatible with modern Faker and Python versions. For current projects, consider using Faker's built-in randomization or a maintained alternative. ## Install pip install faker-enum uv add faker-enum poetry add faker-enum ## Installing faker-enum Before you install: Installation is straightforward with low friction. However, the package is abandoned—last updated 2018-10-26 with no commits since, and carries Alpha status. License in practice: MIT License permits free use, modification, and distribution with minimal restrictions. Quickstart: from enum import Enum from faker import Faker from faker_enum import EnumProvider fake = Faker() fake.add_provider(EnumProvider) class Color(Enum): RED = 1 GREEN = 2 BLUE = 3 fake.enum(Color) Requires Faker to be installed; compatibility with current Faker versions is uncertain given the package's abandoned status. Verify before relying: - Compatibility with current Faker API versions and modern Python releases is unknown. - Whether the package still functions as intended with recent faker library updates is unconfirmed. ## Package facts - License: MIT License (permissive) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 278.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags faker enum provider, generate random enum values, faker test data enum, python enum faker, random enum selection testing, faker provider enum, faker-plugin, test-data-generation, abandoned [View on SkillFed](https://skillfed.io/packages/faker-enum) · [View on PyPI](https://pypi.org/project/faker-enum/)