├── tests ├── __init__.py └── test_cli.py ├── docs └── screen.png ├── src └── whaler │ ├── static │ └── html.tgz │ └── cli.py ├── pytest.ini ├── codecov.yml ├── .github ├── workflows │ ├── publish-to-pypi.yml │ ├── test-publish-to-pypi.yml │ └── test.yml └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── pyrightconfig.json ├── pyproject.toml ├── .devcontainer ├── Dockerfile └── devcontainer.json ├── .pre-commit-config.yaml ├── .gitignore ├── README.md ├── CODE_OF_CONDUCT.md ├── setup.py ├── LICENSE └── poetry.lock /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treebeardtech/whaler/HEAD/docs/screen.png -------------------------------------------------------------------------------- /src/whaler/static/html.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/treebeardtech/whaler/HEAD/src/whaler/static/html.tgz -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | addopts = 3 | --capture=tee-sys 4 | testpaths = 5 | tests 6 | markers = 7 | slow: marks tests as slow (deselect with '-m "not slow"') 8 | docker: requires docker -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | fixes: 2 | - "::src" 3 | comment: 4 | layout: "reach, diff, flags, files" 5 | behavior: default 6 | require_changes: false # if true: only post the comment if coverage changes 7 | require_base: no # [yes :: must have a base report to post] 8 | require_head: yes # [yes :: must have a head report to post] 9 | branches: # branch names that can post comment 10 | - "main" -------------------------------------------------------------------------------- /.github/workflows/publish-to-pypi.yml: -------------------------------------------------------------------------------- 1 | on: 2 | release: 3 | types: [published] 4 | jobs: 5 | build-n-publish: 6 | runs-on: ubuntu-18.04 7 | steps: 8 | - uses: actions/checkout@master 9 | - uses: actions/setup-python@v2 10 | - run: pip install poetry 11 | - run: poetry build 12 | - uses: pypa/gh-action-pypi-publish@master 13 | with: 14 | password: ${{ secrets.PYPI_PASSWORD }} 15 | -------------------------------------------------------------------------------- /pyrightconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "include": ["src", "tests"], 3 | 4 | "typeCheckingMode": "strict", 5 | "reportUnusedImport": true, 6 | "pythonVersion": "3.7", 7 | "enableTypeIgnoreComments": true, 8 | "reportUnknownMemberType": "warning", 9 | "reportUnknownParameterType": "warning", 10 | "reportUnknownVariableType": "warning", 11 | "reportUnknownArgumentType": "warning", 12 | "reportPrivateUsage": "warning", 13 | "reportUntypedFunctionDecorator": "warning", 14 | "reportMissingTypeStubs": false 15 | } 16 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | authors = ["alex-treebeard "] 3 | description = "" 4 | homepage = "https://github.com/treebeardtech/whaler" 5 | license = "Apache-2.0" 6 | name = "whaler" 7 | packages = [ 8 | {include = "whaler", from = "src"}, 9 | ] 10 | include = ["ui.zip"] 11 | readme = "README.md" 12 | version = "0.1.2" 13 | 14 | [tool.poetry.scripts] 15 | whaler = 'whaler.cli:run' 16 | 17 | [tool.poetry.dependencies] 18 | pathlib = "^1.0.1" 19 | python = "^3.7.1" 20 | humanfriendly = "^9.1" 21 | click = "^7.1.2" 22 | rich = "^9.5.1" 23 | 24 | [tool.poetry.dev-dependencies] 25 | pre-commit = "^2.8.2" 26 | pytest = "^6.2.1" 27 | pandas = "^1.2.0" 28 | 29 | [build-system] 30 | build-backend = "poetry.core.masonry.api" 31 | requires = ["setuptools", "poetry-core>=1.0.0"] 32 | -------------------------------------------------------------------------------- /.github/workflows/test-publish-to-pypi.yml: -------------------------------------------------------------------------------- 1 | on: [pull_request] 2 | jobs: 3 | build-n-publish: 4 | runs-on: ubuntu-18.04 5 | steps: 6 | - uses: actions/checkout@master 7 | - uses: actions/setup-python@v2 8 | - run: pip install poetry 9 | - name: Set poetry version to dev 10 | run: | 11 | build_version="$(poetry version -s).dev$(date +%s)" 12 | poetry version $build_version 13 | - run: poetry build 14 | - run: pip install "dist/whaler-$(poetry version -s).tar.gz" 15 | - run: whaler --no-server . 16 | - name: Publish distribution to Test PyPI 17 | uses: pypa/gh-action-pypi-publish@master 18 | with: 19 | password: ${{ secrets.TEST_PYPI_PASSWORD }} 20 | repository_url: https://test.pypi.org/legacy/ 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- 1 | # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.148.1/containers/python-3/.devcontainer/base.Dockerfile 2 | 3 | # [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6 4 | ARG VARIANT="3" 5 | FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} 6 | 7 | # [Option] Install Node.js 8 | ARG INSTALL_NODE="true" 9 | ARG NODE_VERSION="lts/*" 10 | RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi 11 | 12 | # [Optional] If your pip requirements rarely change, uncomment this section to add them to the image. 13 | # COPY requirements.txt /tmp/pip-tmp/ 14 | # RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \ 15 | # && rm -rf /tmp/pip-tmp 16 | 17 | # [Optional] Uncomment this section to install additional OS packages. 18 | # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ 19 | # && apt-get -y install --no-install-recommends 20 | 21 | # [Optional] Uncomment this line to install global node packages. 22 | # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | repos: 2 | - repo: https://github.com/pre-commit/pre-commit-hooks 3 | rev: v3.3.0 4 | hooks: 5 | - id: trailing-whitespace 6 | - repo: https://github.com/kynan/nbstripout 7 | rev: master 8 | hooks: 9 | - id: nbstripout 10 | - repo: https://github.com/ambv/black 11 | rev: stable 12 | hooks: 13 | - id: black 14 | files: '(src|tests).*py' 15 | - repo: https://github.com/PyCQA/isort 16 | rev: 5.6.4 17 | hooks: 18 | - id: isort 19 | args: ["-m", "3", "--tc"] 20 | - repo: local 21 | hooks: 22 | - id: poetry 23 | name: sync setup.py with poetry 24 | entry: | 25 | bash -c ' \ 26 | if [[ $CI ]]; then 27 | exit 0 28 | fi 29 | V=$(poetry version -s); 30 | poetry build && tar -xvf dist/whaler-$V.tar.gz -C dist && diff dist/whaler-$V/setup.py setup.py \ 31 | || cp dist/whaler-$V/setup.py setup.py \ 32 | ' 33 | language: system 34 | pass_filenames: false 35 | files: pyproject.toml|poetry.lock 36 | - repo: local 37 | hooks: 38 | - id: pyright 39 | name: pyright 40 | entry: poetry run pyright 41 | language: node 42 | pass_filenames: false 43 | types: [python] 44 | additional_dependencies: ["pyright@1.1.91"] 45 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request: 3 | push: 4 | branches: 5 | - main 6 | 7 | jobs: 8 | pytest: 9 | timeout-minutes: 20 10 | strategy: 11 | fail-fast: false 12 | matrix: 13 | cfg: 14 | - os: ubuntu-latest 15 | python-version: "3.7" 16 | - os: ubuntu-latest 17 | python-version: "3.8" 18 | - os: ubuntu-latest 19 | python-version: "3.9" 20 | - os: macos-latest 21 | python-version: "3.7" 22 | pytest-opts: "-m 'not docker'" 23 | - os: macos-latest 24 | python-version: "3.8" 25 | pytest-opts: "-m 'not docker'" 26 | - os: macos-latest 27 | python-version: "3.9" 28 | pytest-opts: "-m 'not docker'" 29 | publish-docs: true 30 | 31 | runs-on: ${{ matrix.cfg.os }} 32 | steps: 33 | - uses: actions/checkout@v2 34 | - uses: actions/setup-python@v2 35 | with: 36 | python-version: ${{ matrix.cfg.python-version }} 37 | - run: pip install poetry 38 | - run: poetry config virtualenvs.in-project true 39 | - run: poetry -V 40 | - run: poetry install 41 | - uses: pre-commit/action@v2.0.0 42 | with: 43 | extra_args: --verbose --all-files 44 | 45 | - run: poetry run pytest ${{ matrix.cfg.pytest-opts }} 46 | - run: poetry run whaler --no-server ../.. 47 | - if: matrix.cfg.publish-docs && github.ref == 'refs/heads/main' 48 | uses: peaceiris/actions-gh-pages@v3.6.1 49 | with: 50 | github_token: ${{ secrets.GITHUB_TOKEN }} 51 | publish_dir: ./_whaler/html 52 | 53 | -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Python 3", 3 | "build": { 4 | "dockerfile": "Dockerfile", 5 | "context": "..", 6 | "args": { 7 | // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 8 | "VARIANT": "3.8", 9 | // Options 10 | "INSTALL_NODE": "true", 11 | "NODE_VERSION": "lts/*" 12 | } 13 | }, 14 | 15 | // Set *default* container specific settings.json values on container create. 16 | "settings": { 17 | "terminal.integrated.shell.linux": "/bin/bash", 18 | "python.pythonPath": "/usr/local/bin/python", 19 | "python.linting.enabled": true, 20 | "python.linting.pylintEnabled": true, 21 | "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", 22 | "python.formatting.blackPath": "/usr/local/py-utils/bin/black", 23 | "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", 24 | "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", 25 | "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", 26 | "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", 27 | "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", 28 | "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", 29 | "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" 30 | }, 31 | 32 | // Add the IDs of extensions you want installed when the container is created. 33 | "extensions": [ 34 | "ms-python.python" 35 | ], 36 | 37 | // Use 'forwardPorts' to make a list of ports inside the container available locally. 38 | // "forwardPorts": [], 39 | 40 | // Use 'postCreateCommand' to run commands after the container is created. 41 | // "postCreateCommand": "pip3 install --user -r requirements.txt", 42 | 43 | // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. 44 | "remoteUser": "vscode" 45 | } 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | 131 | .DS_store 132 | typeshed 133 | 134 | trash 135 | **/_build 136 | 137 | .vscode 138 | 139 | _whaler -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # whaler 2 | 3 | [![PyPI versions](https://img.shields.io/pypi/pyversions/whaler?logo=python&logoColor=white)](https://pypi.org/project/whaler) 4 | 5 | **What?** A command-line tool for visually investigating the disk usage of docker images 6 | 7 | **Why?** Large images are slow to move and expensive to store. They cost developer productivity by lengthening devops tasks and often contain unnecessary data 8 | 9 | **Who is this for?** Primarily for engineers working with images containing Python packages. 10 | 11 | ## User Stories 12 | 13 | This tool should allow you to answer questions such as: 14 | 1. Which file types are occupying the most disk space? 15 | 2. Which are my largest Python packages? 16 | 3. What are my unknown causes of high disk usage? 17 | 18 | ## Quick start 19 | 20 | ```bash 21 | pip install whaler 22 | ``` 23 | 24 | ### Run against a local directory 25 | ``` 26 | ➜ whaler .venv 27 | Running bash -c cd .venv && du -a -k 28 | Done. Serving output at http://localhost:8000 (ctrl+c to exit) 29 | Running python3 -m http.server 8000 --directory=_whaler/html 30 | ``` 31 | 32 | ### Run against a docker image 33 | 34 | The tool will pull the image first if it is not present. 35 | ``` 36 | whaler --image='hl:latest' / 37 | Running docker run --rm --entrypoint=du --workdir=/ hl:latest -a -k 38 | Ignoring what seems to be non-fatal error(s): 39 | du: cannot access './proc/1/task/1/fd/4': No such file or directory 40 | du: cannot access './proc/1/task/1/fdinfo/4': No such file or directory 41 | du: cannot access './proc/1/fd/3': No such file or directory 42 | du: cannot access './proc/1/fdinfo/3': No such file or directory 43 | 44 | 45 | Done. Serving output at http://localhost:8000 (ctrl+c to exit) 46 | Running python3 -m http.server 8000 --directory=_whaler/html 47 | ``` 48 | 49 | ![HTML Report](docs/screen.png) 50 | 51 | Play with a [hosted demo](https://treebeardtech.github.io/whaler/) 52 | 53 | ## Limitations 54 | 55 | 1. Platform: whaler uses `du` to gather disk usage data. It must be present in your docker image 56 | 2. Scale: I have tested the web UI with up to 500,000 file system nodes with `du` output of up to ~100MB. 57 | 58 | ## Alternatives/Complements to this tool: 59 | 60 | 1. Whaler can tell you what is taking up space in the final layer of your Docker image, but you may have intermediate layers which are contributing to the image size. For diving through the layers, use [dive](https://github.com/wagoodman/dive) 61 | * **Related**: read up on [multi-stage builds](https://docs.docker.com/develop/develop-images/multistage-build/) to understand how to mitigate the problem of intermediate layers bloating your image. 62 | 1. For investigating disk usage in non-docker directories, [Disk Inventory X](http://www.derlien.com/) is a great tool on OS X which I have based whaler on. 63 | 1. [GoogleContainerTools/distroless](https://github.com/GoogleContainerTools/distroless) for base images not containing standard linux distro contents 64 | 65 | ## See also 66 | 1. [a good blog post on making small python images](https://pythonspeed.com/articles/alpine-docker-python/) 67 | 68 | ## Developing 69 | 70 | See `.github/workflows/test.yml` for the development platform and setup. 71 | 72 | For UI, see [whaler-ui](https://github.com/treebeardtech/whaler-ui) 73 | -------------------------------------------------------------------------------- /src/whaler/cli.py: -------------------------------------------------------------------------------- 1 | import shutil 2 | import subprocess 3 | from pathlib import Path 4 | from subprocess import CalledProcessError 5 | from typing import Optional, Tuple, Union 6 | 7 | from rich.console import Console 8 | 9 | console = Console() 10 | 11 | import click 12 | from rich import print 13 | 14 | DEFAULT_OUT = "_whaler" 15 | HTML_DIR = "html" 16 | DU_FILENAME = "du.txt" 17 | DU_ARGS = ("-a", "-k") 18 | UI_FILENAME = "html.tgz" 19 | 20 | 21 | @click.command() 22 | @click.option("--image", help="docker image", default=None) 23 | @click.option("--port", help="port to serve the outputs on", default=8000) 24 | @click.option("--out", help="output path", default=DEFAULT_OUT) 25 | @click.argument("directory", default=".") 26 | @click.option( 27 | "--server/--no-server", 28 | default=True, 29 | help="Run web server on output to immediately view", 30 | ) 31 | def run(directory: str, out: str, image: Optional[str], server: bool, port: int): 32 | """""" 33 | try: 34 | du_out = du(Path(directory), image) 35 | 36 | out_path = Path(out) 37 | html_path = out_path / HTML_DIR 38 | html_path.mkdir(exist_ok=True, parents=True) 39 | (html_path / DU_FILENAME).write_text(du_out) 40 | 41 | ui = Path(__file__).parent / "static" / UI_FILENAME 42 | 43 | shutil.unpack_archive(ui, extract_dir=out_path) 44 | 45 | if server: 46 | server_cmd = ( 47 | "python3", 48 | "-m", 49 | "http.server", 50 | str(port), 51 | f"--directory={html_path}", 52 | ) 53 | print( 54 | f"[bold green]Done. Serving output at http://localhost:{port} (ctrl+c to exit)" 55 | ) 56 | shell(server_cmd) 57 | except CalledProcessError as err: 58 | msg = f""" 59 | [bold red]subprocess failed with status {err.returncode}. 60 | stderr:\n\n{(err.stderr or b'-').decode()} 61 | stdout (truncated):\n\n{(err.stdout or b'-').decode()[:100]} 62 | """ 63 | print(msg) 64 | 65 | exit(2) 66 | 67 | 68 | def du(directory: Path, image: Optional[str]) -> str: 69 | 70 | if image: 71 | cmd = ("docker", "run", "--rm", "--entrypoint=du") 72 | if str(directory) != ".": 73 | cmd += (f"--workdir={directory}",) 74 | cmd += (image, *DU_ARGS) 75 | else: 76 | cmd = ("bash", "-c", f"cd {directory} && du {' '.join(DU_ARGS)}") 77 | 78 | try: 79 | return shell(cmd) 80 | except CalledProcessError as err: 81 | if len(err.output) == 0: 82 | raise err 83 | 84 | print( 85 | f"Ignoring what seems to be non-fatal error(s):\n{(err.stderr or b'-').decode()}" 86 | ) 87 | return err.output.decode() 88 | 89 | 90 | def shell(cmd: Union[str, Tuple[str, ...]]): 91 | with console.status(""): 92 | 93 | if isinstance(cmd, str): 94 | print(f"Running {cmd}") 95 | return subprocess.check_output( 96 | cmd, shell=True, stderr=subprocess.PIPE 97 | ).decode() 98 | else: 99 | print(f"Running {' '.join(cmd)}") 100 | return subprocess.check_output(cmd, stderr=subprocess.PIPE).decode() 101 | 102 | 103 | class ShellError(BaseException): 104 | pass 105 | 106 | 107 | if __name__ == "__main__": 108 | run() 109 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at alex@treebeard.io. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from setuptools import setup 3 | 4 | package_dir = \ 5 | {'': 'src'} 6 | 7 | packages = \ 8 | ['whaler'] 9 | 10 | package_data = \ 11 | {'': ['*'], 'whaler': ['static/html.tgz']} 12 | 13 | install_requires = \ 14 | ['click>=7.1.2,<8.0.0', 15 | 'humanfriendly>=9.1,<10.0', 16 | 'pathlib>=1.0.1,<2.0.0', 17 | 'rich>=9.5.1,<10.0.0'] 18 | 19 | entry_points = \ 20 | {'console_scripts': ['whaler = whaler.cli:run']} 21 | 22 | setup_kwargs = { 23 | 'name': 'whaler', 24 | 'version': '0.1.2', 25 | 'description': '', 26 | 'long_description': "# whaler\n\n[![PyPI versions](https://img.shields.io/pypi/pyversions/whaler?logo=python&logoColor=white)](https://pypi.org/project/whaler)\n[![PyPI versions](https://img.shields.io/pypi/v/whaler?logo=python&logoColor=white)](https://pypi.org/project/whaler)\n\n**What?** A command-line tool for visually investigating the disk usage of docker images\n\n**Why?** Large images are slow to move and expensive to store. They cost developer productivity by lengthening devops tasks and often contain unnecessary data\n\n**Who is this for?** Primarily for engineers working with images containing Python packages.\n\n## User Stories\n\nThis tool should allow you to answer questions such as:\n1. Which file types are occupying the most disk space?\n2. Which are my largest Python packages?\n3. What are my unknown causes of high disk usage?\n\n## Quick start\n\n```bash\npip install whaler\n```\n\n### Run against a local directory\n```\n➜ whaler .venv\nRunning bash -c cd .venv && du -a -k\nDone. Serving output at http://localhost:8000 (ctrl+c to exit)\nRunning python3 -m http.server 8000 --directory=_whaler/html\n```\n\n### Run against a docker image\n\nThe tool will pull the image first if it is not present.\n```\nwhaler --image='hl:latest' /\nRunning docker run --rm --entrypoint=du --workdir=/ hl:latest -a -k\nIgnoring what seems to be non-fatal error(s):\ndu: cannot access './proc/1/task/1/fd/4': No such file or directory\ndu: cannot access './proc/1/task/1/fdinfo/4': No such file or directory\ndu: cannot access './proc/1/fd/3': No such file or directory\ndu: cannot access './proc/1/fdinfo/3': No such file or directory\n\n\nDone. Serving output at http://localhost:8000 (ctrl+c to exit)\nRunning python3 -m http.server 8000 --directory=_whaler/html\n```\n\n![HTML Report](docs/screen.png)\n\nPlay with a [hosted demo](https://treebeardtech.github.io/whaler/)\n\n## Limitations\n\n1. Platform: whaler uses `du` to gather disk usage data. It must be present in your docker image\n2. Scale: I have tested the web UI with up to 500,000 file system nodes with `du` output of up to ~100MB.\n\n## Alternatives/Complements to this tool:\n\n1. Whaler can tell you what is taking up space in the final layer of your Docker image, but you may have intermediate layers which are contributing to the image size. For diving through the layers, use [dive](https://github.com/wagoodman/dive)\n * **Related**: read up on [multi-stage builds](https://docs.docker.com/develop/develop-images/multistage-build/) to understand how to mitigate the problem of intermediate layers bloating your image.\n1. For investigating disk usage in non-docker directories, [Disk Inventory X](http://www.derlien.com/) is a great tool on OS X which I have based whaler on.\n1. [GoogleContainerTools/distroless](https://github.com/GoogleContainerTools/distroless) for base images not containing standard linux distro contents\n\n## See also\n1. [a good blog post on making small python images](https://pythonspeed.com/articles/alpine-docker-python/)\n\n## Developing\n\nSee `.github/workflows/test.yml` for the development platform and setup.\n\nFor UI, see [whaler-ui](https://github.com/treebeardtech/whaler-ui)", 27 | 'author': 'alex-treebeard', 28 | 'author_email': 'alex@treebeard.io', 29 | 'maintainer': None, 30 | 'maintainer_email': None, 31 | 'url': 'https://github.com/treebeardtech/whaler', 32 | 'package_dir': package_dir, 33 | 'packages': packages, 34 | 'package_data': package_data, 35 | 'install_requires': install_requires, 36 | 'entry_points': entry_points, 37 | 'python_requires': '>=3.7.1,<4.0.0', 38 | } 39 | 40 | 41 | setup(**setup_kwargs) 42 | -------------------------------------------------------------------------------- /tests/test_cli.py: -------------------------------------------------------------------------------- 1 | from subprocess import CalledProcessError, check_output 2 | from unittest.mock import patch 3 | 4 | import pandas as pd 5 | from click.testing import CliRunner 6 | from pytest import fixture, mark 7 | 8 | from whaler import cli 9 | 10 | pytest_plugins = "pytester" 11 | 12 | from pathlib import Path 13 | 14 | 15 | def pull(image: str): 16 | print(f"Pulling {image}...") 17 | check_output(["docker", "pull", image]) 18 | print("Done.") 19 | 20 | 21 | @fixture 22 | def alpine(): 23 | image = "alpine:20201218" 24 | pull(image) 25 | return image 26 | 27 | 28 | @fixture 29 | def distroless(): 30 | image = "gcr.io/distroless/python3" 31 | pull(image) 32 | return image 33 | 34 | 35 | def test_when_local_dir_then_success(testdir): 36 | runner = CliRunner() 37 | 38 | result = runner.invoke(cli.run, "--no-server", catch_exceptions=False) 39 | 40 | html_dir = Path(testdir.tmpdir) / cli.DEFAULT_OUT / cli.HTML_DIR 41 | 42 | assert result.exit_code == 0 43 | assert (html_dir / cli.DU_FILENAME).exists() 44 | assert (html_dir / "index.html").exists() 45 | 46 | 47 | def test_when_custom_out_dir_then_success(testdir): 48 | runner = CliRunner() 49 | out_path = "blah" 50 | result = runner.invoke( 51 | cli.run, f"--out={out_path} --no-server", catch_exceptions=False 52 | ) 53 | 54 | html_dir = Path(testdir.tmpdir) / out_path / cli.HTML_DIR 55 | 56 | assert result.exit_code == 0 57 | assert (html_dir / cli.DU_FILENAME).exists() 58 | assert (html_dir / "index.html").exists() 59 | 60 | 61 | @mark.docker 62 | def test_when_custom_dir_docker_then_custom_cwd(testdir, alpine): 63 | runner = CliRunner() 64 | result = runner.invoke( 65 | cli.run, f"--image={alpine} --no-server /bin", catch_exceptions=False 66 | ) 67 | print(result.output) 68 | 69 | html_dir = Path(testdir.tmpdir) / cli.DEFAULT_OUT / cli.HTML_DIR 70 | 71 | assert result.exit_code == 0 72 | du_txt_path = html_dir / cli.DU_FILENAME 73 | assert (du_txt_path).exists() 74 | assert (html_dir / "index.html").exists() 75 | 76 | df = pd.read_csv(du_txt_path, sep="\t", names=["size", "path"]) 77 | assert len(df.loc[df["path"] == "./ls"]) == 1 78 | 79 | 80 | @mark.docker 81 | def test_when_docker_dir_then_success(testdir, alpine): 82 | runner = CliRunner() 83 | directory = "/usr" 84 | result = runner.invoke( 85 | cli.run, f"--image={alpine} --no-server {directory}", catch_exceptions=False 86 | ) 87 | 88 | html_dir = Path(testdir.tmpdir) / cli.DEFAULT_OUT / cli.HTML_DIR 89 | 90 | assert result.exit_code == 0 91 | assert (html_dir / cli.DU_FILENAME).exists() 92 | assert (html_dir / "index.html").exists() 93 | 94 | 95 | def test_when_subprocess_error_then_appropriate_msg(testdir): 96 | runner = CliRunner() 97 | stdout = "" 98 | stderr = "fhgf3" 99 | cmd = "hjgh 8787" 100 | 101 | with patch("subprocess.check_output") as mock: 102 | mock.side_effect = CalledProcessError(1, cmd, stdout.encode(), stderr.encode()) 103 | result = runner.invoke(cli.run, "--no-server", catch_exceptions=True) 104 | 105 | assert result.exit_code == 2 106 | assert stdout in result.output 107 | assert stderr in result.output 108 | 109 | 110 | @mark.docker 111 | def test_when_invalid_image_then_fails(testdir): 112 | runner = CliRunner() 113 | 114 | result = runner.invoke(cli.run, "--image jk --no-server") 115 | 116 | assert result.exit_code == 2 117 | assert not (Path(testdir.tmpdir) / cli.DEFAULT_OUT).exists() 118 | 119 | 120 | def test_when_invalid_dir_then_fails(testdir): 121 | runner = CliRunner() 122 | invalid_dir = "lkj" 123 | 124 | result = runner.invoke(cli.run, f"--no-server {invalid_dir}") 125 | 126 | assert result.exit_code == 2 127 | assert not (Path(testdir.tmpdir) / cli.DEFAULT_OUT).exists() 128 | 129 | 130 | @mark.docker 131 | def test_when_no_du_then_fails(testdir, distroless): 132 | runner = CliRunner() 133 | 134 | result = runner.invoke(cli.run, f"--image='{distroless}' --no-server") 135 | 136 | assert result.exit_code == 2 137 | assert not (Path(testdir.tmpdir) / cli.DEFAULT_OUT).exists() 138 | assert "executable file not found" in result.output 139 | 140 | 141 | @mark.slow 142 | @mark.docker 143 | def test_when_large_image_then_success(testdir): 144 | runner = CliRunner() 145 | result = runner.invoke( 146 | cli.run, 147 | f"--image='volkamerlab/teachopencadd:master-latest' --no-server /", 148 | catch_exceptions=False, 149 | ) 150 | print(result.output) 151 | 152 | html_dir = Path(testdir.tmpdir) / cli.DEFAULT_OUT / cli.HTML_DIR 153 | 154 | assert result.exit_code == 0 155 | du_txt_path = html_dir / cli.DU_FILENAME 156 | assert (du_txt_path).exists() 157 | assert (html_dir / "index.html").exists() 158 | 159 | df = pd.read_csv(du_txt_path, sep="\t", names=["size", "path"]) 160 | assert len(df.loc[df["path"] == "./bin/ls"]) == 1 161 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "appdirs" 3 | version = "1.4.4" 4 | description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." 5 | category = "dev" 6 | optional = false 7 | python-versions = "*" 8 | 9 | [[package]] 10 | name = "atomicwrites" 11 | version = "1.4.0" 12 | description = "Atomic file writes." 13 | category = "dev" 14 | optional = false 15 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 16 | 17 | [[package]] 18 | name = "attrs" 19 | version = "20.3.0" 20 | description = "Classes Without Boilerplate" 21 | category = "dev" 22 | optional = false 23 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 24 | 25 | [package.extras] 26 | dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "furo", "sphinx", "pre-commit"] 27 | docs = ["furo", "sphinx", "zope.interface"] 28 | tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"] 29 | tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"] 30 | 31 | [[package]] 32 | name = "cfgv" 33 | version = "3.2.0" 34 | description = "Validate configuration and produce human readable error messages." 35 | category = "dev" 36 | optional = false 37 | python-versions = ">=3.6.1" 38 | 39 | [[package]] 40 | name = "click" 41 | version = "7.1.2" 42 | description = "Composable command line interface toolkit" 43 | category = "main" 44 | optional = false 45 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 46 | 47 | [[package]] 48 | name = "colorama" 49 | version = "0.4.4" 50 | description = "Cross-platform colored terminal text." 51 | category = "main" 52 | optional = false 53 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 54 | 55 | [[package]] 56 | name = "commonmark" 57 | version = "0.9.1" 58 | description = "Python parser for the CommonMark Markdown spec" 59 | category = "main" 60 | optional = false 61 | python-versions = "*" 62 | 63 | [package.extras] 64 | test = ["flake8 (==3.7.8)", "hypothesis (==3.55.3)"] 65 | 66 | [[package]] 67 | name = "distlib" 68 | version = "0.3.1" 69 | description = "Distribution utilities" 70 | category = "dev" 71 | optional = false 72 | python-versions = "*" 73 | 74 | [[package]] 75 | name = "filelock" 76 | version = "3.0.12" 77 | description = "A platform independent file lock." 78 | category = "dev" 79 | optional = false 80 | python-versions = "*" 81 | 82 | [[package]] 83 | name = "humanfriendly" 84 | version = "9.1" 85 | description = "Human friendly output for text interfaces using Python" 86 | category = "main" 87 | optional = false 88 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 89 | 90 | [package.dependencies] 91 | pyreadline = {version = "*", markers = "sys_platform == \"win32\""} 92 | 93 | [[package]] 94 | name = "identify" 95 | version = "1.5.10" 96 | description = "File identification library for Python" 97 | category = "dev" 98 | optional = false 99 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" 100 | 101 | [package.extras] 102 | license = ["editdistance"] 103 | 104 | [[package]] 105 | name = "importlib-metadata" 106 | version = "3.3.0" 107 | description = "Read metadata from Python packages" 108 | category = "dev" 109 | optional = false 110 | python-versions = ">=3.6" 111 | 112 | [package.dependencies] 113 | typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""} 114 | zipp = ">=0.5" 115 | 116 | [package.extras] 117 | docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] 118 | testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "jaraco.test (>=3.2.0)", "packaging", "pep517", "pyfakefs", "flufl.flake8", "pytest-black (>=0.3.7)", "pytest-mypy", "importlib-resources (>=1.3)"] 119 | 120 | [[package]] 121 | name = "iniconfig" 122 | version = "1.1.1" 123 | description = "iniconfig: brain-dead simple config-ini parsing" 124 | category = "dev" 125 | optional = false 126 | python-versions = "*" 127 | 128 | [[package]] 129 | name = "nodeenv" 130 | version = "1.5.0" 131 | description = "Node.js virtual environment builder" 132 | category = "dev" 133 | optional = false 134 | python-versions = "*" 135 | 136 | [[package]] 137 | name = "numpy" 138 | version = "1.19.4" 139 | description = "NumPy is the fundamental package for array computing with Python." 140 | category = "dev" 141 | optional = false 142 | python-versions = ">=3.6" 143 | 144 | [[package]] 145 | name = "packaging" 146 | version = "20.8" 147 | description = "Core utilities for Python packages" 148 | category = "dev" 149 | optional = false 150 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 151 | 152 | [package.dependencies] 153 | pyparsing = ">=2.0.2" 154 | 155 | [[package]] 156 | name = "pandas" 157 | version = "1.2.0" 158 | description = "Powerful data structures for data analysis, time series, and statistics" 159 | category = "dev" 160 | optional = false 161 | python-versions = ">=3.7.1" 162 | 163 | [package.dependencies] 164 | numpy = ">=1.16.5" 165 | python-dateutil = ">=2.7.3" 166 | pytz = ">=2017.3" 167 | 168 | [package.extras] 169 | test = ["pytest (>=5.0.1)", "pytest-xdist", "hypothesis (>=3.58)"] 170 | 171 | [[package]] 172 | name = "pathlib" 173 | version = "1.0.1" 174 | description = "Object-oriented filesystem paths" 175 | category = "main" 176 | optional = false 177 | python-versions = "*" 178 | 179 | [[package]] 180 | name = "pluggy" 181 | version = "0.13.1" 182 | description = "plugin and hook calling mechanisms for python" 183 | category = "dev" 184 | optional = false 185 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 186 | 187 | [package.dependencies] 188 | importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} 189 | 190 | [package.extras] 191 | dev = ["pre-commit", "tox"] 192 | 193 | [[package]] 194 | name = "pre-commit" 195 | version = "2.9.3" 196 | description = "A framework for managing and maintaining multi-language pre-commit hooks." 197 | category = "dev" 198 | optional = false 199 | python-versions = ">=3.6.1" 200 | 201 | [package.dependencies] 202 | cfgv = ">=2.0.0" 203 | identify = ">=1.0.0" 204 | importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} 205 | nodeenv = ">=0.11.1" 206 | pyyaml = ">=5.1" 207 | toml = "*" 208 | virtualenv = ">=20.0.8" 209 | 210 | [[package]] 211 | name = "py" 212 | version = "1.10.0" 213 | description = "library with cross-python path, ini-parsing, io, code, log facilities" 214 | category = "dev" 215 | optional = false 216 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 217 | 218 | [[package]] 219 | name = "pygments" 220 | version = "2.7.3" 221 | description = "Pygments is a syntax highlighting package written in Python." 222 | category = "main" 223 | optional = false 224 | python-versions = ">=3.5" 225 | 226 | [[package]] 227 | name = "pyparsing" 228 | version = "2.4.7" 229 | description = "Python parsing module" 230 | category = "dev" 231 | optional = false 232 | python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" 233 | 234 | [[package]] 235 | name = "pyreadline" 236 | version = "2.1" 237 | description = "A python implmementation of GNU readline." 238 | category = "main" 239 | optional = false 240 | python-versions = "*" 241 | 242 | [[package]] 243 | name = "pytest" 244 | version = "6.2.1" 245 | description = "pytest: simple powerful testing with Python" 246 | category = "dev" 247 | optional = false 248 | python-versions = ">=3.6" 249 | 250 | [package.dependencies] 251 | atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} 252 | attrs = ">=19.2.0" 253 | colorama = {version = "*", markers = "sys_platform == \"win32\""} 254 | importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} 255 | iniconfig = "*" 256 | packaging = "*" 257 | pluggy = ">=0.12,<1.0.0a1" 258 | py = ">=1.8.2" 259 | toml = "*" 260 | 261 | [package.extras] 262 | testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] 263 | 264 | [[package]] 265 | name = "python-dateutil" 266 | version = "2.8.1" 267 | description = "Extensions to the standard Python datetime module" 268 | category = "dev" 269 | optional = false 270 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" 271 | 272 | [package.dependencies] 273 | six = ">=1.5" 274 | 275 | [[package]] 276 | name = "pytz" 277 | version = "2020.5" 278 | description = "World timezone definitions, modern and historical" 279 | category = "dev" 280 | optional = false 281 | python-versions = "*" 282 | 283 | [[package]] 284 | name = "pyyaml" 285 | version = "5.3.1" 286 | description = "YAML parser and emitter for Python" 287 | category = "dev" 288 | optional = false 289 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 290 | 291 | [[package]] 292 | name = "rich" 293 | version = "9.5.1" 294 | description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" 295 | category = "main" 296 | optional = false 297 | python-versions = ">=3.6,<4.0" 298 | 299 | [package.dependencies] 300 | colorama = ">=0.4.0,<0.5.0" 301 | commonmark = ">=0.9.0,<0.10.0" 302 | pygments = ">=2.6.0,<3.0.0" 303 | typing-extensions = ">=3.7.4,<4.0.0" 304 | 305 | [package.extras] 306 | jupyter = ["ipywidgets (>=7.5.1,<8.0.0)"] 307 | 308 | [[package]] 309 | name = "six" 310 | version = "1.15.0" 311 | description = "Python 2 and 3 compatibility utilities" 312 | category = "dev" 313 | optional = false 314 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" 315 | 316 | [[package]] 317 | name = "toml" 318 | version = "0.10.2" 319 | description = "Python Library for Tom's Obvious, Minimal Language" 320 | category = "dev" 321 | optional = false 322 | python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" 323 | 324 | [[package]] 325 | name = "typing-extensions" 326 | version = "3.7.4.3" 327 | description = "Backported and Experimental Type Hints for Python 3.5+" 328 | category = "main" 329 | optional = false 330 | python-versions = "*" 331 | 332 | [[package]] 333 | name = "virtualenv" 334 | version = "20.2.2" 335 | description = "Virtual Python Environment builder" 336 | category = "dev" 337 | optional = false 338 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" 339 | 340 | [package.dependencies] 341 | appdirs = ">=1.4.3,<2" 342 | distlib = ">=0.3.1,<1" 343 | filelock = ">=3.0.0,<4" 344 | importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} 345 | six = ">=1.9.0,<2" 346 | 347 | [package.extras] 348 | docs = ["proselint (>=0.10.2)", "sphinx (>=3)", "sphinx-argparse (>=0.2.5)", "sphinx-rtd-theme (>=0.4.3)", "towncrier (>=19.9.0rc1)"] 349 | testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)", "pytest-xdist (>=1.31.0)", "packaging (>=20.0)", "xonsh (>=0.9.16)"] 350 | 351 | [[package]] 352 | name = "zipp" 353 | version = "3.4.0" 354 | description = "Backport of pathlib-compatible object wrapper for zip files" 355 | category = "dev" 356 | optional = false 357 | python-versions = ">=3.6" 358 | 359 | [package.extras] 360 | docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] 361 | testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "jaraco.test (>=3.2.0)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] 362 | 363 | [metadata] 364 | lock-version = "1.1" 365 | python-versions = "^3.7.1" 366 | content-hash = "efc66fc51222d6b433e11ce3186fe105509299df38ae8e6b480ddbf062114c66" 367 | 368 | [metadata.files] 369 | appdirs = [ 370 | {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"}, 371 | {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"}, 372 | ] 373 | atomicwrites = [ 374 | {file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"}, 375 | {file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"}, 376 | ] 377 | attrs = [ 378 | {file = "attrs-20.3.0-py2.py3-none-any.whl", hash = "sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6"}, 379 | {file = "attrs-20.3.0.tar.gz", hash = "sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700"}, 380 | ] 381 | cfgv = [ 382 | {file = "cfgv-3.2.0-py2.py3-none-any.whl", hash = "sha256:32e43d604bbe7896fe7c248a9c2276447dbef840feb28fe20494f62af110211d"}, 383 | {file = "cfgv-3.2.0.tar.gz", hash = "sha256:cf22deb93d4bcf92f345a5c3cd39d3d41d6340adc60c78bbbd6588c384fda6a1"}, 384 | ] 385 | click = [ 386 | {file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"}, 387 | {file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"}, 388 | ] 389 | colorama = [ 390 | {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, 391 | {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, 392 | ] 393 | commonmark = [ 394 | {file = "commonmark-0.9.1-py2.py3-none-any.whl", hash = "sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9"}, 395 | {file = "commonmark-0.9.1.tar.gz", hash = "sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60"}, 396 | ] 397 | distlib = [ 398 | {file = "distlib-0.3.1-py2.py3-none-any.whl", hash = "sha256:8c09de2c67b3e7deef7184574fc060ab8a793e7adbb183d942c389c8b13c52fb"}, 399 | {file = "distlib-0.3.1.zip", hash = "sha256:edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1"}, 400 | ] 401 | filelock = [ 402 | {file = "filelock-3.0.12-py3-none-any.whl", hash = "sha256:929b7d63ec5b7d6b71b0fa5ac14e030b3f70b75747cef1b10da9b879fef15836"}, 403 | {file = "filelock-3.0.12.tar.gz", hash = "sha256:18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59"}, 404 | ] 405 | humanfriendly = [ 406 | {file = "humanfriendly-9.1-py2.py3-none-any.whl", hash = "sha256:d5c731705114b9ad673754f3317d9fa4c23212f36b29bdc4272a892eafc9bc72"}, 407 | {file = "humanfriendly-9.1.tar.gz", hash = "sha256:066562956639ab21ff2676d1fda0b5987e985c534fc76700a19bd54bcb81121d"}, 408 | ] 409 | identify = [ 410 | {file = "identify-1.5.10-py2.py3-none-any.whl", hash = "sha256:cc86e6a9a390879dcc2976cef169dd9cc48843ed70b7380f321d1b118163c60e"}, 411 | {file = "identify-1.5.10.tar.gz", hash = "sha256:943cd299ac7f5715fcb3f684e2fc1594c1e0f22a90d15398e5888143bd4144b5"}, 412 | ] 413 | importlib-metadata = [ 414 | {file = "importlib_metadata-3.3.0-py3-none-any.whl", hash = "sha256:bf792d480abbd5eda85794e4afb09dd538393f7d6e6ffef6e9f03d2014cf9450"}, 415 | {file = "importlib_metadata-3.3.0.tar.gz", hash = "sha256:5c5a2720817414a6c41f0a49993908068243ae02c1635a228126519b509c8aed"}, 416 | ] 417 | iniconfig = [ 418 | {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, 419 | {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, 420 | ] 421 | nodeenv = [ 422 | {file = "nodeenv-1.5.0-py2.py3-none-any.whl", hash = "sha256:5304d424c529c997bc888453aeaa6362d242b6b4631e90f3d4bf1b290f1c84a9"}, 423 | {file = "nodeenv-1.5.0.tar.gz", hash = "sha256:ab45090ae383b716c4ef89e690c41ff8c2b257b85b309f01f3654df3d084bd7c"}, 424 | ] 425 | numpy = [ 426 | {file = "numpy-1.19.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:e9b30d4bd69498fc0c3fe9db5f62fffbb06b8eb9321f92cc970f2969be5e3949"}, 427 | {file = "numpy-1.19.4-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:fedbd128668ead37f33917820b704784aff695e0019309ad446a6d0b065b57e4"}, 428 | {file = "numpy-1.19.4-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:8ece138c3a16db8c1ad38f52eb32be6086cc72f403150a79336eb2045723a1ad"}, 429 | {file = "numpy-1.19.4-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:64324f64f90a9e4ef732be0928be853eee378fd6a01be21a0a8469c4f2682c83"}, 430 | {file = "numpy-1.19.4-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:ad6f2ff5b1989a4899bf89800a671d71b1612e5ff40866d1f4d8bcf48d4e5764"}, 431 | {file = "numpy-1.19.4-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:d6c7bb82883680e168b55b49c70af29b84b84abb161cbac2800e8fcb6f2109b6"}, 432 | {file = "numpy-1.19.4-cp36-cp36m-win32.whl", hash = "sha256:13d166f77d6dc02c0a73c1101dd87fdf01339febec1030bd810dcd53fff3b0f1"}, 433 | {file = "numpy-1.19.4-cp36-cp36m-win_amd64.whl", hash = "sha256:448ebb1b3bf64c0267d6b09a7cba26b5ae61b6d2dbabff7c91b660c7eccf2bdb"}, 434 | {file = "numpy-1.19.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:27d3f3b9e3406579a8af3a9f262f5339005dd25e0ecf3cf1559ff8a49ed5cbf2"}, 435 | {file = "numpy-1.19.4-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:16c1b388cc31a9baa06d91a19366fb99ddbe1c7b205293ed072211ee5bac1ed2"}, 436 | {file = "numpy-1.19.4-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:e5b6ed0f0b42317050c88022349d994fe72bfe35f5908617512cd8c8ef9da2a9"}, 437 | {file = "numpy-1.19.4-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:18bed2bcb39e3f758296584337966e68d2d5ba6aab7e038688ad53c8f889f757"}, 438 | {file = "numpy-1.19.4-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:fe45becb4c2f72a0907c1d0246ea6449fe7a9e2293bb0e11c4e9a32bb0930a15"}, 439 | {file = "numpy-1.19.4-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:6d7593a705d662be5bfe24111af14763016765f43cb6923ed86223f965f52387"}, 440 | {file = "numpy-1.19.4-cp37-cp37m-win32.whl", hash = "sha256:6ae6c680f3ebf1cf7ad1d7748868b39d9f900836df774c453c11c5440bc15b36"}, 441 | {file = "numpy-1.19.4-cp37-cp37m-win_amd64.whl", hash = "sha256:9eeb7d1d04b117ac0d38719915ae169aa6b61fca227b0b7d198d43728f0c879c"}, 442 | {file = "numpy-1.19.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:cb1017eec5257e9ac6209ac172058c430e834d5d2bc21961dceeb79d111e5909"}, 443 | {file = "numpy-1.19.4-cp38-cp38-manylinux1_i686.whl", hash = "sha256:edb01671b3caae1ca00881686003d16c2209e07b7ef8b7639f1867852b948f7c"}, 444 | {file = "numpy-1.19.4-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:f29454410db6ef8126c83bd3c968d143304633d45dc57b51252afbd79d700893"}, 445 | {file = "numpy-1.19.4-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:ec149b90019852266fec2341ce1db513b843e496d5a8e8cdb5ced1923a92faab"}, 446 | {file = "numpy-1.19.4-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:1aeef46a13e51931c0b1cf8ae1168b4a55ecd282e6688fdb0a948cc5a1d5afb9"}, 447 | {file = "numpy-1.19.4-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:08308c38e44cc926bdfce99498b21eec1f848d24c302519e64203a8da99a97db"}, 448 | {file = "numpy-1.19.4-cp38-cp38-win32.whl", hash = "sha256:5734bdc0342aba9dfc6f04920988140fb41234db42381cf7ccba64169f9fe7ac"}, 449 | {file = "numpy-1.19.4-cp38-cp38-win_amd64.whl", hash = "sha256:09c12096d843b90eafd01ea1b3307e78ddd47a55855ad402b157b6c4862197ce"}, 450 | {file = "numpy-1.19.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e452dc66e08a4ce642a961f134814258a082832c78c90351b75c41ad16f79f63"}, 451 | {file = "numpy-1.19.4-cp39-cp39-manylinux1_i686.whl", hash = "sha256:a5d897c14513590a85774180be713f692df6fa8ecf6483e561a6d47309566f37"}, 452 | {file = "numpy-1.19.4-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:a09f98011236a419ee3f49cedc9ef27d7a1651df07810ae430a6b06576e0b414"}, 453 | {file = "numpy-1.19.4-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:50e86c076611212ca62e5a59f518edafe0c0730f7d9195fec718da1a5c2bb1fc"}, 454 | {file = "numpy-1.19.4-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:f0d3929fe88ee1c155129ecd82f981b8856c5d97bcb0d5f23e9b4242e79d1de3"}, 455 | {file = "numpy-1.19.4-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:c42c4b73121caf0ed6cd795512c9c09c52a7287b04d105d112068c1736d7c753"}, 456 | {file = "numpy-1.19.4-cp39-cp39-win32.whl", hash = "sha256:8cac8790a6b1ddf88640a9267ee67b1aee7a57dfa2d2dd33999d080bc8ee3a0f"}, 457 | {file = "numpy-1.19.4-cp39-cp39-win_amd64.whl", hash = "sha256:4377e10b874e653fe96985c05feed2225c912e328c8a26541f7fc600fb9c637b"}, 458 | {file = "numpy-1.19.4-pp36-pypy36_pp73-manylinux2010_x86_64.whl", hash = "sha256:2a2740aa9733d2e5b2dfb33639d98a64c3b0f24765fed86b0fd2aec07f6a0a08"}, 459 | {file = "numpy-1.19.4.zip", hash = "sha256:141ec3a3300ab89c7f2b0775289954d193cc8edb621ea05f99db9cb181530512"}, 460 | ] 461 | packaging = [ 462 | {file = "packaging-20.8-py2.py3-none-any.whl", hash = "sha256:24e0da08660a87484d1602c30bb4902d74816b6985b93de36926f5bc95741858"}, 463 | {file = "packaging-20.8.tar.gz", hash = "sha256:78598185a7008a470d64526a8059de9aaa449238f280fc9eb6b13ba6c4109093"}, 464 | ] 465 | pandas = [ 466 | {file = "pandas-1.2.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:cba93d4fd3b0a42858b2b599495aff793fb5d94587979f45a14177d1217ba446"}, 467 | {file = "pandas-1.2.0-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:9e18631d996fe131de6cb31a8bdae18965cc8f39eb23fdfbbf42808ecc63dabf"}, 468 | {file = "pandas-1.2.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:7b54c14130a3448d81eed1348f52429c23e27188d9db6e6d4afeae792bc49c11"}, 469 | {file = "pandas-1.2.0-cp37-cp37m-win32.whl", hash = "sha256:6c1a57e4d0d6f9633a07817c44e6b36d81c265fe4c52d0c0505513a2d0f7953c"}, 470 | {file = "pandas-1.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:43482789c55cbabeed9482263cfc98a11e8fcae900cb63ef038948acb4a72570"}, 471 | {file = "pandas-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0be6102dd99910513e75ed6536284743ead810349c51bdeadd2a5b6649f30abb"}, 472 | {file = "pandas-1.2.0-cp38-cp38-manylinux1_i686.whl", hash = "sha256:9c6692cea6d56da8650847172bdb148622f545e7782d17995822434c79d7a211"}, 473 | {file = "pandas-1.2.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:272675a98fa4954b9fc0933df775596fc942e50015d7e75d8f19548808a2bfdf"}, 474 | {file = "pandas-1.2.0-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:33318fa24b192b1a4684347ff76679a7267fd4e547da9f71556a5914f0dc10e7"}, 475 | {file = "pandas-1.2.0-cp38-cp38-win32.whl", hash = "sha256:3bc6d2be03cb75981d8cbeda09503cd9d6d699fc0dc28a65e197165ad527b7b8"}, 476 | {file = "pandas-1.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:7904ee438549b5223ce8dc008772458dd7c5cf0ccc64cf903e81202400702235"}, 477 | {file = "pandas-1.2.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f8b87d2f541cd9bc4ecfe85a561abac85c33fe4de4ce70cca36b2768af2611f5"}, 478 | {file = "pandas-1.2.0-cp39-cp39-manylinux1_i686.whl", hash = "sha256:91fd0b94e7b98528177a05e6f65efea79d7ef9dec15ee48c7c69fc39fdd87235"}, 479 | {file = "pandas-1.2.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:8f92b07cdbfa3704d85b4264e52c216cafe6c0059b0d07cdad8cb29e0b90f2b8"}, 480 | {file = "pandas-1.2.0-cp39-cp39-win32.whl", hash = "sha256:2d8b4f532db37418121831a461fd107d826c240b098f52e7a1b4ab3d5aaa4fb2"}, 481 | {file = "pandas-1.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:616478c1bd8fe1e600f521ae2da434e021c11e7a4e5da3451d02906143d3629a"}, 482 | {file = "pandas-1.2.0.tar.gz", hash = "sha256:e03386615b970b8b41da6a68afe717626741bb2431cec993640685614c0680e4"}, 483 | ] 484 | pathlib = [ 485 | {file = "pathlib-1.0.1.tar.gz", hash = "sha256:6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f"}, 486 | ] 487 | pluggy = [ 488 | {file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"}, 489 | {file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"}, 490 | ] 491 | pre-commit = [ 492 | {file = "pre_commit-2.9.3-py2.py3-none-any.whl", hash = "sha256:6c86d977d00ddc8a60d68eec19f51ef212d9462937acf3ea37c7adec32284ac0"}, 493 | {file = "pre_commit-2.9.3.tar.gz", hash = "sha256:ee784c11953e6d8badb97d19bc46b997a3a9eded849881ec587accd8608d74a4"}, 494 | ] 495 | py = [ 496 | {file = "py-1.10.0-py2.py3-none-any.whl", hash = "sha256:3b80836aa6d1feeaa108e046da6423ab8f6ceda6468545ae8d02d9d58d18818a"}, 497 | {file = "py-1.10.0.tar.gz", hash = "sha256:21b81bda15b66ef5e1a777a21c4dcd9c20ad3efd0b3f817e7a809035269e1bd3"}, 498 | ] 499 | pygments = [ 500 | {file = "Pygments-2.7.3-py3-none-any.whl", hash = "sha256:f275b6c0909e5dafd2d6269a656aa90fa58ebf4a74f8fcf9053195d226b24a08"}, 501 | {file = "Pygments-2.7.3.tar.gz", hash = "sha256:ccf3acacf3782cbed4a989426012f1c535c9a90d3a7fc3f16d231b9372d2b716"}, 502 | ] 503 | pyparsing = [ 504 | {file = "pyparsing-2.4.7-py2.py3-none-any.whl", hash = "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"}, 505 | {file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"}, 506 | ] 507 | pyreadline = [ 508 | {file = "pyreadline-2.1.win-amd64.exe", hash = "sha256:9ce5fa65b8992dfa373bddc5b6e0864ead8f291c94fbfec05fbd5c836162e67b"}, 509 | {file = "pyreadline-2.1.win32.exe", hash = "sha256:65540c21bfe14405a3a77e4c085ecfce88724743a4ead47c66b84defcf82c32e"}, 510 | {file = "pyreadline-2.1.zip", hash = "sha256:4530592fc2e85b25b1a9f79664433da09237c1a270e4d78ea5aa3a2c7229e2d1"}, 511 | ] 512 | pytest = [ 513 | {file = "pytest-6.2.1-py3-none-any.whl", hash = "sha256:1969f797a1a0dbd8ccf0fecc80262312729afea9c17f1d70ebf85c5e76c6f7c8"}, 514 | {file = "pytest-6.2.1.tar.gz", hash = "sha256:66e419b1899bc27346cb2c993e12c5e5e8daba9073c1fbce33b9807abc95c306"}, 515 | ] 516 | python-dateutil = [ 517 | {file = "python-dateutil-2.8.1.tar.gz", hash = "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"}, 518 | {file = "python_dateutil-2.8.1-py2.py3-none-any.whl", hash = "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a"}, 519 | ] 520 | pytz = [ 521 | {file = "pytz-2020.5-py2.py3-none-any.whl", hash = "sha256:16962c5fb8db4a8f63a26646d8886e9d769b6c511543557bc84e9569fb9a9cb4"}, 522 | {file = "pytz-2020.5.tar.gz", hash = "sha256:180befebb1927b16f6b57101720075a984c019ac16b1b7575673bea42c6c3da5"}, 523 | ] 524 | pyyaml = [ 525 | {file = "PyYAML-5.3.1-cp27-cp27m-win32.whl", hash = "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f"}, 526 | {file = "PyYAML-5.3.1-cp27-cp27m-win_amd64.whl", hash = "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76"}, 527 | {file = "PyYAML-5.3.1-cp35-cp35m-win32.whl", hash = "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2"}, 528 | {file = "PyYAML-5.3.1-cp35-cp35m-win_amd64.whl", hash = "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c"}, 529 | {file = "PyYAML-5.3.1-cp36-cp36m-win32.whl", hash = "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2"}, 530 | {file = "PyYAML-5.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648"}, 531 | {file = "PyYAML-5.3.1-cp37-cp37m-win32.whl", hash = "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a"}, 532 | {file = "PyYAML-5.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf"}, 533 | {file = "PyYAML-5.3.1-cp38-cp38-win32.whl", hash = "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97"}, 534 | {file = "PyYAML-5.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee"}, 535 | {file = "PyYAML-5.3.1-cp39-cp39-win32.whl", hash = "sha256:ad9c67312c84def58f3c04504727ca879cb0013b2517c85a9a253f0cb6380c0a"}, 536 | {file = "PyYAML-5.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:6034f55dab5fea9e53f436aa68fa3ace2634918e8b5994d82f3621c04ff5ed2e"}, 537 | {file = "PyYAML-5.3.1.tar.gz", hash = "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"}, 538 | ] 539 | rich = [ 540 | {file = "rich-9.5.1-py3-none-any.whl", hash = "sha256:0f4359df97670c1981599690458c4c9ede02c56f59ae3a648b7154cdba21b0cc"}, 541 | {file = "rich-9.5.1.tar.gz", hash = "sha256:8b937e2d2c4ff9dcfda8a5910a8cd384bd30f50ec92346d616f62065c662df5f"}, 542 | ] 543 | six = [ 544 | {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, 545 | {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, 546 | ] 547 | toml = [ 548 | {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, 549 | {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, 550 | ] 551 | typing-extensions = [ 552 | {file = "typing_extensions-3.7.4.3-py2-none-any.whl", hash = "sha256:dafc7639cde7f1b6e1acc0f457842a83e722ccca8eef5270af2d74792619a89f"}, 553 | {file = "typing_extensions-3.7.4.3-py3-none-any.whl", hash = "sha256:7cb407020f00f7bfc3cb3e7881628838e69d8f3fcab2f64742a5e76b2f841918"}, 554 | {file = "typing_extensions-3.7.4.3.tar.gz", hash = "sha256:99d4073b617d30288f569d3f13d2bd7548c3a7e4c8de87db09a9d29bb3a4a60c"}, 555 | ] 556 | virtualenv = [ 557 | {file = "virtualenv-20.2.2-py2.py3-none-any.whl", hash = "sha256:54b05fc737ea9c9ee9f8340f579e5da5b09fb64fd010ab5757eb90268616907c"}, 558 | {file = "virtualenv-20.2.2.tar.gz", hash = "sha256:b7a8ec323ee02fb2312f098b6b4c9de99559b462775bc8fe3627a73706603c1b"}, 559 | ] 560 | zipp = [ 561 | {file = "zipp-3.4.0-py3-none-any.whl", hash = "sha256:102c24ef8f171fd729d46599845e95c7ab894a4cf45f5de11a44cc7444fb1108"}, 562 | {file = "zipp-3.4.0.tar.gz", hash = "sha256:ed5eee1974372595f9e416cc7bbeeb12335201d8081ca8a0743c954d4446e5cb"}, 563 | ] 564 | --------------------------------------------------------------------------------