Abstracts¶
Problematic¶
How can we work with abstracted data and information which are not directly related to our project main logic?
Documentation¶
The tool to check the availability or syntax of domain, IP or URL.
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ ██████╔╝██║ █████╗
██╔═══╝ ╚██╔╝ ██╔══╝ ██║ ██║██║╚██╗██║██║ ██╔══╝ ██╔══██╗██║ ██╔══╝
██║ ██║ ██║ ╚██████╔╝██║ ╚████║╚██████╗███████╗██████╔╝███████╗███████╗
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚══════╝╚═════╝ ╚══════╝╚══════╝
Provides the abtracted logics/data.
- Author:
- Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
- Special thanks:
- https://pyfunceble.github.io/special-thanks.html
- Contributors:
- https://pyfunceble.github.io/contributors.html
- Project link:
- https://github.com/funilrys/PyFunceble
- Project documentation:
- https://pyfunceble.readthedocs.io/en/master/
- 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.
Infrastructure()
¶
-
class
PyFunceble.abstracts.infrastructure.
Infrastructure
[source]¶ Provides some infrastructure related abstractions.
-
CI_MIGRATION_TRIGGER_FILE
= '.trigger'¶ Sets the name of the file to write into for the case that we are migrating to sqlalchemy from inside a CI engine.
Type: str
-
CONFIGURATION_FILENAME
= '.PyFunceble.yaml'¶ Sets the name of the user editable configuration file.
Type: str
-
DEFAULT_CONFIGURATION_FILENAME
= '.PyFunceble_production.yaml'¶ Sets the name of the default configuration file.
Type: str
-
DOWN_FILENAME
= '.pyfunceble_intern_downtime.json'¶ Sets the name of our own download time record file.
Type: str
-
HASHES_FILENAME
= 'hashes_tracker.json'¶ Sets the name of the file which will save the hashes of the files we are testing.
-
IPV4_REPUTATION_FILENAME
= 'ipv4_reputation.data'¶ Sets the name of our own copy of the IPv4 reputation data file.
Type: str
-
PROD_CONFIG_LINK
= 'https://raw.githubusercontent.com/funilrys/PyFunceble/master/.PyFunceble_production.yaml'¶ Sets the link to the production configuration file.
Type: str
-
USER_AGENT_FILENAME
= 'user_agents.json'¶ Sets the name of our own copy of the user agents file.
-
Package()
¶
Platform()
¶
-
class
PyFunceble.abstracts.platform.
Platform
[source]¶ Provides an easy way to get the current platform.
-
WINDOWS
= ['windows', 'cygwin', 'cygwin_nt-10.0']¶ Provides the list of supported windows platform.
Type: list
-
Version()
¶
-
class
PyFunceble.abstracts.package.
Version
[source]¶ Provides a simple way to compare our own versions.
-
classmethod
compare
(upstream)[source]¶ Compares the given versions with the local one.
Parameters: Returns: True
: local < upstreamNone
: local == upstreamFalse
: local > upstream
Return type:
-
classmethod
literally_compare
(local, upstream)[source]¶ Compares the given versions, literally.
Parameters: Returns: True
: local == upstreamFalse
: local != upstream
Return type:
-
classmethod