<?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 Recommended directory structure for polyglot projects: SAS and Python in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994549#M380530</link>
    <description>&lt;P&gt;As I've doing doing more with Python, it raises the question of how to structure a project directory for a project where you use Python and SAS (and not necessarily one called by the other).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've used a standard SAS directory structure for years, but haven't thought about Python structures, or SAS/Python structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AI suggests below, which looks like a reasonable starting point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;my_polyglot_project/
├── .gitignore
├── README.md
├── pyproject.toml             # Python dependencies and project metadata
├── config/                    # Shared configurations
│   ├── db_config.yaml
│   └── sas_config.cfg         # SAS system or SASPy configurations
├── data/                      # Local data directory (do not commit to Git)
│   ├── raw/                   # Immutable raw data (e.g., .csv, .sas7bdat)
│   └── processed/             # Output data from Python/SAS runs
├── notebooks/                 # Jupyter Notebooks for prototyping
├── src/                       # Main Python codebase (Source layout)
│   └── my_project/
│       ├── __init__.py
│       ├── main.py            # Main entry point orchestration script
│       ├── pipeline.py        # Logic coordinating Python and SAS tasks
│       └── utils.py
├── sas/                       # Main SAS codebase
│   ├── macros/                # Reusable SAS macros (.sas files)
│   ├── main_process.sas       # Main entry point SAS script
│   └── scripts/               # Individual SAS ETL or analytical tasks
└── tests/                     # Test suite
    ├── test_python/           # Pytest unit tests
    └── test_sas/              # SAS validation scripts
&lt;/PRE&gt;
&lt;P&gt;Looking for other thoughts of directory schemes for polyglot projects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2026 14:38:24 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2026-10-05T14:38:24Z</dc:date>
    <item>
      <title>Recommended directory structure for polyglot projects: SAS and Python</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994549#M380530</link>
      <description>&lt;P&gt;As I've doing doing more with Python, it raises the question of how to structure a project directory for a project where you use Python and SAS (and not necessarily one called by the other).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've used a standard SAS directory structure for years, but haven't thought about Python structures, or SAS/Python structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AI suggests below, which looks like a reasonable starting point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;my_polyglot_project/
├── .gitignore
├── README.md
├── pyproject.toml             # Python dependencies and project metadata
├── config/                    # Shared configurations
│   ├── db_config.yaml
│   └── sas_config.cfg         # SAS system or SASPy configurations
├── data/                      # Local data directory (do not commit to Git)
│   ├── raw/                   # Immutable raw data (e.g., .csv, .sas7bdat)
│   └── processed/             # Output data from Python/SAS runs
├── notebooks/                 # Jupyter Notebooks for prototyping
├── src/                       # Main Python codebase (Source layout)
│   └── my_project/
│       ├── __init__.py
│       ├── main.py            # Main entry point orchestration script
│       ├── pipeline.py        # Logic coordinating Python and SAS tasks
│       └── utils.py
├── sas/                       # Main SAS codebase
│   ├── macros/                # Reusable SAS macros (.sas files)
│   ├── main_process.sas       # Main entry point SAS script
│   └── scripts/               # Individual SAS ETL or analytical tasks
└── tests/                     # Test suite
    ├── test_python/           # Pytest unit tests
    └── test_sas/              # SAS validation scripts
&lt;/PRE&gt;
&lt;P&gt;Looking for other thoughts of directory schemes for polyglot projects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2026 14:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994549#M380530</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-10-05T14:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended directory structure for polyglot projects: SAS and Python</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994550#M380531</link>
      <description>&lt;P&gt;A few free flying thoughts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) You're missing directory for SAS packages &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) I'm not sure if this will be useable in an "enterprise" setup:&lt;/P&gt;
&lt;PRE&gt;sas_config.cfg&lt;/PRE&gt;
&lt;P&gt;rather autoexec.sas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Since SAS has "scripts" and "macros" I'd guess in case of Python you also can have "general use programs" and scripts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) I'd also add somethin like "one_off_programs" to separate reusable form not reusable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5) Why Python's dir is "scr", not "python"? Maybe a top level directory like:&amp;nbsp; "programs", and then sas and pythons inside it; that would allow for adding other languages;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6) In data maybe it's good idea to create subdirs in "processed", for different kinds of output: datasets, pdfs, htmls, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2026 14:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994550#M380531</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2026-10-05T14:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended directory structure for polyglot projects: SAS and Python</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994551#M380532</link>
      <description>&lt;P&gt;Thanks Bart.&amp;nbsp; Yes, this isn't the ideal SAS structure, and I would certainly modify the SAS components (including the director for packages. : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm more curious for thoughts from Python side.&amp;nbsp; This is basically a very Pythonic structure, with a couple directories added for SAS.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when I use poetry to create a new python project directory it makes:&lt;/P&gt;
&lt;PRE&gt;my-project/
├── pyproject.toml    # Project metadata and dependencies
├── README.md         # Project documentation
├── src/
│   └── my_project/   # Main package code directory
│       └── __init__.py
└── tests/            # Unit tests directory
    └── __init__.py&lt;/PRE&gt;
&lt;P&gt;In the joint SAS &amp;amp; Python setting, my inclination would be like yours.&amp;nbsp; Change /src to /python, and add a /sas directory.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what I don't know from the Python side, is whether various python tools (linters, compilers, even VS code) will work better if they can find the standard /src directory, such that renaming it to /python could make my life harder down the road.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2026 15:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recommended-directory-structure-for-polyglot-projects-SAS-and/m-p/994551#M380532</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-10-05T15:18:24Z</dc:date>
    </item>
  </channel>
</rss>

