<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Databricks asset bundles in Python: referencing variables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-in-python-referencing-variables/m-p/134251#M50066</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149877"&gt;@daan_dw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To reference variables defined in your databricks.yml in Python DAB code, define your variables class and use bundle.resolve_variable&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/python/#access-bundle-variables" target="_self"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/python/#access-bundle-variables&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2025 17:11:25 GMT</pubDate>
    <dc:creator>SP_6721</dc:creator>
    <dc:date>2025-10-08T17:11:25Z</dc:date>
    <item>
      <title>Databricks asset bundles in Python: referencing variables</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-in-python-referencing-variables/m-p/134238#M50060</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I am using DAB's and in my .yml files I can reference my variables set in my databricks.yml like this:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;git_branch&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;${var.branch}&lt;BR /&gt;&lt;/SPAN&gt;I would like to do the same thing in my DAB's written in Python but I cannot find any documentation on how to do this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I do this?&lt;BR /&gt;&lt;BR /&gt;Thanks!&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Oct 2025 15:04:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-in-python-referencing-variables/m-p/134238#M50060</guid>
      <dc:creator>daan_dw</dc:creator>
      <dc:date>2025-10-08T15:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles in Python: referencing variables</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-in-python-referencing-variables/m-p/134251#M50066</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149877"&gt;@daan_dw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To reference variables defined in your databricks.yml in Python DAB code, define your variables class and use bundle.resolve_variable&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/python/#access-bundle-variables" target="_self"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/python/#access-bundle-variables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 17:11:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-in-python-referencing-variables/m-p/134251#M50066</guid>
      <dc:creator>SP_6721</dc:creator>
      <dc:date>2025-10-08T17:11:25Z</dc:date>
    </item>
  </channel>
</rss>

