Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T4786: Add package python3-pyhumps #1631

Merged
merged 1 commit into from Oct 31, 2022
Merged

T4786: Add package python3-pyhumps #1631

merged 1 commit into from Oct 31, 2022

Conversation

sever-sever
Copy link
Member

Change Summary

humps Convert strings (and dictionary keys) between snake case, camel case and pascal case in Python
Used in #1623

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe): Add new useful pkg

Related Task(s)

Component(s) name

Proposed changes

How to test

>>> import humps
>>> 
>>> humps.decamelize('superTCPOption')
'super_tcp_option'
>>> 
>>> humps.decamelize('superTCPOptionMegaUDPKey')
'super_tcp_option_mega_udp_key'
>>> 

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

humps Convert strings (and dictionary keys) between snake case,
camel case and pascal case in Python

% decamelize('superTCPOption')
  'super_tcp_option'
%
% decamelize({'ParamOption': 'one', 'fooBarBaz': True})
  {'param_option': 'one', 'foo_bar_baz': True}
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants