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/dev/
- Project homepage:
- https://pyfunceble.github.io/
License:
Copyright 2017, 2018, 2019, 2020 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¶
-
_query_timeout
= 5.0¶
-
_server
= None¶
-
_subject
= None¶
-
domain_syntax_checker_base
= <PyFunceble.checker.syntax.domain_base.DomainSyntaxCheckerBase object>¶
-
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
= <PyFunceble.query.whois.converter.expiration_date.ExpirationDateExtractor object>¶
-
get_lookup_record
() → Optional[PyFunceble.query.record.whois.WhoisQueryToolRecord][source]¶ Provides the current query record.
-
iana_dataset
= <PyFunceble.dataset.iana.IanaDataset object>¶
-
lookup_record
= None¶
-
query
() → PyFunceble.query.whois.query_tool.WhoisQueryTool[source]¶ Queries the WHOIS record and return the current object.
-
query_timeout
¶ Provides the current state of the
_query_timeout
attribute.
-
record
= None¶
-
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.
-
update_lookup_record
()[source]¶ Ensures that a clean record is generated after the execution of the decorated method.
-
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/dev/
- Project homepage:
- https://pyfunceble.github.io/
License:
Copyright 2017, 2018, 2019, 2020 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.