Code Monkey home page Code Monkey logo

animal_case's Introduction

Hey, I'm Rafael Acioly ๐Ÿ‘‹

I'm a Back-end Developer based in Brazil

  • ๐Ÿ“– Degree in Information Systems
  • โš™๏ธ I use daily: .groovy, .kt, .ts, .sql
  • ๐ŸŒฑ Iโ€™m currently learning Golang and Kotlin
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on social impact projects
  • ๐Ÿ’ฌ Ask me about Python, Design patterns and meditation
  • โค๏ธ Things I deeply care about: software architecture, design patterns and customers
  • ๐Ÿ“ซ How to reach me: Email

LINKEDIN TWITTER

animal_case's People

Contributors

rafa-acioly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

animal_case's Issues

Fails if key is an int

A dictionary such as:

{1: "abc"}

will fail with this exception:

  File "/env/lib/python3.7/site-packages/animal_case/__init__.py", line 72, in parse_keys
    formatted[key] = parse_keys(value, types)
  File "/env/lib/python3.7/site-packages/animal_case/__init__.py", line 70, in parse_keys
    for key, value in _unpack(formatter(data)):
  File "/env/lib/python3.7/site-packages/animal_case/__init__.py", line 47, in keys_to_camel_case
    return {to_camel_case(key): value for key, value in _unpack(content)}
  File "/env/lib/python3.7/site-packages/animal_case/__init__.py", line 47, in <dictcomp>
    return {to_camel_case(key): value for key, value in _unpack(content)}
  File "/env/lib/python3.7/site-packages/animal_case/__init__.py", line 37, in to_camel_case
    content = value.split('_')
AttributeError: 'int' object has no attribute 'split'

It looks like the the to_camel_case function should return identity value if input value is not a string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.