From proba at allstate.com Mon May 1 11:09:48 2017 From: proba at allstate.com (Robare, Phillip (TEKSystems)) Date: Mon, 1 May 2017 15:09:48 +0000 Subject: [Chicago] Chicago @ PyCon - who is going? In-Reply-To: References: Message-ID: <50869A74BA4F07468AD797C9BFF1FE3E4AF1F160@A0185-XPO1026-C.ad.allstate.com> Arriving Thursday. Look forward to seeing Chicago people out there. Phil Robare From: Chicago [mailto:chicago-bounces+proba=allstate.com at python.org] On Behalf Of Lorena Mesa Sent: Friday, April 28, 2017 9:14 PM To: chicago at python.org Subject: [Chicago] Chicago @ PyCon - who is going? Hi folks, Curious who is going to PyCon from Chicago? I arrive the 18th and was hoping to coordinate some meals with folks! __________________________________________________________________ Lorena Mesa Co-Organizer, PyLadies Chicago Director, Python Software Foundation www.lorenamesa.com @loooorenanicole -------------- next part -------------- An HTML attachment was scrubbed... URL: From emily at thisismetis.com Mon May 1 16:02:03 2017 From: emily at thisismetis.com (Emily Wilson) Date: Mon, 1 May 2017 16:02:03 -0400 Subject: [Chicago] Some Exciting Upcoming Data Science Events in Chicago Message-ID: Hello ChiPy Members, Metis here, touching base to let you know we have a great upcoming data science event in your area. This Wednesday, join us for: Bootcamp Alumni Lightning Talks: Demo?ing What You Can Do in 12 Weeks From 6:30 - 8:30 pm, visit us and meet the instructors, students, and alumni of our Data Science Bootcamp . Enjoy food and drinks as 3 recent bootcamp graduates give lightning talks and present the final projects they were able to create during their 12 weeks at Metis. Note: The early application deadline for the next bootcamp in Chicago is May 8th, so come learn more about the experience beforehand. Then on May 4th, we?ll be hosting your next Scientific SIG Meetup ! We look forward to these events and more. Feel free to join our Meetup group to stay updated on all upcoming events, as well as follow us on Twitter and Facebook . Reach out with any questions, anytime! Best, Metis -- Emily Wilson Marketing Manager, Metis (562) 900-4693 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe.jasinski at gmail.com Mon May 1 20:50:52 2017 From: joe.jasinski at gmail.com (Joe Jasinski) Date: Mon, 1 May 2017 19:50:52 -0500 Subject: [Chicago] ChiPy May Meeting Call for Speakers Message-ID: Hey all, We are looking for speakers for the May 11th ChiPy meeting. Loosely speaking, our theme for this month is "Advanced Python". So, if you have any talks related to Python internals, Python 3 features, some Python framework that you've been using, or any other topics along those lines, please submit a talk! Or, if there is a Python-related talk that doesn't quite fit that theme that you been eager to talk about, we'd be glad to see your submission also. Finally, we are looking for a short (5-10 min) module-of-the-month talk, where you'd give a presentation about an interesting Python module. You can submit your topic here or email me if you have any questions about it. http://www.chipy.org/meetings/topics/propose/ Looking forward to hearing from you! -- Joe J. Jasinski www.joejasinski.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szybalski at gmail.com Tue May 2 10:01:51 2017 From: szybalski at gmail.com (Lukasz Szybalski) Date: Tue, 2 May 2017 09:01:51 -0500 Subject: [Chicago] REST API to Python Class? Message-ID: Hello, Does anybody know if there is a tool that would auto-read rest API and create a python like object that you can interact in python? (like: pysimplesoap and its WSDL() but for REST) *myobject = Rest*(https://dev.twitter.com/rest/public) or http://developer.edmunds.com/api-documentation/vehicle/ or .... then myobject.get.searchTweet('chicago python')..? or what ever the syntax is. This would issue a rest api call and return object back. I think a lot of projects are building python api that are more and more json exposed. I'm looking for a tool that would allow me to access these using python, instead of rest: "GET /1.1/search/tweets.json?q=chicago%20python": +Access anything that was build with: http://swagger.io/ openapi Thanks Lucas -- LucasManual.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From elmq0022 at umn.edu Tue May 2 10:22:19 2017 From: elmq0022 at umn.edu (Aaron Elmquist) Date: Tue, 2 May 2017 09:22:19 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: I think it would be easy to load what I'm assuming is JSON into a python dictionary and use it from there. If you need an object with additional methods you could instantiate it from the dictionary. Something like: class MyClass(object): def __init__(self, parameters): self.a = a .... or you could get real fancy with setattr ... (maybe not a good idea though) then you could load it with: my_obj = MyClass(**dict_from_json_data) Honestly, I think I would just work with the dictionary directly if I could. On Tue, May 2, 2017 at 9:01 AM, Lukasz Szybalski wrote: > Hello, > Does anybody know if there is a tool that would auto-read rest API and > create a python like object that you can interact in python? (like: > pysimplesoap and its WSDL() but for REST) > > *myobject = Rest*(https://dev.twitter.com/rest/public) > > or > http://developer.edmunds.com/api-documentation/vehicle/ > or > .... > > > then myobject.get.searchTweet('chicago python')..? > or what ever the syntax is. > This would issue a rest api call and return object back. > > I think a lot of projects are building python api that are more and more > json exposed. I'm looking for a tool that would allow me to access these > using python, instead of rest: > > "GET /1.1/search/tweets.json?q=chicago%20python": > > +Access anything that was build with: > http://swagger.io/ > openapi > > > Thanks > Lucas > > > -- > LucasManual.com > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elmq0022 at umn.edu Tue May 2 10:23:12 2017 From: elmq0022 at umn.edu (Aaron Elmquist) Date: Tue, 2 May 2017 09:23:12 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: actually you probably need to specify all the keyword arg in the __init__ . On Tue, May 2, 2017 at 9:22 AM, Aaron Elmquist wrote: > I think it would be easy to load what I'm assuming is JSON into a python > dictionary and use it from there. > > If you need an object with additional methods you could instantiate it > from the dictionary. Something like: > > class MyClass(object): > def __init__(self, parameters): > self.a = a > .... > > or you could get real fancy with setattr ... (maybe not a good idea though) > > then you could load it with: > > my_obj = MyClass(**dict_from_json_data) > > > Honestly, I think I would just work with the dictionary directly if I > could. > > > On Tue, May 2, 2017 at 9:01 AM, Lukasz Szybalski > wrote: > >> Hello, >> Does anybody know if there is a tool that would auto-read rest API and >> create a python like object that you can interact in python? (like: >> pysimplesoap and its WSDL() but for REST) >> >> *myobject = Rest*(https://dev.twitter.com/rest/public) >> >> or >> http://developer.edmunds.com/api-documentation/vehicle/ >> or >> .... >> >> >> then myobject.get.searchTweet('chicago python')..? >> or what ever the syntax is. >> This would issue a rest api call and return object back. >> >> I think a lot of projects are building python api that are more and more >> json exposed. I'm looking for a tool that would allow me to access these >> using python, instead of rest: >> >> "GET /1.1/search/tweets.json?q=chicago%20python": >> >> +Access anything that was build with: >> http://swagger.io/ >> openapi >> >> >> Thanks >> Lucas >> >> >> -- >> LucasManual.com >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elmq0022 at umn.edu Tue May 2 10:42:29 2017 From: elmq0022 at umn.edu (Aaron Elmquist) Date: Tue, 2 May 2017 09:42:29 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: here's a json doc example with an object_hook from https://docs.python.org/3/library/json.html Specializing JSON object decoding: >>> >>> import json >>> def as_complex(dct): ... if '__complex__' in dct: ... return complex(dct['real'], dct['imag']) ... return dct ... >>> json.loads('{"__complex__": true, "real": 1, "imag": 2}', ... object_hook=as_complex) (1+2j) >>> import decimal >>> json.loads('1.1', parse_float=decimal.Decimal) Decimal('1.1') On Tue, May 2, 2017 at 9:23 AM, Aaron Elmquist wrote: > actually you probably need to specify all the keyword arg in the __init__ . > > On Tue, May 2, 2017 at 9:22 AM, Aaron Elmquist wrote: > >> I think it would be easy to load what I'm assuming is JSON into a python >> dictionary and use it from there. >> >> If you need an object with additional methods you could instantiate it >> from the dictionary. Something like: >> >> class MyClass(object): >> def __init__(self, parameters): >> self.a = a >> .... >> >> or you could get real fancy with setattr ... (maybe not a good idea >> though) >> >> then you could load it with: >> >> my_obj = MyClass(**dict_from_json_data) >> >> >> Honestly, I think I would just work with the dictionary directly if I >> could. >> >> >> On Tue, May 2, 2017 at 9:01 AM, Lukasz Szybalski >> wrote: >> >>> Hello, >>> Does anybody know if there is a tool that would auto-read rest API and >>> create a python like object that you can interact in python? (like: >>> pysimplesoap and its WSDL() but for REST) >>> >>> *myobject = Rest*(https://dev.twitter.com/rest/public) >>> >>> or >>> http://developer.edmunds.com/api-documentation/vehicle/ >>> or >>> .... >>> >>> >>> then myobject.get.searchTweet('chicago python')..? >>> or what ever the syntax is. >>> This would issue a rest api call and return object back. >>> >>> I think a lot of projects are building python api that are more and more >>> json exposed. I'm looking for a tool that would allow me to access these >>> using python, instead of rest: >>> >>> "GET /1.1/search/tweets.json?q=chicago%20python": >>> >>> +Access anything that was build with: >>> http://swagger.io/ >>> openapi >>> >>> >>> Thanks >>> Lucas >>> >>> >>> -- >>> LucasManual.com >>> >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anish.krishnan.1216 at gmail.com Tue May 2 10:51:05 2017 From: anish.krishnan.1216 at gmail.com (Anish Krishnan) Date: Tue, 2 May 2017 09:51:05 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: You could create a factory function called rest() that returns a new instance as Aaron has described. You could unpack the values in the function rather than in the object constructor. On May 2, 2017 9:33 AM, "Aaron Elmquist" wrote: actually you probably need to specify all the keyword arg in the __init__ . On Tue, May 2, 2017 at 9:22 AM, Aaron Elmquist wrote: > I think it would be easy to load what I'm assuming is JSON into a python > dictionary and use it from there. > > If you need an object with additional methods you could instantiate it > from the dictionary. Something like: > > class MyClass(object): > def __init__(self, parameters): > self.a = a > .... > > or you could get real fancy with setattr ... (maybe not a good idea though) > > then you could load it with: > > my_obj = MyClass(**dict_from_json_data) > > > Honestly, I think I would just work with the dictionary directly if I > could. > > > On Tue, May 2, 2017 at 9:01 AM, Lukasz Szybalski > wrote: > >> Hello, >> Does anybody know if there is a tool that would auto-read rest API and >> create a python like object that you can interact in python? (like: >> pysimplesoap and its WSDL() but for REST) >> >> *myobject = Rest*(https://dev.twitter.com/rest/public) >> >> or >> http://developer.edmunds.com/api-documentation/vehicle/ >> or >> .... >> >> >> then myobject.get.searchTweet('chicago python')..? >> or what ever the syntax is. >> This would issue a rest api call and return object back. >> >> I think a lot of projects are building python api that are more and more >> json exposed. I'm looking for a tool that would allow me to access these >> using python, instead of rest: >> >> "GET /1.1/search/tweets.json?q=chicago%20python": >> >> +Access anything that was build with: >> http://swagger.io/ >> openapi >> >> >> Thanks >> Lucas >> >> >> -- >> LucasManual.com >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From foresmac at gmail.com Tue May 2 10:52:11 2017 From: foresmac at gmail.com (Chris Foresman) Date: Tue, 2 May 2017 09:52:11 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: I don?t know of any tool that can arbitrarily interact with a JSON API unless it conforms to some open standard. I?d start looking here and see if this is compatible with the API you want to access: http://www.coreapi.org Chris Foresman foresmac at gmail.com > On May 2, 2017, at 9:01 AM, Lukasz Szybalski wrote: > > Hello, > Does anybody know if there is a tool that would auto-read rest API and create a python like object that you can interact in python? (like: pysimplesoap and its WSDL() but for REST) > > myobject = Rest(https://dev.twitter.com/rest/public ) > > or > http://developer.edmunds.com/api-documentation/vehicle/ > or > .... > > > then myobject.get.searchTweet('chicago python')..? > or what ever the syntax is. > This would issue a rest api call and return object back. > > I think a lot of projects are building python api that are more and more json exposed. I'm looking for a tool that would allow me to access these using python, instead of rest: > > "GET /1.1/search/tweets.json?q=chicago%20python": > > +Access anything that was build with: > http://swagger.io/ > openapi > > > Thanks > Lucas > > > -- > LucasManual.com > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakamura at gmail.com Tue May 2 10:52:25 2017 From: sakamura at gmail.com (Ishmael Rufus) Date: Tue, 2 May 2017 09:52:25 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: The advantage to using SOAP and WSDL is that all your services are defined in a standardized matter and you build all your classes and functions beforehand and not typically in real time. I think to build a tool that would work with multiple websites would be a bit more complex. On Tue, May 2, 2017 at 9:01 AM, Lukasz Szybalski wrote: > Hello, > Does anybody know if there is a tool that would auto-read rest API and > create a python like object that you can interact in python? (like: > pysimplesoap and its WSDL() but for REST) > > *myobject = Rest*(https://dev.twitter.com/rest/public) > > or > http://developer.edmunds.com/api-documentation/vehicle/ > or > .... > > > then myobject.get.searchTweet('chicago python')..? > or what ever the syntax is. > This would issue a rest api call and return object back. > > I think a lot of projects are building python api that are more and more > json exposed. I'm looking for a tool that would allow me to access these > using python, instead of rest: > > "GET /1.1/search/tweets.json?q=chicago%20python": > > +Access anything that was build with: > http://swagger.io/ > openapi > > > Thanks > Lucas > > > -- > LucasManual.com > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From foresmac at gmail.com Tue May 2 10:55:08 2017 From: foresmac at gmail.com (Chris Foresman) Date: Tue, 2 May 2017 09:55:08 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: You guys are talking about building a Python object that basically has attributes that would match the dictionary from doing a `json.loads(response.content)`. That?s not what Lucas is asking for; what he wants is something that will simply abstract using the actual API by getting metadata from the main endpoint. That only works with APIs built with something like OpenAPI/Swagger, etc. Django REST Framework does this is the latest versions, for instance, and CoreAPI has a client that will do this with any API that conforms to OpenAPI, Swagger, CoreAPI, etc. Chris Foresman foresmac at gmail.com > On May 2, 2017, at 9:51 AM, Anish Krishnan wrote: > > You could create a factory function called rest() that returns a new instance as Aaron has described. You could unpack the values in the function rather than in the object constructor. > > On May 2, 2017 9:33 AM, "Aaron Elmquist" > wrote: > actually you probably need to specify all the keyword arg in the __init__ . > > On Tue, May 2, 2017 at 9:22 AM, Aaron Elmquist > wrote: > I think it would be easy to load what I'm assuming is JSON into a python dictionary and use it from there. > > If you need an object with additional methods you could instantiate it from the dictionary. Something like: > > class MyClass(object): > def __init__(self, parameters): > self.a = a > .... > > or you could get real fancy with setattr ... (maybe not a good idea though) > > then you could load it with: > > my_obj = MyClass(**dict_from_json_data) > > > Honestly, I think I would just work with the dictionary directly if I could. > > > On Tue, May 2, 2017 at 9:01 AM, Lukasz Szybalski > wrote: > Hello, > Does anybody know if there is a tool that would auto-read rest API and create a python like object that you can interact in python? (like: pysimplesoap and its WSDL() but for REST) > > myobject = Rest(https://dev.twitter.com/rest/public ) > > or > http://developer.edmunds.com/api-documentation/vehicle/ > or > .... > > > then myobject.get.searchTweet('chicago python')..? > or what ever the syntax is. > This would issue a rest api call and return object back. > > I think a lot of projects are building python api that are more and more json exposed. I'm looking for a tool that would allow me to access these using python, instead of rest: > > "GET /1.1/search/tweets.json?q=chicago%20python": > > +Access anything that was build with: > http://swagger.io/ > openapi > > > Thanks > Lucas > > > -- > LucasManual.com > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanb at hafd.org Tue May 2 11:03:56 2017 From: jordanb at hafd.org (Jordan Bettis) Date: Tue, 02 May 2017 10:03:56 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: <59089FDC.6030005@hafd.org> You'd need to have the service provide a WSDL for this to be possible. I've rarely seen REST/JSON APIs with a WSDL. OTOH REST/JSON APIs tend to be a heck of a lot more simple than SOAP APIs, and easier to read too. On 05/02/2017 09:52 AM, Chris Foresman wrote: > I don?t know of any tool that can arbitrarily interact with a JSON API > unless it conforms to some open standard. I?d start looking here and > see if this is compatible with the API you want to > access: http://www.coreapi.org > > > Chris Foresman > foresmac at gmail.com > > > > >> On May 2, 2017, at 9:01 AM, Lukasz Szybalski > > wrote: >> >> Hello, >> Does anybody know if there is a tool that would auto-read rest API and >> create a python like object that you can interact in python? (like: >> pysimplesoap and its WSDL() but for REST) >> >> /myobject = Rest/(https://dev.twitter.com/rest/public) >> >> or >> http://developer.edmunds.com/api-documentation/vehicle/ >> or >> .... >> >> >> then myobject.get.searchTweet('chicago python')..? >> or what ever the syntax is. >> This would issue a rest api call and return object back. >> >> I think a lot of projects are building python api that are more and >> more json exposed. I'm looking for a tool that would allow me to >> access these using python, instead of rest: >> * >> *"GET /1.1/search/tweets.json?q=chicago%20python": >> >> +Access anything that was build with: >> http://swagger.io/ >> openapi >> >> >> Thanks >> Lucas >> >> >> -- >> LucasManual.com >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > From foresmac at gmail.com Tue May 2 11:14:59 2017 From: foresmac at gmail.com (Chris Foresman) Date: Tue, 2 May 2017 10:14:59 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: <59089FDC.6030005@hafd.org> References: <59089FDC.6030005@hafd.org> Message-ID: <5565373B-7516-49CB-858C-445FB323F1F3@gmail.com> There are standards for this: - Core JSON - Open API/Swagger - HAL - JSON Hyper-Schema > On May 2, 2017, at 10:03 AM, Jordan Bettis wrote: > > You'd need to have the service provide a WSDL for this to be possible. > I've rarely seen REST/JSON APIs with a WSDL. OTOH REST/JSON APIs tend to > be a heck of a lot more simple than SOAP APIs, and easier to read too. > > On 05/02/2017 09:52 AM, Chris Foresman wrote: >> I don?t know of any tool that can arbitrarily interact with a JSON API >> unless it conforms to some open standard. I?d start looking here and >> see if this is compatible with the API you want to >> access: http://www.coreapi.org >> From szybalski at gmail.com Tue May 2 11:33:13 2017 From: szybalski at gmail.com (Lukasz Szybalski) Date: Tue, 2 May 2017 10:33:13 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: Hello, The point that I'm trying to get the structure in a python, without knowing the endopoint nor rest. It would be great if I can then figure out all the calls by using something like dir(myobject) and know twitter has these calls "user_timeline,home_timelin,show,retweets". The point would be not to write any code, and assume things are handled using Post,Get,Put, and auto magically figure out parameters either from swagger docs, or endpoints themself. " *Timelines* - GET/statuses/mentions_timeline.json - GET/statuses/user_timeline.json - GET/statuses/home_timeline.json *Tweets* - GET/statuses/retweets/{id}.json - GET/statuses/show/{id}.json - POST/statuses/destroy/{id}.json " Thanks Lucas > >>>> >>>> >>>> >>>> -- >>>> LucasManual.com >>>> >>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From foresmac at gmail.com Tue May 2 11:37:01 2017 From: foresmac at gmail.com (Chris Foresman) Date: Tue, 2 May 2017 10:37:01 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: <8961DB9C-0578-44EB-A525-3B36130F2B3E@gmail.com> Yes, as stated a few times, this _only_ works when the REST API you are trying to access conforms to one of the published standards such as Core JSON, OpenAPI, etc. See here: http://www.coreapi.org > On May 2, 2017, at 10:33 AM, Lukasz Szybalski wrote: > > Hello, > The point that I'm trying to get the structure in a python, without knowing the endopoint nor rest. It would be great if I can then figure out all the calls by using something like dir(myobject) and know twitter has these calls "user_timeline,home_timelin,show,retweets". The point would be not to write any code, and assume things are handled using Post,Get,Put, and auto magically figure out parameters either from swagger docs, or endpoints themself. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szybalski at gmail.com Tue May 2 15:54:29 2017 From: szybalski at gmail.com (Lukasz Szybalski) Date: Tue, 2 May 2017 14:54:29 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: <8961DB9C-0578-44EB-A525-3B36130F2B3E@gmail.com> References: <8961DB9C-0578-44EB-A525-3B36130F2B3E@gmail.com> Message-ID: On Tue, May 2, 2017 at 10:37 AM, Chris Foresman wrote: > Yes, as stated a few times, this _only_ works when the REST API you are > trying to access conforms to one of the published standards such as Core > JSON, OpenAPI, etc. See here: http://www.coreapi.org > And if it does confirm to Rest API from "Core JSon, open API, then what's the name of the tool that will build the python object for every function call, and list all parameters? (Sorry if I missed that in one of the emails) Thanks Lucas > > -- http://lucasmanual.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From foresmac at gmail.com Tue May 2 16:00:17 2017 From: foresmac at gmail.com (Chris Foresman) Date: Tue, 2 May 2017 15:00:17 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: <8961DB9C-0578-44EB-A525-3B36130F2B3E@gmail.com> Message-ID: Currently the only tool I know if is CoreAPI: http://www.coreapi.org Chris Foresman foresmac at gmail.com > On May 2, 2017, at 2:54 PM, Lukasz Szybalski wrote: > > > > > On Tue, May 2, 2017 at 10:37 AM, Chris Foresman > wrote: > Yes, as stated a few times, this _only_ works when the REST API you are trying to access conforms to one of the published standards such as Core JSON, OpenAPI, etc. See here: http://www.coreapi.org > > > And if it does confirm to Rest API from "Core JSon, open API, then what's the name of the tool that will build the python object for every function call, and list all parameters? > > (Sorry if I missed that in one of the emails) > > Thanks > Lucas > > > > > > > -- > http://lucasmanual.com/ > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobh at haddleton.net Tue May 2 18:00:58 2017 From: bobh at haddleton.net (Bob Haddleton) Date: Tue, 2 May 2017 17:00:58 -0500 Subject: [Chicago] REST API to Python Class? Message-ID: <922faa1c-2f06-8170-2735-71de0bc669db@haddleton.net> Apologies if this is posted twice. The Bravado library generates client-side code based on a specified swagger definition: https://github.com/Yelp/bravado There are some basic examples in the repo, but basically it uses the "tags" and "operationIds" specified in the swagger.json file to create objects/methods that invoke the REST API calls. There is a similar library called Connexion for creating the server-side code. Bob From bob.haddleton at nokia.com Tue May 2 11:29:20 2017 From: bob.haddleton at nokia.com (HADDLETON, Robert W (Bob)) Date: Tue, 2 May 2017 10:29:20 -0500 Subject: [Chicago] REST API to Python Class? In-Reply-To: <59089FDC.6030005@hafd.org> References: <59089FDC.6030005@hafd.org> Message-ID: Python Swagger/OpenAPI Client library - https://github.com/Yelp/bravado Python Swagger/OpenAPI Server Library - https://github.com/zalando/connexion Both have examples that demonstrate how to use them to import swagger.json definition files and interact with/serve the associated REST API. Bob On 5/2/2017 10:03 AM, Jordan Bettis wrote: > You'd need to have the service provide a WSDL for this to be possible. > I've rarely seen REST/JSON APIs with a WSDL. OTOH REST/JSON APIs tend to > be a heck of a lot more simple than SOAP APIs, and easier to read too. > > On 05/02/2017 09:52 AM, Chris Foresman wrote: >> I don?t know of any tool that can arbitrarily interact with a JSON API >> unless it conforms to some open standard. I?d start looking here and >> see if this is compatible with the API you want to >> access: http://www.coreapi.org >> >> >> Chris Foresman >> foresmac at gmail.com >> >> >> >> >>> On May 2, 2017, at 9:01 AM, Lukasz Szybalski >> > wrote: >>> >>> Hello, >>> Does anybody know if there is a tool that would auto-read rest API and >>> create a python like object that you can interact in python? (like: >>> pysimplesoap and its WSDL() but for REST) >>> >>> /myobject = Rest/(https://dev.twitter.com/rest/public) >>> >>> or >>> http://developer.edmunds.com/api-documentation/vehicle/ >>> or >>> .... >>> >>> >>> then myobject.get.searchTweet('chicago python')..? >>> or what ever the syntax is. >>> This would issue a rest api call and return object back. >>> >>> I think a lot of projects are building python api that are more and >>> more json exposed. I'm looking for a tool that would allow me to >>> access these using python, instead of rest: >>> * >>> *"GET /1.1/search/tweets.json?q=chicago%20python": >>> >>> +Access anything that was build with: >>> http://swagger.io/ >>> openapi >>> >>> >>> Thanks >>> Lucas >>> >>> >>> -- >>> LucasManual.com >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> https://mail.python.org/mailman/listinfo/chicago >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- A non-text attachment was scrubbed... Name: bob_haddleton.vcf Type: text/x-vcard Size: 278 bytes Desc: not available URL: From bob.haddleton at nokia.com Tue May 2 10:14:07 2017 From: bob.haddleton at nokia.com (Haddleton, Bob (Nokia - US/Naperville)) Date: Tue, 2 May 2017 14:14:07 +0000 Subject: [Chicago] REST API to Python Class? In-Reply-To: References: Message-ID: <30E7AA27-0F65-4A50-8EA2-DF216310F5D6@nokia.com> Lucas: Take a look at the bravado library module. It reads the swagger definition of a rest API and generates the client code to interact with it. Bob On May 2, 2017, at 09:11, Lukasz Szybalski > wrote: Hello, Does anybody know if there is a tool that would auto-read rest API and create a python like object that you can interact in python? (like: pysimplesoap and its WSDL() but for REST) myobject = Rest(https://dev.twitter.com/rest/public) or http://developer.edmunds.com/api-documentation/vehicle/ or .... then myobject.get.searchTweet('chicago python')..? or what ever the syntax is. This would issue a rest api call and return object back. I think a lot of projects are building python api that are more and more json exposed. I'm looking for a tool that would allow me to access these using python, instead of rest: "GET /1.1/search/tweets.json?q=chicago%20python": +Access anything that was build with: http://swagger.io/ openapi Thanks Lucas -- LucasManual.com _______________________________________________ Chicago mailing list Chicago at python.org https://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From peppers at gmail.com Thu May 4 09:33:30 2017 From: peppers at gmail.com (Terry Peppers) Date: Thu, 4 May 2017 08:33:30 -0500 Subject: [Chicago] PyCon 2017 / TiP BoF Message-ID: Hey Chicago. PyCon 2017 is right around the corner and if you haven't heard, the TiP BoF is back in action. The Testing in Python Birds of a Feather is an alternate version for lightning talks about all things testing in Python. It's known to be a very irreverant and funny set of lightning talks that are very loosely organized. This year, we're taking it away from the conference center and putting it in a venue thanks to Heroku. On Friday, May 19 from 09:30 PM - 11:30 PM, we'll have a screen, a mic and a slew of lightning talks. You can sign up @ Event Brite: https://www.eventbrite.com/e/pycon-2017-testing-bof-tickets-32826368552 Brandon Rhodes also posted something on the PyCon blog: http://pycon.blogspot.com/2017/04/the-return-of-testing-bof.html If you're not doing anything on Friday night, want to hang out with a bunch of people about testing, or maybe want to give a lightning talk ... come on by! - Terry -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidkunio at gmail.com Fri May 5 21:53:52 2017 From: davidkunio at gmail.com (David Matsumura) Date: Sat, 06 May 2017 01:53:52 +0000 Subject: [Chicago] FinSIG: HDF Group Message-ID: - Hey Chipy! You may not realize it, but you have probably use HDF Group supported software. Many applications are powered by pytables. Particularly popular in big compute or machine learning packages like Keras or on platforms like Kaggle, HDF5 is becoming a standard data structure. The HDF group and the open source software they support form key pieces of big data and big compute systems. Built for scientists, the tools also have many applications in finance. Come learn how HDF Group drives innovation in big computing and machine learning. Thanks to the UIC MS in Business Analytics program for providing the space and HDF Group is providing the food and drinks as well as the speakers. Benefit of meeting at a bar? First drink is free (thanks Dax and HDF). Look forward to seeing you there. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Mon May 8 22:49:21 2017 From: brianhray at gmail.com (Brian Ray) Date: Mon, 8 May 2017 22:49:21 -0400 Subject: [Chicago] Last Call on meeting time Message-ID: Here is the new meeting time: - 2 times a month - :45 minutes - Mondays - 7pm Unless there is a strong objection (like you can't make it) this will be our chipy organizers meeting. Brian -- Brian Ray @brianray (773) 669-7717 -------------- next part -------------- An HTML attachment was scrubbed... URL: From elmq0022 at umn.edu Mon May 8 23:30:58 2017 From: elmq0022 at umn.edu (Aaron Elmquist) Date: Mon, 8 May 2017 22:30:58 -0500 Subject: [Chicago] Last Call on meeting time In-Reply-To: References: Message-ID: Was this supposed to go out to the general list? On May 8, 2017 9:49 PM, "Brian Ray" wrote: > > Here is the new meeting time: > > > - > > 2 times a month > - > > :45 minutes > - > > Mondays > - 7pm > > > Unless there is a strong objection (like you can't make it) this will be > our chipy organizers meeting. > > Brian > > -- > Brian Ray > @brianray > (773) 669-7717 > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Tue May 9 08:21:13 2017 From: brianhray at gmail.com (Brian Ray) Date: Tue, 9 May 2017 08:21:13 -0400 Subject: [Chicago] Last Call on meeting time In-Reply-To: References: Message-ID: Hi Aaron: No, this is for the board. Please ignore. I meant to send it to " chicago-organizers at python.org" BTW, if you need to contact us that is our email. See you all on thursday! It will be our best meeting ever. On Mon, May 8, 2017 at 11:30 PM, Aaron Elmquist wrote: > Was this supposed to go out to the general list? > > On May 8, 2017 9:49 PM, "Brian Ray" wrote: > >> >> Here is the new meeting time: >> >> >> - >> >> 2 times a month >> - >> >> :45 minutes >> - >> >> Mondays >> - 7pm >> >> >> Unless there is a strong objection (like you can't make it) this will be >> our chipy organizers meeting. >> >> Brian >> >> -- >> Brian Ray >> @brianray >> (773) 669-7717 >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -- Brian Ray @brianray (773) 669-7717 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe.jasinski at gmail.com Tue May 9 19:33:34 2017 From: joe.jasinski at gmail.com (Joe Jasinski) Date: Tue, 9 May 2017 18:33:34 -0500 Subject: [Chicago] ChiPy May Meeting Call for Speakers In-Reply-To: References: Message-ID: ChiPy, We are still looking for a Python Module of the Month talk for the May meeting. This can be a short 5-10 min talk about your favorite Python module. Don't be shy! Go ahead and submit here or email me with questions: http://www.chipy.org/meetings/topics/propose/ Looking forward to your talk! Joe On Mon, May 1, 2017 at 7:50 PM, Joe Jasinski wrote: > Hey all, > > We are looking for speakers for the May 11th ChiPy meeting. Loosely > speaking, our theme for this month is "Advanced Python". So, if you have > any talks related to Python internals, Python 3 features, some Python > framework that you've been using, or any other topics along those lines, > please submit a talk! > > Or, if there is a Python-related talk that doesn't quite fit that theme > that you been eager to talk about, we'd be glad to see your submission > also. > > Finally, we are looking for a short (5-10 min) module-of-the-month talk, > where you'd give a presentation about an interesting Python module. > > You can submit your topic here or email me if you have any questions about > it. > http://www.chipy.org/meetings/topics/propose/ > > Looking forward to hearing from you! > > > -- > Joe J. Jasinski > www.joejasinski.com > -- Joe J. Jasinski www.joejasinski.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe.jasinski at gmail.com Wed May 10 00:06:05 2017 From: joe.jasinski at gmail.com (Joe Jasinski) Date: Tue, 9 May 2017 23:06:05 -0500 Subject: [Chicago] ChiPy May 2017 Meeting Message-ID: All, It's time to get ready for our May ChiPy meeting. We hope you can join us for a fun evening of Python. Hope to see you there! *When:*Thursday May 11th 6:00pm: Doors open; food arrives 6:30pm: Welcome table - meet new people 7:00pm: Talks Start promptly at 7 *How:*You can rsvp at chipy.org or via our Meetup group. *Where:* Telnyx 311 W Superior St, STE 504 Chicago, IL 60654 *What:* Python for mathematical visualization: a four-dimensional case study By: David Dumas This is a talk about creating pictures of a mathematical object---specifically, a 4-dimensional fractal "dust" that has been the subject of mathematical research in hyperbolic geometry since the 1980s. In the end this is accomplished using a little algebra, a little geometry, and a healthy dose of Python. That is, I will present a case study of using Python in several aspects of a mathematical visualization project, from the computation itself, to transforming and converting data, and finally for scripting the process of generating the images. Along the way I'll explain how Python's convenient idioms and containers (e.g. sets and set comprehensions) are a good fit for some of the algebraic and geometric questions that come up, how Scipy and Numpy enable fast numerical calculations, and how Python's strength as a language for scripting and automation allows easy orchestration of rendering of still images and frames of animations. The mathematical visualization project we describe is a collaboration with Fran?ois Gu?ritaud (Universit? de Lille). Letsencrypt with Python Webapps By: Joe Jasinski In-browser encryption is more important now than ever. When building modern web-apps, encryption is a necessity. This talk will detail how you can secure your Python-based projects with Letsencrypt, a free certificate authority available to anyone. It will cover the Python-based tools available to configure Letsencrypt and an example project utilizing it. Thank you always to all our sponsors, including our Diamond sponsor: Metis. Also thank you to our Platinum sponsors: Braintree, Imaginary Landscape, Signature Consultants, and Telnyx. Please be aware of our code of conduct http://www.chipy.org/pages/conduct/ -- Joe J. Jasinski www.joejasinski.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.hayward at pobox.com Thu May 11 19:54:50 2017 From: jonathan.hayward at pobox.com (C.J.S. Hayward) Date: Thu, 11 May 2017 23:54:50 +0000 Subject: [Chicago] Tweeted tonight Message-ID: There are now three types of computer languages: those that people complain about, those that no one uses, and those that are Pythonic. -- [image: Christos Jonathan Seth Hayward] *Christos Jonathan Seth Hayward *, an Orthodox Christian author (*main site * ? *bookshelf *). If you read one of my books, I would ask you to very seriously consider *The Best of Jonathan's Corner *. It has favorites I've been collecting for *years*. One other thing: I'm trying to get to a monastery on Mount Athos. *Would you care to make a small donation? * -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertbdean at gmail.com Thu May 11 22:35:41 2017 From: robertbdean at gmail.com (Robert Dean) Date: Thu, 11 May 2017 21:35:41 -0500 Subject: [Chicago] Tweeted tonight In-Reply-To: References: Message-ID: H O W did this commerical note manage to get distributed by our python group?!? Because of its f i r s t sentence? On Thu, May 11, 2017 at 6:54 PM, C.J.S. Hayward wrote: > There are now three types of computer languages: those that people > complain about, those that no one uses, and those that are Pythonic. > -- > [image: Christos Jonathan Seth Hayward] *Christos > Jonathan Seth Hayward *, an Orthodox Christian > author (*main site * ? *bookshelf > *). > > If you read one of my books, I would ask you to very seriously consider *The > Best of Jonathan's Corner > *. > It has favorites I've been collecting for *years*. > > One other thing: I'm trying to get to a monastery on Mount Athos. *Would > you care to make a small donation? > * > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From comicpilsen at gmail.com Thu May 11 23:11:48 2017 From: comicpilsen at gmail.com (comicpilsen) Date: Thu, 11 May 2017 22:11:48 -0500 Subject: [Chicago] Tweeted tonight In-Reply-To: References: Message-ID: <4e5afef9-1920-ed83-2864-41b343063f2a@gmail.com> ditto On 5/11/2017 9:35 PM, Robert Dean wrote: > H O W did this commerical note manage to get distributed > by our python group?!? Because of its f i r s t sentence? > > On Thu, May 11, 2017 at 6:54 PM, C.J.S. Hayward > wrote: > > There are now three types of computer languages: those that people complain about, > those that no one uses, and those that are Pythonic. > -- > Christos Jonathan Seth Hayward *Christos Jonathan Seth > Hayward *, an Orthodox Christian author (*main site > * ? *bookshelf *). > > If you read one of my books, I would ask you to very seriously consider *The Best of > Jonathan's Corner > *. > It has favorites I've been collecting for /years/. > > One other thing: I'm trying to get to a monastery on Mount Athos. *Would you care to > make a small donation? * > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinaldo at gmail.com Thu May 11 13:03:11 2017 From: dinaldo at gmail.com (Don Sheu) Date: Thu, 11 May 2017 10:03:11 -0700 Subject: [Chicago] Chicago @ PyCon - who is going? In-Reply-To: <50869A74BA4F07468AD797C9BFF1FE3E4AF1F160@A0185-XPO1026-C.ad.allstate.com> References: <50869A74BA4F07468AD797C9BFF1FE3E4AF1F160@A0185-XPO1026-C.ad.allstate.com> Message-ID: Confirmed, Jaguar Land Rover Innovation Incubator will host our combined local user group happy hour. We'll gather at 5:30pm to 7:30pm. From there we may proceed to Sentry+Linode's after-party. Here's some ChiPy members in the crowd last year when Simple's HQ hosted us. ? ? On Mon, May 1, 2017 at 8:09 AM, Robare, Phillip (TEKSystems) < proba at allstate.com> wrote: > Arriving Thursday. Look forward to seeing Chicago people out there. > > > > Phil Robare > > > > *From:* Chicago [mailto:chicago-bounces+proba=allstate.com at python.org] *On > Behalf Of *Lorena Mesa > *Sent:* Friday, April 28, 2017 9:14 PM > *To:* chicago at python.org > *Subject:* [Chicago] Chicago @ PyCon - who is going? > > > > Hi folks, > > > > Curious who is going to PyCon from Chicago? I arrive the 18th and was > hoping to coordinate some meals with folks! > > __________________________________________________________________ > > *Lorena Mesa* > > Co-Organizer, PyLadies Chicago > > > Director, Python Software Foundation > > www.lorenamesa.com > > > @loooorenanicole > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -- Don Sheu 312.880.9389 - - - - - - - - - - - - - - - - - - My Python user group convenes every month 2nd Wednesdays http://www.meetup.com/PSPPython/events/232708762/ *CONFIDENTIALITY NOTICE*: *The information contained in this message may be protected trade secrets or protected by applicable intellectual property laws of the United States and International agreements. If you believe that it has been sent to you in error, do not read it. Please immediately reply to the sender that you have received the message in error. Then delete it. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DSC02074.jpg Type: image/jpeg Size: 3737067 bytes Desc: not available URL: From emperorcezar at gmail.com Sat May 13 21:05:21 2017 From: emperorcezar at gmail.com (Adam "Cezar" Jenkins) Date: Sat, 13 May 2017 20:05:21 -0500 Subject: [Chicago] Tweeted tonight In-Reply-To: References: Message-ID: That's a real person and a member of the mailing list. So it wasn't caught by any of the filters and didn't go into moderation. It also looks like a normal mail if you take that gnarly signature out of it. Not sure if we want to start enforcing style guidelines around signatures, but I can leave that up to the community. ------------------------------------------------------------------------------------------------------------- Father, Pythonista, Cyclist, Brewer. Dabbling in Clojure and Functional Languages On Thu, May 11, 2017 at 9:35 PM, Robert Dean wrote: > H O W did this commerical note manage to get distributed > by our python group?!? Because of its f i r s t sentence? > > On Thu, May 11, 2017 at 6:54 PM, C.J.S. Hayward < > jonathan.hayward at pobox.com> wrote: > >> There are now three types of computer languages: those that people >> complain about, those that no one uses, and those that are Pythonic. >> -- >> [image: Christos Jonathan Seth Hayward] *Christos >> Jonathan Seth Hayward *, an Orthodox Christian >> author (*main site * ? *bookshelf >> *). >> >> If you read one of my books, I would ask you to very seriously consider *The >> Best of Jonathan's Corner >> *. >> It has favorites I've been collecting for *years*. >> >> One other thing: I'm trying to get to a monastery on Mount Athos. *Would >> you care to make a small donation? >> * >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> https://mail.python.org/mailman/listinfo/chicago >> >> > > _______________________________________________ > Chicago mailing list > Chicago at python.org > https://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby.urner at gmail.com Sat May 13 21:42:49 2017 From: kirby.urner at gmail.com (kirby urner) Date: Sat, 13 May 2017 18:42:49 -0700 Subject: [Chicago] Chicago @ PyCon - who is going? In-Reply-To: References: <50869A74BA4F07468AD797C9BFF1FE3E4AF1F160@A0185-XPO1026-C.ad.allstate.com> Message-ID: On Thu, May 11, 2017 at 10:03 AM, Don Sheu wrote: > Confirmed, Jaguar Land Rover Innovation Incubator will host our combined > local user group happy hour. > > We'll gather at 5:30pm to 7:30pm. From there we may proceed to > Sentry+Linode's after-party. > Wondering if I might crash this as a Portland resident / Pycon attender / Chipy list lurker and Chicago / Pycon attender in years gone by. Was that to be 18th or 19th? I've got the time. Kirby Urner -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe.jasinski at gmail.com Thu May 25 09:33:58 2017 From: joe.jasinski at gmail.com (Joe Jasinski) Date: Thu, 25 May 2017 08:33:58 -0500 Subject: [Chicago] ChiPy June 8th Meeting Call for Speakers Message-ID: Hey all, PyCon has wrapped up and the June 8th ChiPy meeting is fast approaching. We are looking for speakers to talk at that meeting on a Python-related topic. If you are looking to get involved with the Python community, this is an excellent opportunity to do so! We are also looking for someone who is willing to give a 5-10 minute "Module of the Month" lightning talk, covering a useful Python module or module feature. You can submit your topic here, or email me if you have any questions: http://www.chipy.org/meetings/topics/propose/ If you'd like to attend the next meeting, you can rsvp at chipy.org or via our Meetup group. -- Joe J. Jasinski www.joejasinski.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Fri May 26 13:25:31 2017 From: brianhray at gmail.com (Brian Ray) Date: Fri, 26 May 2017 13:25:31 -0400 Subject: [Chicago] Host ChiPy in June Message-ID: Any organizations out there want to host our ChiPy meeting, June 8th 6pm-9pm? We need a space for over 100 people. Please let myself or someone on the board know. Thanks! -- Brian Ray @brianray (773) 669-7717 -------------- next part -------------- An HTML attachment was scrubbed... URL: