Skip to content

This respository contains various ETL jobs needed to complete the City and County of San Francisco's annual systems inventory update, as per CA Government Code 6270.5

Notifications You must be signed in to change notification settings

DataSF/inventory_update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inventory Update

This respository contains various ETL jobs needed to complete the City and County of San Francisco's annual systems inventory update, as per CA Government Code 6270.5 requiring a public inventory of "enterprise systems of record"

Scripts/jobs in this repository:

  • pydev/system_updt_emails.py:

    • Sends personalized emails to Data Cordinators with the necessary attachments asking them to update their department inventories
    • Uses the config file, configs/jobs_config.yaml to store various job parameters
  • pydev/screendoor_and_upload.py:

    • Finds and downloads the most recent screendoor submission for each department
    • Parses the submitted excel workbooks for both the systems and inventory update data
    • Calculates various required counts and adds them to the system and inventory datasets
    • Uploads the inventory data to the open data portal
    • Sends an email notification indicating whether the ETL job successfully ran or not
    • Uses the config file, configs/jobs_config.yaml to store various job parameters
  • run_job.sh:

    • A server deployment bash script
    • Crontab needs absolute paths to run the jobs at scheduled times. The bash script calls a specified job with absolute paths

About

This respository contains various ETL jobs needed to complete the City and County of San Francisco's annual systems inventory update, as per CA Government Code 6270.5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published