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.3.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.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ilc_provider-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 aaf397ad1d9c124c3065fd107082c6b1c5ba7961df748cb39c25b6c254a502bd
MD5 adce483c8b92d5dda3c025c1cd83ce14
BLAKE2b-256 f63a0cfaad39d750f2c93d699127c73658e913f3da039b942d6a83e4557199de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilc_provider-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c619d40cb2caededa24274d8265131c8fd28e2925f878b24031d5609695611c0
MD5 414f34a36e4abd5c40a7f8393df1421e
BLAKE2b-256 45c1149822c71e7076d0d021be1aa525f26f154e7479471460e35d2f1950dd65

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