.KV File Extension

File Type 1

Kivy Language File

Developer Kivy Organization
Popularity
4.3  |  8 Votes
Category Developer Files
Format Text

What is a KV file?

A KV file is a Kivy language file created by Kivy, an open-source Python library used to develop multi-touch enabled, cross-platform applications. It stores source code in the Kivy syntax, which may include rule definitions, a root widget, dynamic class definitions, and templates.

More Information

Kivy is a framework that assists developers in creating cross-platform apps with Python code. It is specifically focused on describing the user interface and interactions in an app.

The Kivy language features several constructs:

  • Root widget - Widgets are the building blocks of GUIs in Kivy and a KV file can contain only one root widget.
  • Rules - A Kivy rule applies to a specific widget and is used in a KV file to modify the widget, such as specifying interactive behavior or adding a graphical representation of a widget.
  • Dynamic classes - A Kivy dynamic class allows you to quickly create new widgets or rules without any Python declaration.
  • Templates - Before being deprecated, Kivy templates were used to save the user time when styling content, like only having to specify the value of a button once for buttons that are used repeatedly. Templates were replaced by dynamic classes in version 1.7.0 of Kivy.

Below is a simple example of a KV file containing a root widget. A KV file should always start with the Kivy header, with the correct Kivy language version used, and then followed by the content:

#:kivy 1.11.1

Button:
      text: 'Hi there'

How to open a KV file

You can open KV files with Kivy, which is free and available for Windows, macOS, Linux, Android, and iOS. You can edit KV files with JetBrains PyCharm (multiplatform), a Python IDE and Microsoft Visual Studio Code (multiplatform), a source code editor.

Since KV files are saved in plain text, you can also open and edit KV files with a plain text editor, such as Microsoft Notepad (bundled with Windows) or Apple TextEdit (bundled with macOS). However, these text editors do not provide helpful source code editing features.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference KV files

Updated March 24, 2021
File Type 2

Counter-Strike: Global Offensive KeyValue File

Developer Valve
Popularity
2.0  |  1 Vote
Category Game Files
Format Text

What is a KV file?

A KV file is a plain text file used to associate character models with a custom Counter-Strike: Global Offensive map, so players can use those character models while playing on the map. It contains the name of the map it is used with, a list of Terrorist character models available for use on the map, and a list of Counter-Terrorist character models available for use on the map.

More Information

Counter-Strike: Global Offensive (CS:GO) is a multiplayer first-person shooter in which players are divided into two teams: Terrorists and Counter-Terrorists. These teams battle each other while attempting to achieve separate objectives. For example, in CS:GO's primary game mode, the Terrorists must plant and detonate a bomb; the Counter-Terrorists must stop them.

CS:GO players can create and use custom game maps saved as .BSP files. Players who want to specify what character models are selectable on their custom map can link the map with a KV file. Each KV file must use the same name as the map it is linked with (e.g. FileInfoExample.kv is used with FileInfoExample.bsp).

How to open a KV file

You can open and edit a KV file with any text editor, such as Microsoft Notepad or Apple TextEdit.

To use a KV file with Counter-Strike: Global Offensive, place the file in the ~/​Counter-Strike Global Offensive/​csgo/​maps folder alongside a correspondingly-named BSP file.

Programs that open or reference KV files

Updated March 11, 2022

Verified by FileInfo.com

The FileInfo.com team has independently researched all file formats and software programs listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.