Skip to content

Models

Objects returned by the clients. Field names follow the JSON of the API.

ProductResponse pydantic-model

Bases: _ApiModel

Full cover art record (GET /api/product/{isbn}).

Show JSON schema:
{
  "description": "Full cover art record (GET /api/product/{isbn}).",
  "properties": {
    "title": {
      "description": "Title of the edition, e.g. ``\"Breaking Bad - Int\u00e9grale de la s\u00e9rie + El Camino : un film \"Breaking Bad\"``.",
      "title": "Title",
      "type": "string"
    },
    "title_vo": {
      "description": "Title of the edition in the original language, e.g. ``\"Breaking Bad + El Camino: A Breaking Bad Movie\"``.",
      "title": "Title Vo",
      "type": "string"
    },
    "annee": {
      "description": "Year of the film or series, e.g. ``\"2008\"``.",
      "title": "Annee",
      "type": "string"
    },
    "description": {
      "description": "Synopsis, e.g. ``\"Walter White, 50 ans, est professeur de chimie dans un lyc\u00e9e du Nouveau-Mexique...\"``.",
      "title": "Description",
      "type": "string"
    },
    "image": {
      "description": "URL of the cover art, e.g. ``\"https://images.epagine.fr/5298/529876c88590b26470b6a8f19bb0955a_1_v.jpg\"``.",
      "format": "uri",
      "maxLength": 2083,
      "minLength": 1,
      "title": "Image",
      "type": "string"
    },
    "categorie": {
      "description": "DVDFr category, e.g. ``\"S\u00e9rie\"``.",
      "title": "Categorie",
      "type": "string"
    },
    "duree": {
      "description": "Duration , e.g. ``\"3070 mn\"``.",
      "title": "Duree",
      "type": "string"
    },
    "sortie": {
      "description": "Online release date / media release date displayed on DVDFr, e.g. ``\"5 Octobre 2022\"``.",
      "title": "Sortie",
      "type": "string"
    },
    "isbn": {
      "description": "EAN barcode, as an integer, e.g. ``3333290016961``.",
      "title": "Isbn",
      "type": "integer"
    },
    "barcode": {
      "description": "PNG image of the EAN-13 barcode, encoded in Base64, e.g. ``b'iVBORw0KGgoAAAANSUhEUgAAAGQAA...\"``.",
      "format": "base64",
      "title": "Barcode",
      "type": "string"
    },
    "editeur": {
      "description": "Publisher, e.g. ``\"Sony Pictures\"``.",
      "title": "Editeur",
      "type": "string"
    },
    "distributeur": {
      "description": "Distributor, e.g. ``\"ESCD\"``.",
      "title": "Distributeur",
      "type": "string"
    },
    "collection": {
      "description": "Collection, e.g. ``\"Metropolitan Edition Haute D\u00e9finition\"``.",
      "title": "Collection",
      "type": "string"
    },
    "media": {
      "description": "Media type : Blu-ray, DVD, 4K Ultra HD... e.g. ``\"Blu-ray\"``.",
      "title": "Media",
      "type": "string"
    },
    "edition": {
      "description": "Collection / Edition (also known as a collection), e.g. ``\"Metropolitan Edition Haute D\u00e9finition\"``.",
      "title": "Edition",
      "type": "string"
    },
    "acteurs": {
      "description": "Actors, when available on the page, e.g. ``[\"Bryan Cranston\", \"Aaron Paul\", \"Anna Gunn\"]``.",
      "items": {
        "type": "string"
      },
      "title": "Acteurs",
      "type": "array"
    },
    "producteurs": {
      "description": "Producers, when available on the page, e.g. ``[\"Vince Gilligan\", \"Mark Johnson\"]``.",
      "items": {
        "type": "string"
      },
      "title": "Producteurs",
      "type": "array"
    },
    "prix": {
      "description": "Recommended price as displayed, e.g. ``\"49.91 \u20ac\"``.",
      "title": "Prix",
      "type": "string"
    },
    "date_sortie": {
      "description": "Theatrical release date / premiere date, e.g. ``\"20/01/2008\"``.",
      "title": "Date Sortie",
      "type": "string"
    },
    "date_parution": {
      "description": "Release date of the media cover, e.g. ``\"05/10/2022\"``.",
      "title": "Date Parution",
      "type": "string"
    },
    "genres": {
      "description": "Genres (rayons DVDFr), e.g. ``[\"Drame\"]``.",
      "items": {
        "type": "string"
      },
      "title": "Genres",
      "type": "array"
    },
    "source": {
      "description": "DVDFr product page URL, e.g. ``\"https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/\"``.",
      "format": "uri",
      "maxLength": 2083,
      "minLength": 1,
      "title": "Source",
      "type": "string"
    }
  },
  "required": [
    "title",
    "title_vo",
    "annee",
    "description",
    "image",
    "categorie",
    "duree",
    "sortie",
    "isbn",
    "barcode",
    "editeur",
    "distributeur",
    "collection",
    "media",
    "edition",
    "prix",
    "date_sortie",
    "date_parution",
    "source"
  ],
  "title": "ProductResponse",
  "type": "object"
}

