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.0.1.tar.gz (74.8 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.0.1-py3-none-any.whl (105.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for knitpkg_mt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cc4639c5f6230cf6465f2f64da27205aa62c793a4de3463abad2ff8bedfd7671
MD5 05bb33e1a348c6a67e9a7bf656e34188
BLAKE2b-256 1cdfa307e57dbfe64d34966cf4095f3bb720af9c282222353849845f40a18f49

See more details on using hashes here.

Provenance

The following attestation bundles were made for knitpkg_mt-1.0.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.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for knitpkg_mt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4de808c0b2fbc7708f9701a9fec0ae2f9208293289ca262cc2671ae27ebef9f
MD5 b0711ddf1f3069209ecff95e09ea595f
BLAKE2b-256 9c8859cb0ceddbc59d2d21730812f42dcf313820bf39002913a84eb8c1613478

See more details on using hashes here.

Provenance

The following attestation bundles were made for knitpkg_mt-1.0.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