Code Monkey home page Code Monkey logo

py_rename's Introduction

Python Rename

Python file rename script

Usage

usage: py_rename.py [-h] [-v] [-A string] [-B string] [-r string] [-n]
                    [--lower] [--remove-space] [--camel-case] [-s]
                    filename

Python Rename

positional arguments:
  filename              filename

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -A string, --prefix string
                        prefix filename with prefix string
  -B string, --postfix string
                        postfix filename with postfix string
  -r string, --rename string
                        replace filename with string
  -n, --dryrun          perform a dry run (will not run any actions)
  --lower               lowercase the filename
  --remove-space        remove space with underscore
  --camel-case          convert to camel case
  -s, --silent          silence output

$ py_rename.py -A vacation-photo- IMG*.jpg

TODO

Python Rename is a work in progress, so any ideas and patches are appreciated.

  • Prefix filename with prefix string
  • Postfix filename with postfix string
  • Convert to lower case
  • Convert to naming conventions CamelCase underscore_case (need work, not perfect yet)
  • Make arguments work properly
  • Implement regular expressions
  • Recursively walk directories and bulk-rename files

Contributing

Feel free to improve Python Rename. All kind of pull-requests are welcome.

Contributors

LICENSE

Python Rename is licensed under MIT

py_rename's People

Contributors

astonge avatar kpodlawski avatar lagerfeuer avatar nagracks avatar prabhath6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

py_rename's Issues

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.