|
|
Wear a mask!
Maintainer of Python open source libraries mainly for HTTP, networking, and security. He / Him
- Minneapolis, MN
- sethmlarson.dev
- @sethmlarson
Block or Report
Block or report sethmlarson
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
urllib3/urllib3 Public
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more.
-
-
python-distro/distro Public
A much more elaborate replacement for removed Python's `platform.linux_distribution()` method
-
virtualbox-python Public
Complete implementation of VirtualBox's COM API with a Pythonic interface.
-
1
import asyncio as A,urllib.parse as U,re;B,C,I,S=b"",b"\r\n",int,lambda*A:re.match(*A,24).groups()
2async def request(m,u,h,b):
3s,_,a,_,q,_=z=U.urlparse(u);T,E,d,N=s!=b"http",0,B,z.hostname;r,w=await A.open_connection(N,I(z.port or 80+363*T),ssl=T,server_hostname=[None,N][T]);w.write(m+b" "+(a or b"/")+[b"?"+q,B][q==B]+b" HTTP/1.0"+C+C.join([b"%b:%b"%W for W in h]+[B,b]));await w.drain()
4while c:=await r.read():
5if C*2in(d:=d+c)*(E==0):E,d=d.split(C*2,1);t,o=S(b"HTTP/.+? (\d+).*?%b(.*)"%C,E);o=[S(rb"([^\s]+):\s*(.+?)\s*$",x)for x in o.split(C)]
2,160 contributions in the last year
Less
More
Contribution activity
March 2022
Created 9 commits in 4 repositories
Opened 3 pull requests in 2 repositories
urllib3/urllib3
2
merged
elastic/enterprise-search-python
1
open
Reviewed 7 pull requests in 4 repositories
urllib3/urllib3
3 pull requests
elastic/elasticsearch
2 pull requests
elastic/elasticsearch-specification
1 pull request
conda-forge/elasticsearch-feedstock
1 pull request
Opened 2 issues in 2 repositories
sethmlarson/pypi-data
1
open
12
contributions
in private repositories
Mar 1 – Mar 4
