# BLS API Configuration # ---------------------- # 1. Register for a free API key at: https://data.bls.gov/registrationEngine/ # Required fields: first name, last name, organization, email address. # Your key will be emailed within a few minutes. # # 2. Copy this file to config.py: # cp config.example.py config.py # # 3. Provide your key one of two ways: # a) Preferred — set an environment variable (nothing to edit here): # export BLS_API_KEY="your-key" # b) Or replace YOUR_KEY_HERE below with your key. # # config.py is gitignored, so a key placed here is never committed. import os BLS_API_KEY = os.environ.get("BLS_API_KEY", "YOUR_KEY_HERE") BLS_API_BASE = "https://api.bls.gov/publicAPI/v2"