.KGL

Fichier KGL

Kagsa Library
Poser une question
RÉPONSE RAPIDE

Un fichier .kgl est une bibliothèque compilée pour le langage de programmation KAGSA, un langage interprété basé sur Python. Il s'agit d'une archive ZIP renommée qui regroupe les fichiers Python (main.py et __memory__.py) générés lors de la compilation d'un fichier source Kagsa, afin qu'un programme Kagsa puisse appeler les fonctions de la bibliothèque. Vous pouvez l'ouvrir et l'utiliser avec l'interprète gratuit Kagsa, ou renommer une copie en .zip pour l'inspecter avec n'importe quel outil d'archivage.

Développeur : Kagsa (KAGSA project) Catégorie : Fichiers de développement MIME: application/zip
S'OUVRE SUR Windows macOS Linux Android
Lié : .DO · .MD · .HEX · .XSD

Sur cette page

19k+ extensions indexées
Dernière révision le Jun 24, 2026

Pas sûr de la nature de votre fichier ?

Déposez n'importe quel fichier dans notre identificateur - nous lisons juste les premiers octets pour nommer le format.

Identifier un fichier

Qu'est-ce que le format de fichier KGL ?

Un fichier .kgl est une bibliothèque compilée pour le langage de programmation KAGSA, un langage interprété basé sur Python et publié sous licence MIT. Les développeurs écrivent du code Kagsa dans des fichiers sources .kg et emballent les fonctions réutilisables dans une bibliothèque .kgl afin que d'autres programmes puissent les appeler.

Sous le capot, un fichier .kgl est une archive .zip à laquelle on a donné une extension différente. Il contient toujours au moins deux fichiers Python : main.py, le point d'entrée compilé, et __memory__.py, qui contient les données d'espace de noms stockées de la bibliothèque. Tous les modules auxiliaires supplémentaires sont emballés à leurs côtés. Comme le conteneur est un ZIP standard, le fichier commence par la signature familière PK.

Sécurité et sûreté

RISQUE : MEDIUM

A .kgl is a ZIP archive containing executable Python code that the Kagsa interpreter runs when the library is imported. Extracting the archive is safe, but importing or running a library from an untrusted source executes its code, so only use .kgl files you trust.

Détails du format

en bref
NOM COMPLETKagsa Libraryalias Kagsa compiled library, KAGSA library archive
DÉVELOPPEURKagsa (KAGSA project)depuis 2022
TYPE MIMEapplication/zip
TYPECompiled library archive (ZIP container)
Cette extension est également utilisée par…
  • kglab / kgl (Python graph library) - The 'kgl' name is also used by DerwenAI's kglab knowledge-graph package, but it does not define a .kgl file type.
  • kgl.exe (generic executable) - Various unrelated Windows programs ship an executable named kgl.exe; unrelated to the Kagsa library format.
OCTETS MAGIQUES · SIGNATURE DE FICHIER
OFFSET
00010203
HEX
504B0304
ASCII
PK··
A .kgl file is a renamed ZIP archive, so it carries the standard ZIP local-file-header signature PK\x03\x04. Empty or spanned archives use PK\x05\x06 or PK\x07\x08.

Programmes qui ouvrent les fichiers KGL

Windows3 apps
WinRAR Payant Point WinRAR at the file (rename to .zip if needed) to browse and unpack the ZIP contents of the library.
7-Zip Open-source Open the .kgl directly or rename a copy to .zip, then extract main.py and __memory__.py to read the packaged Python code.
Kagsa Open-source Install Kagsa, then import the library from a .kg program or inspect it with the interpreter; this is the native tool for running .kgl code.
macOS2 apps
The Unarchiver Gratuit Rename a copy to .zip and open it to extract the bundled .py files for inspection.
Kagsa Open-source Install via pip install kagsa and use the interpreter to import and run the library in your Kagsa project.
Linux2 apps
unzip Open-source Run unzip lib.kgl (or copy to lib.zip first) to list and extract main.py and __memory__.py.
Kagsa Open-source Install with pip install kagsa or the official Linux installer, then reference the library from a .kg source file.
Android1 app
Kagsa on Termux Open-source Install Kagsa inside Termux and run or import the library from the command line on Android.

