/namanager

A filename/dirname manager which could determine whether paths is expected and you could also automatically rename it.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

namanager

see build status of Unix-like: https://travis-ci.org/iendeavor/namanager see code coverage status: https://codecov.io/gh/iendeavor/namanager https://img.shields.io/pypi/v/namanager.svg?style=flat

A file or/and directory name manager which could determine names are/aren't expectable, and you could also automatically rename it.

Features

  • Match or ignore particular files/directories.
  • Supports checking of most common format of letter-cases (upper, lower, camel, and pascal-case).
  • Supports checking of convention of word separators (underscore-to-dash/dash-to-underscore).

How to use?

Installation

  • First of all check you already have pip installed, and then just type in:
pip install namanager
  • Sometimes, you need to install on offline environments, hence that you could download wheel s from PyPI or by pip:
pip download namanager

After moved wheels (involve dependencies) into your env, you could manually install it by following commands:

pip install namanager-x.x.x-py2.py3-none-any.whl

Running

  1. Configure your settings.json.
  2. Run command
namanager

If the settings file doesn't existed in your current working directory or CWD:

namanager --settings /path/to/your/settings