class EventimCategory(Enum):
"""Nine canonical top-level event categories spanning all supported Eventim markets.
Each member value is a ``dict[str, list[str]]`` mapping an Eventim ``web_id`` to the
top-level category strings that market uses for this canonical category. When passed to
``EventimClient.product_groups()``, only the strings for the current market's ``web_id``
are sent as the ``categories`` query parameter, so the API only receives strings it
recognises.
The Eventim public API is always queried with ``language=en``; category strings are therefore
English-only. Markets that use a different display language internally still return English
facet labels when the ``language=en`` parameter is present.
Example::
from pyventim import EventimCategory, EventimClient, EventimMarket
client = EventimClient(EventimMarket.GERMANY)
for pg in client.product_groups(categories=[EventimCategory.CONCERTS], page_limit=1):
print(pg.name)
"""
CONCERTS = {
"web__eventim-de": ["Concerts"],
"web__eventim-se": ["Music"],
"web__lippu-fi": ["Gigs & Concerts"],
"web__eventim-no": ["Music"],
"web__billetlugen-dk": ["Music"],
"web__eventim-com-br": ["Shows & Music"],
"web__eventim-bgr": ["Music"],
"web__eventim-fr": ["Concerts & Festivals"],
"web__eventim-co-uk": ["Music"],
"web__ticketone-it": ["Concerts"],
"web__eventim-co-il": ["Music- Live Concerts"],
"web__eventim-hrv": ["Music"],
"web__ticketcorner-ch": ["Music"],
"web__eventim-pl": ["Concerts"],
"web__eventim-rou": ["Music"],
"web__eventim-svn": ["Music"],
"web__entradas-com": ["Concerts and festivals"],
"web__eventim-hun": ["Concert"],
"web__eventim-nl": ["Concerts"],
"web__oeticket-at": ["Concerts"],
}
THEATRE_AND_SHOWS = {
"web__eventim-de": ["Comedy", "Musical & Show"],
"web__eventim-se": ["Comedy", "Musicals & Theater"],
"web__eventim-no": ["Comedy", "Musicals & Theater"],
"web__billetlugen-dk": ["Comedy", "Musicals & Theater"],
"web__eventim-fr": ["Humor", "Shows", "Theater"],
"web__eventim-co-uk": ["Comedy"],
"web__ticketone-it": ["Theatre"],
"web__eventim-co-il": ["Theatre"],
"web__eventim-com-br": ["Spectacles"],
"web__entradas-com": ["Musicals & Shows", "Theatre"],
"web__eventim-nl": ["Musical Theatre", "Shows"],
"web__oeticket-at": ["Comedy", "Musical & Show"],
}
SPORTS = {
"web__eventim-de": ["Sports"],
"web__eventim-se": ["Sports"],
"web__lippu-fi": ["Sports"],
"web__eventim-no": ["Sports"],
"web__billetlugen-dk": ["Sports"],
"web__eventim-com-br": ["Sports"],
"web__eventim-bgr": ["Sports"],
"web__eventim-fr": ["Sport"],
"web__eventim-co-uk": ["Sport"],
"web__ticketone-it": ["Sport"],
"web__eventim-co-il": ["Sport"],
"web__eventim-hrv": ["Sport"],
"web__ticketcorner-ch": ["Sports"],
"web__eventim-pl": ["Sport"],
"web__eventim-rou": ["Sport"],
"web__eventim-svn": ["Sport"],
"web__entradas-com": ["Sports"],
"web__eventim-hun": ["Sport"],
"web__eventim-nl": ["Sports"],
"web__oeticket-at": ["Sports"],
}
FESTIVALS = {
"web__lippu-fi": ["Festivals"],
"web__eventim-no": ["Christmas"],
"web__billetlugen-dk": ["Christmas"],
"web__eventim-com-br": ["Festivals & Rodeos"],
"web__eventim-co-il": ["Festivals"],
"web__eventim-co-uk": ["Festive Events"],
"web__eventim-nl": ["Festivals & Events"],
}
CULTURE = {
"web__eventim-de": ["Classical"],
"web__eventim-se": ["Culture"],
"web__lippu-fi": ["Culture & Theatre"],
"web__eventim-no": ["Culture"],
"web__billetlugen-dk": ["Culture"],
"web__eventim-bgr": ["Culture"],
"web__eventim-fr": ["Classical & Dance", "Exhibitions & Museums"],
"web__eventim-co-uk": ["Exhibitions & Immersive", "Theatre & Arts"],
"web__ticketone-it": ["Museums/Exhibitions"],
"web__eventim-co-il": ["Exhibitions and Attractions", "Lectures"],
"web__eventim-hrv": ["Culture"],
"web__ticketcorner-ch": ["Culture"],
"web__eventim-pl": ["Culture"],
"web__eventim-rou": ["Culture"],
"web__eventim-svn": ["Culture"],
"web__eventim-hun": ["Culture"],
"web__eventim-nl": ["Stage & Culture"],
"web__oeticket-at": ["Culture"],
}
FAMILY = {
"web__lippu-fi": ["Family Events"],
"web__eventim-com-br": ["Kids & Family"],
"web__eventim-bgr": ["Family"],
"web__eventim-hrv": ["Family"],
"web__billetlugen-dk": ["Family"],
"web__eventim-no": ["Family"],
"web__eventim-co-uk": ["Family & Attractions"],
"web__eventim-pl": ["Family"],
"web__eventim-rou": ["Family"],
"web__eventim-svn": ["Family"],
"web__entradas-com": ["Family"],
"web__eventim-hun": ["Family"],
"web__eventim-nl": ["Family"],
"web__eventim-se": ["Family"],
}
LEISURE = {
"web__eventim-de": ["Leisure"],
"web__lippu-fi": ["Leisure & Other Events"],
"web__eventim-fr": ["Parks and Leisure"],
"web__eventim-co-il": ["Entertainment"],
"web__ticketcorner-ch": ["Entertainment", "Leisure"],
"web__entradas-com": ["Activities and other events", "Exhibitions & Parks", "Nightclubs and Parties"],
"web__eventim-com-br": ["Culture and Leisure"],
"web__oeticket-at": ["Leisure"],
}
GIFTS_AND_SPECIALS = {
"web__eventim-de": ["Gift Voucher", "Special Tickets"],
"web__lippu-fi": ["Gift Vouchers", "Show & Dinner"],
"web__eventim-bgr": ["Voucher"],
"web__eventim-hrv": ["Voucher"],
"web__eventim-co-il": ["הופעות למימוש למחזיקי השוברים - במסגרת הסדר הפשרה"],
"web__ticketcorner-ch": ["VIP & Hospitality", "Vouchers"],
"web__eventim-rou": ["Voucher"],
"web__eventim-svn": ["Voucher"],
"web__entradas-com": ["Promotions"],
"web__eventim-hun": ["Voucher"],
"web__eventim-nl": ["Extras", "Moederdag tips"],
"web__oeticket-at": ["Vouchers"],
}
OTHER = {
"web__ticketone-it": ["Cinema", "International events", "Other events"],
"web__eventim-hrv": ["Other"],
"web__eventim-bgr": ["Miscellaneous"],
"web__eventim-pl": ["Other"],
"web__eventim-rou": ["Other"],
"web__eventim-svn": ["Other"],
"web__eventim-nl": ["Belgium", "Cross Border", "More Events"],
}