Skip to main content

Snake Me Please is a Python package and command-line tool designed to convert user-defined variable names to snake_case in Python files while excluding imported variables and keywords from Python libraries.

Project description

Snake Me Please

Snake Me Please is a Python package and command-line tool designed to convert user-defined variable names to snake_case in Python files while excluding imported variables and keywords from Python libraries.

Installation

Install the package using pip:

pip install snake-me-please

Usage

Convert a Single File

To convert user-defined variables to snake_case in a single Python file, use the following command:

snake-me-please your_python_file.py

Convert Files in a Directory

To convert user-defined variables in all Python files within a directory, use the following command:

snake-me-please your_directory

Display Conversion Results

The tool will display unique conversions and exclude imported variables or Python keywords.

Example

snake-me-please examples/

This will process all Python files in the examples directory and display the conversion results.

License

This project is licensed under the GNU General Public License - see the LICENSE file for details.

Contributing

Feel free to contribute to this project. For major changes, please open an issue first to discuss what you would like to change. Acknowledgments

Inspired by the need for consistent naming conventions in Python code.
Thanks to the open-source community for valuable contributions.

Contact

For any inquiries, please contact Aditya Jetely.

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

snake_me_please-0.7.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

snake_me_please-0.7-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file snake_me_please-0.7.tar.gz.

File metadata

  • Download URL: snake_me_please-0.7.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for snake_me_please-0.7.tar.gz
Algorithm Hash digest
SHA256 9b3fada3f93f9cb9289ccb146473bed4297ee1dbcfb9a9a35096aedd802c48ae
MD5 fcd01bbf642bad4c0cead36331c357a2
BLAKE2b-256 dd87b42e1d340448f32376a2aa53cd0bb380feeb51495828ef4f7c3d4600a704

See more details on using hashes here.

File details

Details for the file snake_me_please-0.7-py3-none-any.whl.

File metadata

  • Download URL: snake_me_please-0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for snake_me_please-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cb42d7412124fa20f312947aeedbc965b76d056fa959c936e3f62c2a717ce7b7
MD5 844c3c50b71a3c06ee458328720b095b
BLAKE2b-256 b2914abb87c3f7dda247c548126be0c59fecce0db2ffe145ccff1e1ea57967d9

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