Skip to main content

A tool to automaticallly rename images to their respective date-time taken

Project description

PicChrono

License Code Style Coverage Testing

Description

A python package helping you to archive your photos. It renames the photos based on the date and time they were taken.

Prerequisites

Before you begin, ensure that you have the following prerequisites installed:

Installation

Install the package using pip:

pip install pic-chrono

or

pip install git+https://github.com/kondakoffer/PicChrono

It is recommended to use a virtual environment to install the package (see here).

Usage

Once the package is installed, you can use it as a command line tool or as a python package.

As command line tool

The intended usage is as command line tool. You can use it as follows:

PicChrono [OPTIONS] SOURCE_PATH [DESTINATION_DIR] [ERROR_DIR]  
  • SOURCE_PATH: The path to the directory containing the photos you want to rename. You can also specify a single file by using its path.
  • DESTINATION_DIR: The path to the directory where you want to save the renamed photos. If not specified, the photos will be stored in the current directory.
  • ERROR_DIR: The path to the directory where you want to save the photos that could not be renamed. If not specified, the photos will be stored in the current directory.

Options

  • --help: Show the help message and exit.
  • -v or --version: Show the version number and exit.

As python package

It is also possible to integrate the package into your own python code by using the typical python import statement:

import pic_chrono

If you only want to use the functionalities with renaming the photos, you can import the Rename class:

from pic_chrono.renamer import Rename

Troubleshooting

If you encounter any issues or errors, here are a few troubleshooting tips:

  • Double-check that package is installed correctly.
  • Consult the project's documentation or issue tracker for common troubleshooting steps.
  • If the issue persists, feel free to open a new issue here.

Contributing

Any contributions are welcome! Please follow the contributing guidelines and the code of conduct.

License

This project is licensed under the MIT-LICENSE. Please review the license terms before using the project. Since this project uses other packages, you must also agree and follow their license agreements. You can find the license agreements of the packages used in the NOTICES.md file.

Acknowledgements

Since this project uses other software and packages, we would like to thank the authors of these for their work. This includes Poetry, Python, Pillow, Typer, rich, pytest, pytest-cov, black, coverage-badge.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pic_chrono-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

pic_chrono-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pic_chrono-1.0.0.tar.gz.

File metadata

  • Download URL: pic_chrono-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Darwin/22.4.0

File hashes

Hashes for pic_chrono-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a452202a06ea8bf3b65abedb431b7e64b09f509a5848b2f8787d4d48b74da231
MD5 5ac317bd7371b9fb5c5a7389ffe8a5af
BLAKE2b-256 9987bb89085790ab222dd92cdde68bc6b4279d010261fe8b0e548819e3fe4354

See more details on using hashes here.

File details

Details for the file pic_chrono-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pic_chrono-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Darwin/22.4.0

File hashes

Hashes for pic_chrono-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 347aba504fbc8f04b8228ea469c88590b179e53cfcc5c0be900dff4bbe972d53
MD5 ae0b9fe9965fadd6ee4e06939408cdb0
BLAKE2b-256 2e8cd43a25764e443a98762798da186ae711f521cf320a5774b1a4f9d490dbdf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page