{"library":"pyfunceble-dev","title":"PyFunceble Development","description":"PyFunceble is a Python library and CLI tool designed to check the availability or syntax of domains, IP addresses, and URLs. It's actively maintained with frequent releases, currently at version 4.4.1, offering robust tools for network hygiene and security analysis. The 'dev' package suffix often indicates the latest development branch.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pyfunceble-dev"],"cli":{"name":"pyfunceble","version":"pyfunceble 4.4.1.dev"}},"imports":["from PyFunceble import PyFunceble","from PyFunceble import Engine"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import tempfile\nimport shutil\nfrom PyFunceble import PyFunceble\n\n# Create a temporary directory for PyFunceble's output (logs, databases)\noutput_dir = tempfile.mkdtemp()\n\ntry:\n    print(f\"PyFunceble output will be stored in: {output_dir}\")\n\n    # Initialize PyFunceble. Pass output_dir to control where files are created.\n    # For a fully quiet operation, you can configure logging separately.\n    funceble = PyFunceble(output_dir=output_dir, \n                          log_level='CRITICAL', \n                          autodisconnect=True)\n\n    # Test a single domain\n    domain_to_test = \"google.com\"\n    print(f\"\\nTesting '{domain_to_test}'...\")\n    results = funceble.test_single(domain_to_test)\n    print(f\"Results for {domain_to_test}: Status = {results.get('status', 'N/A')}, \")\n    print(f\"  Expiration = {results.get('expiration_date', 'N/A')}, \")\n    print(f\"  HTTP Status = {results.get('http_status_code', 'N/A')}\")\n\n    # Test a known non-existent domain (for demonstration)\n    non_existent_domain = \"thisdomainreallyshouldntexist.xyz\"\n    print(f\"\\nTesting '{non_existent_domain}'...\")\n    results_non_existent = funceble.test_single(non_existent_domain)\n    print(f\"Results for {non_existent_domain}: Status = {results_non_existent.get('status', 'N/A')}\")\n\nfinally:\n    # Clean up the temporary directory after use\n    print(f\"\\nCleaning up temporary output directory: {output_dir}\")\n    shutil.rmtree(output_dir)\n","lang":"python","description":"This quickstart demonstrates how to programmatically use PyFunceble to check the status of domains. It initializes the PyFunceble engine, tests a single domain, and prints key results. A temporary directory is used for output files to keep your system clean, and logging is suppressed for a concise output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}