A utility library for data-preserving conversion between AGS 3.1 and AGS 4.x schemas
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ags324-0.2.0.tar.gz.
File metadata
- Download URL: ags324-0.2.0.tar.gz
- Upload date:
- Size: 336.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf9b3c5341984cf29bbbb69b8ebe03b3bbcb915999ab24e9111f5d8588ee549
|
|
| MD5 |
e934adba84f88222f0b2d84849b88a70
|
|
| BLAKE2b-256 |
8655841d171e6825b71c107806767f6a5b617f2eca8f1d02c153d3e458a2ec68
|
Provenance
The following attestation bundles were made for ags324-0.2.0.tar.gz:
Publisher:
workflow.yml on yixuanzhong/AGS324
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ags324-0.2.0.tar.gz -
Subject digest:
4cf9b3c5341984cf29bbbb69b8ebe03b3bbcb915999ab24e9111f5d8588ee549 - Sigstore transparency entry: 1368453928
- Sigstore integration time:
-
Permalink:
yixuanzhong/AGS324@39b7bce6272c2814d4973c14ec9863d42455f41c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yixuanzhong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@39b7bce6272c2814d4973c14ec9863d42455f41c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ags324-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ags324-0.2.0-py3-none-any.whl
- Upload date:
- Size: 365.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5df5b90a49796778be96b2de8427f2d51424248dfaedca273e016f31258885e2
|
|
| MD5 |
54112e1bacac8de8a6e2fdf9c8ddf79b
|
|
| BLAKE2b-256 |
1d562b9beb40841338e713af4f29ac58533b2de339b71f78ee9ad557cd670efb
|
Provenance
The following attestation bundles were made for ags324-0.2.0-py3-none-any.whl:
Publisher:
workflow.yml on yixuanzhong/AGS324
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ags324-0.2.0-py3-none-any.whl -
Subject digest:
5df5b90a49796778be96b2de8427f2d51424248dfaedca273e016f31258885e2 - Sigstore transparency entry: 1368453938
- Sigstore integration time:
-
Permalink:
yixuanzhong/AGS324@39b7bce6272c2814d4973c14ec9863d42455f41c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yixuanzhong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@39b7bce6272c2814d4973c14ec9863d42455f41c -
Trigger Event:
workflow_dispatch
-
Statement type: