Skip to main content

A small package for sequentially renaming files with the same name.

Project description

Rename-Sequential-Files

A small rename function I created to handle documents that have the same file name during automated copy jobs. This function will allow the files to be copied by just appending a (#) to the end of the file name similar to how file systems do so. You need to pass the new directory, current file name, and the files extension and the function will return the new name with (#) if no file with the same name already exists.

For example:

from sequential_rename.sequential_rename import seq_rename

new_doc_name = seq_rename(r'C:\Users\[USERNAME]\Documents', 'test', '.csv')

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

sequential_rename-1.0.2.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sequential_rename-1.0.2-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file sequential_rename-1.0.2.tar.gz.

File metadata

  • Download URL: sequential_rename-1.0.2.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for sequential_rename-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0ab50f585f5107336e85d8438afcad681e205e7f6ff981123ac048621c3a958a
MD5 08328efc56c12846020224dc6b96d34f
BLAKE2b-256 f01fa53cac47842005bcb8f37548236f9318c810a08f77f914fe0a45fd91ba20

See more details on using hashes here.

File details

Details for the file sequential_rename-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sequential_rename-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06a0b297ac4e754a1a3bb2dc75ad5e818c29c10486e4adedb40eb228d1411f5f
MD5 2623c871e7cf4bd0b1ffd67da3a03f00
BLAKE2b-256 11ecd77e072f87462dde7d91ddb9feb71caba404c75ae6ad220e4ac39739996f

See more details on using hashes here.

Supported by

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