Fields:

title pydantic-field

title: str

Title of the edition, e.g. "Breaking Bad - Intégrale de la série + El Camino : un film "Breaking Bad".

title_vo pydantic-field

title_vo: str

Title of the edition in the original language, e.g. "Breaking Bad + El Camino: A Breaking Bad Movie".

annee pydantic-field

annee: str

Year of the film or series, e.g. "2008".

description pydantic-field

description: str

Synopsis, e.g. "Walter White, 50 ans, est professeur de chimie dans un lycée du Nouveau-Mexique...".

image pydantic-field

image: HttpUrl

URL of the cover art, e.g. "https://images.epagine.fr/5298/529876c88590b26470b6a8f19bb0955a_1_v.jpg".

categorie pydantic-field

categorie: str

DVDFr category, e.g. "Série".

duree pydantic-field

duree: str

Duration , e.g. "3070 mn".

sortie pydantic-field

sortie: str

Online release date / media release date displayed on DVDFr, e.g. "5 Octobre 2022".

isbn pydantic-field

isbn: int

EAN barcode, as an integer, e.g. 3333290016961.

barcode pydantic-field

barcode: Base64Bytes

PNG image of the EAN-13 barcode, encoded in Base64, e.g. b'iVBORw0KGgoAAAANSUhEUgAAAGQAA...".

editeur pydantic-field

editeur: str

Publisher, e.g. "Sony Pictures".

distributeur pydantic-field

distributeur: str

Distributor, e.g. "ESCD".

collection pydantic-field

collection: str

Collection, e.g. "Metropolitan Edition Haute Définition".

media pydantic-field

media: str

Media type : Blu-ray, DVD, 4K Ultra HD... e.g. "Blu-ray".

edition pydantic-field

edition: str

Collection / Edition (also known as a collection), e.g. "Metropolitan Edition Haute Définition".

acteurs pydantic-field

acteurs: list[str]

Actors, when available on the page, e.g. ["Bryan Cranston", "Aaron Paul", "Anna Gunn"].

producteurs pydantic-field

producteurs: list[str]

Producers, when available on the page, e.g. ["Vince Gilligan", "Mark Johnson"].

prix pydantic-field

prix: str

Recommended price as displayed, e.g. "49.91 €".

date_sortie pydantic-field

date_sortie: str

Theatrical release date / premiere date, e.g. "20/01/2008".

date_parution pydantic-field

date_parution: str

Release date of the media cover, e.g. "05/10/2022".

genres pydantic-field

genres: list[str]

Genres (rayons DVDFr), e.g. ["Drame"].

source pydantic-field

source: HttpUrl

DVDFr product page URL, e.g. "https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/".

SearchResponse pydantic-model

Bases: _ApiModel

Search results by title (GET /api/search/{query}).

Iterating over it yields the editions in :attr:results.

