GithubHelp home page GithubHelp logo

lukiwieser / make-files-ascii Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 17 KB

Convert filenames from Unicode to ASCII.

License: MIT License

Python 100.00%
ascii batch-rename file-manipulation filesystems kaggle python rename rename-files utf8

make-files-ascii's Introduction

Make Files ASCII

Convert filenames from Unicode to ASCII.

Examples:

  • Åland.txtAland.txt
  • Curaçao.txtCuracao.txt

You can additionally replace other characters such as ':

  • Côte d'Ivoire.txtCote d Ivoire.txt

Usage

This project requires Python 3.9+ to be installed on your machine.

First install the dependencies by executing the following command in the project folder:

pip install -r requirements.txt

Then simply execute the script with the following command:

python main.py

Next the script will ask for some options like the location of the folder/file. After entering all parameters, a preview of the renamed filenames/file-content will be shown.

Features

  • rename filenames
  • rename content of files
  • see a preview of the changes before renaming
  • optionally replace other characters e.g. Apostrophe ' with Space

Motivation

Some filesystems do not support special characters. For example, when uploading a dataset to Kaggle, only ASCII filenames are supported, and the Apostrophe ' is also not allowed.

Therefore, it can be useful to replace such special characters. Additionally, there might be files that reference these filenames somehow, thus renaming the content of a file could also make sense.

Supported Platforms

This project was tested on Windows 11 and Ubuntu 22.04.

make-files-ascii's People

Contributors

lukiwieser avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.