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.6.tar.gz (15.6 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.6-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snake_me_please-0.6.tar.gz
Algorithm Hash digest
SHA256 adbee625f2b2b2bd274800d78528db6f79d655f931724857a22753ea24d387ea
MD5 c2f3ab37dca9a1ba4aedf81a1d143070
BLAKE2b-256 1ef2c3e63b8a12d3916898edca2182d7db5a8b9b35d851b54e1c5ce72b11ed78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snake_me_please-0.6-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.11.5

File hashes

Hashes for snake_me_please-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e7258a8f2d065877a0f91eee61ee1ba7324cb8ea6e494f9dc007f8a3ab68cd00
MD5 e9ebf3fbd35ced7ca147004b2c18e61d
BLAKE2b-256 745dec92946e74cd38db8faffa2ee69fc8184a1751f186c0a3eeaf48d70a7bc6

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