Giter Site home page Giter Site logo

soc221b / namanager Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 131 KB

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

License: GNU General Public License v3.0

Python 95.77% Shell 4.23%
format filesystem checker filename rename manager insensitive mv

namanager's Introduction

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

namanager's People

Contributors

arnavb avatar

Watchers

James Cloos avatar  avatar  avatar

namanager's Issues

Add a CLI tool

We need a CLI tool which can be run instead of python3 file_checker/main.py --settings settings.json.

There is some examples of big project:
nose

Add output management options

  1. Use std logging module
  2. Add difference levels for silent(not set), debug(debug), normal(error), and verbose(info).

New feature list

Please add PR/commit to line end If the feature is done.

  • Dump result to json file
  • Check user-defined pair of word separator
  • Add feature ignore prefix, suffix of name

Ignore hidden file, system file, etc.

  1. User can change those setting in setting file.

NOTE:

  1. Check that all function calls must be independent.
  2. Prefix dots are used to hidden files in unix-like systems, so please add more tests for rename.

Known bugs.

If exists a directory's name is the same as its parent directory's name, we need to rename twice (according to how many layer is same).

bug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.