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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tracdap_ext_git-0.10.0b4.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.0b4.tar.gz
Algorithm Hash digest
SHA256 519326d491a51b5dbc3f94f37de7650b3c97daa38563003e8ea87941d4f8a0c0
MD5 a880657cb180aaadc550d461b28fd8df
BLAKE2b-256 2629b3db9592acf443b02486798754522399f58c08d06856851b1d16b2504518

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tracdap_ext_git-0.10.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 c28396fa3c0abcd3c8c31083c9a2bb67d259aed9e237a3d0c85011eb08977045
MD5 b419dd12263323d3905dac64a530ef3a
BLAKE2b-256 0e6b64c0b0acd63d69dc1a05770953d66b4a307f125ce2d44dde754613137e91

See more details on using hashes here.

Provenance

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