Metadata-Version: 2.1
Name: dirt-bike-graphics-fitment
Version: 1.0.0
Summary: Dirt bike plastic and graphics kit fitment data across 175 model years, 76 models and 11 brands with lookup helpers.
Home-page: https://customdirtbikegraphics.com
Author: Custom Dirt Bike Graphics
License: MIT
Keywords: dirt-bike,motocross,enduro,fitment,graphics-kit
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Project-URL: Homepage, https://customdirtbikegraphics.com
Project-URL: Online Designer, https://customdirtbikegraphics.com/design?utm_source=pypi&utm_medium=referral&utm_campaign=pypi
Project-URL: Repository, https://github.com/dirt-bike-graphics/dirt-bike-graphics.github.io
Project-URL: Issues, https://github.com/dirt-bike-graphics/dirt-bike-graphics.github.io/issues
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules

# dirt-bike-graphics-fitment

Which dirt bikes share the same plastics, and so can run the same graphics kit. 175 model years (76 models, 11 brands) grouped under 17 reference bikes: motocross, enduro and electric.

Use it to answer "will a kit for my 2024 YZ250F fit a 2025 YZ450F?" in a parts shop, a decal store or a bike forum bot.

## Install

```bash
pip install dirt-bike-graphics-fitment
```

## Usage

```python
from dirt_bike_graphics_fitment import BIKES, find_kit, same_kit, shared_fits

find_kit("CRF250R", 2026)["id"]
# 'honda-crf450r-2025'

shared_fits("YZ250F", 2025)
# ['2023 YZ450F', '2024 YZ450F', ..., '2026 YZ250FX']

same_kit(("CRF450R", 2025), ("CRF250R", 2026))
# True

len(BIKES)
# 17
```

Model names are matched loosely: `yz250f`, `YZ 250 F` and `YZ250F` are the same. The year is optional.

## Data

Each entry in `bikes` (also in `fitment.json`):

| Field | Example |
|---|---|
| `id` | `honda-crf450r-2025` |
| `brand` | `Honda` |
| `model` | `CRF450R` |
| `reference_year` | `2025` |
| `category` | `MX`, `Enduro` or `Electric` |
| `fits` | `["2025 CRF450R", "2026 CRF450R", "2025 CRF250R", "2026 CRF250R"]` |

Brands: Beta, Ducati, GasGas, Honda, Husqvarna, Kawasaki, KTM, Stark, Suzuki, Triumph, Yamaha.

Not covered: aftermarket plastics (Acerbis, Polisport, UFO), which usually but not always follow the stock shape, and small mid-year changes.

## Design a kit for these bikes

The data comes from [Custom Dirt Bike Graphics](https://customdirtbikegraphics.com), an AI dirt bike graphics generator. Describe the design you want, get a full kit laid out for your bike, then edit every panel online. **[Open the dirt bike graphics designer](https://customdirtbikegraphics.com/design?utm_source=pypi&utm_medium=referral&utm_campaign=pypi)**

<img src="https://raw.githubusercontent.com/dirt-bike-graphics/dirt-bike-graphics.github.io/main/assets/kit-layout-and-3d-preview.webp" width="640" alt="AI generated dirt bike graphics kit, edited online">

## Contributing

Found a mistake or a missing fitment? [Open an issue](https://github.com/dirt-bike-graphics/dirt-bike-graphics.github.io/issues) with the model, the years and your source.

## License

MIT
