AGS324 - A utility library for upgrading AGS 3.1 data to AGS 4 (and back).
This package provides tools for:
- Upgrading AGS 3.1 files to AGS 4 format, with minimally required data for usage of Autodesk Civil 3D(R) Geotechnical Modeler(R).
- Upgrading AGS 3.1 files to a specific AGS 4 version (4.0.3, 4.0.4, 4.1, 4.1.1, 4.2).
- Downgrading AGS 4 files back to AGS 3.1, preserving optional group prefixes.
Note: Autodesk Civil 3D(R), Geotechnical Modeler(R) are trademarks of Autodesk, Inc. This package is not affiliated with or endorsed by Autodesk.
Basic usage
Import
from AGS324 import ags4_c3dgm, upgrade, downgrade
All three conversion functions accept an optional output path as their second argument. When omitted, the output file is written next to the input with a default suffix appended (_AGS4.ags for upgrades, _AGS3.ags for downgrades).
Upgrade an AGS 3.1 file for Civil 3D Geotechnical Modeler
ags4_c3dgm("input.ags") # writes input_AGS4.ags
ags4_c3dgm("input.ags", "custom_output.ags") # writes custom_output.ags
Upgrade an AGS 3.1 file to a specific AGS 4 version
upgrade("input.ags", version="4.1.1") # writes input_AGS4.ags
upgrade("input.ags", "custom_output.ags", version="4.1.1") # writes custom_output.ags
If version is omitted, upgrade() targets the latest bundled AGS 4 version (4.2). Supported versions: 4.0.3, 4.0.4, 4.1, 4.1.1, 4.2.
Downgrade an AGS 4 file to AGS 3.1
downgrade("input.ags") # writes input_AGS3.ags
downgrade("input.ags", "custom_output.ags") # writes custom_output.ags
downgrade("input.ags", version="4.1.1") # force a specific source-version crosswalk
If version is omitted, downgrade() auto-detects the source AGS 4 version from the file's TRAN_AGS field, falling back to the latest bundled version (4.2) if the field is missing or unrecognized.
Acknowledgements
The bundled ags4*_standard_dictionary.ags files are sourced from the AGS Data Format Working Group's ags-python-library.
Metadata
Release files for AGS324 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ags324-0.3.0.tar.gz | 336.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ags324-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 702.4 kB
Release files / ags324-0.3.0.tar.gz
| Download URL | ags324-0.3.0.tar.gz |
|---|---|
| Size | 336.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
331eb61b576a6cf1de6b8a54df725d625f2ea3ce096b9016bd68747d1d1ad875
|
|
BLAKE2b-256 checksum How to use checksums |
fae8daea0e4d232a145c4d5aaddf803df6c11f4fd83a18b0313577e273950128
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 26, 2026.
Transparency logRelease files / ags324-0.3.0-py3-none-any.whl
| Download URL | ags324-0.3.0-py3-none-any.whl |
|---|---|
| Size | 365.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5964c3cfdc295209277d77d44fea4ff2c0dde9c606a96366e3cbaf1c74d4a72e
|
|
BLAKE2b-256 checksum How to use checksums |
b58b6f7242778ef7172e8f2de4538d05287e73fe5bc6d826c9cf2157ce814e91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 26, 2026.
Transparency log