An app to read STL files.
According to Wikipedia, STL is a file format native to the stereolithography CAD software created by 3D Systems. More information can be found here.
- Upload an STL file to the server.
- Server reads the file.
- Server can extract the following data:
- bounding box with dimensions:
- length, width, height for square
- length and diameter for round
- volume
- surface area
- bounding box with dimensions:
- Minimum Python interpreter version is
3.9
.
Django
for making the web application.numpy-stl
for reading the STL file.pathlib
to handle file path.pytest
for testing.
- Clone the repository.
- Create a virtual environment.
- Windows:
python -m venv venv
- Linux:
python3.9 -m venv venv
- Windows:
- Activate the virtual environment.
- Windows:
venv\Scripts\activate
- Linux:
source venv/bin/activate
- Windows:
- Install dependencies with
pip install -r requirements.txt
- Run migration with
python src/manage.py migrate
- Run the server with
python src/manage.py runserver
- By default, the server runs at http://127.0.0.1:8000/
- Select a sphere type and upload an STL file.
- Run tests with
pytest src
- Himel Das