bulletin.doue
DOUE support is split into two layers:
- API layer: high-level client and typed parsing models.
- Repository layer: connector for query construction and endpoint communication.
Basic Imports
from bulletin.doue.api.client import DoueBulletinClient
from bulletin.doue.api.models import DoueOfficialAct
Client
bulletin.doue.api.client.DoueBulletinClient
Client to query EU Official Journal acts.
Source code in src/bulletin/doue/api/client.py
get_acts(date, language=DEFAULT_LANGUAGE, date_end=None, title_contains=None, category_type=None, institution_type=None)
Fetch Official Journal acts for a given publication date.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
date
|
str
|
Publication date in ISO format (e.g. "2025-03-27"). |
required |
date_end
|
str | None
|
End date in ISO format (e.g. "2025-03-27"). If provided, fetch acts published between |
None
|
title_contains
|
str | None
|
Case-insensitive substring filter on title. |
None
|
category_type
|
str | None
|
Filter by category type code (e.g. "RES" for Resolution, "ANNOUNC" for Announcement...). More types available at http://publications.europa.eu/resource/authority/resource-type. Optional. |
None
|
institution_type
|
str | None
|
Filter by institution type code (e.g. "CONSIL" for Council of the European Union, "COM" for Commission...). More types available at http://publications.europa.eu/resource/authority/corporate-body. Optional. |
None
|
language
|
str
|
ISO Language code (default: "ENG"). Supported values are defined in |
DEFAULT_LANGUAGE
|
Returns: A list of DoueOfficialAct objects.
Source code in src/bulletin/doue/api/client.py
get_acts_csv(date, date_end=None, title_contains=None, category_type=None, institution_type=None, language=DEFAULT_LANGUAGE)
Fetch Official Journal acts for a given date and return CSV output. Uses get_acts internally, so supports the same filters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
date
|
str
|
Publication date in ISO format (e.g. "2025-03-27"). |
required |
date_end
|
str | None
|
End date in ISO format (e.g. "2025-03-27"). If provided, fetch acts published between |
None
|
title_contains
|
str | None
|
Case-insensitive substring filter on title. |
None
|
category_type
|
str | None
|
Filter by category type code (e.g. "RES" for Resolution, "ANNOUNC" for Announcement...). More types available at http://publications.europa.eu/resource/authority/resource-type. Optional. |
None
|
institution_type
|
str | None
|
Filter by institution type code (e.g. "CONSIL" for Council of the European Union, "COM" for Commission...). More types available at http://publications.europa.eu/resource/authority/corporate-body. Optional. |
None
|
language
|
str
|
ISO Language code (default: "ENG"). Supported values are defined in |
DEFAULT_LANGUAGE
|
Returns: A string containing the CSV representation of the acts.
Source code in src/bulletin/doue/api/client.py
get_category_types(language=DEFAULT_LANGUAGE)
Fetch the list of possible category types from the authority list. This method may last a few minutes due to the size of the authority list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
language
|
str
|
Language code (default: "ENG"). Examples: "ENG", "SPA", "FRA"... |
DEFAULT_LANGUAGE
|
Returns:
| Type | Description |
|---|---|
list[CategoryType]
|
A list of CategoryType objects with 'code' and 'label' attributes. |
Source code in src/bulletin/doue/api/client.py
get_institution_types(language=DEFAULT_LANGUAGE)
Fetch the list of possible institution types from the authority list. This method may last a few minutes due to the size of the authority list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
language
|
str
|
Language code (default: "ENG"). Examples: "ENG", "SPA", "FRA"... |
DEFAULT_LANGUAGE
|
Returns:
| Type | Description |
|---|---|
list[InstitutionType]
|
A list of InstitutionType objects with 'code' and 'label' attributes. |
Source code in src/bulletin/doue/api/client.py
Models
bulletin.doue.api.models.DoueOfficialAct
dataclass
Source code in src/bulletin/doue/api/models.py
bulletin.doue.api.models.CategoryType
dataclass
Represents a category type (resource type) from the authority list.
Source code in src/bulletin/doue/api/models.py
bulletin.doue.api.models.InstitutionType
dataclass
Represents an institution type from the authority list.