Skip to main content

CLI for searching Latvian names from pmlp.gov.lv

Project description

LV Name API

LV Name API is a Python module for generating Latvian-style names. It supports both programmatic use and a simple CLI for quick access.

Features

  • Generate random Latvian first names and last names.
  • Easy-to-use Python API.
  • Command-line interface for quick name generation.
  • Configurable options stored in config.json (optional).
  • First-run detection with guidance for new users.

Installation

Install via pip:

pip install lv-name-api

Usage

Python API

from latvian_names import core

# Generate a random name
name = core.get_random_name()
print(name)

# Access settings
from latvian_names import settings
print(settings.get("example_setting"))

CLI

Generate names from the command line:

latnames

Optional flags:

--settings, -set, -setup, --setup    # Access configuration menu
--debug                              # Enable debug mode
--noreboot                            # Disable automatic reboot

First Run

On the first run, LV Name API will display:

First run detected!
- Your configuration file can be optionally saved as config.json
- Run `--settings` to customize settings

Notes

This project is made by an independent developer in his free time for fun. You can freely use and integrate it in your projects.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lv_name_api-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lv_name_api-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file lv_name_api-0.1.0.tar.gz.

File metadata

  • Download URL: lv_name_api-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for lv_name_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 057cab3fc7ef44ff03adc630880700edf9042630982e6c84cb9c8d6f40d90854
MD5 45af05ef22951f695d9105e1c79a516f
BLAKE2b-256 4673aff0c925c7c447ef0068379eeee1139ef3a02dc75641348d25aef6eee815

See more details on using hashes here.

File details

Details for the file lv_name_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lv_name_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for lv_name_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0cbf011fbf6baf71b3de573c7b7b49f6e71a079a406954e54461f46c0a464b
MD5 1dde90713effbbbe6e7b0a37e26228b9
BLAKE2b-256 30f6798c972d9abe7029b2258a361a7f76909973acdc5056baa3188b5cb8725b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page