Show JSON schema:
{
  "$defs": {
    "SearchItem": {
      "description": "Single search result (GET /api/search/{query}).",
      "properties": {
        "isbn": {
          "description": "EAN barcode, as a string, e.g. ``\"3333290016961\"``.",
          "title": "Isbn",
          "type": "string"
        },
        "title": {
          "description": "Title of the edition, e.g. ``\"Breaking Bad - Int\u00e9grale de la s\u00e9rie + El Camino : un film \"Breaking Bad\"``.",
          "title": "Title",
          "type": "string"
        },
        "annee": {
          "description": "Year of the film or series, e.g. ``\"2008\"``.",
          "title": "Annee",
          "type": "string"
        },
        "image": {
          "description": "URL of the cover art, e.g. ``\"https://images.epagine.fr/5298/529876c88590b26470b6a8f19bb0955a_1_v.jpg\"``.",
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "title": "Image",
          "type": "string"
        },
        "editeur": {
          "description": "Publisher, e.g. ``\"Sony Pictures\"``.",
          "title": "Editeur",
          "type": "string"
        },
        "media": {
          "description": "Media type : Blu-ray, DVD, 4K Ultra HD... e.g. ``\"Blu-ray\"``.",
          "title": "Media",
          "type": "string"
        },
        "prix": {
          "description": "Recommended price as displayed, e.g. ``\"49.91 \u20ac\"``.",
          "title": "Prix",
          "type": "string"
        },
        "date_parution": {
          "description": "Release date of the media cover, e.g. ``\"5 Octobre 2022\"``.",
          "title": "Date Parution",
          "type": "string"
        },
        "description": {
          "description": "Synopsis, e.g. ``\"Walter White, 50 ans, est professeur de chimie...\"``.",
          "title": "Description",
          "type": "string"
        },
        "genres": {
          "description": "DVDFr genres, when available on the page, e.g. ``[\"Fantastique / Science-fiction\"]``.",
          "items": {
            "type": "string"
          },
          "title": "Genres",
          "type": "array"
        },
        "url": {
          "description": "URL of the DVDFr page for this edition, e.g. ``\"https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/\"``.",
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "title": "Url",
          "type": "string"
        },
        "source": {
          "description": "URL of the DVDFr page for this edition, e.g. ``\"https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/\"``.",
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "isbn",
        "title",
        "annee",
        "image",
        "editeur",
        "media",
        "prix",
        "date_parution",
        "description",
        "url",
        "source"
      ],
      "title": "SearchItem",
      "type": "object"
    }
  },
  "description": "Search results by title (GET /api/search/{query}).\n\nIterating over it yields the editions in :attr:`results`.",
  "properties": {
    "query": {
      "description": "The title that was searched.",
      "title": "Query",
      "type": "string"
    },
    "total": {
      "description": "Number of titles/editions returned, other editions included.",
      "title": "Total",
      "type": "integer"
    },
    "dvdfr_total": {
      "description": "Number of products announced by DVDFr, other editions excluded.",
      "title": "Dvdfr Total",
      "type": "integer"
    },
    "truncated": {
      "default": false,
      "description": "``True`` if not all DVDFr pages could be crawled: the list is incomplete.",
      "title": "Truncated",
      "type": "boolean"
    },
    "results": {
      "description": "The editions found.",
      "items": {
        "$ref": "#/$defs/SearchItem"
      },
      "title": "Results",
      "type": "array"
    }
  },
  "required": [
    "query",
    "total",
    "dvdfr_total"
  ],
  "title": "SearchResponse",
  "type": "object"
}

Fields:

query pydantic-field

query: str

The title that was searched.

total pydantic-field

total: int

Number of titles/editions returned, other editions included.

dvdfr_total pydantic-field

dvdfr_total: int

Number of products announced by DVDFr, other editions excluded.

truncated pydantic-field

truncated: bool = False

True if not all DVDFr pages could be crawled: the list is incomplete.

results pydantic-field

results: list[SearchItem]

The editions found.

SearchItem pydantic-model

Bases: _ApiModel

Single search result (GET /api/search/{query}).

Show JSON schema:
{
  "description": "Single search result (GET /api/search/{query}).",
  "properties": {
    "isbn": {
      "description": "EAN barcode, as a string, e.g. ``\"3333290016961\"``.",
      "title": "Isbn",
      "type": "string"
    },
    "title": {
      "description": "Title of the edition, e.g. ``\"Breaking Bad - Int\u00e9grale de la s\u00e9rie + El Camino : un film \"Breaking Bad\"``.",
      "title": "Title",
      "type": "string"
    },
    "annee": {
      "description": "Year of the film or series, e.g. ``\"2008\"``.",
      "title": "Annee",
      "type": "string"
    },
    "image": {
      "description": "URL of the cover art, e.g. ``\"https://images.epagine.fr/5298/529876c88590b26470b6a8f19bb0955a_1_v.jpg\"``.",
      "format": "uri",
      "maxLength": 2083,
      "minLength": 1,
      "title": "Image",
      "type": "string"
    },
    "editeur": {
      "description": "Publisher, e.g. ``\"Sony Pictures\"``.",
      "title": "Editeur",
      "type": "string"
    },
    "media": {
      "description": "Media type : Blu-ray, DVD, 4K Ultra HD... e.g. ``\"Blu-ray\"``.",
      "title": "Media",
      "type": "string"
    },
    "prix": {
      "description": "Recommended price as displayed, e.g. ``\"49.91 \u20ac\"``.",
      "title": "Prix",
      "type": "string"
    },
    "date_parution": {
      "description": "Release date of the media cover, e.g. ``\"5 Octobre 2022\"``.",
      "title": "Date Parution",
      "type": "string"
    },
    "description": {
      "description": "Synopsis, e.g. ``\"Walter White, 50 ans, est professeur de chimie...\"``.",
      "title": "Description",
      "type": "string"
    },
    "genres": {
      "description": "DVDFr genres, when available on the page, e.g. ``[\"Fantastique / Science-fiction\"]``.",
      "items": {
        "type": "string"
      },
      "title": "Genres",
      "type": "array"
    },
    "url": {
      "description": "URL of the DVDFr page for this edition, e.g. ``\"https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/\"``.",
      "format": "uri",
      "maxLength": 2083,
      "minLength": 1,
      "title": "Url",
      "type": "string"
    },
    "source": {
      "description": "URL of the DVDFr page for this edition, e.g. ``\"https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/\"``.",
      "format": "uri",
      "maxLength": 2083,
      "minLength": 1,
      "title": "Source",
      "type": "string"
    }
  },
  "required": [
    "isbn",
    "title",
    "annee",
    "image",
    "editeur",
    "media",
    "prix",
    "date_parution",
    "description",
    "url",
    "source"
  ],
  "title": "SearchItem",
  "type": "object"
}

Fields:

isbn pydantic-field

isbn: str

EAN barcode, as a string, e.g. "3333290016961".

title pydantic-field

title: str

Title of the edition, e.g. "Breaking Bad - Intégrale de la série + El Camino : un film "Breaking Bad".

annee pydantic-field

annee: str

Year of the film or series, e.g. "2008".

image pydantic-field

image: HttpUrl

URL of the cover art, e.g. "https://images.epagine.fr/5298/529876c88590b26470b6a8f19bb0955a_1_v.jpg".

editeur pydantic-field

editeur: str

Publisher, e.g. "Sony Pictures".

media pydantic-field

media: str

Media type : Blu-ray, DVD, 4K Ultra HD... e.g. "Blu-ray".

prix pydantic-field

prix: str

Recommended price as displayed, e.g. "49.91 €".

date_parution pydantic-field

date_parution: str

Release date of the media cover, e.g. "5 Octobre 2022".

description pydantic-field

description: str

Synopsis, e.g. "Walter White, 50 ans, est professeur de chimie...".

genres pydantic-field

genres: list[str]

DVDFr genres, when available on the page, e.g. ["Fantastique / Science-fiction"].

url pydantic-field

url: HttpUrl

URL of the DVDFr page for this edition, e.g. "https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/".

source pydantic-field

source: HttpUrl

URL of the DVDFr page for this edition, e.g. "https://www.dvdfr.com/dvd/3333290016961-breaking-bad-integrale-de-la-serie/".