Comments (6)
This seems easy enough to support; it's appears to be snakecase with hyphens instead of underscores. I can't see why not.
from humps.
That'd be a question for the original repository that this package inspired by: https://github.com/domchristie/humps.
Sounds good, look forward to your PR!
from humps.
I don't think there's a standard source to reference for this.
In regards to upper- vs lowercase:
Just from searching around, it appears it is most often defaulted to lowercase (just like snakecase). I can't say for certain though.
In regards to underscores:
I'd imagine underscores do not need to be tested. All other cases would be valid python variables, but kebab-case will not be since dashes are not a valid character inside a variable/method/function name.
from humps.
Unassigning myself... not getting enough time
If anyone wants to contribute in this issue, feel free to
from humps.
Yeah I wondered the same, I have a draft PR ready for that (can push in 2 weeks perhaps) but I was also wondering why it wasn't included originally. So I brought up this discussion...
anyway, gonna work on this
I too can't see why not to have this feature
from humps.
@ronnie-llamado I need a bit of help with the test cases, is there a standard source I can refer to for the expected outputs?
for example, API-Response
vs api-response
vs API-response
etc.
also whether to keep leading and trailing _
in kebab-case: _fallback-url__
vs fallback-url
etc.
from humps.
Related Issues (20)
- Drop support for 2.7 HOT 2
- Add coveralls to workflow
- Add `pylint` to linting tools
- ReadTheDocs build is failing after dropping Python 2.7
- Coveralls badge is not updating
- Add maximum depth option to all function to limit how deep to apply formatting
- Transition package manager from pipenv to poetry
- None and empty string input are not camelized correctly HOT 1
- decamelize incorrectly inserts _ after punctuation HOT 2
- Acronyms with inner digits do not decamelize correctly
- Add a conda-forge feedstock HOT 1
- An import issue after install and remove the 'humps' package. HOT 3
- [question] Abbreviation conversion assymetry workarounds HOT 3
- Add a humps jinja2 extension HOT 1
- Ability to build debian deb pkg HOT 2
- Complete transition into using poetry and more HOT 1
- Streamlit
- camelizeKeys only rather than the full dictionary (values and keys) HOT 3
- Kebabize string with spaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from humps.