Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GJMcClintock/dbt_tld
An updating dbt library that will maintain a list of current ICANN recognized top level domains
https://github.com/GJMcClintock/dbt_tld
Last synced: 3 months ago
JSON representation
An updating dbt library that will maintain a list of current ICANN recognized top level domains
- Host: GitHub
- URL: https://github.com/GJMcClintock/dbt_tld
- Owner: GJMcClintock
- License: mit
- Created: 2023-04-04T00:31:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-10T02:18:23.000Z (about 1 year ago)
- Last Synced: 2024-01-28T23:08:03.074Z (9 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dbt - dbt_tld - A self-updating dbt library that will maintain a list of current IANA/ICANN recognized top level domains. (Utilities)
README
## dbt_tld
A self-updating dbt library that will maintain a list of current IANA/ICANN recognized top level domains. This was made in an effort to make filtering impossible email addresses easier.The library contains a seed file (which will be updated every time you run `dbt deps`). It also contains a `parse_tld` macro for separating the TLD from the rest of the string (useful for doing an inner join to remove bad emails or creating a column to compare).
After installation, creation of the seed file will allow you to reference the created model in your project.
Maintenance of the list is performed via GitHub action sourcing the official [IANA list](https://data.iana.org/TLD/tlds-alpha-by-domain.txt).
# Seed Location
By default, the seed will materialize in your default database/schema for your target. You can change this by adding the following to your `dbt_project.yml`:```
seeds:
dbt_tld:
+database:
+schema:
```