Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- # Filename: is_281_available_languages.py
- # Author: Jeoi Reqi
- """
- This Python script checks the availability of 281 programming language interpreters, compilers, and markups on the system.
- It attempts to import each language module and prints whether the language is available or not.
- Usage:
- 1. Ensure you have Python 3.x installed on your system.
- 2. Run the script in your terminal or command prompt.
- 3. The script will iterate through the list of languages, attempting to import each module.
- 4. It will print whether each language is available or not on your system.
- Requirements:
- - Python 3.x
- """
- languages = [
- "4cs", "68000devpac", "acme", "actionscript", "actionscript3", "ada", "algol68", "apache", "applescript",
- "apt_sources", "arduino", "arm", "arnoldc", "asm", "asp", "assembly", "asymptote", "autoconf", "autohotkey",
- "autoit", "avisynth", "awk", "b3d", "bascomavr", "bash", "basic4gl", "befunge", "bf", "bibtex", "bmx", "bnf", "boo",
- "brainfuck", "c", "caddcl", "cadlisp", "ceylon", "cfdg", "cfm", "chaiscript", "chapel", "chef", "cil",
- "circuitpython", "clojure", "cmd", "cobol", "coffeescript", "cpp", "cpp_qt", "cpp_winapi", "csharp", "cuesheet",
- "curses", "c_loadrunner", "c_mac", "c_winapi", "d", "dart", "dcl", "dcpu16", "dcs", "delphi", "diff", "div", "dot",
- "duckyscript", "e", "ecmascript", "eiffel", "epc", "erlang", "esptool", "euphoria", "ezt", "f1", "falcon", "false",
- "filemaker", "fo", "fortran", "freebasic", "freeswitch", "fsharp", "gambas", "gcc", "gdb", "gdscript", "genero",
- "genie", "gettext", "glsl", "gml", "gnuplot", "go", "godot_glsl", "golfscript", "groovy", "gwbasic", "haskell",
- "haxe", "hicest", "hq9plus", "html4strict", "html5", "icon", "idl", "ini", "inno_setup", "intercal", "io",
- "ispf_panel", "j", "java", "java5", "jcl", "jquery", "json", "julia", "kickass", "kixtart", "klonec", "klonecpp",
- "kotlin", "ksp", "latex", "lb", "ldif", "lisp", "llvm", "locobasic", "logtalk", "lolcode", "lotusformulas",
- "lotusscript", "lscript", "lsl2", "lua", "m68k", "magiksf", "make", "malbolge", "mapbasic", "matlab", "mercury",
- "metapost", "micropython", "mirc", "mk61", "mmix", "modula2", "modula3", "mpasm", "mxml", "mysql", "nagios", "nasm",
- "netrexx", "newlisp", "nginx", "nim", "nodejs", "nsis", "oberon2", "objc", "objeck", "ocaml", "ocaml_brief", "octave",
- "oobas", "ook", "oorexx", "oracle11", "oracle8", "oxygene", "oz", "parasail", "pari_gp", "pascal", "path", "pawn",
- "pcre", "perl", "perl6", "pf", "phix", "php", "php_brief", "pic16", "piet", "pike", "pixelbender", "pli", "plsql",
- "postgresql", "postscript", "povray", "powerbuilder", "powershell", "proftpd", "progress", "prolog", "properties",
- "providex", "puppet", "purebasic", "pycon", "pys60", "python2", "python3", "q", "qbasic", "qml", "r", "racket",
- "rails", "rbs", "rebol", "redcode", "reg", "rexx", "robots", "rockstar", "roff", "rpmspec", "rsplus", "ruby", "rust",
- "sas", "scala", "scheme", "scilab", "scl", "sdlbasic", "shakespeare", "smalltalk", "smarty", "spark", "sparql", "sqf",
- "sql", "sshconfig", "standardml", "stonescript", "swift", "systemverilog", "tcl", "teraterm", "texgraph", "thinbasic",
- "tsql", "typescript", "typoscript", "unicon", "unlambda", "upc", "urbi", "uscript", "vala", "vb", "vbnet", "vbscript",
- "vedit", "verilog", "vhdl", "vim", "visualfoxpro", "visualprolog", "vvvvvv", "white", "whitespace", "whois",
- "winbatch", "xbasic", "xml", "xojo", "xorg_conf", "xpp", "yaml", "yara", "z80", "zxbasic"
- ]
- for lang in languages:
- try:
- __import__(lang)
- print(f"\n++[{lang}]++ is found & available on the system.\n")
- except ImportError:
- print(f"\t\t\t\t\tSorry... --[{lang}]-- is not currently available on the system.")
- except Exception as e:
- print(f"\n\t\tAn unexpected error occurred for ??[{lang}]??: {e}\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement