Skip to content

01Joseph-Hwang10/loose-dependency-manager

Repository files navigation

ldm: Loose Dependency Manager

PyPI version Testsuite Python version Project Status Supported Interpreters License

Loose Dependency Manager (or ldm in short) is a tool for managing code dependencies in a loosely-coupled way.

Quick Start

First, install loose-dependency-manager:

pip install loose-dependency-manager

Then, create a ldm.yml file in the root of your project:

schemes:
  lodash:
    uses: github
    with:
      url: https://github.com/lodash/lodash
      ref: main

dependencies:
  clamp: lodash:https:///src/clamp.ts -> src/utils/clamp.ts
  reset.css: |
    https://cdn.jsdelivr.net/npm/[email protected]/reset.min.css
    -> src/styles/reset.css

config:
  parallel:
    workers: 8
  environment:
    from: .env

Finally, run ldm install to install the dependencies

ldm install

Note

You can also run ldm install [...dependencies] to install specific dependencies.

ldm install clamp

Debugging

If you need to debug the installation process, you can run ldm install --debug to see the logs.

ldm install --debug

API Documentation

TODO: description

Contributing

Any contribution is welcome! Check out CONTRIBUTING.md and CODE_OF_CONDUCT.md for more information on how to get started.

License

ldm is licensed under a MIT License.