Basics

  • brew install pyenv
  • brew install poetry
  • pyenv install 3.7
  • pyenv global 3.7
  • poetry new demo
  • poetry add numpy
  • poetry install
  • poetry run demo/demo.py
├── README.md
├── demo
│   ├── __init__.py
│   └── demo.py <-- add yourself
├── poetry.lock
├── pyproject.toml
└── tests
    └── __init__.py

Passing in Arguments when using Poetry

From SO: test

  • poetry run arg_script arg1 arg2 arg3

Visualizing Dir Structure

brew install tree