# Introducing Hawk for Python package management in Code Repositories

**URL:** <https://community.palantir.com/t/introducing-hawk-for-python-package-management-in-code-repositories/500>\
**Category:** Inside the Product\
**Tags:** code-repositories\
**Created:** [June 25, 2024, 6:20am UTC](https://community.palantir.com/t/introducing-hawk-for-python-package-management-in-code-repositories/500 "2024-06-25T06:20:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krandoing](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@krandoing](https://community.palantir.com/u/krandoing)\
**Post date:** [June 25, 2024, 6:20am UTC](https://community.palantir.com/t/introducing-hawk-for-python-package-management-in-code-repositories/500/1 "2024-06-25T06:20:48Z")

</div>

## [Introducing Hawk for Python package management in Code Repositories](https://www.palantir.com/docs/foundry/announcements/#introducing-hawk-for-python-package-management-in-code-repositories)

We are excited to announce Hawk, a new package manager for Python environments. Hawk will be available in Code Repositories on Foundry enrollments in mid-June 2024. It replaces Mamba, which underwent major breaking changes in September 2023, as the default Python package manager in Code Repositories.

Hawk offers enhanced performance and maintainability, ensuring a more efficient and reliable Python environment management experience. Initial tests of Hawk have shown performance improvements of ~25% in checks execution time relative to Mamba when resolving and installing new packages. Additionally, Hawk is built on top of actively maintained libraries, ensuring that the core infrastructure remains up-to-date and secure.

New Python code repositories will begin using Hawk automatically. For existing repositories, you can upgrade the repository by selecting **…** and then selecting **Upgrade**.

 ![ihe1](https://canada1.discourse-cdn.com/palantir/original/1X/b8a545f0ec0a0b2ec3946b15767e8c1a94e32b9d.png)

_Upgrade your Python repositories to the new Hawk environment management system._

In Python repositories using Hawk, you can view log lines in the **Checks** tab that indicate certain tasks are being executed by Hawk instead of Mamba. For example, you can view the log line `Executing task 'runVersions' with 'HAWK'`.

Hawk is built on top of the open-source library Rattler.
