Skip to main content

Add your description here

Project description

AI Engineering template (with uv)


code checks unit tests integration tests docs codecov GitHub License

A template repo for AI Engineering projects (using python) and uv. This template is like our original AI Engineering template, however, unlike how that template uses poetry, this one uses uv for dependency management (as well as packaging and publishing).

🧑🏿‍💻 Developing

Installing dependencies

The development environment can be set up using uv. Hence, make sure it is installed and then run:

uv sync
source .venv/bin/activate

In order to install dependencies for testing (codestyle, unit tests, integration tests), run:

uv sync --dev
source .venv/bin/activate

In order to exclude installation of packages from a specific group (e.g. docs), run:

uv sync --no-group docs

If you're coming from poetry then you'll notice that the virtual environment is actually stored in the project root folder and is by default named as .venv. The other important note is that while poetry uses a "flat" layout of the project, uv opts for the the "src" layout. (For more info, see here)

Poetry to UV

The table below provides the uv equivalent counterparts for some of the more common poetry commands.

Poetry UV
poetry new <project-name> # creates new project uv init <project-name>
poetry install # installs existing project uv sync
poetry install --with docs,test uv sync --group docs --group test
poetry add numpy uv add numpy
poetry add pytest pytest-asyncio --groups dev uv add pytest pytest-asyncio --groups dev
poetry remove numpy uv remove numpy
poetry lock uv lock
poetry run <cmd> # runs cmd with the project venv uv run <cmd>
poetry build uv build
poetry publish uv publish
poetry cache clear pypi --all uv cache clean

For the full list of uv commands, you can visit the official docs.

Tidbit

If you're curious about what "uv" stands for, it appears to have been more or less chosen randomly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aieng_template_uv-0.1.1.tar.gz (128.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aieng_template_uv-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file aieng_template_uv-0.1.1.tar.gz.

File metadata

  • Download URL: aieng_template_uv-0.1.1.tar.gz
  • Upload date:
  • Size: 128.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for aieng_template_uv-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6bdbc9c38e3788239bbe50c6907bf4472b3256a1da639b3d59e9f2e4a5eeaa85
MD5 16e282c3d4bb6ae3a8568b9a1e99bc19
BLAKE2b-256 78e88cf36dcba97433bc6fb342b1c792e5ede0e9964125ebf40b572be78c6622

See more details on using hashes here.

Provenance

The following attestation bundles were made for aieng_template_uv-0.1.1.tar.gz:

Publisher: publish.yml on VectorInstitute/aieng-template-uv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aieng_template_uv-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aieng_template_uv-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4db38091956b2684761e955b6d4cf269554abe2a802c5449dca2bb2de0c7bda
MD5 ad388ae66d21a2fe5b728f6a66e792cb
BLAKE2b-256 7e8204303979880995eb725ba83fc586e094f27972242c8df8e08f1038b00438

See more details on using hashes here.

Provenance

The following attestation bundles were made for aieng_template_uv-0.1.1-py3-none-any.whl:

Publisher: publish.yml on VectorInstitute/aieng-template-uv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page