FUT Card Creator
FUT Card Creator is a Python package that allows you to create custom FIFA Ultimate Team (FUT) cards with ease. You can generate cards for your favorite players, complete with their stats, position, nationality, club, and more.
Features
- Generate custom FUT cards with player photos, club logos, national flags, and stats.
- Automatically fetch and cache club logos and national flags using online APIs.
- Easily customize and update player stats.
- Automatically calculate the overall rating for players based on their position.
- Automatically update player stats when their overall rating changes.
- Export the generated FUT card as an image file.
Installation
To install FUT Card Creator, simply run:
pip install fut_card_creator
Requirements
- Python 3.6 or higher
Pillowfor image processingrequestsfor API callsfuzzywuzzyandpython-Levenshteinfor fuzzy string matching
These dependencies will be installed automatically when you install the package.
Usage
Here’s a basic example of how to use the FUT Card Creator:
from fut_card_creator.fut_card_creator import Player, Card
# Create a Player instance
player = Player(
name="Lionel Messi",
photo_path="path/to/messi_photo.png",
club="Paris Saint-Germain",
nation="Argentina",
overall=93,
position="RW",
stats={"PAC": 85, "SHO": 92, "PAS": 91, "DRI": 95, "DEF": 35, "PHY": 65}
)
# Create a FUT card
fut_card = Card(player, card_type="gold")
# Generate the card image
fut_card.create_image()
# Export the card image
fut_card.export_image("messi_fut_card.png")
Automatic Overall Calculation
The FUT Card Creator automatically calculates a player’s overall rating based on their position and individual stats. Each position has a unique formula that emphasizes different stats, ensuring that the overall rating reflects the player’s role on the field.
Automatic Stat Updater
When you update a player's overall rating, the package automatically adjusts the player's stats to match the new overall. This ensures that the stats are consistent with the player's new rating, maintaining a realistic balance.
Customization
You can easily customize various aspects of the FUT card, such as:
- Player stats: Modify individual stats using the
Playerclass. - Card type: Use different card templates by specifying the
card_typein theCardclass. (rare_gold, gold, silver_rare, totw, toty, tots, future_star, icon) - Image paths: Provide paths to player photos, club logos, and nation flags.
Directory Structure
Make sure your project structure looks like this:
fut_card_creator/
│
├── fonts/
│ └── DINPro CondBold.otf # Required font file
│
├── images/
│ ├── card_templates/ # Store card template images here
│ ├── club_logo_cache/ # Automatically caches club logos
│ └── nation_cache/ # Automatically caches national flags
│
├── __init__.py
├── fut_card_creator.py
└── utils.py
│
setup.py
Dependencies
The package requires the following dependencies, which will be installed automatically:
Pillowrequestsfuzzywuzzypython-Levenshtein
Metadata
Release files for fut-card-creator 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fut_card_creator-1.3.3.tar.gz | 7.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fut_card_creator-1.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 MB
Release files / fut_card_creator-1.3.3.tar.gz
| Download URL | fut_card_creator-1.3.3.tar.gz |
|---|---|
| Size | 7.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cab709cb9f4edc2354435ea89dda7b1ef04b18e87668440c0280a5503d834ac
|
|
BLAKE2b-256 checksum How to use checksums |
e9e4ee369abc3ec2b3d0907a649883135f4cd368c789b63c22521b6d55a2b0fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / fut_card_creator-1.3.3-py3-none-any.whl
| Download URL | fut_card_creator-1.3.3-py3-none-any.whl |
|---|---|
| Size | 7.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aae58344f62fc5da4b3e662b530ab12f6c677232fb8d80c93b36465e43d86461
|
|
BLAKE2b-256 checksum How to use checksums |
62b33e5a277176d67589295469ade3c3cb49aad3aacc640aa2b7b6c127c0697c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|