a CLI tool and a library for Latvian name day lookup
Project description
Latvian name day list (vārda dienu saraksts)
Updated with new name day lists for 2026.
This repository contains the Latvian name day list and an utility for working with it.
About Latvian name days.
Installation
To install this tool run:
pip install lv-namedays
Using uv:
uv pip install lv-namedays
You can also install it as a uv tool and then run it directly from shell:
> uv tool install lv-namedays
> nameday now
Šodienas vārda dienas: Antons, Antis, Antonijs
Usage - summary
Usage: nameday [OPTIONS] COMMAND [ARGS]...
A program for lookup in the Latvian name day calendar.
It can display today's name days and look up the name day date for a
specific name.
Options:
--help Show this message and exit.
Commands:
date Show name days for a specific date (in MM-DD format).
name Show the name day for a specific name.
now Show today's name days.
week Show name days for the current day and 3 days before and after it.
Usage - as a command-line tool
Get the names for a given date
❯ nameday date 07-23
07-23 vārda dienas: Magda, Magone, Mērija, Magdalēna
You can also look up names in the extended name day list by supplying the -e or --extended option:
❯ nameday date 07-23 --extended
07-23 vārda dienas: Magda, Magone, Mērija, Magdalēna, Madelaina, Madeleina, Madlena, Madlēna, Magdalena, Magdaliene, Magdalina, Magita, Meralda, Meri, Merīda, Merija, Merilina, Merita, Radislavs, Radmila, Radomirs
You can also ask for today's names (the -e or --extended option can be used here, too):
❯ nameday now
Šodienas vārda dienas: Venta, Salvis, Selva
Get the name day for a given name
Find the name day date for a given name:
❯ nameday name Uldis
Uldis: vārda diena ir 07-04 (MM-DD)
This command also looks up names in the extended name day list:
❯ nameday name Radomirs
Radomirs: vārda diena (paplašinātajā sarakstā) ir 07-23 (MM-DD)
Show name days for a week
Use the week command to display names for a week (the current date +/- 3 days):
❯ nameday week
05-17 vārda dienas: Herberts, Dailis, Umberts
05-18 vārda dienas: Inese, Inesis, Ēriks
05-19 vārda dienas: Lita, Sibilla, Teika
05-20 vārda dienas: Venta, Salvis, Selva
05-21 vārda dienas: Ernestīne, Ingmārs, Akvelīna
05-22 vārda dienas: Emīlija, Visu neparasto un kalendāros neierakstīto vārdu diena
05-23 vārda dienas: Leontīne, Leokādija, Lonija, Ligija
Usage - as a library
The name day lookup functionality can also be imported and used as a library:
from lv_namedays import NameDayDB
db = NameDayDB()
# Look up the name day for Uldis (4th of July)
db.get_date_for_name("Uldis")
>>> '07-04'
# Look up the name day in the extended name day list
db.get_date_for_name("Radomirs", extended=True)
>>> '07-23'
# Look up the names for the 1st of July
db.get_names_for_date("07-01")
>>> ['Imants', 'Rimants', 'Ingars', 'Intars']
# Look up the names in the extended name day list
db.get_names_for_date("07-01", extended=True)
>>> ['Imants', 'Rimants', 'Ingars', 'Intars', 'Ingārs', 'Ingera', ...]
You can also access the full list of name days (both the core and the extended name day list) that this application is using:
# Get the core name days list (dictionary)
db.namedays
>>> {'01-01': ['Laimnesis', 'Solvita', 'Solvija'], ..., '12-31': ['Silvestrs', 'Silvis', 'Kalvis']}
# Get the extended name days list (dictionary)
db.namedays_ext
>>> {'01-01': ['Laimnesis', 'Solvita', 'Solvija', 'Afra', 'Afrodīte', ...], ...}
Testing
Check out this code with the dev dependency group.
Then run pytest
In order to test this app with different python versions run tox
Data source
https://www.vvc.gov.lv/lv/kalendarvardu-ekspertu-komisija
Related projects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lv_namedays-0.6.tar.gz.
File metadata
- Download URL: lv_namedays-0.6.tar.gz
- Upload date:
- Size: 102.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
926f28a1557e731fe622864b7ca292e6064473bebfb0b5edbc7717abbf572144
|
|
| MD5 |
06c7ac39f6dd91c6c77b7f627bf246fd
|
|
| BLAKE2b-256 |
78bca0e23b1365eefdf603fd99009e401cb5677c3493a32012977ab938bb782b
|
File details
Details for the file lv_namedays-0.6-py3-none-any.whl.
File metadata
- Download URL: lv_namedays-0.6-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c8df46f45c3c6492ad1e2557361b67185d6bba70619ac338b706197a811601a
|
|
| MD5 |
2475314b4bf46b18f8bc5e0d8ea1e3ba
|
|
| BLAKE2b-256 |
7dd0b89f7151c8d3db01daf11d3d00d78404b1b18a5c0a8a54f19cf3c742a375
|