camelCasing-0.1.3
توضیحات
Converts PascalCase or snake_case strings to camelCase.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | camelCasing-0.1.3 |
| نام | camelCasing |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Andrew Fogarty <apf2bb@virginia.edu> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/camelCasing/ |
| مجوز | - |
# camelCasing Package
This package converts Pascal Case and snake_case strings into its camelCase
equivalent.
## Installation
```
pip install camelCasing
```
## Basic Use
```
from camelCasing import camelCasing as cc
```
Its functionality can be used in at least two ways:
(1) Individually:
```
# recode a single string
cc.toCamelCase(s='TheQuickBrownFox', user_acronyms=None)
```
or (2) in list comprehensions:
```
# get camelCase replacements for an arbitrary dataframe
[cc.toCamelCase(s=s, user_acronyms=None) for s in df.columns]
```
## User Defined Acronyms
One of the tricky problems facing camel case text generation is the problem
of acronyms. This package allows for user defined acronyms that the program
should look for and account for when creating its camelCase equivalent.
Consider the following example:
```
s = 'UefiDbx_UefiDbxKeyStatus'
cc.toCamelCase(s=s, user_acronyms=['WMI', 'FRU', 'SKU', 'UEFI']) # UEFIDbxUEFIDbxKeyStatus
s = 'iaasByMicrosoft'
cc.toCamelCase(s=s, user_acronyms=['IaaS']) # IaaSByMicrosoft
```
This functionality lets you have control over the acronyms that you want to keep and maintain.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl camelCasing-0.1.3:
pip install camelCasing-0.1.3.whl
نصب پکیج tar.gz camelCasing-0.1.3:
pip install camelCasing-0.1.3.tar.gz