Metadata-Version: 2.1
Name: lnmc
Version: 1.3.0
Summary: Allows to create symbolic link in batches from a YAML file and consolidate them in a specific directory.
Author-email: Daniel Luque <danielluque14@gmail.com>
License: AGPLv3+
Project-URL: Source Code, https://github.com/LuqueDaniel/lnmc
Project-URL: Issue Tracker, https://github.com/LuqueDaniel/lnmc/issues
Project-URL: Documentation, https://github.com/LuqueDaniel/lnmc/blob/master/README.md
Keywords: linux,windows,devops,sysadmin,batches,symlink,command-line-tool,cli
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Click (<9.0.0,>=8.0.4)
Requires-Dist: PyYAML (<7.0.0,>=6.0.0)
Provides-Extra: dev
Requires-Dist: pre-commit (>=2.20.0) ; extra == 'dev'
Requires-Dist: black (>=22.10) ; extra == 'dev'
Requires-Dist: isort (<5.12.0,>=5.11.5) ; extra == 'dev'
Requires-Dist: ruff (>=0.0.259) ; extra == 'dev'
Requires-Dist: mypy (>=0.982) ; extra == 'dev'
Requires-Dist: pytest (<8.0.0,>=7.2.0) ; extra == 'dev'
Requires-Dist: pytest-cov (>=4.0.0) ; extra == 'dev'
Requires-Dist: types-setuptools (==67.5.0) ; extra == 'dev'
Requires-Dist: types-PyYAML (>=6.0.0) ; extra == 'dev'

# lnmc

[![PyPI](https://img.shields.io/pypi/v/lnmc)](https://pypi.org/project/lnmc/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/lnmc)
![PyPI - License](https://img.shields.io/pypi/l/lnmc)
[![Coverage Status](https://coveralls.io/repos/github/LuqueDaniel/lnmc/badge.svg?branch=master)](https://coveralls.io/github/LuqueDaniel/lnmc?branch=master)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Allows to create symbolic link in batches from a YAML file and consolidate them in a
specific directory.

Install:

```shell
pip install lnmc
```

Usege:

```shell
lnmc addons.yml src/ destination/
```

## Configuration File

lnmc as first argument needs a `.yaml` or `.yml` file. The directories, sub-directories
and files that will be the target for symbolic links are specified in this file. For example.

```yaml
reporting-engine:
  - report_xlsx
purchase-workflow:
  - purchase_landed_cost
pos:
  - pos_margin
partner-contact:
  - partner_vat_unique
  - base_location_nuts
  - base_location_geonames_import
  - base_location
mis-builder:
  - mis_builder
  - mis_builder_budget
# It will create symbolic links of all subdirectories and files
l10n-spain:
```

(Example of a typical Odoo project)

## Development Install

```shell
git clone https://github.com/LuqueDaniel/lnmc.git
cd lnmc
python -m venv --prompt . .venv/
source .venv/bin/activate
pip install -e ".[dev]"
```
