Skip to main content

PyPI version PyPI - Python Version pre-commit Code style: black Code style: flake8 Code style: Ruff Downloads Downloads Downloads Donate

mvdate

A Python package to search for files and move them to a directory structure based on date.

For more detailed information on the topics below please visit the documentation.

Motivation

I keep my pictures in a hierarchical data structure of YYYY/MM/DD but that isn't how my camera stores and copying them to other devices in such a manner was tedious. I wanted an easy way to copy/move files to this structure.

Installation

mvdate is available from PyPI to install...

pip install mvdate

Usage

To search the current directory for files ending with png and move them to ~/pics/YYYY/MM/DD/

mvdate --base ./ --destination ~/pics/ --ext png

For all options see the help

mvdate --help

Development

If you wish to try the development version you can install directly using pip...

pip install mvdate@git+https://codeberg.org/slackline/mvdate.git@main

Contributing

If you want to contribute merge, requests are more than welcome. Fork and clone the repository and install the development and test dependencies.

mkvirtualenv mvdate # Or similar depending on your preferences
git clone ssh://git@codeberg.org/slackline/mvdate.git
cd mvdate
pip install .[dev,tests]
pre-commit install

I use various tools to lint and test the package, mostly via pre-commit. These include pre-commit-hooks, black, markdownlint-cli2 and ruff. By using pre-commit locally any contributions should then pass the GitLab CI pre-commit pipeline that is in place.

Links

Metadata

Release files for mvdate 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mvdate 0.1.3
File Size Uploaded Provenance
mvdate-0.1.3.tar.gz 285.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mvdate 0.1.3
File Interpreter ABI Platform
mvdate-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 305.2 kB

Release files / mvdate-0.1.3.tar.gz

Download URL mvdate-0.1.3.tar.gz
Size 285.4 kB
Tags Source
SHA-256 checksum
How to use checksums
807bf29bc094e2f6431ebc3c65a386cdc058f383ecf30b38d7d75c630d0f035b
BLAKE2b-256 checksum
How to use checksums
6c2d39d78c4b991e64ba20e609354d85894fa8a028059c78e2e8170a738c5dac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / mvdate-0.1.3-py3-none-any.whl

Download URL mvdate-0.1.3-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02ec4409773474292c60288dfe8de4c2d35b5fc5a30a1a911d66a3d2b32ceed2
BLAKE2b-256 checksum
How to use checksums
f34130c4c5573af4f8d2c45658ab6047076e618c276283b322737d717a145b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for mvdate 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page