I need a dummy #RubyLang #IMAP server that can support #STARTTLS but otherwise treats most commands as no-ops. I couldn't find anything well-maintained via GitHub or Ruby Toolbox other than the gem from Ruby's #stdlib at:
https://ruby-doc.org/3.2.2/gems/net-imap/Net/IMAP.html
Rather than gutting Net::IMAP, is there already a gem out there that can be used to support fetch-before-send clients like Apple's Mail that won't send email before completing POP3 or IMAP4 authentication?
#rubylang #imap #starttls #stdlib
Python libs you're using (stdlib and not) that have better alternatives.
- `dataclasses` -> `attrs`
- `json` -> `orjson`
- `requests` -> `httpx`
- `pyoidc` -> `authlib`
- `pytest-freezegun` -> `time-machine`
- `aioredis` -> `redis`
Have I missed anything?
#python #programming #learn #stdlib #libraries #pypi
has someone drunkenly hit C-t again?
if name.startswith(('assert', 'assret')):
raise AttributeError("Attributes cannot start with 'assert' or 'assret'")
https://github.com/python/cpython/blob/master/Lib/unittest/mock.py#L634-L636
#python #stdlib #butwhy