Skip to content

A collection of fake web data for use with joke2k's faker

License

Notifications You must be signed in to change notification settings

thiagofigueiro/faker_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faker_web

Latest version released on PyPi Build status of the master branch on Mac/Linux Test coverage Apache license version 2.0

faker_web is a provider for the Faker Python package.

It provides web-related fake data for testing purposes:

  • Content-type http header.
  • Popular web server version tokens/signatures.

Usage

Install with pip:

pip install faker_web

Or install with setup.py

git clone https://github.com/thiagofigueiro/faker_web.git
cd faker_web && python setup.py install

Add the WebProvider to your Faker instance:

from faker import Faker
from faker_web import WebProvider

fake = Faker()
fake.add_provider(WebProvider)

fake.content_type()
# application/mxf
fake.content_type_popular()
# text/html
fake.server_token()
# Apache/2.0.51 (Ubuntu)

About

A collection of fake web data for use with joke2k's faker

Resources

License

Stars

Watchers

Forks

Packages

No packages published