项目作者: vroncevic

项目描述 :
Generate CoAP service skeleton
高级语言: Python
项目地址: git://github.com/vroncevic/gen_coap_service.git
创建时间: 2020-01-31T07:02:58Z
项目社区:https://github.com/vroncevic/gen_coap_service

开源协议:GNU General Public License v3.0

下载


Generates CoAP modules

gen_coap_service is tool for generation of CoAP modules.

Developed in python code: 100%.

The README is used to introduce the modules and provide instructions on
how to install the modules, any machine dependencies it may have and any
other information that should be provided before the modules are installed.

gen_coap_service python checker gen_coap_service package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

Development environment

gen_coap_service python3 build

Currently there are three ways to install package

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

Python package is located at pypi.org.

You can install by using pip

  1. # python3
  2. pip3 install gen-coap-service
Install using build

Navigate to release page download and extract release archive.

To install gen-coap-service run

  1. tar xvzf gen-coap-service-x.y.z.tar.gz
  2. cd gen-coap-service-x.y.z
  3. # python3
  4. wget https://bootstrap.pypa.io/get-pip.py
  5. python3 get-pip.py
  6. python3 -m pip install --upgrade setuptools
  7. python3 -m pip install --upgrade pip
  8. python3 -m pip install --upgrade build
  9. pip3 install -r requirements.txt
  10. python3 -m build -s --no-isolation --wheel
  11. pip3 install dist/gen-coap-service-x.y.z-py3-none-any.whl
  12. rm -f get-pip.py
Install using py setup

Navigate to release page download and extract release archive.

To install gen-coap-service locate and run setup.py with arguments

  1. tar xvzf gen_coap_service-x.y.z.tar.gz
  2. cd gen_coap_service-x.y.z/
  3. # python3
  4. pip3 install -r requirements.txt
  5. python3 setup.py install_lib
  6. python3 setup.py install_data
  7. python3 setup.py install_egg_info
Install using docker

You can use docker to create image/container.

Dependencies

gen_coap_service requires next modules and libraries:

Tool structure

gen_coap_service is based on OOP.

Generator structure

  1. gen_coap_service/
  2. ├── conf/
  3. ├── gen_coap_service.cfg
  4. ├── gen_coap_service.logo
  5. ├── gen_coap_service_utils.cfg
  6. ├── project.yaml
  7. └── template/
  8. ├── coapthon/
  9. ├── basic/
  10. ├── basic_resources.template
  11. ├── coap_client.template
  12. ├── coap_server.template
  13. └── logging.template
  14. ├── libcoap/
  15. ├── coap_client/
  16. ├── autogen.template
  17. ├── build/
  18. └── editorconfig.template
  19. ├── configure.template
  20. ├── Makefile.template
  21. ├── README.template
  22. └── src/
  23. ├── client_api.template
  24. ├── main.template
  25. ├── Makefile.template
  26. ├── print_error.template
  27. ├── print_success.template
  28. ├── print_usage.template
  29. ├── print_verbose.template
  30. ├── process_options.template
  31. └── time_handler.template
  32. └── coap_server/
  33. ├── autogen.template
  34. ├── build/
  35. └── editorconfig.template
  36. ├── configure.template
  37. ├── Makefile.template
  38. ├── README.template
  39. └── src/
  40. ├── get_date.template
  41. ├── get_full.template
  42. ├── get_time.template
  43. ├── main.template
  44. ├── Makefile.template
  45. ├── server_api.template
  46. └── time_handler.template
  47. ├── node_coap/
  48. ├── client.template
  49. └── server.template
  50. ├── template_coapthon.yaml
  51. ├── template_libcoap.yaml
  52. └── template_node_coap.yaml
  53. ├── __init__.py
  54. ├── log/
  55. └── gen_coap_service.log
  56. ├── pro/
  57. ├── __init__.py
  58. ├── read_template.py
  59. └── write_template.py
  60. ├── py.typed
  61. └── run/
  62. └── gen_coap_service_run.py
  63. 16 directories, 46 files

Code coverage

Name Stmts Miss Cover
gen_coap_service/__init__.py 75 14 81%
gen_coap_service/pro/__init__.py 85 3 96%
gen_coap_service/pro/read_template.py 38 2 95%
gen_coap_service/pro/write_template.py 40 2 95%
Total 238 21 91%

Docs

Documentation Status

More documentation and info at:

License: GPL v3 License

Copyright (C) 2020 - 2024 by vroncevic.github.io/gen_coap_service

gen_coap_service is free software; you can redistribute it and/or modify
it under the same terms as Python itself, either Python version 3.x or,
at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate