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.8.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.8-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snake_me_please-0.8.tar.gz
Algorithm Hash digest
SHA256 0af676207e46015555fa862e0366d6d77ab2ffaf1b336bd203c8e1fb0d2f1180
MD5 583058990b5012c4aefab8639d1b2bab
BLAKE2b-256 4c245481e58b558926ca2af4e285f80a76a77cf4eb95033eb9161a214622c40c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for snake_me_please-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ed2b2bc6ae716e01f5bd496dfe40808b12bcc4fd0fabba4bb20dc9b55146c869
MD5 f51ac3aa8698cdbec71f63fd473ba303
BLAKE2b-256 77fe969d71817b4ae7c9ec8fb7c8326613e087dfc9c6d8451dd3645e0237fbbc

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