# Football Test Data
[![PyPI Version](https://img.shields.io/pypi/v/fake-footballer.svg)](https://pypi.org/project/footballtestdata/)
[![License](https://img.shields.io/pypi/l/fake-footballer.svg)](https://github.com/mazarzycki/footballtestdata/blob/main/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.
Raw data
{
"_id": null,
"home_page": "https://mazarzycki.com/",
"name": "footballtestdata",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,football,soccer,data",
"author": "Marek Zarzycki",
"author_email": "contact@mazarzycki.com",
"download_url": "https://files.pythonhosted.org/packages/44/56/ac3a16118c83148ff1a3d6492820de2ddbeda7f62d7732fa767ac0e95bb3/footballtestdata-1.3.tar.gz",
"platform": null,
"description": "# Football Test Data\r\n\r\n[![PyPI Version](https://img.shields.io/pypi/v/fake-footballer.svg)](https://pypi.org/project/footballtestdata/)\r\n[![License](https://img.shields.io/pypi/l/fake-footballer.svg)](https://github.com/mazarzycki/footballtestdata/blob/main/LICENSE)\r\n\r\nGenerate fake footballer data with this Python package.\r\n\r\n## Installation\r\nYou can install the package using pip:\r\n\r\n```\r\npip install footballtestdata\r\n```\r\n## Usage\r\nImport the FootballerGenerator class and other necessary modules to generate fake footballer data:\r\n\r\n```\r\nfrom footballtestdata import FootballerGenerator, position\r\nfrom footballtestdata.data import ENG, ITA, SPA, GER\r\n```\r\n\r\nInitialize the FootballerGenerator object with the desired data for a specific country:\r\n\r\n```\r\ncountry = 'ENG'\r\nfootballer_generator = FootballerGenerator(ENG[0], ENG[1], ENG[2], ENG[3], position)\r\n```\r\nGenerate fake footballer data:\r\n\r\n```\r\nnum_footballers = 10\r\nfake_footballers = [footballer_generator.generate_fake_footballer(country) for _ in range(num_footballers)]\r\n```\r\nCreate a pandas DataFrame from the generated data:\r\n\r\n```\r\nimport pandas as pd\r\ndf = pd.DataFrame(fake_footballers)\r\n```\r\nSave the DataFrame to an Excel file:\r\n\r\n```\r\nfilename = f'fake_{country}_footballers.xlsx'\r\ndf.to_excel(filename, index=False)\r\n```\r\nFor more usage examples and customization options, please refer to the documentation.\r\n\r\n## Documentation\r\nFor detailed documentation, refer to the official documentation.\r\n\r\n## Contributing\r\nContributions are welcome! If you would like to contribute to the project, please follow these steps:\r\n\r\n1. Fork the repository.\r\n2. Create a new branch for your feature or bug fix.\r\n3. Make the necessary changes and commit them.\r\n4. Open a pull request on the main branch.\r\n5. Please review the contribution guidelines for more details.\r\n\r\n## License\r\nThis project is licensed under the MIT License.\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A package to generate fake footballer data",
"version": "1.3",
"project_urls": {
"Homepage": "https://mazarzycki.com/"
},
"split_keywords": [
"python",
"football",
"soccer",
"data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dde57d7d677d7b56e01c5dc9782ad7bdba8408d83d6b379e1bc72bf05a5d4014",
"md5": "bff72a5a56128d9ef675a6af63ed4e8f",
"sha256": "9f9be629079d90811f9b21f045dd1cf7ab1bb185de47cb5bac5855b71ebea21e"
},
"downloads": -1,
"filename": "footballtestdata-1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bff72a5a56128d9ef675a6af63ed4e8f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10602,
"upload_time": "2023-08-16T11:00:55",
"upload_time_iso_8601": "2023-08-16T11:00:55.365554Z",
"url": "https://files.pythonhosted.org/packages/dd/e5/7d7d677d7b56e01c5dc9782ad7bdba8408d83d6b379e1bc72bf05a5d4014/footballtestdata-1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4456ac3a16118c83148ff1a3d6492820de2ddbeda7f62d7732fa767ac0e95bb3",
"md5": "4b2abe74c16f61d33cd9be5b6be467c7",
"sha256": "deefb5b67bb9927ba64aff2e91f871c47701015fac1e915c1486a7e4f2b0d731"
},
"downloads": -1,
"filename": "footballtestdata-1.3.tar.gz",
"has_sig": false,
"md5_digest": "4b2abe74c16f61d33cd9be5b6be467c7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10486,
"upload_time": "2023-08-16T11:00:57",
"upload_time_iso_8601": "2023-08-16T11:00:57.594722Z",
"url": "https://files.pythonhosted.org/packages/44/56/ac3a16118c83148ff1a3d6492820de2ddbeda7f62d7732fa767ac0e95bb3/footballtestdata-1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-16 11:00:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "footballtestdata"
}