Skip to main content

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.0.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.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tracdap_ext_git-0.10.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e389518f99f35e30ef5e9a269c9bbfa74f2342c9605cc3808dcb3cd3f24665bc
MD5 06e0dc047d91916cefa55dcaa892113b
BLAKE2b-256 07d644126b1e592115288b5a733fd65feb3fd25aae699ee20bb8735e411f0b89

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracdap_ext_git-0.10.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tracdap_ext_git-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaf14bee4dfbc89a57dfc6031c541f8829dadcbe5ef4a6d7a5068c30b8117b98
MD5 ab8d12cfb7e80d0419b547b9c9473bf7
BLAKE2b-256 c96b9014ba13d951b6cb4b059b5f429a68dc977a6427e92f5286e7fce7d56587

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 files

Supported by

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