A package to generate fake footballer data
Project description
Football Test Data
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:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make the necessary changes and commit them.
- Open a pull request on the main branch.
- 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
Built Distribution
Hashes for footballtestdata-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f9be629079d90811f9b21f045dd1cf7ab1bb185de47cb5bac5855b71ebea21e |
|
MD5 | bff72a5a56128d9ef675a6af63ed4e8f |
|
BLAKE2b-256 | dde57d7d677d7b56e01c5dc9782ad7bdba8408d83d6b379e1bc72bf05a5d4014 |