Skip to main content

Python filename length script

Project description

fnlength

fnlength

Python filename length script. The program enumerates the file in subdirectories and shortens long filenames to the specified number of characters. function will create log file in top dir with name log_%Y%m%d.log

Setup

https://pypi.org/project/fnlength/

pip install fnlength

Example1:

import fnlength 

target = fnlength.fnlength()

# default 25
target.MAX_FILENAME_LENGTH = 30             

target.start()                              

Example2:

from fnlength import FileNameLength

target = FileNameLength()

# default 25
target.MAX_FILENAME_LENGTH = 35

target.start()         

Documentation

https://best-itpro.ru/news/fnlength/

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

fnlength-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

fnlength-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fnlength-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fnlength-1.0.0.tar.gz
Algorithm Hash digest
SHA256 562a6759d34ca4cd526f51d94de928edccc04317a8a5eb73b79877482cac478d
MD5 e615bca43347054bd9acd9cceeb91019
BLAKE2b-256 172192cc74f93ff3fa36f3af2969156bf3c9f8dd7ae8558139cf918f97592f58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fnlength-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fnlength-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92befd7243b1db789e6841c88ebe9a75ff74e4d52672710e9a4a724ae5caf66b
MD5 67e1c701677fbc326c3832243f57cae6
BLAKE2b-256 73b4d91e00a076771934f8ef15890913414a9c178592ade81a7b70a3f7876fed

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