Skip to main content

Faker provider for ILC data models

Project description

ilc-provider

version Python Version from PEP 621 TOML coverage

Faker provider for ILC data models

Generates fake data for all data models: players, teams, leagues, etc.

When imported the ilc_provider package creates a Faker instance and adds itself as a provider. It can then be called like any other provider:

from ilc_provider import fake
league = fake.league()

See the documentation for the full list of data that can be generated.

Installation

(.venv) $ pip install ilc-provider

Usage

ilc_provider can be used as a Pytest fixture:

# conftest.py

import pytest
from ilc_provider import fake

# Any element of the provider can be accessed
# from this fixture:
# match = ilc_fake.match()
@pytest.fixture(scope="session")
def ilc_fake():
    return fake

# A fake league is intensive to set up, so it is
# usually best to make a session-scoped league fixture:
@pytest.fixture(scope="session")
def fake_league(ilc_fake):
    return ilc_fake.league()

Project details


Download files

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

Source Distribution

ilc_provider-0.1.1.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ilc_provider-0.1.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file ilc_provider-0.1.1.tar.gz.

File metadata

  • Download URL: ilc_provider-0.1.1.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for ilc_provider-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f97728ac9e18aee9689acffd34f4abe95de949e77943f3ff0b6a54a7227c5174
MD5 d9ab1c3ee6de5cc9abfc0301e51bb778
BLAKE2b-256 58915db61e7b9692d158f98f9154924f108b7900dca7fedc3768698507fb2655

See more details on using hashes here.

File details

Details for the file ilc_provider-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ilc_provider-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ffa9cadfc282a7f7dc0c69d44e9068414f3f2bffaee3b6ef91e9f1766ddfbc
MD5 ed7503a92d79cd62c9789633083c0dea
BLAKE2b-256 c6dd9b673223b4203b2a5467c7b6c667048d0d4a1ce255ad2527b3eb935d47d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page