Re: [Python] REST framework

2017-03-02 Per discussione Pietro Brunetti
Ho sentito parlar bene di hug http://www.hug.rest/

Il giorno 1 marzo 2017 18:08, Riccardo Magliocchetti <
riccardo.magliocche...@gmail.com> ha scritto:

> Il 20/02/2017 19:01, bruno bossola ha scritto:
>
>> Ciao a tutti,
>>
>> Qui da noi in EF usiamo Python nel backend (oltre a Go e NodeJS) e
>> vorremmo
>> sviluppare nuovi servizi REST usando Python. Attualmente, usando Tornado,
>> abbiamo in generale delle ottime prestazioni (non-blocking I/O is good
>> :)) ma
>> gli sviluppatori qui vorrebbero usare un "framework REST" (e vabbe'... )
>> ma mi
>> propongono tutti frameworks belli sincroni e lenti :)
>>
> [snip]
>
>> Voi cosa usereste? Esiste un buon stack non-blocking per Python lato
>> server che
>> includa un REST framework che possa piacere ai miei developers?
>>
>
> Casualmente googlando altro mi è saltato fuori questo:
> https://github.com/hfaran/Tornado-JSON
>
> Se usate json potrebbe essere più comodo che usare tornado dritto
>
> --
> Riccardo Magliocchetti
> @rmistaken
>
> http://menodizero.it
>
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
>



-- 
There is a crack, a crack in everything. That’s how the light gets in
L. Cohen
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-03-01 Per discussione Riccardo Magliocchetti

Il 20/02/2017 19:01, bruno bossola ha scritto:

Ciao a tutti,

Qui da noi in EF usiamo Python nel backend (oltre a Go e NodeJS) e vorremmo
sviluppare nuovi servizi REST usando Python. Attualmente, usando Tornado,
abbiamo in generale delle ottime prestazioni (non-blocking I/O is good :)) ma
gli sviluppatori qui vorrebbero usare un "framework REST" (e vabbe'... ) ma mi
propongono tutti frameworks belli sincroni e lenti :)

[snip]

Voi cosa usereste? Esiste un buon stack non-blocking per Python lato server che
includa un REST framework che possa piacere ai miei developers?


Casualmente googlando altro mi è saltato fuori questo:
https://github.com/hfaran/Tornado-JSON

Se usate json potrebbe essere più comodo che usare tornado dritto

--
Riccardo Magliocchetti
@rmistaken

http://menodizero.it
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-21 Per discussione Francesco Palumbo
> Troppo vecchio per avere senso.

Vero, e' datato. Ma c'e' dentro l'amato web.py  e non ho potuto resistere :-).

Il 21 febbraio 2017 13:04, Manlio Perillo  ha scritto:
> 2017-02-21 9:50 GMT+01:00 Francesco Palumbo :
>> Ciao,
>> qui e' stato fatto qualche benchmark dei vari framework:
>> http://ziutek.github.io/web_bench/
>>
>
> Troppo vecchio per avere senso.
>
>> [...]
>
> Ciao  Manlio
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-21 Per discussione Manlio Perillo
2017-02-21 9:50 GMT+01:00 Francesco Palumbo :
> Ciao,
> qui e' stato fatto qualche benchmark dei vari framework:
> http://ziutek.github.io/web_bench/
>

Troppo vecchio per avere senso.

> [...]

Ciao  Manlio
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-21 Per discussione Francesco Palumbo
Ciao,
qui e' stato fatto qualche benchmark dei vari framework:
http://ziutek.github.io/web_bench/

Io comunque tendo a usare web.py data la sua semplicita'.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-21 Per discussione Michele Gatti
http://www.hug.rest/Il giorno lun 20 feb 2017 alle ore 19:01 bruno bossola <
bboss...@gmail.com> ha scritto:

