Skip to main content

Attribute Name Validator

Project description

attribute-name-validator

test distribute

This pacakge provides a CLI for column name analysis. It also acts as library for catalog of approved abbreviations and codified column naming rules.

The CLI, when provided a text file with column names used in the physical data layer for a given entity, generates a report, based on Data Modeling and Naming Standards defined within this repository.

See ATTRIBUTE NAMING GUIDELINES AND ANALYSIS REPORT USAGE for further information pertaining to the issues faced during the naming of columns and how this package can be used to get feed back on column names, and help standardize column naming.

See CONTRIBUTING.md for information pertaining to development of this package.

Install

Install the package using pip from github

pip3 install git+https://github.com/siddartham/attribute-name-validator.git

Usage

Report of each execution has the catalog of class words, acronyms included. This way, we can see the source data set, based on which reports were produced and lookup approved acronyms.

Work Flow

Screenshot

$ anv -h
usage: attribute-name-validator [-h] [-l] [--write-to-text-files] target_path

This command generates report on naming analysis from either a list of column name files in a folder,
or a given column names file, by looking up the words used to the column names in a local Abbreviation catalog
 that comes with the installation of package. On the execution of this command, you will also have a reports
folder created with CATALOG.xlsx and COLUMN_NAMING_GUIDELINES_AND_ANALYSIS_REPORT_USAGE.html files,
which have more information related to the working of the tool

To add a set of Class Words Abbreviations and Acronyms, as exceptions beyond current enterprise guidelines
create ncna.ini file and add exceptions under respective sections, as shown below

[additional-catalog]
acronyms = LOB
class-word-abbreviations = IN, IN3, CM3, LB

positional arguments:
  target_path           Path to file with column names or folder with column name files to analyze

optional arguments:
  -h, --help            show this help message and exit
  -l, --log             This flag, if present, shows logs of execution in sys.stdout.
  --write-to-text-files, -wttf
                        This flag, if present, also creates text files of reports under their respective entity specific folder.

Provide a relative/absolute path to file with the list of column names to be used for the entity, with each column in a new line.

$ anv <PATH_TO_<ENTITY_NAME>>
$ ls reports/
ATTRIBUTE_NAMING_GUIDELINES_AND_REPORT_USAGE.html        CATALOG.xlsx                            TABLE_NEW_REPORT.xlsx
$ anv <PATH_TO_ENTITY_FOLDER>
$ ls reports/
ATTRIBUTE_NAMING_GUIDELINES_AND_REPORT_USAGE.html       ENTITY_1_REPORT.xlsx                                    ENTITY_3
CATALOG.xlsx                                            ENTITY_2                                                ENTITY_3_REPORT.xlsx
ENTITY_1                                                ENTITY_2_REPORT.xlsx

TASK LOG

See TASKLOG.md for information pertaining to the development history of the package and the next set of tasks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

attribute-name-validator-0.0.0.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

attribute_name_validator-0.0.0-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file attribute-name-validator-0.0.0.tar.gz.

File metadata

  • Download URL: attribute-name-validator-0.0.0.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for attribute-name-validator-0.0.0.tar.gz
Algorithm Hash digest
SHA256 553e403895d6ffc44e464e330467b8b53fd6a9465242ce19b2bb40cf46e0ca65
MD5 19f2eb809bd07733ae350515edf42570
BLAKE2b-256 1f0cfe8c7c756105ccf5b18b13802a9281abc062caca75bc6ed5eae535b96f54

See more details on using hashes here.

File details

Details for the file attribute_name_validator-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for attribute_name_validator-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3bdea174b5829a2d28667e188805b343e9305afdc546a6d4cbf871ebd0f2b75
MD5 826b9de4959314d1bc82d39bd16529f3
BLAKE2b-256 1b7f3d0ed359ad96cc9cd4b88836122c082e201b3470086d2593c8500dc459c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page