Skip to main content

Vesna

Українська

Description

A lightweight library specialized in convenient localization (i18n).

Installation

Via uv (recommended):

  • uv pip install vesna — Minimal
  • uv pip install vesna[all] — Full

Via pip:

  • python -m pip install vesna — Minimal
  • python -m pip install vesna[all] — Full

Quick Start

import vesna

async def main():
    await vesna.i18n.load_file(
        vesna.providers.ProviderJSON(), "uk", "tests/localisation/{locale_code}.json"
    )

    l = vesna.Locale("uk")
    print(l["vesna"])
    print(l("hello", l.get("world")))

Features

  • Support for multiple localization formats
  • Convenient syntax with [] and () support
  • Babel integration

Usage

Providers

  • FluentProvider: Fluent format (requires fluent.runtime).
  • GettextProvider: GNU Gettext format (requires Babel).
  • ProviderJSON: JSON format (uses pydantic_core, requires pydantic).
  • ProviderJSON5: JSON5 format (requires json5 or pyjson5).
  • ProviderHJSON: HJSON format (requires hjson).
  • ProviderTOML: TOML format (requires rtoml).
  • ProviderYAML: YAML format (requires ruamel.yaml).

Creating a custom Vesna instance

import vesna
v = vesna.Vesna()
# Set as the global default object
v.default_object = v

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for vesna 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vesna 1.0.2
File Size Uploaded Provenance Actions
vesna-1.0.2.tar.gz 28.7 kB With provenance Details for vesna-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vesna 1.0.2
File Interpreter ABI Platform Actions
vesna-1.0.2-py3-none-any.whl Python 3 none any Details for vesna-1.0.2-py3-none-any.whl

Total release size: 44.9 kB

Release files / vesna-1.0.2.tar.gz

Download URL vesna-1.0.2.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c01b9bc2bfc76a0f8fcac6efdd53ad330b32222d29e69ee0dbb0acac4262e047
BLAKE2b-256 checksum
How to use checksums
831c1ae47de7dc371774a8a94975aedfc4b668562881581d73f84a847247bda4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 20, 2026.

Transparency log

Release files / vesna-1.0.2-py3-none-any.whl

Download URL vesna-1.0.2-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3e63e9cbd7f741d282efe9619cadc8cda7712c24fece588b0a95d0f48f734ca
BLAKE2b-256 checksum
How to use checksums
bddac49256754a343158542fce294fcfab96953709bda19f786e0116a97a0664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 20, 2026.

Transparency log

Security for vesna 1.0.2

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 vesna-1.0.2.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 Mar 20, 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.

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