preduus / pycasestyle

A simple package to turn easily the conversion of contracts, mapping and texts to camelcase, snakecase, pascalcase or kebabcase.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pycasestyle

pycasestyle is a Python library for converting variable naming styles between CamelCase, snake_case, kebab-case, and PascalCase.

Supported styles:
  • CamelCase
  • SnakeCase
  • KebabCase
  • PascalCase

Installation

To install pycasestyle, you can use pip:

Usage

You can import the text formatting styles directly from the pycasestyle module and use them in your code. Here's an example of how to use the text formatting styles:

Use cases

If you needed convert schemas, mappings, contracts, etc. This tool is specific to turn easily your job.

Real use case:

You need to migrate information from Postgres to Elasticsearch, however, the mapping used in Elastic is following the camelcase pattern, whereas in Postgres it is with the Snakecase pattern, see how simple it is to solve:

Contributing

If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request on the GitHub repository <https://github.com/preduus/pycasestyle>.

License

This project is licensed under the Apache License 2.0 License. See the LICENSE <https://github.com/preduus/pycasestyle/LICENSE> file for more details.

About

A simple package to turn easily the conversion of contracts, mapping and texts to camelcase, snakecase, pascalcase or kebabcase.

License:Apache License 2.0


Languages

Language:Python 100.0%