Skip to main content
https://travis-ci.com/hydrospanner/dcad_parser.svg?branch=master

This repo provides tools for fast DB integration of data from the Dallas Central Appraisal District (DCAD). This includes

  • A CLI to generate SQLAlchemy models by parsing a data dictionary and flask-sqlacodegen.

  • A parser for DCAD’s table exports for parsing, coersion, and validation.

Data Model CLI

Parse the Dallas Central Appraisal District (DCAD) data dictionary into sqlalchemy metadata. Use the generated metadata to generate Flask-SQLAlchemy model code, using flask-sqlacodegen.

This will convert this data dictionary structure:

TABLE [ABATEMENT_EXEMPT]                Table containing information for abatement if applicable
        [ACCOUNT_NUM]                   The DCAD Account number
        [APPRAISAL_YR]                  The appraisal year for the data
        [TOT_VAL]                       The total value for the property

into

from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()



class AbatementExempt(db.Model):
    __tablename__ = 'abatement_exempt'

    account_num = db.Column(db.Integer, primary_key=True, nullable=False, info='The DCAD Account number')
    appraisal_yr = db.Column(db.Integer, primary_key=True, nullable=False, info='The appraisal year for the data')
    tot_val = db.Column(db.Float, info='The total value for the property')

Example (using the entery point)

generate_sqlalchemy path/to/file.txt --outfile models.py --flask

To see the full list of options

generate_sqlalchemy --help

Table Parser

This parser functions as a dictionary parser for the invidual table exports. It also coerces and validates the data. It uses the same naming convention logic to identify field types as the Data Model process.

Where to get it

[PyPI](https://pypi.org/project/dcad-parser-hydrospanner/)

pip install dcad-parser-hydrospanner

Release files for dcad-parser-hydrospanner 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcad-parser-hydrospanner 0.1.1
File Size Uploaded
dcad-parser-hydrospanner-0.1.1.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dcad-parser-hydrospanner 0.1.1
File Interpreter ABI Platform
dcad_parser_hydrospanner-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / dcad-parser-hydrospanner-0.1.1.tar.gz

Download URL dcad-parser-hydrospanner-0.1.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5f0de9e04fa9f8d9ab8d2652c25f1fb6fd7f35cb261e15f58fd0fbdca4367975
BLAKE2b-256 checksum
How to use checksums
ac44af986f34c42c9da75b04ce2e75bed41290fdf0813536962f6f6ee1485fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5

Release files / dcad_parser_hydrospanner-0.1.1-py3-none-any.whl

Download URL dcad_parser_hydrospanner-0.1.1-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec3e32cc965327d354ae29c421598009c607a9d712e636b0559e8cffc86de231
BLAKE2b-256 checksum
How to use checksums
7613db547c8a83def52d86b4fcd3ff424eaa4a7cd378dbc9f8b0b9a05f2d4182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page