معرفی شرکت ها


dycow-0.1.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A tiny web-server app with a configuration file, NO NEED TO CODE
ویژگی مقدار
سیستم عامل -
نام فایل dycow-0.1.0.0
نام dycow
نسخه کتابخانه 0.1.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sanix-darker
ایمیل نویسنده s4nixd@gmail.com
آدرس صفحه اصلی https://github.com/sanix-darker/dycow
آدرس اینترنتی https://pypi.org/project/dycow/
مجوز -
# Dynamic Command WebServer (dycow) [![Downloads](https://pepy.tech/badge/dycow)](https://pepy.tech/project/dycow) [![PyPI version](https://badge.fury.io/py/dycow.svg)](https://badge.fury.io/py/dycow) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) A tiny web-server app with a configuration file, NO NEED TO CODE ![dycow-demo](https://raw.githubusercontent.com/Sanix-Darker/dycow/master/img/dycow.png) ## Introduction This project is a small webserver that just have to get a port and a configuration file to perform preconfigurated commands. ## Disclaimer This was a test-research project for a specific user-case on my raspberry-pi, therefore, i configurated only two methods (GET and POST) ## Why use dycow - It's fast - Simple to configure, you just have to create a conf file to be ready to start - It's lightweight (The wheel is ~5Kb) ## Requirements - Python (3.x recommend) ## How to install You just have to run : ```shell pip install dycow ``` ## How to use ```shell $ dw -h [-] dycow v0.0.9.7. [-] Help center ! [x] Run : dw <port> <conf-file> [x] Documentation online https://github.com/sanix-darker/dycow ``` You have to create a file, for example `conf` and set actions, for example : ![dycow-demo](https://raw.githubusercontent.com/Sanix-Darker/dycow/master/img/conf.png) `- GET`(or `- POST`) is the type of the request, just after it the endPoint (`/save`, `/callme?name&content`). \ `cmd` is the command line that will be executed on a request. \ `res`[NOT REQUIRED] is the response to the request. \ `var` is to specify POST variables. \ Variables like `#content#` means, the content variable will be replace with the input value as parameter. - Then run the server application: ```shell # dw <port> <configuration-file> dw 3000 conf ``` It will start a small server on port `3000` and following rules you specified in the configuration file. - You can access [API-DOC here](https://documenter.getpostman.com/view/2696027/TVmV6ZS2) . ## Tests To run rest-api tests, i made a bash file in `./tests` directory.\ you just have to run `bash ./tests/rest-api-test.sh` ``` $ bash ./tests/rest-api-test.sh [-] Running Endpoints tests on dycow. [✓] GET / passed. [✓] GET /list passed. [✓] GET /callme?name=darker passed. [✓] POST /save passed. - - - [-] Tests run : [-] 4 tests succeed ! [-] 0 tests failed ! [-] Stopping tests Endpoints on dycow. ``` ## Author - [d4rk3r](https://github.com/sanix-darker) ## LICENSE - [MIT](./LICENSE.txt)


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl dycow-0.1.0.0:

    pip install dycow-0.1.0.0.whl


نصب پکیج tar.gz dycow-0.1.0.0:

    pip install dycow-0.1.0.0.tar.gz