Dallas Central Appraisal District Parser
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dcad-parser-hydrospanner-0.1.1.tar.gz | 9.1 kB | Without provenance | Details for dcad-parser-hydrospanner-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dcad_parser_hydrospanner-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dcad_parser_hydrospanner-0.1.1-py3-none-any.whl |
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
|
Security for dcad-parser-hydrospanner 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.