Skip to main content

Web-related Provider for the Faker Python package.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for faker-web, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size faker_web-0.3.0-py2.py3-none-any.whl (13.5 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size faker_web-0.3.0.tar.gz (11.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page