mairror / api

The Mairror API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mairror API

The Mairror API

Testing the image upload

  • Not authorized
curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@shakil.jpg" -F "source=streamlit" http://127.0.0.1:8000/images/upload
  • Authorized
curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@shakil.jpg" -F "source=streamlit" http://127.0.0.1:8000/images/upload

Converting Anaconda environment to pip requirements

  1. Use conda-minify to export only the top level requirements without the build string. It must be installed and executed within the conda base environment.

conda run --name base conda-minify -n mairror-api > environment.yml

  1. Use the conversion tool utils/conversor.py to convert the requirements to a pip requirements file. It reads the previously generated YAML file and outputs a requirements.txt file in the same folder.

python utils/conversor.py

Resources

About

The Mairror API

License:MIT License


Languages

Language:Python 87.2%Language:Makefile 6.9%Language:Dockerfile 5.9%