Détails techniques

spécifications approfondies
EncodingBinary (ZIP archive)
Byte orderLittle-endian (ZIP fields)
ContainerZIP archive with the .kgl extension instead of .zip
CompressionStandard ZIP compression (DEFLATE or stored), inherited from the ZIP container
EncryptionNone by default; a KGL is a plain archive with no built-in encryption
Typical sizeA few kilobytes to a few hundred kilobytes, depending on the amount of compiled code
StructureA ZIP archive holding the Python files produced when a Kagsa source library is compiled. It always contains main.py (the compiled library entry point) and __memory__.py (the library's stored state/namespace data), plus any additional helper .py files.
IntegrityCRC-32 per entry, provided by the ZIP format
PlatformsWindows, Linux, Termux (Android), macOS
NotesGenerated by the Kagsa interpreter with the command kagsa -l lib.kg -o lib.kgl. The input must be a .kg source file and the output name must end in .kgl. Because it is just a renamed ZIP, renaming a copy to .zip lets any archiver inspect the contents.
Produced Bykagsa command-line interpreter
Consumed ByKagsa runtime when a .kg program imports the library
Publié2022
Dernière versionKagsa 1.2.0 (2023)
Spécificationwww.kagsa.org

Conversions KGL

Q&R de la communauté

posées par les utilisateurs
Poser une question rapide
Obtenez de l'aide de personnes qui travaillent avec des fichiers KGL. Soyez précis - incluez votre système et la version du logiciel.
Aucun compte requis · réponses généralement sous un jour

Pas encore de questions - soyez le premier à poser une question sur les fichiers KGL.

Foire aux questions

Qu'est-ce qu'un fichier .kgl ?
C'est une bibliothèque compilée pour le langage de programmation KAGSA. Elle regroupe des fichiers Python (main.py et __memory__.py) dans une archive ZIP afin qu'un programme Kagsa puisse appeler les fonctions de la bibliothèque.
Comment ouvrir un fichier .kgl ?
Installez l'interprète gratuit Kagsa pour l'utiliser dans un projet, ou renommez une copie en .zip et ouvrez-la avec 7-Zip, WinRAR ou unzip pour voir les fichiers .py à l'intérieur.
Comment créer une bibliothèque .kgl ?
Compilez un fichier source Kagsa avec la commande kagsa -l lib.kg -o lib.kgl. L'entrée doit se terminer par .kg et la sortie par .kgl.
Un fichier .kgl est-il juste un fichier ZIP ?
Oui. Il utilise la compression ZIP standard et la signature PK ; seule l'extension diffère. C'est pourquoi les archiveurs peuvent l'ouvrir après l'avoir renommé en .zip.
Que contient un fichier .kgl ?
Au minimum main.py, le point d'entrée de la bibliothèque compilée, et __memory__.py, qui contient les données d'espace de noms stockées de la bibliothèque, plus tout fichier Python auxiliaire supplémentaire.
Puis-je convertir un .kgl en source Kagsa ?
Non. L'archive stocke du Python compilé, pas la source .kg d'origine, il n'y a donc aucun moyen de récupérer le code Kagsa lisible à partir de celle-ci.

Références

1KAGSA on GitHubgithub.com
2KAGSA official documentationwww.kagsa.org

Continuer l'exploration

à travers la base de données

Top des extensions cette semaine

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Extensions liées

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Outils de fichiers gratuits

Un identificateur de fichier et un convertisseur d'images dans le navigateur - tout s'exécute sur votre appareil.

Ouvrir la boîte à outils

Parcourir les extensions de fichiers A-Z