ASGsdk
Empowering Airlines to Make Better Decisions. Built by Airline People for Airline People.
What if everything ASGnexus can do were one Python call away in your own pipeline?
ASGsdk is the Python SDK for ASGnexus. Everything an analyst does in an ASGnexus web application, from creating a scenario to loading worksets and pulling reports, is an ASGsdk typed method call that returns pandas data frames. ASGsdk uses the same secure API as the application, so access rights and audit trails are preserved, while authentication, retries, long-running jobs and versioning are handled for you. Install the ASGsdk wheel to integrate the power of ASGnexus into your own scripts, notebooks and scheduled jobs.
What ASGsdk is used for
01Scheduled refreshes
When you receive new market size data or publish a new schedule, use ASGsdk to automate establishing new scenarios with the new data and have their reports in your warehouse in short order, unattended, under a service account.
02Bulk calibration and what-ifs
Create and run scenarios in bulk from a script: a frequency sweep, every candidate route, each fleet mix, then compare them side by side in one data frame. Adjust your scenario's multipliers and iterate, comparing your flown actuals with QSI-modeled performance to establish automated model calibration.
03Feed your pipelines and BI
Pull flight, segment, O&D, traffic-flow and pivot results as pandas data frames and push them to your data warehouse, dashboards or planning systems; write worksets back from your own data.
04Notebooks and AI agents
Analysts work in Jupyter with device-flow sign-in. The SDK ships its own machine-readable reference and skill manifest, so an AI coding agent writes correct ASGsdk code against the exact version installed.
Designed by airline people for airline people, ASGsdk focuses on what matters most:
Efficiency
Typed classes and clear methods cover the whole ASGnexus suite: asg.qsi, asg.costiq, asg.fam and asg.session, with friendly arguments in and data frames out.
Reliability
Every call goes through the same secure API as the web application: single sign-on, your group permissions and the audit trail, plus retries and typed errors so a script fails clearly, never silently.
Speed
Install the asgsdk wheel and your first scenario is minutes away; data is compressed over the wire, so large data sets move fast.
Flexibility
Integrate the ASGnexus products with each other and with your own systems, automatically cycling from ASGnet to ASGfam to ASGsim and back again.
From your data to ASGnexus results, in Python
- 01
Connect
Asg(...) signs in and opens one shared connection to ASGnexus.
- 02
Discover
List your groups, industry bases, scenarios and worksets to find the IDs a run needs.
- 03
Create or duplicate
Create a scenario, or duplicate an existing one, and upload new worksets from pandas, Excel or SSIM.
- 04
Run and wait
Kick off the models and poll until finished; the SDK handles keeping track of long-running jobs for you, even if you get disconnected.
- 05
Pull results
Flight, segment, O&D, traffic-flow, comparison and pivot reports as data frames, or the scenario as an Excel workbook.
- 06
Ship
Into your warehouse, dashboards, planning systems or the next script.
User interface
- Typed Python API with docstrings and dozens of working examples
- pandas data frames in and out, Excel and SSIM round trips
- Versioned with the ASGnexus API, changelog on every release
- Reference built into the package for people and AI agents
Support
ASGsdk ships with documentation, a getting-started guide and a repository of runnable examples for every namespace. ASG engineering supports integration teams from the first authenticated call to a production pipeline, and the SDK is versioned with the ASGnexus API so upgrades are predictable.