> Ciao a tutti,
>
> Qui da noi in EF usiamo Python nel backend (oltre a Go e NodeJS) e
> vorremmo sviluppare nuovi servizi REST usando Python. Attualmente, usando
> Tornado, abbiamo in generale delle ottime prestazioni (non-blocking I/O is
> good :)) ma gli sviluppatori qui vorrebbero usare un "framework REST" (e
> vabbe'... ) ma mi propongono tutti frameworks belli sincroni e lenti :)
>
> Il problema che abbiamo qui e' che ci interfacciamo con servizi vecchiotti
> e non troppo veloci, quindi le richieste di solito sono il frutto di parte
> lavoro locale e parte aggregazione di contenuti succhiati via HTTP da
> qualche altro posto.
>
> Voi cosa usereste? Esiste un buon stack non-blocking per Python lato
> server che includa un REST framework che possa piacere ai miei developers?
>
> Ciao,
>
> Bruno
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python



Io Ultimamente sto usando HUG   bello e
riutilizzabile anche per comandi CLI
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione bruno bossola
Sorry non credo nella transcompilazione, e comunque non è che tutto diventa
magicamente più veloce... l' I/O asincrono fa la differenza.

Ciao,

Bruno

On 20 Feb 2017 22:56, "Fundor 333"  wrote:

> Il 20 febbraio 2017 22:25:23 CET, Paolo Melchiorre 
> ha scritto:
>>
>> On Mon, Feb 20, 2017, 22:15 Strap Lab  wrote:
>>
>>>
>>> Il 20/feb/2017 20:32, "bruno bossola"  ha scritto:
>>>
>>> On 20 Feb 2017 19:05, "Marco"  wrote:
>>>
>>> Forse intendono
>>> http://www.django-rest-framework.org/
>>>
>>>
>>>
>>> Sanic https://github.com/channelcat/sanic
>>> Hug https://github.com/timothycrosley/hug
>>> Japronto https://github.com/squeaky-pl/japronto
>>>
>>
>> Attenzione che Japronto é poco più di una demo come ha sottolineato lo
>> sviluppatore:
>>
>> "This is an early preview with alpha quality implementation.
>> ...
>> Don't use it for anything serious for now and definitely don't use it in
>> production.
>> ...
>> If you are shopping for your next project's framework I would recommend
>> Sanic."
>>
>> Non ho esperienza diretta ma fossi in te mi orienterei su Sanic e magari
>> darei un feedback qui in lista dopo.
>>
>> Buona serata,
>> Paolo
>>
>>>
> Vorrei capire se una soluzione come https://github.com/google/grumpy
> possa essere utile nel vostro caso, in quanto sviluppate Python facendolo
> girare con performance go, o sia meglio sviluppare direttamente in go?
> --
> Fundor333
> Inviato dal mio dispositivo Android.
>
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
>
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione bruno bossola
Mmm no, preferisco prendere uno sviluppatore extra e per scalare nel futuro
aggiungendo una macchina (+16x), non credo molto nei framework comunque,
credo nel codice scritto bene :)

Ciao,

Bruno



On 20 Feb 2017 21:09, "Marco"  wrote:

> Io fare diverse considerazioni se l'utilizzo di framework migliora
> l'efficienza e i processi di sviluppo, in soldoni si sviluppa in meno
> tempo, chi se ne frega di accendere qualche macchina in più. 25 macchine
> costano molto meno di un sviluppatore. :-)
>
> Il giorno 20 feb 2017, alle ore 20:32, bruno bossola 
> ha scritto:
>
> On 20 Feb 2017 19:05, "Marco"  wrote:
>
> Forse intendono
> http://www.django-rest-framework.org/
>
>
>
> Bello. Ma le venticinque macchine extra che mi servono per avere le stesse
> prestazioni di un server asincrono le trattengo dal loro stipendio?
>
> Tanto per capire cosa intendo, vedete i tempi di risposta qui di aiohttp,
> per esempio (giusto il server): in presenza di una chiamata a un server
> remoto, mentre Django e Flask servono una richiesta, lui ne serve 26
> (ventisei)
> http://klen.github.io/py-frameworks-bench/
>
> Secondo me non sono d'accordo...
>
> Ciao,
>
> Bruno Buozzi
>
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
>
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
>
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Fundor 333
Il 20 febbraio 2017 22:25:23 CET, Paolo Melchiorre  ha 
scritto:
>On Mon, Feb 20, 2017, 22:15 Strap Lab  wrote:
>
>>
>> Il 20/feb/2017 20:32, "bruno bossola"  ha
>scritto:
>>
>> On 20 Feb 2017 19:05, "Marco"  wrote:
>>
>> Forse intendono
>> http://www.django-rest-framework.org/
>>
>>
>>
>> Sanic https://github.com/channelcat/sanic
>> Hug https://github.com/timothycrosley/hug
>> Japronto https://github.com/squeaky-pl/japronto
>>
>
>Attenzione che Japronto é poco più di una demo come ha sottolineato lo
>sviluppatore:
>
>"This is an early preview with alpha quality implementation.
>...
>Don't use it for anything serious for now and definitely don't use it
>in
>production.
>...
>If you are shopping for your next project's framework I would recommend
>Sanic."
>
>Non ho esperienza diretta ma fossi in te mi orienterei su Sanic e
>magari
>darei un feedback qui in lista dopo.
>
>Buona serata,
>Paolo
>
>>

Vorrei capire se una soluzione come https://github.com/google/grumpy possa 
essere utile nel vostro caso, in quanto sviluppate Python facendolo girare con 
performance go, o sia meglio sviluppare direttamente in go?
-- 
Fundor333
Inviato dal mio dispositivo Android.___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Paolo Melchiorre
On Mon, Feb 20, 2017, 22:15 Strap Lab  wrote:

>
> Il 20/feb/2017 20:32, "bruno bossola"  ha scritto:
>
> On 20 Feb 2017 19:05, "Marco"  wrote:
>
> Forse intendono
> http://www.django-rest-framework.org/
>
>
>
> Sanic https://github.com/channelcat/sanic
> Hug https://github.com/timothycrosley/hug
> Japronto https://github.com/squeaky-pl/japronto
>

Attenzione che Japronto é poco più di una demo come ha sottolineato lo
sviluppatore:

"This is an early preview with alpha quality implementation.
...
Don't use it for anything serious for now and definitely don't use it in
production.
...
If you are shopping for your next project's framework I would recommend
Sanic."

Non ho esperienza diretta ma fossi in te mi orienterei su Sanic e magari
darei un feedback qui in lista dopo.

Buona serata,
Paolo

>
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Strap Lab
Il 20/feb/2017 20:32, "bruno bossola"  ha scritto:

On 20 Feb 2017 19:05, "Marco"  wrote:

Forse intendono
http://www.django-rest-framework.org/



[...]


Sanic https://github.com/channelcat/sanic
Hug https://github.com/timothycrosley/hug
Japronto https://github.com/squeaky-pl/japronto

Interessante articolo riguardo quest ultimo:
https://medium.freecodecamp.com/million-requests-per-second-with-python-95c137af319#.3eiek12me

Materiale da dare in pasto agli sviluppatori ora ne hai :-)

Sani
Strap
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Marco
Io fare diverse considerazioni se l'utilizzo di framework migliora l'efficienza 
e i processi di sviluppo, in soldoni si sviluppa in meno tempo, chi se ne frega 
di accendere qualche macchina in più. 25 macchine costano molto meno di un 
sviluppatore. :-)

> Il giorno 20 feb 2017, alle ore 20:32, bruno bossola  ha 
> scritto:
> 
> On 20 Feb 2017 19:05, "Marco"  wrote:
> Forse intendono 
> http://www.django-rest-framework.org/
> 
> 
> Bello. Ma le venticinque macchine extra che mi servono per avere le stesse 
> prestazioni di un server asincrono le trattengo dal loro stipendio?
> 
> Tanto per capire cosa intendo, vedete i tempi di risposta qui di aiohttp, per 
> esempio (giusto il server): in presenza di una chiamata a un server remoto, 
> mentre Django e Flask servono una richiesta, lui ne serve 26 (ventisei)
> http://klen.github.io/py-frameworks-bench/
> 
> Secondo me non sono d'accordo...
> 
> Ciao,
> 
> Bruno Buozzi
> ___
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione bruno bossola
On 20 Feb 2017 19:05, "Marco"  wrote:

