Registry / testing / fake-factory

fake-factory

JSON →
library9999.9.9pypypi✓ verified 85d ago

The fake-factory package was deprecated on December 15th, 2016. It was the original name for what is now Faker. The current version (v9999.9.9) is a dummy placeholder that warns users to migrate to the Faker package. Faker (v40.15.x) generates fake data for testing, development, and seeding databases.

pip install Faker
INSTALL
IMPORT
SIG · FAKE-FACTORY
F
fake-factory
testingpythonv9999.9.9
Install
2.4s avg
Import
258ms
Disk
57MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9999.9.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.268s · 92.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.4s · import 0.248s · 24MB
57MB installed
● package 57MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Faker
from faker import Faker
from fake_factory import Faker
fake_factory is the old package name; use faker instead.

Create a Faker instance and generate a random name.

from faker import Faker fake = Faker() print(fake.name())
faker --version
Debug
Known issues
breakingfake-factory is a deprecated placeholder. If your code uses `from fake_factory import Faker`, it will fail or produce a warning. Switch to `pip install Faker` and `from faker import Faker`.
fix
Uninstall fake-factory and install Faker: `pip uninstall fake-factory && pip install Faker`. Then change imports to `from faker import Faker`.
affects: >=0.1
deprecatedThe package name `fake-factory` is deprecated. PyPI will show a warning when installing. Use `Faker` as the package name.
fix
Install the correct package: `pip install Faker`
affects: >=0.1
gotchaFaker's locale provider changed in v13.0.0. Using `fake.address()` will now return a localized address if a locale is set.
fix
Specify locale explicitly: `Faker('en_US')` to avoid unexpected formats.
affects: >=13.0.0
breakingFaker v18.0.0 dropped support for Python 3.6 and 3.7.
fix
Upgrade Python to 3.8 or later, or pin Faker to <18.0.0.
affects: >=18.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'fake_factory'
Installed the real Faker package (which does not have a fake_factory module) but tried to import from the old name.
fix
Change import to `from faker import Faker`.
ImportError: cannot import name 'Faker' from 'fake_factory'
Using an outdated fake-factory package that doesn't provide the Faker class.
fix
Install the correct package: `pip uninstall fake-factory && pip install Faker`. Then use `from faker import Faker`.
AttributeError: 'Faker' object has no attribute 'name'
Using Faker v14 or later where `name` generator was removed in favor of `fake.name()` as a method, but the attribute is still available via the provider. This error occurs if the version is very old or the code tries to access a non-existent attribute.
fix
Ensure you are using Faker >=2.0 and call `fake.name()`. If using an old version, upgrade: `pip install --upgrade Faker`.
faker.exceptions.UniquenessException: Got duplicated values after 1000 iterations
Trying to generate unique values with `.unique` but the provider has a limited set of possibilities for the specified locale.
fix
Increase the maximum tries or use a broader locale: `fake.unique.address()` or switch to another provider.
Upgrade
Version history
9999.9.9latest on PyPI · released Dec 16, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
fake-factory — pip install fake-factory · libregistry