Skip to main content

A python parser for the FAA NASR

Project description

nasrparse

nasrparse is a parser for the National Airspace System Resources CSV files, released every 28 days by the FAA. It allows pilots, dispatchers, and others interested in flight data to quickly parse the files into Python dictionaries or a SQLite database for use in other programs. For example, the parsed data can then be used as a database for flight planning tools.

If you are interested in seeing the differences between each data cycle, have a look at NASRDiff.

Versions

Version Description Release Date
1.0.1 __repr()__ Bugfix for enums. 2025-11-06
1.0.0 Initial public release. 2025-11-06

A changelog is available in the CHANGELOG.md with additional detail and guidance.

Installation

Install using pip:

pip install nasrparse

Usage

Usage is relatively straightforward. Setting the path to the files can be somewhat finnicky, as it will only accept relative paths. To keep things simple, place the NASR files in subdirectory of your project directory. Otherwise, if you want to go up several folders into a download folder, it might end up looking like ../../../../Downloads/28DaySubscription_Effective_[date]/CSV_Data/[date]_CSV.

Given the amount of data, parsing can take a moment. If dumping the data to a file, that can also add time. Dumping every airport to JSON can take around 10 seconds, and the result file is about 16MB.

Examples

Start by importing nasrparse, setting the path to the NASR CSV directory, and then parsing the data.

import nasrparse

# Initialize the parser:
from nasrparse import NASR

# Set the relative path to where you have the NASR CSV files:
n = NASR("./data/CSV_DATA/20_MAR_2025_CSV")

# Parse the data in the file:
n.parse()

Exporting Data

Database

Each object has its own to_db() method. This is useful when you would like the data to persist, or query it using standard database methods:

from nasrparse import NASR

n = NASR("./data/CSV_DATA/20_MAR_2025_CSV")
n.parse()
n.to_db("NASR.db")

NASR Objects

The individual NASR objects are exposed in the package and include the FAA descriptions in the code documentation. More detail can also be found in the individual [section] DATA LAYOUT.pdf (e.g. APT DATA LAYOUT.pdf) files included with the CSV files in the same directory.

Code Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nasrparse-1.0.1.tar.gz (119.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nasrparse-1.0.1-py3-none-any.whl (212.5 kB view details)

Uploaded Python 3

File details

Details for the file nasrparse-1.0.1.tar.gz.

File metadata

  • Download URL: nasrparse-1.0.1.tar.gz
  • Upload date:
  • Size: 119.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for nasrparse-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3b1703dc4f56c50a35ddef10c4e33362cccd2db95c9126b0217662d0f9f2b1a3
MD5 7038010c63d5ed026050f2f869ef8a4d
BLAKE2b-256 22259a909e3cd335820d4fe7ef2a5a869d5b42fdae76f52d62d7cb1b6caebee0

See more details on using hashes here.

File details

Details for the file nasrparse-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: nasrparse-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 212.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for nasrparse-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e87cdb48b257256ba4e79a264eb9ad8c079dc2ba3d5bdfd771e1a80791f25936
MD5 3b7a407cc585eb020d93ff8357685ef2
BLAKE2b-256 6a2f76b38aaec5337cc716a15f3285559829c6414f1d6e37ba3397908e12e481

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page