Skip to content

Markets

Bases: Enum

Supported Eventim markets with their web_id and private API base URL.

Two pairs of markets share the same web_id but use different domains for the private API: - BELGIUM and NETHERLANDS both use web__eventim-nl - AUSTRIA and SLOVAKIA both use web__oeticket-at

Source code in src/pyventim/enums/markets.py
class EventimMarket(Enum):
    """Supported Eventim markets with their web_id and private API base URL.

    Two pairs of markets share the same web_id but use different domains for the
    private API:
    - BELGIUM and NETHERLANDS both use ``web__eventim-nl``
    - AUSTRIA and SLOVAKIA both use ``web__oeticket-at``
    """

    web_id: str
    base_url: str

    GERMANY = ("web__eventim-de", "https://www.eventim.de")
    SWEDEN = ("web__eventim-se", "https://www.eventim.se")
    FINLAND = ("web__lippu-fi", "https://www.lippu.fi")
    NORWAY = ("web__eventim-no", "https://www.eventim.no")
    DENMARK = ("web__billetlugen-dk", "https://www.billetlugen.dk")
    BRAZIL = ("web__eventim-com-br", "https://www.eventim.com.br")
    BULGARIA = ("web__eventim-bgr", "https://www.eventim.bg/")
    FRANCE = ("web__eventim-fr", "https://www.eventim.fr/")
    UK = ("web__eventim-co-uk", "https://www.eventim.co.uk/")
    ITALY = ("web__ticketone-it", "https://www.ticketone.it")
    ISRAEL = ("web__eventim-co-il", "https://www.eventim.co.il")
    CROATIA = ("web__eventim-hrv", "https://www.eventim.hr")
    SWITZERLAND = ("web__ticketcorner-ch", "https://www.ticketcorner.ch/")
    POLAND = ("web__eventim-pl", "https://www.eventim.pl/")
    ROMANIA = ("web__eventim-rou", "https://www.eventim.ro/")
    SLOVENIA = ("web__eventim-svn", "https://www.eventim.si/")
    SPAIN = ("web__entradas-com", "https://www.entradas.com")
    HUNGARY = ("web__eventim-hun", "https://www.eventim.hu")
    BELGIUM = ("web__eventim-nl", "https://www.eventim.be/")
    NETHERLANDS = ("web__eventim-nl", "https://www.eventim.nl/")
    AUSTRIA = ("web__oeticket-at", "https://www.oeticket.com")
    SLOVAKIA = ("web__oeticket-at", "https://www.eventim.sk/en/")

    def __new__(cls, web_id: str, base_url: str) -> EventimMarket:
        """Create a new EventimMarket member with a tuple value of ``(web_id, base_url)``."""
        obj = object.__new__(cls)
        obj._value_ = (web_id, base_url)
        return obj

    def __init__(self, web_id: str, base_url: str) -> None:
        """Assign ``web_id`` and ``base_url`` as named attributes on the member."""
        self.web_id = web_id
        self.base_url = base_url

__init__(web_id, base_url)

Assign web_id and base_url as named attributes on the member.

Source code in src/pyventim/enums/markets.py
def __init__(self, web_id: str, base_url: str) -> None:
    """Assign ``web_id`` and ``base_url`` as named attributes on the member."""
    self.web_id = web_id
    self.base_url = base_url

__new__(web_id, base_url)

Create a new EventimMarket member with a tuple value of (web_id, base_url).

Source code in src/pyventim/enums/markets.py
def __new__(cls, web_id: str, base_url: str) -> EventimMarket:
    """Create a new EventimMarket member with a tuple value of ``(web_id, base_url)``."""
    obj = object.__new__(cls)
    obj._value_ = (web_id, base_url)
    return obj

All markets

Enum member web_id Domain
EventimMarket.GERMANY web__eventim-de eventim.de
EventimMarket.SWEDEN web__eventim-se eventim.se
EventimMarket.FINLAND web__lippu-fi lippu.fi
EventimMarket.NORWAY web__eventim-no eventim.no
EventimMarket.DENMARK web__billetlugen-dk billetlugen.dk
EventimMarket.BRAZIL web__eventim-com-br eventim.com.br
EventimMarket.BULGARIA web__eventim-bgr eventim.bg
EventimMarket.FRANCE web__eventim-fr eventim.fr
EventimMarket.UK web__eventim-co-uk eventim.co.uk
EventimMarket.ITALY web__ticketone-it ticketone.it
EventimMarket.ISRAEL web__eventim-co-il eventim.co.il
EventimMarket.CROATIA web__eventim-hrv eventim.hr
EventimMarket.SWITZERLAND web__ticketcorner-ch ticketcorner.ch
EventimMarket.POLAND web__eventim-pl eventim.pl
EventimMarket.ROMANIA web__eventim-rou eventim.ro
EventimMarket.SLOVENIA web__eventim-svn eventim.si
EventimMarket.SPAIN web__entradas-com entradas.com
EventimMarket.HUNGARY web__eventim-hun eventim.hu
EventimMarket.BELGIUM web__eventim-nl eventim.be
EventimMarket.NETHERLANDS web__eventim-nl eventim.nl
EventimMarket.AUSTRIA web__oeticket-at oeticket.com
EventimMarket.SLOVAKIA web__oeticket-at eventim.sk