Skip to main content

PyPI Extension for the TRAC Model Runtime

This extension allows TRAC to load models dynamically from PyPI repositories, or a compatible proxy such as Nexus or Artifactory.

  • Support for JSON, Simple JSON and Simple HTML query formats
  • 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-pypi

The package has the following dependencies:

  • tracdap-runtime (version 0.10.0-beta2 or later)
  • urllib3 (optional, version 2.x)

Using the Git model repository

With the PyPI extension installed, you can add PyPI repositories as resources in sys_config.yaml like this:

resources:
  
  my_json_repository:
    resourceType: MODEL_REPOSITORY
    protocol: pypi
    properties:
      pipIndex: https://artifactory.mycompany.com/artifactory/api/pypi

  my_simple_repository:
    resourceType: MODEL_REPOSITORY
    protocol: pypi
    properties:
      pipIndexUrl: https://nexus.mycompany.com/repository/pypi/simple
      pipSimpleFormat: html

The examples show the use of both the JSON and Simple query formats. The particular query formats available and the paths for the index and index-url properties will depend on how your package server is configured. This information is often published along with other internal developer documentation to help set up a development environment (Look for the "index" or "index-url" settings when setting up other Python tools). Sometimes is is also visible in the web interface of the package server. If you can't find the settings you will need to contact your dev-ops team.

For the simple query format (i.e. an index configured with the "index-url" setting), there are two possible response formats: pipSimpleFormat: html or pipSimpleFormat: json. Use this setting to see what is available on your package server. For the JSON query format (i.e. an index configured with the "index" setting) there is only one response format available so this is not configurable.

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.

This extension assumes that packages on the package server are available as Python wheels.

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_pypi-0.10.0.tar.gz (13.1 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_pypi-0.10.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tracdap_ext_pypi-0.10.0.tar.gz
Algorithm Hash digest
SHA256 50ddea1b23005edae69d5ed69775116a2f530bbfa6103174160992b54e916041
MD5 86e16e649ab0a367f29f88e956c79f0c
BLAKE2b-256 f2c1a595e8a9af7f980275e8797124ff6cb04240c79352c08915b6cc7a17e1c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tracdap_ext_pypi-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3900d3b2219aa6c2f2b89b3d5967e43c6431a2e20ab834bd022d4a8e3e2a060
MD5 8a16aa749b8afebd818d3b045b103e59
BLAKE2b-256 7c46b5aa7ed4107a737330fd764a39ffd704902305515e3cc7ad7ce0d711bcbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracdap_ext_pypi-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