https://github.com/git-ced/physics-calculator
Making our Physics class worthwhile
https://github.com/git-ced/physics-calculator
Last synced: 3 days ago
JSON representation
Making our Physics class worthwhile
- Host: GitHub
- URL: https://github.com/git-ced/physics-calculator
- Owner: git-ced
- License: mit
- Created: 2021-04-04T02:09:00.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T10:47:07.000Z (almost 5 years ago)
- Last Synced: 2025-08-24T00:24:08.497Z (6 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# physics-calculator
Making our Physics class worthwhile
# Getting Started
Initialize virtual python environment with `venv`
```bash
python3 -m venv venv
```
Activate the virtual environment
```bash
source venv/bin/activate
```
Install the required packages
```bash
pip install -r requirements.txt
```
And you are good to go!
# Running the script
Running the main file with `python3`
```bash
python3 src/index.py
```
# Testing the code
Running all test cases with `unittest`
```bash
python3 -m unittest discover -s src/test -t src
```
# Adding Packages
Installing a package with `pip`
```bash
pip install
```
Adding the installed package in the `requirements.txt`
```bash
pip freeze > requirements.txt
```