[PR #2689] Add fake.py package to Testing :: Object Factories and Testing :: Fake Data #2002

Open
opened 2025-11-06 13:27:29 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2689
Author: @barseghyanartur
Created: 4/23/2025
Status: 🔄 Open

Base: masterHead: patch-1


📝 Commits (1)

  • c72fceb Add fake.py package to Testing :: Object Factories and Testing :: Fake Data

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 README.md (+2 -0)

📄 Description

Add fake.py package to Testing :: Object Factories and Testing :: Fake Data.

What is this Python project?

fake.py is a standalone, portable library designed for generating various random data types for testing.

It offers a simplified, dependency-free alternative for creating random texts, (person) names, URLs, dates, file names, IPs, primitive Python data types (such as uuid, str, int, float, bool), GEO data such as city, country, geo-location, country code, latitude, longitude and locales, IBANs and ISBNs, as well as byte content for multiple file formats including PDF, DOCX, ODT, PNG, SVG, BMP, GIF, TIF, PPM, JPG, WAV, ZIP, TAR and EML.

The package also supports file creation on the filesystem and includes factories (dynamic fixtures) compatible with Django, TortoiseORM, Pydantic and SQLAlchemy (which means it works with SQLModel too).

What's the difference between this Python project and similar ones?

Primary competitors are Faker and Mimesis. fake.py does support file creation on the file system (also cleaning up), supports factories, and is fully portable: if you want to ship a zero-dependency package and need fake data + files + factories, you simply include a single file fake.py into your codebase, and you're good.

--

Anyone who agrees with this pull request could submit an Approve review to it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2689 **Author:** [@barseghyanartur](https://github.com/barseghyanartur) **Created:** 4/23/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`c72fceb`](https://github.com/vinta/awesome-python/commit/c72fceb958f5fa69d01c552763b389ba22c95967) Add `fake.py` package to `Testing :: Object Factories` and `Testing :: Fake Data` ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -0) </details> ### 📄 Description Add [fake.py](https://github.com/barseghyanartur/fake.py) package to [Testing :: Object Factories](https://awesome-python.com/#testing) and [Testing :: Fake Data](https://awesome-python.com/#testing). ## What is this Python project? [fake.py](https://github.com/barseghyanartur/fake.py/) is a standalone, portable library designed for generating various random data types for testing. It offers a simplified, dependency-free alternative for creating random texts, (person) names, URLs, dates, file names, IPs, primitive Python data types (such as `uuid`, `str`, `int`, `float`, `bool`), GEO data such as city, country, geo-location, country code, latitude, longitude and locales, IBANs and ISBNs, as well as byte content for multiple file formats including PDF, DOCX, ODT, PNG, SVG, BMP, GIF, TIF, PPM, JPG, WAV, ZIP, TAR and EML. The package also supports file creation on the filesystem and includes factories (dynamic fixtures) compatible with [Django](https://www.djangoproject.com/), [TortoiseORM](https://tortoise.github.io/), [Pydantic](https://docs.pydantic.dev/) and [SQLAlchemy](https://www.sqlalchemy.org/) (which means it works with [SQLModel](https://sqlmodel.tiangolo.com/) too). ## What's the difference between this Python project and similar ones? Primary competitors are `Faker` and `Mimesis`. `fake.py` does support file creation on the file system (also cleaning up), supports factories, and is fully portable: if you want to ship a zero-dependency package and need fake data + files + factories, you simply include a single file `fake.py` into your codebase, and you're good. -- Anyone who agrees with this pull request could submit an *Approve* review to it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:27:29 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#2002