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.2.tar.gz (43.0 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.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilc_provider-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a18ee798562369d79a1e3e10f377cfaa027f8774069d5b23edd17f376025aa75
MD5 415cc544f2b5a518c56a0c4249d57c9c
BLAKE2b-256 134917d9dd19c527273e48d968bec0f3b8b12ca9b51ea11e2bc92da276917286

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilc_provider-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ad7d988969157be5b17f73f7c4c32609ecdaed7b1a6b325fbe46e0885d6922e
MD5 e883f2ac099453f72707957d6e607a10
BLAKE2b-256 65cd6afebca60301d9f570c2f822bac51a83e2a3fd06c9f5bc9142e02cd65015

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