Skip to main content

A package to generate fake footballer data

Project description

Football Test Data

PyPI Version License

Generate fake footballer data with this Python package.

Installation

You can install the package using pip:

pip install footballtestdata

Usage

Import the FootballerGenerator class and other necessary modules to generate fake footballer data:

from footballtestdata import FootballerGenerator, position
from footballtestdata.data import ENG, ITA, SPA, GER

Initialize the FootballerGenerator object with the desired data for a specific country:

country = 'ENG'
footballer_generator = FootballerGenerator(ENG[0], ENG[1], ENG[2], ENG[3], position)

Generate fake footballer data:

num_footballers = 10
fake_footballers = [footballer_generator.generate_fake_footballer(country) for _ in range(num_footballers)]

Create a pandas DataFrame from the generated data:

import pandas as pd
df = pd.DataFrame(fake_footballers)

Save the DataFrame to an Excel file:

filename = f'fake_{country}_footballers.xlsx'
df.to_excel(filename, index=False)

For more usage examples and customization options, please refer to the documentation.

Documentation

For detailed documentation, refer to the official documentation.

Contributing

Contributions are welcome! If you would like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make the necessary changes and commit them.
  4. Open a pull request on the main branch.
  5. Please review the contribution guidelines for more details.

License

This project is licensed under the MIT License.

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

footballtestdata-1.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

footballtestdata-1.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file footballtestdata-1.3.tar.gz.

File metadata

  • Download URL: footballtestdata-1.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for footballtestdata-1.3.tar.gz
Algorithm Hash digest
SHA256 deefb5b67bb9927ba64aff2e91f871c47701015fac1e915c1486a7e4f2b0d731
MD5 4b2abe74c16f61d33cd9be5b6be467c7
BLAKE2b-256 4456ac3a16118c83148ff1a3d6492820de2ddbeda7f62d7732fa767ac0e95bb3

See more details on using hashes here.

File details

Details for the file footballtestdata-1.3-py3-none-any.whl.

File metadata

  • Download URL: footballtestdata-1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for footballtestdata-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f9be629079d90811f9b21f045dd1cf7ab1bb185de47cb5bac5855b71ebea21e
MD5 bff72a5a56128d9ef675a6af63ed4e8f
BLAKE2b-256 dde57d7d677d7b56e01c5dc9782ad7bdba8408d83d6b379e1bc72bf05a5d4014

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