---
name: pymaskinporten
description: >
  Fetch Maskinporten Token. Use when writing Python code that uses the pymaskinporten package.
license: Apache-2.0
compatibility: Requires Python >=3.13.
---

# pymaskinporten

Fetch Maskinporten Token

## Installation

```bash
pip install pymaskinporten
```

## API overview

### Functions

Utility functions

- `app.after_request`
- `app.get_token`
- `app.index`
- `app.load_config`
- `app.main`
- `app.request_maskinporten_token`
- `request_token.build_jwt`
- `request_token.load_config`
- `request_token.request_maskinporten_token`

## Resources

- [Full documentation](https://norwegianveterinaryinstitute.github.io/pymaskinporten/)
- [llms.txt](llms.txt) — Indexed API reference for LLMs
- [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs
- [Source code](https://github.com/NorwegianVeterinaryInstitute/pymaskinporten)
