joke2k

faker: Generate Fake Data in Python

Faker is a Python package for generating fake data for databases, tests, documents and other development tasks. It provides localized data through built-in and custom providers, and is actively maintained with regular commits and releases.

Stars
19.5k
Forks
2.1k
Stars, last 30 days
+44
Last commit
8 days ago
Contributors
100+

Our take

Activeregular commits and releases

Health score

57/100

How it is scored
Activity
73
Community
71
Issues
51
Pull requests
32

+44 stars in the last 30 days

  • Releases more often than 89% of the projects we track
  • More contributors than 78% of the projects we track
  • Slower to merge pull requests than 98% of the projects we track

Faker is a mature, actively maintained Python library with frequent releases and contributions from a broad contributor base, making it a practical choice for generating test and development data.

Good fit if

  • Your Python project needs generated data for tests, database setup, documents or development workflows.
  • You need localized values or want to add domain-specific providers.
  • You want a MIT-licensed library with a pytest fixture and command-line interface.

Look elsewhere if

  • You need generated values to remain identical across Faker patch versions, since its datasets can change.
  • Your required locale or data type is not covered and you cannot add a provider.
  • You need production data anonymization guarantees from the generator alone, rather than a workflow you can assess and validate.
All health signals
Last commit2026-10-28 (8 days ago)
Commits, last 90 days38
Releases, last 12 months64 (latest v40.44.0, 2026-10-28)
Contributors100+ (top contributor: 67% of commits)
Issues closed, last 90 days14 (typically closed in 32 days)
Pull requests merged, last 90 days17 (typically merged in 32 days)
Project age13 years

Checked on 2026-11-06 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

19,491

Forks

2,145

Change since Nov 15, 2026: 0 stars·0 forks

Overview

Faker is a Python package that generates fake data for bootstrapping databases, creating documents, stress-testing persistence layers and anonymizing data from production services. It is built on Python and exposes data generators through a provider-based API, with support for localized results.

It is intended for developers who need plausible sample data in applications and tests without hand-writing every value. Faker also offers a command-line interface and a pytest fixture, so it can be used in scripts as well as test suites.

Key Features

  • Generate values such as names, addresses, text and internet data through generator methods.
  • Select one or more locales for localized output, with fallback to US English when a localized provider is unavailable.
  • Extend generators with bundled, community or custom providers.
  • Use the command-line interface to generate values, repeat output, select a locale or load custom providers.
  • Use the pytest faker fixture for test data.
  • Seed the shared or per-instance random generator to reproduce data within a pinned Faker version.
  • Request unique values for a generator instance, with an exception when it cannot find a unique result.

Use Cases

  • Application developers can populate a new database with sample records during development.
  • Test authors can create varied inputs for unit and integration tests, using seeding when repeatable results are needed.
  • Teams testing persistence systems can generate data to exercise storage and retrieval paths.
  • Developers preparing demonstrations or sample documents can generate plausible names, addresses and text without manually composing them.
  • Teams handling production-derived data can consider Faker for anonymization workflows, while validating that their process meets their privacy requirements.

What you need

Detected in the repository

  • Python (from setup.py)
  • A test suite and automated checks on GitHub Actions

License in plain words

MITpermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

Install Faker with pip:

pip install Faker
from faker import Faker

fake = Faker()
print(fake.name())

See the README and documentation for provider, locale, CLI and testing details.

Alternatives

  • mimesis: Mimesis is a similar Python fake-data generator, with its own providers and locale support.
ProjectLanguageLicenseStarsStatus
fakerPythonMIT19.5kActive
mimesisPythonMIT4.9kActive

Considerations

Faker produces random values, and its documentation warns that results may change between patch versions as datasets are updated. Pin a patch version if tests depend on fixed outputs. Unique generation is limited by the available values and can raise a UniquenessException; it is not suitable for every provider or argument type. The README states that current versions require Python 3.8 or later, while older Python compatibility requires an older release.

Found this useful?

Share it with someone who would like faker.

Comparisons