PyFunceble.query.whois package¶
Subpackages¶
Submodules¶
PyFunceble.query.whois.query_tool module¶
The tool to check the availability or syntax of domain, IP or URL.
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ ██████╔╝██║ █████╗
██╔═══╝ ╚██╔╝ ██╔══╝ ██║ ██║██║╚██╗██║██║ ██╔══╝ ██╔══██╗██║ ██╔══╝
██║ ██║ ██║ ╚██████╔╝██║ ╚████║╚██████╗███████╗██████╔╝███████╗███████╗
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚══════╝╚═════╝ ╚══════╝╚══════╝
Provides our interface for quering the WHOIS Record of a given subject.
- Author:
- Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
- Special thanks:
- https://pyfunceble.github.io/#/special-thanks
- Contributors:
- https://pyfunceble.github.io/#/contributors
- Project link:
- https://github.com/funilrys/PyFunceble
- Project documentation:
- https://pyfunceble.readthedocs.io/en/latest/
- Project homepage:
- https://pyfunceble.github.io/
License:
Copyright 2017, 2018, 2019, 2020, 2021 Nissar Chababy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-
class
PyFunceble.query.whois.query_tool.
WhoisQueryTool
(subject: Optional[str] = None, *, server: Optional[str] = None, query_timeout: Optional[float] = None)[source]¶ Bases:
object
Provides the interface to get the WHOIS record of a given subject.
-
BUFFER_SIZE
= 4096¶
-
STD_PORT
= 43¶
-
ensure_subject_is_given
()[source]¶ Ensures that the subject is given before running the decorated method.
Raises: TypeError – If the subject is not a string.
-
expiration_date_extractor
= None¶
-
get_expiration_date
() → Optional[str][source]¶ Provides the expiration date of the record.
- Side Effect:
- The record will be queried if it is non existent.
-
get_lookup_record
() → Optional[PyFunceble.query.record.whois.WhoisQueryToolRecord][source]¶ Provides the current query record.
-
get_record
() → Optional[str][source]¶ Provides the current record.
- Side Effect:
- The record will be queried if it is non existent.
-
iana_dataset
= None¶
-
lookup_record
= None¶
-
query_timeout
¶ Provides the current state of the
_query_timeout
attribute.
-
server
¶ Provides the current state of the
_server
attribute.
-
set_query_timeout
(value: Union[float, int]) → PyFunceble.query.whois.query_tool.WhoisQueryTool[source]¶ Sets the query_timeout to apply.
Parameters: value – The query_timeout to apply.
-
set_server
(value: str) → PyFunceble.query.whois.query_tool.WhoisQueryTool[source]¶ Sets the server to communicate with.
Parameters: value – The server to work with.
-
set_subject
(value: str) → PyFunceble.query.whois.query_tool.WhoisQueryTool[source]¶ Sets the subject to work with.
Parameters: value – The subject to set.
-
subject
¶ Provides the current state of the
_subject
attribute.
-
Module contents¶
The tool to check the availability or syntax of domain, IP or URL.
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ ██████╔╝██║ █████╗
██╔═══╝ ╚██╔╝ ██╔══╝ ██║ ██║██║╚██╗██║██║ ██╔══╝ ██╔══██╗██║ ██╔══╝
██║ ██║ ██║ ╚██████╔╝██║ ╚████║╚██████╗███████╗██████╔╝███████╗███████╗
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚══════╝╚═════╝ ╚══════╝╚══════╝
Provides everything related to the way we get or manipulate WHOIS record.
- Author:
- Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
- Special thanks:
- https://pyfunceble.github.io/#/special-thanks
- Contributors:
- https://pyfunceble.github.io/#/contributors
- Project link:
- https://github.com/funilrys/PyFunceble
- Project documentation:
- https://pyfunceble.readthedocs.io/en/latest/
- Project homepage:
- https://pyfunceble.github.io/
License:
Copyright 2017, 2018, 2019, 2020, 2021 Nissar Chababy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.