Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
requests /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxrwxrwx
2020-08-25 15:28
packages
[ DIR ]
drwxrwxrwx
2020-08-25 15:28
__init__.py
2.15
KB
-rwxrwxrwx
2016-12-14 12:36
_internal_utils.py
1.07
KB
-rwxrwxrwx
2016-12-08 10:15
adapters.py
19.26
KB
-rwxrwxrwx
2016-12-14 10:36
api.py
5.83
KB
-rwxrwxrwx
2016-12-14 10:36
auth.py
9.32
KB
-rwxrwxrwx
2016-12-09 15:49
certs.py
614
B
-rwxrwxrwx
2016-12-19 20:18
compat.py
1.67
KB
-rwxrwxrwx
2016-12-19 20:18
cookies.py
17.86
KB
-rwxrwxrwx
2016-12-09 15:49
exceptions.py
2.91
KB
-rwxrwxrwx
2016-12-14 10:36
hooks.py
767
B
-rwxrwxrwx
2016-12-05 14:04
models.py
31.85
KB
-rwxrwxrwx
2016-12-14 10:36
sessions.py
25.6
KB
-rwxrwxrwx
2016-12-14 10:36
status_codes.py
3.24
KB
-rwxrwxrwx
2016-12-05 14:04
structures.py
2.94
KB
-rwxrwxrwx
2016-12-05 14:04
utils.py
24.24
KB
-rwxrwxrwx
2016-12-14 10:36
Save
Rename
# -*- coding: utf-8 -*- """ requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. """ import collections from .compat import OrderedDict class CaseInsensitiveDict(collections.MutableMapping): """A case-insensitive ``dict``-like object. Implements all methods and operations of ``collections.MutableMapping`` as well as dict's ``copy``. Also provides ``lower_items``. All keys are expected to be strings. The structure remembers the case of the last key to be set, and ``iter(instance)``, ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()`` will contain case-sensitive keys. However, querying and contains testing is case insensitive:: cid = CaseInsensitiveDict() cid['Accept'] = 'application/json' cid['aCCEPT'] == 'application/json' # True list(cid) == ['Accept'] # True For example, ``headers['content-encoding']`` will return the value of a ``'Content-Encoding'`` response header, regardless of how the header name was originally stored. If the constructor, ``.update``, or equality comparison operations are given keys that have equal ``.lower()``s, the behavior is undefined. """ def __init__(self, data=None, **kwargs): self._store = OrderedDict() if data is None: data = {} self.update(data, **kwargs) def __setitem__(self, key, value): # Use the lowercased key for lookups, but store the actual # key alongside the value. self._store[key.lower()] = (key, value) def __getitem__(self, key): return self._store[key.lower()][1] def __delitem__(self, key): del self._store[key.lower()] def __iter__(self): return (casedkey for casedkey, mappedvalue in self._store.values()) def __len__(self): return len(self._store) def lower_items(self): """Like iteritems(), but with all lowercase keys.""" return ( (lowerkey, keyval[1]) for (lowerkey, keyval) in self._store.items() ) def __eq__(self, other): if isinstance(other, collections.Mapping): other = CaseInsensitiveDict(other) else: return NotImplemented # Compare insensitively return dict(self.lower_items()) == dict(other.lower_items()) # Copy is required def copy(self): return CaseInsensitiveDict(self._store.values()) def __repr__(self): return str(dict(self.items())) class LookupDict(dict): """Dictionary lookup object.""" def __init__(self, name=None): self.name = name super(LookupDict, self).__init__() def __repr__(self): return '<lookup \'%s\'>' % (self.name) def __getitem__(self, key): # We allow fall-through here, so values default to None return self.__dict__.get(key, None) def get(self, key, default=None): return self.__dict__.get(key, default)