.KGL

KGL-bestand

Kagsa Library
Stel een vraag
SNEL ANTWOORD

Een .kgl-bestand is een gecompileerde bibliotheek voor de KAGSA-programmeertaal, een geïnterpreteerde taal gebouwd op Python. Het is een hernoemd ZIP-archief dat de Python-bestanden (main.py en __memory__.py) bundelt die worden gegenereerd wanneer een Kagsa-bronbestand wordt gecompileerd, zodat een Kagsa-programma de functies van de bibliotheek kan aanroepen. Je opent en gebruikt het met de gratis Kagsa-interpreter, of hernoemt een kopie naar .zip om het met een archiefprogramma te inspecteren.

Ontwikkelaar: Kagsa (KAGSA project) Categorie: Ontwikkelaarsbestanden MIME: application/zip
OPENT OP Windows macOS Linux Android
Gerelateerd: .DO · .MD · .HEX · .XSD

Op deze pagina

19k+ extensies geïndexeerd
Laatst beoordeeld op Jun 24, 2026

Niet zeker wat uw bestand is?

Sleep een bestand naar onze identificatietool - we lezen alleen de eerste bytes om het formaat te benoemen.

Identificeer een bestand

Wat is het KGL-bestandsformaat?

Een .kgl-bestand is een gecompileerde bibliotheek voor de KAGSA-programmeertaal, een geïnterpreteerde taal gebouwd op Python en uitgebracht onder de MIT-licentie. Ontwikkelaars schrijven Kagsa-code in .kg-bronbestanden en verpakken herbruikbare functies in een .kgl-bibliotheek zodat andere programma's deze kunnen aanroepen.

Onder de motorkap is een .kgl-bestand een .zip-archief dat een andere extensie heeft gekregen. Het bevat altijd ten minste twee Python-bestanden: main.py, het gecompileerde startpunt, en __memory__.py, dat de opgeslagen namespace-gegevens van de bibliotheek bevat. Eventuele extra hulpmodules worden samen met deze bestanden ingepakt. Omdat de container een standaard ZIP is, begint het bestand met de bekende PK-handtekening.

Beveiliging & veiligheid

RISICO: 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.

Formaatdetails

in een notendop
VOLLEDIGE NAAMKagsa Libraryook bekend als Kagsa compiled library, KAGSA library archive
ONTWIKKELAARKagsa (KAGSA project)sinds 2022
MIME-TYPEapplication/zip
TYPECompiled library archive (ZIP container)
GERELATEERD.do.md.hex.xsd
Deze extensie wordt ook gebruikt door…
  • 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.
MAGIC BYTES · BESTANDSSIGNATUUR
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.

Programma's die KGL-bestanden openen

Windows3 apps
WinRAR Betaald 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 Gratis 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.

Technische details

diepe specificaties
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
Uitgebracht2022
Laatste versieKagsa 1.2.0 (2023)
Specificatiewww.kagsa.org

KGL conversies

Community V&A

gevraagd door gebruikers
Stel een korte vraag
Krijg hulp van mensen die met KGL-bestanden werken. Wees specifiek - vermeld uw systeem en softwareversie.
Geen account nodig · antwoorden meestal binnen een dag

Nog geen vragen - wees de eerste om iets te vragen over KGL-bestanden.

Veelgestelde vragen

Wat is een .kgl-bestand?
Het is een gecompileerde bibliotheek voor de KAGSA-programmeertaal. Het verpakt Python-bestanden (main.py en __memory__.py) in een ZIP-archief zodat een Kagsa-programma de functies van de bibliotheek kan aanroepen.
Hoe open ik een .kgl-bestand?
Installeer de gratis Kagsa-interpreter om het in een project te gebruiken, of hernoem een kopie naar .zip en open het met 7-Zip, WinRAR of unzip om de .py-bestanden binnenin te zien.
Hoe maak ik een .kgl-bibliotheek?
Compileer een Kagsa-bronbestand met het commando kagsa -l lib.kg -o lib.kgl. De invoer moet eindigen op .kg en de uitvoer op .kgl.
Is een .kgl-bestand gewoon een ZIP-bestand?
Ja. Het gebruikt standaard ZIP-compressie en de PK-handtekening; alleen de extensie verschilt. Daarom kunnen archiefprogramma's het openen nadat je het hebt hernoemd naar .zip.
Wat zit er in een .kgl-bestand?
Minimaal main.py, het gecompileerde startpunt van de bibliotheek, en __memory__.py, dat de opgeslagen namespace-gegevens bevat, plus eventuele aanvullende Python-hulpbestanden.
Kan ik een .kgl terug converteren naar Kagsa-broncode?
Nee. Het archief bevat gecompileerde Python, niet de originele .kg-broncode, dus er is geen manier om de leesbare Kagsa-code hieruit te herstellen.

Referenties

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

Blijf ontdekken

door de database

Populaire extensies deze week

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.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.SWFSmall Web Format (Shockwave Flash)

Gerelateerde extensies

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

Gratis bestandstools

Een bestandsidentificatie en afbeeldingsconverter in de browser - alles draait op uw eigen apparaat.

Open de gereedschapskist

Blader door bestandsextensies A-Z