.KGL

KGL ファイル

Kagsa Library
質問する
クイック回答

.kgl ファイルは、Python 上に構築されたインタープリタ言語 KAGSA プログラミング言語用のコンパイル済みライブラリです。これは、Kagsa ソースファイルがコンパイルされたときに生成される Python ファイル(main.py および __memory__.py)をバンドルした、名前を変更した ZIP アーカイブです。これにより、Kagsa プログラムがライブラリの関数を呼び出すことができます。無料の Kagsa インタープリタで開いて使用するか、コピーの名前を .zip に変更して任意のアーカイブツールで中身を確認できます。

開発元: Kagsa (KAGSA project) カテゴリ: 開発用ファイル MIME: application/zip
対応OS Windows macOS Linux Android
関連: .DO · .MD · .HEX · .XSD

このページの内容

19k+ 個の拡張子を索引済み
最終確認日:Jun 24, 2026

ファイルの種類がわかりませんか?

ファイルを識別ツールにドロップしてください。最初の数バイトを読み取って形式を特定します。

ファイルを識別する

KGL ファイル形式とは?

.kgl ファイルは、KAGSA プログラミング言語用のコンパイル済みライブラリです。KAGSA は Python 上に構築され、MIT ライセンスの下でリリースされているインタープリタ言語です。開発者は Kagsa コードを .kg ソースファイルに記述し、再利用可能な関数を .kgl ライブラリにパッケージ化することで、他のプログラムから呼び出せるようにします。

内部的には、.kgl ファイルは拡張子が変更された .zip アーカイブです。これには常に少なくとも 2 つの Python ファイルが含まれています。コンパイルされたエントリポイントである main.py と、ライブラリの保存された名前空間データを保持する __memory__.py です。追加のヘルパーモジュールがある場合は、それらと一緒にパックされます。コンテナは標準の ZIP であるため、ファイルは使い慣れた PK シグネチャで始まります。

セキュリティと安全性

リスク: 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.

形式の詳細

概要
正式名称Kagsa Library別名 Kagsa compiled library, KAGSA library archive
開発元Kagsa (KAGSA project)登場時期 2022
MIME タイプapplication/zip
タイプCompiled library archive (ZIP container)
この拡張子は以下でも使用されています…
  • 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.
マジックバイト ・ ファイルシグネチャ
オフセット
00010203
16進数
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.

KGL ファイルを開くプログラム

Windows3 apps
WinRAR 有料 Point WinRAR at the file (rename to .zip if needed) to browse and unpack the ZIP contents of the library.
7-Zip オープンソース Open the .kgl directly or rename a copy to .zip, then extract main.py and __memory__.py to read the packaged Python code.
Kagsa オープンソース 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 無料 Rename a copy to .zip and open it to extract the bundled .py files for inspection.
Kagsa オープンソース Install via pip install kagsa and use the interpreter to import and run the library in your Kagsa project.
Linux2 apps
unzip オープンソース Run unzip lib.kgl (or copy to lib.zip first) to list and extract main.py and __memory__.py.
Kagsa オープンソース Install with pip install kagsa or the official Linux installer, then reference the library from a .kg source file.
Android1 app
Kagsa on Termux オープンソース Install Kagsa inside Termux and run or import the library from the command line on Android.

技術的詳細

詳細仕様
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
リリース日2022
最新バージョンKagsa 1.2.0 (2023)
仕様書www.kagsa.org

KGL の変換

コミュニティ Q&A

ユーザーからの質問
質問する
KGL ファイルを扱うユーザーからヘルプを得られます。OSやソフトウェアのバージョンなど、具体的に記載してください。
アカウント不要 ・ 通常1日以内に回答されます

まだ質問はありません。KGL ファイルについて最初の質問をしてみましょう。

よくある質問

.kgl ファイルとは何ですか?
KAGSA プログラミング言語用のコンパイル済みライブラリです。Python ファイル(main.py および __memory__.py)を ZIP アーカイブにパッケージ化し、Kagsa プログラムがライブラリの関数を呼び出せるようにします。
.kgl ファイルはどうやって開きますか?
プロジェクトで使用するには無料の Kagsa インタープリタをインストールするか、コピーの名前を .zip に変更して 7-Zip、WinRAR、または unzip で開き、中の .py ファイルを確認します。
.kgl ライブラリはどうやって作成しますか?
コマンド kagsa -l lib.kg -o lib.kgl を使用して Kagsa ソースファイルをコンパイルします。入力は .kg で終わり、出力は .kgl で終わる必要があります。
.kgl ファイルは単なる ZIP ファイルですか?
はい。標準の ZIP 圧縮と PK シグネチャを使用しており、拡張子のみが異なります。そのため、名前を .zip に変更すればアーカイブソフトで開くことができます。
.kgl ファイルの中には何が入っていますか?
最低限、コンパイルされたライブラリエントリポイントである main.py と、ライブラリの保存された名前空間データを保持する __memory__.py、および追加のヘルパー Python ファイルが含まれています。
.kgl を Kagsa ソースに戻すことはできますか?
いいえ。アーカイブには元の .kg ソースではなくコンパイルされた Python が保存されているため、読み取り可能な Kagsa コードを復元する方法はありません。

参考文献

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

さらに探索

データベース全体から

今週のトップ拡張子

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

関連する拡張子

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

無料ファイルツール

ブラウザで動作するファイル識別および画像変換ツール。すべてお使いのデバイス上で実行されます。

ツールボックスを開く

ファイル拡張子を A-Z で閲覧