a CLI tool and a library for Latvian name day lookup
Project description
Latvian name day list (vārda dienu saraksts)
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 - command line
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 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 names for the 1st of July
db.get_names_for_date("07-01")
>>> ['Imants', 'Rimants', 'Ingars', 'Intars']
# Get the full name days list (dictionary)
db.namedays
>>> {'01-01': ['Laimnesis', 'Solvita', 'Solvija'], ..., '12-31': ['Silvestrs', 'Silvis', 'Kalvis']}
Data source
https://data.gov.lv/dati/eng/dataset/latviesu-tradicionalais-un-paplasinatais-kalendarvardu-saraksts
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.5.2.tar.gz.
File metadata
- Download URL: lv_namedays-0.5.2.tar.gz
- Upload date:
- Size: 52.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
146f37077f344380d4f915bb62246b8c809fec6b752e3b759cffb050caa183a0
|
|
| MD5 |
985336850e880d22c3a58f66f3756607
|
|
| BLAKE2b-256 |
f1278f84e83120eaa7e7e5ee5177feb577531fc601eefd471ba32372c8f67f7f
|
File details
Details for the file lv_namedays-0.5.2-py3-none-any.whl.
File metadata
- Download URL: lv_namedays-0.5.2-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe9a34062ce3385af66048d7f9dcab58cfe9adbef57831c5b6e4376478bbeee0
|
|
| MD5 |
519bfb21a1dcd14000ce35799fae55bd
|
|
| BLAKE2b-256 |
95d762d83a665f3605422f1acefff378a1f471a6c79655ac0bb444b0b075ab8e
|