While using a Git repository is not required to use the
Moveshelf API, it provides easy access to public resources from Moveshelf, e.g.,
moveshelf-data-examples. This section explains how to clone a GitHub repository and install its dependencies.
Clone a GitHub repository to your local machine
- Create an account on GitHub to be able to use the public repositories
- Open a public GitHub repository, e.g., moveshelf-data-examples and copy the repository URL
- Open Visual Studio Code
- Press: CTRL + Shift + P
- Type 'Git: clone’ in the top bar
- Press ‘Enter’
- Paste the repository URL and press 'Enter'
Select a local folder where you want to clone the repository
Install dependencies
To ensure your Python script runs without errors, it's best practice to list all required modules (along with their versions) in a
requirements.txt file. To install these dependencies automatically:
- Open a new terminal in Visual Studio Code
- Run the command: pip install -r requirements.txt in the terminal and press 'Enter'
- Make sure your terminal is in the correct folder where the requirements are saved as well.