Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 853 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 853 Bytes

About

This repository has some very simple Python scripts to help you view the ATF's Federal Firearms Listings' database.

Download the current list of FFLs from the ATF website: https://www.atf.gov/firearms/listing-federal-firearms-licensees

ATF website screenshot

You'll get a text file.

Install the dependencies and run the script:

$ pip install -r requirements.txt
$ python3 ffl_analyzer.py -f <PATH-TO-ATF-TEXT-FILE>

The scripts in this repo will load it as a Pandas dataframe, and add the following columns:

  • IRS District nme
  • ATF Region code
  • FFL Expiration date (YYYY-MM-DD)
  • FFL Type description

It will then save the dataframe as an SQL database which you can load into any database viewer.

Database screenshot

Roadmap

  • Add support for decoding FIPS codes