kavenegar-python
kavenegar-python copied to clipboard
Do not use Python strings like this!
https://github.com/kavenegar/kavenegar-python/blob/166701dd562f8b03d84d7ac89415a137455abba7/kavenegar.py#L38
Too many + operators for immutable type! Use string format instead:
url = 'https://{}/{}/{}/{}/{}.json'.format(self.host, self.version, self.apikey, action, method)
Hello @kamyar1979 ! I created PR that fixed this. hope u feel better, like me. :D
Actually, the whole code and even API is bullshit! REST API must get Json/XMl/... not Form Data! Variable names obey none of naming conventions! (Variables with multiple words are not separated neither with letter case nor with _) The SDK code is very BAD! No OpenAPI! Errors do not change HTTP Status code! Event a single search in google would make anything better! It is really 'khosolati'!
We do not use this piece of shit! Instead we created a Swagger and use some swagger invoker!
Sometime you don't have enough time for doing stuff by urself. I agree with you that the API sucks. But... IDK! :(((
please refactor this piece of shit! I prefer to write my own code! don't waste our time