Skip to main content

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/

Metadata

Release files for fnlength 1.0.0

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

Source distribution (sdist)

Source distribution for fnlength 1.0.0
File Size Uploaded
fnlength-1.0.0.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 10.1 kB

Release files / fnlength-1.0.0.tar.gz

Download URL fnlength-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
562a6759d34ca4cd526f51d94de928edccc04317a8a5eb73b79877482cac478d
BLAKE2b-256 checksum
How to use checksums
172192cc74f93ff3fa36f3af2969156bf3c9f8dd7ae8558139cf918f97592f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / fnlength-1.0.0-py3-none-any.whl

Download URL fnlength-1.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92befd7243b1db789e6841c88ebe9a75ff74e4d52672710e9a4a724ae5caf66b
BLAKE2b-256 checksum
How to use checksums
73b4d91e00a076771934f8ef15890913414a9c178592ade81a7b70a3f7876fed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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