Skip to main content

An extension for TRAC D.A.P. that loads models from Git repositories

Project description

Git Extension for the TRAC Model Runtime

This extension allows TRAC to load models dynamically from Git repositories.

  • Includes a pure-Python implementation using the excellent dulwich library
  • Includes a native Git implementation that wraps a Git binaries on the host system
  • Support for private repositories using tokens
  • Handles corporate firewalls, proxies and SSL

This extension is a pre-release and will be finalized inTRAC 0.10.

Installing

The HTTP extension can be installed with pip:

$ pip install tracdap-ext-git

The package has the following dependencies:

  • tracdap-runtime (version 0.10.0-beta2 or later)
  • dulwich (0.24.x series)
  • urllib3 (version 2.2 or later)

Using the Git model repository

With the Git extension installed, you can add a Git model repository as a resource in sys_config.yaml like this:

resources:

  my_repository:
    resourceType: MODEL_REPOSITORY
    protocol: git
    properties:
      repoUrl: https://github.com/a-user/my-repository

By default the extension will use the pure-python implementation of Git, to use native Git binaries set nativeGit: true as a property on the repository. To supply credentials, use either the username and password properties, or the token property. In production deployments these properties should be supplied using the TRAC secrets mechanism.

Using the pure-Python implementation, all of TRAC's network properties are respected. In particular, to supply an enterprise root trust certificate you can set network.ssl.caCertificates to the path of a certificate in PEM format. Setting network.ssl.publicCertificates: true will include the global, public CAs in addition to the enterprise root.

All properties starting with the prefix git. are treated as Git configuration and written into the Git config file for the repository when it is checked out. For example, setting git.http.sslCAInfo will set the sslCAInfo property in the http section of the Git configuration. This is an alternate way of specifying SSL details that works with the native Git implementation, but can also be used to set arbitrary Git configuration values with either implementation. Some Git config values may not be respected by Dulwich, so it is recommended to use the TRAC config settings with the pure-Python implementation and native Git config settings with the native Git implementation.

Download files

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

Source Distribution

tracdap_ext_git-0.10.0rc1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

tracdap_ext_git-0.10.0rc1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file tracdap_ext_git-0.10.0rc1.tar.gz.

File metadata

  • Download URL: tracdap_ext_git-0.10.0rc1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tracdap_ext_git-0.10.0rc1.tar.gz
Algorithm Hash digest
SHA256 61ee55c1bf97fd8e4218083ce50d89921ad73efadd4748cd85282f567444fac5
MD5 ac238c12d460ca9133bf1108c3cb7786
BLAKE2b-256 6521d16f99b733175876ee3d459873a9518a1909b8fd68973dffadd7cbf17352

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracdap_ext_git-0.10.0rc1.tar.gz:

Publisher: packaging.yaml on finos/tracdap

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

File details

Details for the file tracdap_ext_git-0.10.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for tracdap_ext_git-0.10.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cc38fb9ce95a6357a84286e2d20a253c7dcbf314ab8e47e813cb45ff23378fb
MD5 777877833bccb5b4c0d06fafa2feb49f
BLAKE2b-256 0cb721cbf22538e61a5226e5d002ab07ff2434a06c753fb3aa13d45a50ec0f67

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracdap_ext_git-0.10.0rc1-py3-none-any.whl:

Publisher: packaging.yaml on finos/tracdap

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