Re: Type hints - am I doing it right?

2023-12-13 Thread Thomas Passin via Python-list
On 12/13/2023 11:17 AM, Mats Wichmann via Python-list wrote: On 12/13/23 00:19, Frank Millman via Python-list wrote: I have to add 'import configparser' at the top of each of these modules in order to type hint the method. This seems verbose. If it is the correct way of doing it I can live

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

2023-12-13 Thread Vinay Sajip via Python-list
What Changed?= This is an enhancement and bug-fix release, and all users are encouraged to upgrade. Brief summary: * Fix #228: Clarify documentation for encryption/decryption. * Make I/O buffer size configurable via buffer_size attribute on a GPG instance. This release [2] has

[Python-announce] Announcement: distlib 0.3.8 released on PyPI

2023-12-13 Thread Vinay Sajip via Python-announce-list
Version 0.3.8 of distlib has recently been released on PyPI [1]. For newcomers, distlib is a library of packaging functionality which is intended to be usable as the basis for third-party packaging tools. The main changes in this release are as follows: * Fix #204: use symlinks in venv creation

Re: Type hints - am I doing it right?

2023-12-13 Thread Cameron Simpson via Python-list
On 13Dec2023 09:19, Frank Millman wrote: I am adding type hints to my code base. [...] In the other module I have this - def config_database(db_params): To add a type hint, I now have this - def config_database(db_params: configparser.SectionProxy): To get this to work, I have

Announcement: distlib 0.3.8 released on PyPI

2023-12-13 Thread Vinay Sajip via Python-list
Version 0.3.8 of distlib has recently been released on PyPI [1]. For newcomers, distlib is a library of packaging functionality which is intended to be usable as the basis for third-party packaging tools. The main changes in this release are as follows: * Fix #204: use symlinks in venv creation

[Python-announce] ANN: A new version (0.5.2) of python-gnupg has been released.

2023-12-13 Thread Vinay Sajip via Python-announce-list
What Changed?= This is an enhancement and bug-fix release, and all users are encouraged to upgrade. Brief summary: * Fix #228: Clarify documentation for encryption/decryption. * Make I/O buffer size configurable via buffer_size attribute on a GPG instance. This release [2] has

[Python-announce] Announcement: TLSSysLogHandler added on PyPI

2023-12-13 Thread epsilon--- via Python-announce-list
A new package for extending SysLogHandler with TLS support has been added on PyPI [1]. Modern syslog servers such as rsyslog, syslog-ng and OpenBSD's syslogd have TLS support for secure remote logging. Unfortunately the core python SysLogHandler does not have this functionality yet.

TLS support for SysLogHandler (currently in pypi)

2023-12-13 Thread A Tammy via Python-list
Hi all, I've been trying to add TLS over TCP support to the core SysLogHandler and currently have a working example package on PyPI - https://pypi.org/project/tlssysloghandler/#usage . The package works as a drop-in replacement for SysLogHandler, trying to support the original options and

Request to Review: Tutorial about Python Packaging offering different use case

2023-12-13 Thread Christian Buhtz via Python-list
Hello, I would like to point to my Python Packaging Tutorial explaining several common use cases using minimal demo projects. I am not an expert and assume that some of my solutions might not be the best. So I would appreciate if you

Re: Type hints - am I doing it right?

2023-12-13 Thread Mats Wichmann via Python-list
On 12/13/23 00:19, Frank Millman via Python-list wrote: I have to add 'import configparser' at the top of each of these modules in order to type hint the method. This seems verbose. If it is the correct way of doing it I can live with it, but I wondered if there was an easier way. Think of