Re: Simple message passing system and thread safe message queue

2022-07-18 Thread Morten W. Petersen
Hi Martin.

Yes, I was thinking of removing the sleep calls in the client.py / making a
more intensive test.

No, I think I'll stick with threads, I don't see any practical benefit of
such a challenge.

Maybe you could say a bit about why you think that's a good idea?

Regards,

Morten

--

I am https://leavingnorway.info

Videos at https://www.youtube.com/user/TheBlogologue
Twittering at http://twitter.com/blogologue

Blogging at http://blogologue.com
Playing music at https://soundcloud.com/morten-w-petersen

Also playing music and podcasting here:
http://www.mixcloud.com/morten-w-petersen/

On Instagram at https://instagram.com/morphexx/



tir. 19. jul. 2022, 00:21 skrev Martin Di Paola :

> Hi, I couldn't read your posts, every time I try to open one I'm
> redirected to an index page.
>
> I took a look at the smps project and I as far I understand it is a
> SSL client that sends messages to a server that implements a store of
> messages.
>
> I would suggest to remove the sleep() calls and as a challenge for you,
> make the server single-thread using asyncio and friends.
>
> Thanks,
> Martin.
>
> On Mon, Jul 18, 2022 at 06:31:28PM +0200, Morten W. Petersen wrote:
> >Hi.
> >
> >I wrote a couple of blog posts as I had to create a message passing
> system,
> >and these posts are here:
> >
> >http://blogologue.com/search?category=1658082823X26
> >
> >Any comments or suggestions?
> >
> >Regards,
> >
> >Morten
> >
> >--
> >I am https://leavingnorway.info
> >Videos at https://www.youtube.com/user/TheBlogologue
> >Twittering at http://twitter.com/blogologue
> >Blogging at http://blogologue.com
> >Playing music at https://soundcloud.com/morten-w-petersen
> >Also playing music and podcasting here:
> >http://www.mixcloud.com/morten-w-petersen/
> >On Google+ here https://plus.google.com/107781930037068750156
> >On Instagram at https://instagram.com/morphexx/
> >--
> >https://mail.python.org/mailman/listinfo/python-list
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Simple message passing system and thread safe message queue

2022-07-18 Thread Mike Dewhirst
MortenI didn't click on your link because it is a security bad practice to 
click on any unsolicited link.I'm not accusing you or anyone else of nefarious 
intent. It could be argued that being a member of this list means links posted 
here are indeed solicited links.You asked for comment. Mine is that your 
subject line was interesting enough for me to open your email but my own 
security habits prevented me from learning more about your 
topic.CheersMike--(Unsigned mail from my phone)
 Original message From: "Morten W. Petersen" 
 Date: 19/7/22  03:35  (GMT+10:00) To: python-list 
 Subject: Simple message passing system and thread safe 
message queue Hi.I wrote a couple of blog posts as I had to create a message 
passing system,and these posts are 
here:http://blogologue.com/search?category=1658082823X26Any comments or 
suggestions?Regards,Morten-- I am https://leavingnorway.infoVideos at 
https://www.youtube.com/user/TheBlogologueTwittering at 
http://twitter.com/blogologueBlogging at http://blogologue.comPlaying music at 
https://soundcloud.com/morten-w-petersenAlso playing music and podcasting 
here:http://www.mixcloud.com/morten-w-petersen/On Google+ here 
https://plus.google.com/107781930037068750156On Instagram at 
https://instagram.com/morphexx/-- 
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Simple message passing system and thread safe message queue

2022-07-18 Thread Martin Di Paola

Hi, I couldn't read your posts, every time I try to open one I'm
redirected to an index page.

I took a look at the smps project and I as far I understand it is a
SSL client that sends messages to a server that implements a store of
messages.

I would suggest to remove the sleep() calls and as a challenge for you,
make the server single-thread using asyncio and friends.

Thanks,
Martin.

On Mon, Jul 18, 2022 at 06:31:28PM +0200, Morten W. Petersen wrote:

Hi.

I wrote a couple of blog posts as I had to create a message passing system,
and these posts are here:

http://blogologue.com/search?category=1658082823X26

Any comments or suggestions?

Regards,

Morten

--
I am https://leavingnorway.info
Videos at https://www.youtube.com/user/TheBlogologue
Twittering at http://twitter.com/blogologue
Blogging at http://blogologue.com
Playing music at https://soundcloud.com/morten-w-petersen
Also playing music and podcasting here:
http://www.mixcloud.com/morten-w-petersen/
On Google+ here https://plus.google.com/107781930037068750156
On Instagram at https://instagram.com/morphexx/
--
https://mail.python.org/mailman/listinfo/python-list

