https://github.com/opensourceame/pyfake
A Python synthetic data generator for use in unit testing
https://github.com/opensourceame/pyfake
Last synced: 8 days ago
JSON representation
A Python synthetic data generator for use in unit testing
- Host: GitHub
- URL: https://github.com/opensourceame/pyfake
- Owner: opensourceame
- License: mit
- Created: 2024-03-06T09:56:44.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T10:11:28.000Z (about 2 years ago)
- Last Synced: 2025-12-26T12:45:16.294Z (5 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyFake
Pyfake is a synthetic data generator for use in Unit testing or
other places where you need to use fake data for some purpose.
## Usage
```python
from pyfake import Person
person = Person()
print(person.name) # Joe Bloggs
print(person.email) # joe.bloggs@example.com
from pyfake import TcpIp
print(TcpIp().ipv6) # ca39:a408:5736:769:a0b5:c5a5:393e:d2b
```
## Object generator list
* Adjective
* Book
* Company
* Country
* Person
* Sports
* TCP/IP (ip addresses, port ranges etc)
_more generators are being added, check back for more details or request a generator via GH issues_