Skip to main content

KnitPkg for MetaTrader – Professional package manager for MQL5/MQL4

Project description

KnitPkg for MetaTrader (kp)

A modern package & project manager for MQL5/MQL4 — built for real-world MetaTrader development.

KnitPkg is a modern package and project manager for MQL5/MQL4, bringing an npm-like dependency workflow to real-world MetaTrader development.

MetaTrader projects often evolve through manual copy/paste, ad-hoc folder sharing, and “it works on my machine” dependency drift. KnitPkg exists to fix that by making code reuse and collaboration predictable, reproducible, and automated—without changing how MQL developers already publish code (Git repos).


What KnitPkg is

KnitPkg is built around a Git-first model:

  • Your code lives in Git repositories (Mql5Forge, GitHub, GitLab, Bitbucket).
  • KnitPkg acts as a metadata registry that indexes projects via their manifests (it does not host your source or binaries).
  • A CLI tool installs dependencies, resolves versions (SemVer + ranges), generates reproducible installs via a lock file, and can automate compilation.

The public registry API is available and currently operational.

Why developers use KnitPkg

KnitPkg focuses on the pain points that show up fast in MQL development:

  • Versioned dependencies (SemVer + ranges like ^, ~, <, >, *, !=)
  • Reproducible builds with a lock file
  • Composed packages (dependency trees), including helpers like autocomplete and @knitpkg:include
  • Safe ecosystem maintenance with yanked versions (removed from range resolution without breaking history)
  • Git-host login via OAuth for publishing (no extra KnitPkg account); public installs need no auth

Installation

Follow the Installation section of KnitPkg Documentation.


Explore Seed Projects (Examples by the Author)

If you want real-world examples of how KnitPkg projects and reusable packages can be structured, you can explore the author’s public “seed” projects in the registry.

Option A) Search using the CLI

MQL5 seeds:

kp search mql5 -o douglasrechia

MQL4 seeds:

kp search mql4 -o douglasrechia

From the results, you can inspect details with kp info, or fetch and compile a project locally with kp get.

Option B) Browse the registry website

As an alternative, you can browse the registry directly in your browser:

See Getting started for a quick introduction and first steps using KnitPkg.


Support the Project

KnitPkg aims to strengthen the MQL ecosystem with better tooling. You can help keep the CLI and the public registry running by:

  • Giving the repo a GitHub star
  • Donating via GitHub Sponsors / Donations (not yet available)

KnitPkg — The dependency manager MQL always needed

Home page - Browse Registry

X/Twitter - GitHub - Join Discord - contact@knitpkg.dev

MIT Licensed — Forever free for the community

KnitPkg – The future of MQL5 development.


DISCLAIMER:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

knitpkg_mt-1.1.1.tar.gz (75.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

knitpkg_mt-1.1.1-py3-none-any.whl (105.8 kB view details)

Uploaded Python 3

File details

Details for the file knitpkg_mt-1.1.1.tar.gz.

File metadata

  • Download URL: knitpkg_mt-1.1.1.tar.gz
  • Upload date:
  • Size: 75.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for knitpkg_mt-1.1.1.tar.gz
Algorithm Hash digest
SHA256 af5ff745379c6703714a36c73e16fa2285ba333fd5925adbfba7ef469a6850db
MD5 7e2c4e32124253013670d0f0e07fb27b
BLAKE2b-256 67c4b8f32b5bc96edb8387661dc1ef1499e2f639421a31669f794b1a9d7f9a9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for knitpkg_mt-1.1.1.tar.gz:

Publisher: release.yml on knitpkg-dev/knitpkg-mt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file knitpkg_mt-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: knitpkg_mt-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 105.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for knitpkg_mt-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d243a202dc83ecfcafba0d272892a1ebcacf5427d0ff1dcc4c87236ad207318
MD5 a492d8e3a844e5a28059ebc022ef993f
BLAKE2b-256 a26307baafcb9cf1bbbd0f03ba957b2a77834b88619bb2d7a9982520ed722aad

See more details on using hashes here.

Provenance

The following attestation bundles were made for knitpkg_mt-1.1.1-py3-none-any.whl:

Publisher: release.yml on knitpkg-dev/knitpkg-mt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page