--
https://mail.python.org/mailman/listinfo/python-list


[Python-announce] python-oracledb 1.0.2

2022-07-18 Thread Anthony Tuininga
What is python-oracledb?

python-oracledb is a Python extension module that enables access to Oracle
Database for Python and conforms to the Python database API 2.0
specifications with a number of enhancements. This module is intended to
eventually replace cx_Oracle.

Where do I get it?

https://pypi.org/project/oracledb/1.0.2/

The easiest method to install/upgrade python-oracledb is via pip as in

python -m pip install oracledb --upgrade

What's new?

This release addresses a number of reported issues. It also adds Linux ARM
64-bit binaries for the first time.

See the full release notes for all of the details:
https://python-oracledb.readthedocs.io/en/latest/release_notes.html#oracledb-1-0-2-july-2022

Please provide any feedback via GitHub issues: https://github.com/oracle/
python-oracledb/issues or discussions: https://github.com/oracle/python-
oracledb/discussions
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


Simple message passing system and thread safe message queue

2022-07-18 Thread Morten W. Petersen
Hi.

I wrote a couple of blog posts as I had to create a message passing system,
and these posts are here:

http://blogologue.com/search?category=1658082823X26

Any comments or suggestions?

Regards,

Morten

-- 
I am https://leavingnorway.info
Videos at https://www.youtube.com/user/TheBlogologue
Twittering at http://twitter.com/blogologue
Blogging at http://blogologue.com
Playing music at https://soundcloud.com/morten-w-petersen
Also playing music and podcasting here:
http://www.mixcloud.com/morten-w-petersen/
On Google+ here https://plus.google.com/107781930037068750156
On Instagram at https://instagram.com/morphexx/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: script folder is empty

2022-07-18 Thread Eryk Sun
On 7/17/22, Scott Baer  wrote:
>
> I've done some troubleshooting, and nothing is in the C:\Program
> Files\Python310\Scripts folder.

The installer may have silently failed to install pip. Run the
following command to check whether the package was installed.

"C:\Program Files\Python310\python.exe" -m pip -V

The standard library includes pip (a third-party package) via the
"ensurepip" bundle. You can use it to install pip with the following
command:

"C:\Program Files\Python310\python.exe" -m ensurepip --default-pip

Since your Python installation is for all users, this command must be
run from an elevated shell, i.e. "run as administrator". If your user
is in the administrators group and UAC is enabled (the default
configuration), then the system logs you on without administrator
rights and privileges. You have to elevate via the UAC consent prompt
in order to run a program with administrator access.

For installing other packages, in most cases you should run pip in a
virtual environment, or at least just for the current user via --user.
Installing to the system site packages should be limited to common
packages that you need for system services and administration across
multiple accounts, such as the pywin32 package.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: script folder is empty

2022-07-18 Thread Dan Stromberg
This is another reason to use:
python -m pip ...
...instead of:
   pip ...

(Or many systems want python3 -m pip)

HTH

On Sun, Jul 17, 2022 at 10:42 PM dn  wrote:

> On 18/07/2022 16.53, Scott Baer wrote:
> > I just installed Python 3.10.5 on a Windows 10 home ( Ver 21H2 OS build
> > 1904431826).
> > I'm logged in with admin privileges
> > I did a custom install with  python-3.10.5-amd64.exe to C:\Program
> > Files\Python310
> > Installed with both For all Users & PIP selected.
> > ;
> > once It was done installing, I rebooted and can run python:
> > Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929
> 64
> > bit (AMD64)] on win32
> > Type "help", "copyright", "credits" or "license" for more information.
> 
> >
> > when I try to run:  pip --version
> > C:\Users\baerr>pip --version
> > 'pip' is not recognized as an internal or external command,
> > operable program or batch file.
> >
> > I've done some troubleshooting, and nothing is in the C:\Program
> > Files\Python310\Scripts folder.
> >
> > I"m not a noob.. but obviously, I missing something..   I doubt this is a
> > bug.
> >
> > Any help is much appreciated !!
>
> I don't use MS-Windows. Have you perused the docs?
> eg https://docs.python.org/3/using/windows.html?highlight=windows
>
> DuckDuckGo's first 'hit' for "How to Install PIP for Python on Windows"
> is https://www.liquidweb.com/kb/install-pip-windows/ - but please be
> aware that what comes-with varies according to the source used to obtain
> the copy of Python, and (perhaps) the version of MS-Win. YMMV!
> --
> Regards,
> =dn
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list