CartoDB / carto-python

CARTO Python client
https://carto.com
BSD 3-Clause "New" or "Revised" License
154 stars 62 forks source link

Auth and SQL clients store base_url and username, base_url doesn't expect trailing /api anymore #46

Closed dmed256 closed 7 years ago

dmed256 commented 7 years ago

The changes include:

I added Auth tests but I couldn't get

python setup.py test

running properly, I get

[~/git/carto-python]
> py setup.py test
running test

even when setting the assert to fail

dmed256 commented 7 years ago

Any feedback?

danicarrion commented 7 years ago

looks good! thanks so much. I still need some time to figure out what the problem with the tests might be

dmed256 commented 7 years ago

cool, thanks for checking it out

danicarrion commented 7 years ago

adding @alrocar to the loop

dmed256 commented 7 years ago

@danicarrion: Hi Dani, @andy-esch and I are working on cartoframes where we extract the username out of the base_url If you would like, we can cancel this pull request since we're adding this feature elsewhere

dmed256 commented 7 years ago

Here are the lines of code for the prototype version:

https://github.com/dmed256/cartoframes/blob/master/cartoframes/proto/context.py#L26-L34

danicarrion commented 7 years ago

Well, I think this type of functionality actually belongs to the SDK ;-)

dmed256 commented 7 years ago

Yay, less logic for us then :) Thank you!

andy-esch commented 7 years ago

:)