The recommended workflow for sharing code across multiple Python transforms repositories is publishing a Python library package—specifically, a Conda ↗ library. Publishing Python libraries is supported in Python transforms repositories with version 1.23.1 and higher.
Here are the required steps for publishing a Python library:
Create a new repository that will contain the Python code for your shared library.
Name your repository. Your library will be named after the repository name when initialized. Other code repositories will use this name to discover and use your library. You can rename it later by accessing the gradle.properties file and editing the condaPackageName parameter (this file is hidden, so you may need to select "Show hidden files" in the file editor first). The condaPackageName can only contain ASCII lowercase letters, numbers, or hyphens, and any sequence of characters that are neither alphanumeric nor hyphens will be replaced by a single hyphen. For example, my_library repo will be published as my-library-repo, and Foobar _baz$$$ will be published as foobar-baz-.
Select the Create button in the Python Library template section.
Create a package: Any folder in your library containing an __init__.py file will be published as a package. Your repository will be initialized with such a folder - rename it and add additional packages if needed.
Create modules: Within your package folder, you can add Python files that contain your code. These modules will later be imported by other repositories.

build.gradle file.
Note that tag names must conform to SLS versioning, as specified in the SLS Versions documentation ↗.
Your library version will be published once the checks finish successfully. You can view the status of checks in the Tags list and in the Checks tab of your repository. By default, changes to your library will only be published when you create a tag, which you can do for the current state of one of your branches or for a specific commit. Once the checks pass, users will be able to upgrade to the newest version, but consuming repositories do not automatically upgrade when a new version is published. To manually upgrade your repository to use the newest version, review the documentation on discovering and using Python libraries and on Conda lock files for re-resolving the Conda environment.
Ensure that you give permissions to your library consumers. By default, users should have "Viewer" role on your shared repository. Add a reference to the library repository under the transform repository settings Artifacts tab.

Your library at this point should be available for other apps and repositories to consume. Read more about discovering and using Python packages.
To see which repositories are consuming your published library, navigate to the Artifact Repositories interface and use the Search tab to locate your library. Find the version you are interested in and expand the Downloads column to view the </> Consumers section.