Skip to main content

Tools and utilities developed by the Autonomy Data Unit (ADU).

Project description

adulib

Tools and utilities for the Autonomy Data Unit (ADU)

The lifecycle of a shared ADU utility or tool is as follows:

  1. Implement the utility in this repo.
  2. If the utility grows in complexity, it should be moved to its own dedicated package, and will be included in adulib as a (potentially optional) dependency.

Development install instructions

Prerequisites

  • Install uv.
  • Install direnv to automatically load the project virtual environment when entering it.
    • Mac: brew install direnv
    • Linux: curl -sfL https://direnv.net/install.sh | bash

Setting up the environment

Run the following:

# CD into the root of the repo folder
uv sync --all-extras # Installs the virtual environment at './.venv'
direnv allow # Allows the automatic running of the script './.envrc'
nbl install-hooks # Installs some git hooks that ensures that notebooks are added properly

You are now set up to develop the codebase.

Further instructions:

  • To export notebooks run nbl export.
  • To clean notebooks run nbl clean.
  • To see other available commands run just nbl.
  • To add a new dependency run uv add package-name. See the the uv documentation for more details.
  • You need to git add all 'twinned' notebooks for the commit to be validated. For example, if you add nbs/my-nb.ipynb, you must also add pts/my-nb.pct.py.
  • To render the documentation, run nbl render-docs. To preview it run nbl preview-docs

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

adulib-0.4.6.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

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

adulib-0.4.6-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file adulib-0.4.6.tar.gz.

File metadata

  • Download URL: adulib-0.4.6.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for adulib-0.4.6.tar.gz
Algorithm Hash digest
SHA256 93e3b629f20ab28f87cdd3a851cf33943e056031893462e0f7770f5b5cf2b93a
MD5 843530e28308d24d65c9070d11ef3d9c
BLAKE2b-256 355bc443bfa21f09f40e7e943958bebc8aad9762b9fc6038e70210249832a019

See more details on using hashes here.

File details

Details for the file adulib-0.4.6-py3-none-any.whl.

File metadata

  • Download URL: adulib-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for adulib-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ebcd07840e64c9d6406b9d00f95faea3c5e15cdf9da0a9c217472689fd28d345
MD5 9ebecbe4f32ad4af52fca1cdb8e25f26
BLAKE2b-256 62e6fac3cb6f598684c16ceaca3801f7f9092ccc8c81586f2c04518a1eb8e611

See more details on using hashes here.

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