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.0.tar.gz (39.3 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.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilc_provider-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e9e4322dc8ecfdbd3eca440f0c1ed485d2b52c330eb7a76a87370583f42f4a62
MD5 21f2723705fed9d38a668e1af7dc2593
BLAKE2b-256 33f18e9c1e3c690df567442cff062b0af852a6e3ed32d4c7e289d4676c2d5753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilc_provider-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef8dd2e1db8edc6c734c65b0a033d21930b33fe20b45aa972b21e430d16103dc
MD5 c4bcb500a06a4153790a965095090b8c
BLAKE2b-256 1c0602eb71690d60d9e8df5f00ecee27e6da33c1a5f9b33e5ebff1ddec0fa341

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