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.1' } (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.1

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.1
File Size Uploaded Provenance Actions
aremjolsnes_grep_sdk-0.10.1.tar.gz 546.8 kB With provenance Details for aremjolsnes_grep_sdk-0.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 557.0 kB

Release files / aremjolsnes_grep_sdk-0.10.1.tar.gz

Download URL aremjolsnes_grep_sdk-0.10.1.tar.gz
Size 546.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f0376bd7c3d1c5bd3888b2475b88d740bd928ac4b1846234887ed60dfe7b4ac6
BLAKE2b-256 checksum
How to use checksums
4e9c3bddf7e4f27a54a19ef7c16830a38a7b01541470b1a6ae80e9ec1c473cb7
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.1-py3-none-any.whl

Download URL aremjolsnes_grep_sdk-0.10.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bbfd48cdf258c7a3a8973f6a94c613e3e359cec30c7697fa584630950b636b8
BLAKE2b-256 checksum
How to use checksums
6c802ade6fb4e7e4bd53a64b30182dee7ab75a171e3a2e5a6f7eb8e1a4017854
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.1

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.1.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.1 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