This release is a pre-release and may not be stable for production use.
PyPI Extension for the TRAC Model Runtime
This extension allows the tracdap-runtime 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
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.
Release files for tracdap-ext-pypi 0.11.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tracdap_ext_pypi-0.11.0b2.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tracdap_ext_pypi-0.11.0b2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.3 kB
Release files / tracdap_ext_pypi-0.11.0b2.tar.gz
| Download URL | tracdap_ext_pypi-0.11.0b2.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b13725170ec8b6f4c3c72b2074816b22f4ef85cce26796f95579c39f89975ebd
|
|
BLAKE2b-256 checksum How to use checksums |
d7a7bfd6e789e08bfe047056685502c2d3c88b6604fda3a5fdcbf23c73fbc56f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / tracdap_ext_pypi-0.11.0b2-py3-none-any.whl
| Download URL | tracdap_ext_pypi-0.11.0b2-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc209e1cafbd93031e7f0640c1072625ac4a0d482ebd00d40dd38037c378fd48
|
|
BLAKE2b-256 checksum How to use checksums |
5251eb440d8b8cb64f301e4cbb2f122ae59b9ea336bcec7d11a334a18b710d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency log