This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, json | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| if __name__ == "__main__": | |
| base_dir = os.path.dirname(os.path.abspath(__file__)) | |
| all_dirs = os.listdir(base_dir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import platform | |
| from pip import main | |
| from deprecated import deprecated | |
| print(f"Platform: {platform.platform()}") | |
| print(f"Machine: {platform.machine()}") | |
| print(f"Processor: {platform.processor()}") | |
| print(f"Architecture: {(' ').join(list(platform.architecture()))}") | |
| print("Python environment:") | |
| print(f" Version: {platform.python_version()}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import inspect | |
| import yaml | |
| from typing import Callable, Optional | |
| def export_function_interface_to_yaml(func: Callable, file_name: str) -> None: | |
| """ | |
| Export the interface of a Python function to a YAML file. | |
| Args: |
OlderNewer