{"repo":"billwallis/dbt-py","free":true,"listed":false,"github":"https://github.com/billwallis/dbt-py","clone":"git clone https://github.com/billwallis/dbt-py.git","description":"Python wrapper for dbt-core to extend dbt with custom Python.","language":"Python","stars":18,"topics":["dbt","python"],"license":"GPL-3.0","category":"data-pipelines","readme_excerpt":"--- dbt-π 🧬 Python wrapper for dbt-core to extend dbt with custom Python. Shimmy shimmy shim 🕺🕺🕺 This package is a shim for dbt-core, inspired by ( cough stolen from cough ) my old boss, @darkdreamingdan: - https://gist.github.com/darkdreamingdan/c5ded709a90fc3c5b420cee5f644f499 Before using this package, it's recommended to get up to speed with the Python modules that are already available in dbt: - https://docs.getdbt.com/reference/dbt-jinja-functions/modules The existing Python modules are available in the dbt Jinja context under the modules object, for example: Installation ⬇️ Grab a copy from PyPI like usual: Note the -wrap suffix, which is used to avoid name clashes with the DbtPy PyPI package. Usage 📖 [!IMPORTANT] If you create the Python files in your dbt repo, you must : - make your custom modules/packages discoverable by Python - install your own project [!TIP] See the following repo for a minimal example that uses requirements.txt and setuptools: - https://github.com/billwallis/dbt-py-test This package adds a new executable, dbt-py , which injects your custom Python into dbt and then runs dbt. Custom modules, custom packages, standard library packages, and installed packages can be injected. Configuration ( =0.1.0) From version 0.1.0 onwards, the packages to inject are configured via the pyproject.toml file in the tool.dbt-py section. Use the packages attribute to list the name (required) and path (optional) of the modules to import; for example: The custom mo","default_branch":null,"files":null,"tree":[],"storefront":"/r/billwallis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/billwallis/dbt-py/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}