Update README

This commit is contained in:
Andros Fenollosa 2018-08-31 09:22:23 +02:00
parent 2e6eb2b2e3
commit ff4204517d
3 changed files with 29 additions and 3 deletions

View File

@ -1,2 +1,28 @@
# organize-my-photos # organize-my-photos
Terminal program that organizes and organizes the photographs in folders by year, month and day. #python #terminal Terminal program that organizes and organizes the photographs in folders by year, month and day. #python #terminal
## Install
``` bash
pip3 install --user Organize-my-photos
```
## Run
``` bash
organize_my_photos [PATH]
```
## Example
``` bash
organize_my_photos travel
```
## Options
| FLAG | DESCRIPTION | EXAMPLE |
| :--: | :--: | :--: |
| --locale | Specifies the language of the months. | organize_my_photos --locale es_ES |
| --extension | Change file extension for sorting. | organize_my_photos --extension mp4 |

View File

@ -13,7 +13,7 @@ EXTENSIONS = ('jpg', 'jpeg', 'gif')
@click.command() @click.command()
@click.argument('path') @click.argument('path')
@click.option('--locale', default=False, help='Specifies the language of the months. Example: es_ES') @click.option('--locale', default=False, help='Specifies the language of the months. Example: es_ES')
@click.option('--extension', default=False, help='change file extension for sorting.') @click.option('--extension', default=False, help='Change file extension for sorting.')
def organize_my_photos(path, locale, extension): def organize_my_photos(path, locale, extension):
""" Sort in folder all photos """ """ Sort in folder all photos """
# Set locale # Set locale

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup( setup(
name = 'Organize-my-photos', name = 'Organize-my-photos',
py_modules=['organize_my_photos'], py_modules=['organize_my_photos'],
version = '1.0.0', version = '1.0.1',
python_requires='>3.6', python_requires='>3.6',
description = 'Terminal program that organizes and organizes the photographs in folders by year, month and day.', description = 'Terminal program that organizes and organizes the photographs in folders by year, month and day.',
author = 'Andros Fenollosa', author = 'Andros Fenollosa',
@ -19,6 +19,6 @@ setup(
], ],
entry_points=''' entry_points='''
[console_scripts] [console_scripts]
ad=organize_my_photos:organize_my_photos organize_my_photos=organize_my_photos:organize_my_photos
''' '''
) )