Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barseghyanartur
Copy link

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.

Copy link

@Bakayleonlineshopping Bakayleonlineshopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't Try Fake Data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants