Re: How to load cookies from a json input in python-requests?

2019-08-12 Thread Alexandre Brault
On 2019-08-12 11:38 p.m., Peng Yu wrote: ``` import requests s = requests.Session() import json s.cookies.set_cookie(requests.utils.cookiejar_from_dict(json.load(sys.stdin))) ``` I used the above command to load cookies from a json file. But I got the following error. Does anybody know how to fi

How to load cookies from a json input in python-requests?

2019-08-12 Thread Peng Yu
``` import requests s = requests.Session() import json s.cookies.set_cookie(requests.utils.cookiejar_from_dict(json.load(sys.stdin))) ``` I used the above command to load cookies from a json file. But I got the following error. Does anybody know how to fix the error? Thanks. ``` Traceback (most r

Re: About the #python irc channel on freenode.

2019-08-12 Thread David
On Tue, 13 Aug 2019 at 10:00, Hongyi Zhao wrote: > > But I always be put into the #python-unregistered channel as follows: > > -- > Now talking on #python-unregistered > * Topic for #python-unregistered is: Welcome to #python-unregistered! > You've been put here because #python requires yo

Re: Web framework for static pages

2019-08-12 Thread Jon Ribbens via Python-list
On 2019-08-12, Morten W. Petersen wrote: > What I guess I'm looking for, is something that will help create a > static website, in a simple and efficient manner. Without being bloated. > > I don't have a lot of hair on my head, but I would be pulling it out > because of some of the websites I s

Re: About the #python irc channel on freenode.

2019-08-12 Thread Hongyi Zhao
On Mon, 12 Aug 2019 16:13:41 -0700, Paul Rubin wrote: > It's always worked ok for me. But I always be put into the #python-unregistered channel as follows: -- Now talking on #python-unregistered * Topic for #python-unregistered is: Welcome to #python-unregistered! You've been put here b

Re: Web framework for static pages

2019-08-12 Thread Cameron Simpson
On 13Aug2019 00:01, Morten W. Petersen wrote: What I guess I'm looking for, is something that will help create a static website, in a simple and efficient manner. Without being bloated. I don't have a lot of hair on my head, but I would be pulling it out because of some of the websites I se

About the #python irc channel on freenode.

2019-08-12 Thread Hongyi Zhao
Hi, Sorry for bothering here for this not technically python issue. I want to chat some issues on the #python irc channel hosted on freenode. But try so many times still cann't succeed. Could anyone here give me some hint if you can successfully do this thing? Regards -- .: Hongyi Zhao [ ho

Re: Web framework for static pages

2019-08-12 Thread Morten W. Petersen
On 12.08.2019 18:13, Brian Oney wrote: On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote: Hi. What frameworks are there for generating static web pages in Python? I have used: https://github.com/Frozen-Flask/Frozen-Flask It's pretty simple. Develop with flask and then "freeze" it.

Re: Web framework for static pages

2019-08-12 Thread morphex
Why Google it, when I have an Oracle? 😄 -Morten -- https://mail.python.org/mailman/listinfo/python-list

ANN: A new version (0.4.5) of python-gnupg has been released.

2019-08-12 Thread Vinay Sajip via Python-list
A new version of the Python module which wraps GnuPG has been released. What Changed?= This is an enhancement and bug-fix release, and all users are encouraged toupgrade. Brief summary: * Fixed #107: Improved documentation. * Fixed #112: Raised a ValueError if a gnupghome is specified

Re: Web framework for static pages

2019-08-12 Thread Michael Torrie
On 8/12/19 1:14 AM, morphex wrote: > What frameworks are there for generating static web pages in Python? What are > the features of each? A quick google search reveals a number of them. Pelican, Hyde, etc. -- https://mail.python.org/mailman/listinfo/python-list

Re: Web framework for static pages

2019-08-12 Thread Brian Oney via Python-list
On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote: >Hi. > >What frameworks are there for generating static web pages in Python? I have used: https://github.com/Frozen-Flask/Frozen-Flask It's pretty simple. Develop with flask and then "freeze" it. I am looking forward to further answers

Web framework for static pages

2019-08-12 Thread morphex
Hi. After a long break, I'm starting to work with web development again, in my company Nidelven IT. http://www.nidelven-it.no I've used Zope and Plone since the early days, as well as other web systems / frameworks, Python-based, some PHP, Java etc. However, I would like to add another tool t

Re: String slices

2019-08-12 Thread Rhodri James
On 10/08/2019 10:45, Peter J. Holzer wrote: On 2019-08-10 09:10:12 +1000, Cameron Simpson wrote: On 09Aug2019 22:28, Paul St George wrote: On 09/08/2019 16:29, Rhodri James wrote: (Actually I would probably use outstream.write() and do my own formatting, but let's not get side-tracked ;-) I

Re: Remote/Pair-Programming in-the-cloud

2019-08-12 Thread DL Neil
On 7/08/19 4:20 AM, Dennis Lee Bieber wrote: {Playing Devil's Advocate} If this list had avatars, I would graffiti yours to have horns and a tail! No. Many have also requested feedback. Sadly the news is not good. Herewith:- On Tue, 6 Aug 2019 09:07:41 +1200, DL Neil declaimed the followi