hello, Maybe I cannot help much now, but if it's something simple
tuxayo
@tuxayo
Thanks! I'm planning to make a client for this simple API http://api.citybik.es/v2/ and I was wondering if it was worthwhile to make a Tapioca wrapper for it. But right now I'm realizing how simple it is(here is a Ruby wrapper) and finding about the Request package I'm pretty sure it isn't really worthwhile.
Unless I'm missing something awesome about Tapioca?
Rômulo Collopy
@romulocollopy
well, Tapioca more than requests, actually, it uses requests. First you will have autocompletion for you endpoints when working in a ipython-like shell. You can get the data already in the correct type, as Python objects, you can make easier the configuration proccess..
Also, you will be able to access response attributes as Python objects instead of dictionary
And others will be abe able to easily download your project and use it (considering you are going to upload it to pip)
tuxayo
@tuxayo
Thanks for those details, I had quickly seen the slides but not the talk itself so I missed some stuff! :)
romika
@romika
Hey, I want to use tapioca to write a client for the ThingWorx API. But I'm confused about the auth mechanism. I want to use an application-key, but I don't understand the options oauth2/1 or basic_auth. Should I use none of the provided auth options and pass a custom header? Because that's how I do it when I'm using the requests module.
Filipe A Ximenes
@filipeximenes
@romika yes, that's right. It offers basic and oauth options because those are pretty popular and standardized, but you should remove those and pass the token in the header :)
but I have no idea how to create the tests :worried:
I took a look on some others flavours but couldn’t figure this out by myself
Filipe A Ximenes
@filipeximenes
@medeirosthiago ye, this is actually a problem. Unless you want to test the integration, there's no much you can do regarding tests.
Ideally you have a test account and make real requests to verify if things are working properly. But this is hard to do and it's easy to get false positives in the process due to any kind of temporary problems in the service
Because of that, unless it's a critical integration I tend not to test this kind of things
Thiago Medeiros
@medeirosthiago
oh thanks @filipeximenes
I was having a hard time trying to figure this out :P
Filipe A Ximenes
@filipeximenes
:)
Joel Wallis Jucá
@joelwallis
Hi! I'm new to both Python and Tapioca Wrapper, and I'm looking to write some flavours for Tapioca Wrapper as my first public project
I'm an experienced developer, tho. So, while I'll be struggling to meet Python's specific quality standards, I'm used to software development as an activity
I'm mostly reading the source code of existing wrappers - but it's clearly not as productive as it could be
Filipe A Ximenes
@filipeximenes
Hi Joel, sorry for the delay. There's really no much to building a flavour, I do recommend copying from other flavour or just taking a look on what is in the cookiecutter
Let me know if you have some trouble with some specific part, happy to help