Overview
Articles are the primary legal content of each framework. Every article belongs to exactly one framework, identified by its framework_slug. Use client.articles to list, fetch, and navigate them.
Methods
list()
Returns a page of article summaries for the given framework.
Parameters
| Parameter | Type | Default | Description |
|---|
framework_slug | str | required | Framework slug, e.g. "gdpr" |
page | int | 1 | Page number |
per_page | int | 20 | Items per page (1–100) |
Returns Page[ArticleSummary]
get()
Fetch the full content of a single article, including all paragraphs.
Parameters
| Parameter | Type | Description |
|---|
framework_slug | str | Framework slug |
article_number | int | Article number within the framework |
Returns Article
Fetch articles related to a given article (linked via shared requirements or tags).
Parameters
| Parameter | Type | Default | Description |
|---|
framework_slug | str | required | Framework slug |
article_number | int | required | Article number |
page | int | 1 | Page number |
per_page | int | 20 | Items per page (1–100) |
Returns Page[ArticleSummary]
iter()
Iterate over all articles in a framework across all pages.
Parameters — same kwargs as list() (except page).
Returns Iterator[ArticleSummary]
Models
ArticleSummary
Returned by list(), related(), and iter().
| Field | Type | Description |
|---|
id | int | Internal numeric ID |
framework_slug | str | Parent framework slug |
article_number | int | Article number within the framework |
title | str | None | Article heading |
position | int | Ordering position in the framework |
paragraph_count | int | Number of paragraphs |
tags | list[str] | Tag slugs applied to this article |
Article
Returned by get(). Extends ArticleSummary with:
| Field | Type | Description |
|---|
content | str | None | Full plain-text content of the article |
paragraphs | list[Paragraph] | Ordered list of paragraph objects |
Paragraph
| Field | Type | Description |
|---|
id | int | Internal numeric ID |
paragraph_number | str | Label, e.g. "1", "2a", "intro" |
content | str | Paragraph text |
position | int | Ordering position within the article |
Examples
Print every GDPR chapter with article titles
Fetch a specific article and display it
Find all articles tagged with a specific tag
Cross-reference related articles
Collect all articles into a dict for fast lookup
Use iter() when you need every article. Use list() when you only need one page or want to control pagination yourself.