Skip to main content

@aremjolsnes/grep-sdk 📚

Developer SDK for Grep data from the Norwegian Directorate for Education and Training (Udir).

Build Status

grep-sdk removes the guesswork when integrating with the Norwegian Directorate for Education and Training's Grep database (LK20 and LK06). The library provides ready-made data models, automatic code documentation (IntelliSense), and type-safe communication with the API.

Why use this? 🚀

Previously, you had to look up the Grep Wiki to understand the field names in the JSON response. Now you get the answer right in your editor.

  • ✅ Full Type Safety: We know the difference between Kompetansemaal and Kjerneelement so you avoid runtime errors.
  • ✅ Rich Documentation: Definitions from the Grep ontology appear as help text when you hover over fields in the code.
  • ✅ Universal Support: Handles both the Knowledge Promotion (LK20) and the Knowledge Promotion Reform (LK06) with automatic fallback.

📦 Installation

Node.js / TypeScript

npm install @aremjolsnes/grep-sdk

Python

pip install aremjolsnes-grep-sdk

.NET / C#

Add the project reference or install the package:

dotnet add package Aremjolsnes.GrepSdk

(See dotnet_sdk/README.md for details)

Java

repositories { maven { url = uri("https://maven.pkg.github.com/aremjolsnes/grep-sdk") } }

dependencies { implementation 'com.github.aremjolsnes:java_sdk:0.10.2' } (See java_sdk/README.md for details)


💻 Usage

TypeScript (Node.js)

The client automatically checks if the code belongs to LK20 or LK06.

import { GrepClient } from '@aremjolsnes/grep-sdk';

const client = new GrepClient();

async function fetchPlan() {
  // Fetches Mathematics (LK20)
  const plan = await client.getLaereplan("MAT01-05");
  
  console.log(`Title: ${plan.tittel.nob}`);
  console.log(`Type: ${plan['grep-type']}`); // .../laereplan_lk20

  // Fallback: Fetches old RLE plan (LK06)
  const oldPlan = await client.getLaereplan("RLE1-02");
}

Python

The SDK uses Pydantic for validation and type safety.

from aremjolsnes_grep_sdk import GrepClient

client = GrepClient()

# Fetches Mathematics (LK20)
plan = client.get_laereplan("MAT01-05")

# Note: Field names with hyphens become underscores in Python
print(f"Title: {plan.tittel['nob']}")
print(f"Type: {plan.grep_type}")

.NET / C#

using Aremjolsnes.GrepSdk;

var client = new GrepClient();
var plan = await client.GetLaereplanAsync("MAT01-05");

Java

GrepClient client = new GrepClient();
Object plan = client.getLaereplan("MAT01-05").get();

Coverage

The SDK provides coverage of all 44 object types in Grep, including:

  • Curricula (Læreplaner), Competence Aim Sets (Kompetansemålsett), and Competence Aims (Kompetansemål)
  • Core Elements (Kjerneelementer) and Interdisciplinary Topics (Tverrfaglige temaer)
  • Assessment Arrangements (Vurderingsordninger) and Exam Forms (Eksamensformer)
  • Education Programmes (Utdanningsprogram) and Programme Areas (Programområder)
  • Subject Codes (Fagkoder)

License

MIT © Are Mjølsnes

Metadata

Release files for aremjolsnes-grep-sdk 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aremjolsnes-grep-sdk 0.10.2
File Size Uploaded Provenance Actions
aremjolsnes_grep_sdk-0.10.2.tar.gz 546.9 kB With provenance Details for aremjolsnes_grep_sdk-0.10.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aremjolsnes-grep-sdk 0.10.2
File Interpreter ABI Platform Actions
aremjolsnes_grep_sdk-0.10.2-py3-none-any.whl Python 3 none any Details for aremjolsnes_grep_sdk-0.10.2-py3-none-any.whl

Total release size: 557.0 kB

Release files / aremjolsnes_grep_sdk-0.10.2.tar.gz

Download URL aremjolsnes_grep_sdk-0.10.2.tar.gz
Size 546.9 kB
Tags Source
SHA-256 checksum
How to use checksums
357dcb5be042286ce0ca7516dd7aceefc3ee3bf0cd8978dd82cd7849cefbfa99
BLAKE2b-256 checksum
How to use checksums
548092d963224f5fe7bade28c26fbd96f9cb1859ddcb3858c3519d3c0b64fcf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / aremjolsnes_grep_sdk-0.10.2-py3-none-any.whl

Download URL aremjolsnes_grep_sdk-0.10.2-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5a19a5f15c004e589ae60bf3a01d090aaffd80581880827845ac9c181a6e417
BLAKE2b-256 checksum
How to use checksums
a6e6d2d156e459ab11c6aa382c803c536f3d668378a28a65827826bf7f47ac03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for aremjolsnes-grep-sdk 0.10.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aremjolsnes_grep_sdk-0.10.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page