file-extension-changer-cli 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- file_extension_changer_cli-0.1.0/LICENSE +21 -0
- file_extension_changer_cli-0.1.0/PKG-INFO +36 -0
- file_extension_changer_cli-0.1.0/README.md +24 -0
- file_extension_changer_cli-0.1.0/file_extension_changer/__init__.py +0 -0
- file_extension_changer_cli-0.1.0/file_extension_changer/project.py +21 -0
- file_extension_changer_cli-0.1.0/file_extension_changer_cli.egg-info/PKG-INFO +36 -0
- file_extension_changer_cli-0.1.0/file_extension_changer_cli.egg-info/SOURCES.txt +10 -0
- file_extension_changer_cli-0.1.0/file_extension_changer_cli.egg-info/dependency_links.txt +1 -0
- file_extension_changer_cli-0.1.0/file_extension_changer_cli.egg-info/top_level.txt +2 -0
- file_extension_changer_cli-0.1.0/pyproject.toml +15 -0
- file_extension_changer_cli-0.1.0/setup.cfg +4 -0
- file_extension_changer_cli-0.1.0/setup.py +15 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Enzela Neupane
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: file-extension-changer-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A simple Python tool to change file extensions in bulk.
|
|
5
|
+
Author: Enzela Neupane
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
Dynamic: requires-python
|
|
12
|
+
|
|
13
|
+
# File Extension Changer
|
|
14
|
+
|
|
15
|
+
A simple and efficient Python tool to **change file extensions in bulk** for all files in a folder automatically.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
|
|
21
|
+
* Change multiple file extensions at once
|
|
22
|
+
* Works with any file type (PDF, TXT, CSV, etc.)
|
|
23
|
+
* Beginner-friendly and lightweight
|
|
24
|
+
* Handles invalid or empty folders
|
|
25
|
+
* Skips hidden files
|
|
26
|
+
* Safe renaming to avoid errors
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
### Clone the repository:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
git clone https://github.com/Enzela/file-extension-changer.git
|
|
36
|
+
cd file-extension-changer
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File Extension Changer
|
|
2
|
+
|
|
3
|
+
A simple and efficient Python tool to **change file extensions in bulk** for all files in a folder automatically.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
* Change multiple file extensions at once
|
|
10
|
+
* Works with any file type (PDF, TXT, CSV, etc.)
|
|
11
|
+
* Beginner-friendly and lightweight
|
|
12
|
+
* Handles invalid or empty folders
|
|
13
|
+
* Skips hidden files
|
|
14
|
+
* Safe renaming to avoid errors
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
### Clone the repository:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
git clone https://github.com/Enzela/file-extension-changer.git
|
|
24
|
+
cd file-extension-changer
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
def main():
|
|
4
|
+
folder_path = "C:/Users/meman/Downloads/multilab"
|
|
5
|
+
old_ext = ".pdf"
|
|
6
|
+
new_ext = ".txt"
|
|
7
|
+
|
|
8
|
+
if not os.path.exists(folder_path):
|
|
9
|
+
print("Folder not found!")
|
|
10
|
+
else:
|
|
11
|
+
for filename in os.listdir(folder_path):
|
|
12
|
+
if filename.endswith(old_ext):
|
|
13
|
+
new_name = filename.replace(old_ext, new_ext)
|
|
14
|
+
old_file = os.path.join(folder_path, filename)
|
|
15
|
+
new_file = os.path.join(folder_path, new_name)
|
|
16
|
+
os.rename(old_file, new_file)
|
|
17
|
+
print(f"Renamed: {filename} → {new_name}")
|
|
18
|
+
print("Done!")
|
|
19
|
+
|
|
20
|
+
if __name__ == "__main__":
|
|
21
|
+
main()
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: file-extension-changer-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A simple Python tool to change file extensions in bulk.
|
|
5
|
+
Author: Enzela Neupane
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
Dynamic: requires-python
|
|
12
|
+
|
|
13
|
+
# File Extension Changer
|
|
14
|
+
|
|
15
|
+
A simple and efficient Python tool to **change file extensions in bulk** for all files in a folder automatically.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
|
|
21
|
+
* Change multiple file extensions at once
|
|
22
|
+
* Works with any file type (PDF, TXT, CSV, etc.)
|
|
23
|
+
* Beginner-friendly and lightweight
|
|
24
|
+
* Handles invalid or empty folders
|
|
25
|
+
* Skips hidden files
|
|
26
|
+
* Safe renaming to avoid errors
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
### Clone the repository:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
git clone https://github.com/Enzela/file-extension-changer.git
|
|
36
|
+
cd file-extension-changer
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
file_extension_changer/__init__.py
|
|
6
|
+
file_extension_changer/project.py
|
|
7
|
+
file_extension_changer_cli.egg-info/PKG-INFO
|
|
8
|
+
file_extension_changer_cli.egg-info/SOURCES.txt
|
|
9
|
+
file_extension_changer_cli.egg-info/dependency_links.txt
|
|
10
|
+
file_extension_changer_cli.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "file-extension-changer-cli"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A simple Python tool to change file extensions in bulk."
|
|
9
|
+
authors = [{ name = "Enzela Neupane" }]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
requires-python = ">=3.8"
|
|
13
|
+
|
|
14
|
+
[tool.setuptools.packages.find]
|
|
15
|
+
where = ["."]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="file-extension-changer-cli",
|
|
5
|
+
version="0.1.0",
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
install_requires=[], # no dotenv here
|
|
8
|
+
python_requires=">=3.8",
|
|
9
|
+
include_package_data=True,
|
|
10
|
+
description="A simple Python tool to change file extensions in bulk.",
|
|
11
|
+
author="Enzela Neupane",
|
|
12
|
+
license="MIT",
|
|
13
|
+
long_description=open("README.md").read(),
|
|
14
|
+
long_description_content_type="text/markdown",
|
|
15
|
+
)
|