Spaces:
Sleeping

File size: 292 Bytes
e4855d5
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from array import array

class URL:
    schema: bytes
    host: bytes
    port: int
    path: bytes
    query: bytes
    fragment: bytes
    userinfo: bytes

def parse_url(url: bytes | bytearray | memoryview | array[int]) -> URL:
    """Parse a URL string into a structured Python object."""