https://github.com/dakshaau/capioai
Coding Challenge
https://github.com/dakshaau/capioai
bottle docker python-docx python35 unittest
Last synced: 8 months ago
JSON representation
Coding Challenge
- Host: GitHub
- URL: https://github.com/dakshaau/capioai
- Owner: dakshaau
- Created: 2017-06-13T01:52:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-23T20:23:46.000Z (over 8 years ago)
- Last Synced: 2024-12-27T11:23:17.580Z (10 months ago)
- Topics: bottle, docker, python-docx, python35, unittest
- Language: Python
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CapioAI Python Challenge
**By:** Daksh Gupta
**Language:** Python 3.5
**Packages Required:** python-docx, requests, bottle
## Updates:
For updates after June 13, please check [this branch](https://github.com/dakshaau/CapioAI/tree/daksh)
I have implemented Unit testing using `unittest` module of python and containerized the server. There is also a sample curl request to demonstrate how to retrieve the .docx file using the server I created.
### Testing:
The code has assertions written into it. I haven't used any additional testing module to implement testcases
### Execution:
There are two options available, either use the executable script or run the server which returns the static docx file if generated successfully.
**NOTE:** Administrator priviledges may be needed
To execute the script simply use the following command after navigating to the program directory:
```Batchfile
python main.py
```To run the server simply use the following command after navigating to the program directory:
```Batchfile
python server.py
```The server accepts **GET** requests with the request header having `apiKey` label and an associated string.
The requests are only accepted at the URL: `http://IP:PORT/transcript/`