Forse intendono
http://www.django-rest-framework.org/



Bello. Ma le venticinque macchine extra che mi servono per avere le stesse
prestazioni di un server asincrono le trattengo dal loro stipendio?

Tanto per capire cosa intendo, vedete i tempi di risposta qui di aiohttp,
per esempio (giusto il server): in presenza di una chiamata a un server
remoto, mentre Django e Flask servono una richiesta, lui ne serve 26
(ventisei)
http://klen.github.io/py-frameworks-bench/

Secondo me non sono d'accordo...

Ciao,

Bruno Buozzi
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Carlo Miron
Il 20 feb 2017 20:05, "Marco"  ha scritto:


Il giorno 20 feb 2017, alle ore 19:07, Manlio Perillo <
manlio.peri...@gmail.com> ha scritto:

2017-02-20 19:01 GMT+01:00 bruno bossola :


ma gli sviluppatori qui vorrebbero usare un "framework REST" (e vabbe'... )

ma mi propongono tutti frameworks belli sincroni e lenti :)


Forse intendono
http://www.django-rest-framework.org/


... che è appunto un framework bello sincrono e lento.

㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Manlio Perillo
2017-02-20 19:01 GMT+01:00 bruno bossola :
> Ciao a tutti,
>
> Qui da noi in EF usiamo Python nel backend (oltre a Go e NodeJS) e vorremmo
> sviluppare nuovi servizi REST usando Python. Attualmente, usando Tornado,
> abbiamo in generale delle ottime prestazioni (non-blocking I/O is good :))
> ma gli sviluppatori qui vorrebbero usare un "framework REST" (e vabbe'... )
> ma mi propongono tutti frameworks belli sincroni e lenti :)
>

Io ancora devo capire cosa vuol dire framework REST...
L'unica cosa che mi viene in mente è un framework orientato allo
sviluppo di API web,
che in pratica significa offrire un router in cui devi specificare
necessariamente il metodo
HTTP da gestire (cosa che io di solito non voglio per una applicazione
web tradizionale).

> Il problema che abbiamo qui e' che ci interfacciamo con servizi vecchiotti e
> non troppo veloci, quindi le richieste di solito sono il frutto di parte
> lavoro locale e parte aggregazione di contenuti succhiati via HTTP da
> qualche altro posto.
>
> Voi cosa usereste? Esiste un buon stack non-blocking per Python lato server
> che includa un REST framework che possa piacere ai miei developers?
>

Io per lo sviluppo web sono passato a Go, proprio perchè Python non ha
un supporto alla concorrenza
che mi soddisfi.


Ciao  Manlio
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] REST framework

2017-02-20 Per discussione bruno bossola
Ciao a tutti,

Qui da noi in EF usiamo Python nel backend (oltre a Go e NodeJS) e vorremmo
sviluppare nuovi servizi REST usando Python. Attualmente, usando Tornado,
abbiamo in generale delle ottime prestazioni (non-blocking I/O is good :))
ma gli sviluppatori qui vorrebbero usare un "framework REST" (e vabbe'... )
ma mi propongono tutti frameworks belli sincroni e lenti :)

Il problema che abbiamo qui e' che ci interfacciamo con servizi vecchiotti
e non troppo veloci, quindi le richieste di solito sono il frutto di parte
lavoro locale e parte aggregazione di contenuti succhiati via HTTP da
qualche altro posto.

Voi cosa usereste? Esiste un buon stack non-blocking per Python lato server
che includa un REST framework che possa piacere ai miei developers?

Ciao,

Bruno
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python