Skip to main content

An application framework with built-in drivers (Controllers), data holders (Sources) and config parsers (Rules). Also includes a web interface for configuration and troubleshooting.

Project description

Summary

An application framework with built-in drivers (Controllers), data holders (Sources) and config parsers (Rules). Also includes a web interface for configuration and troubleshooting.

Features

  • Abstract base classes for creating custom controllers, sources and rules

  • The configuration is done using configparser with extended interpolation

  • Start a new netdef project with cookiecutter or make-project. Templates available at https://bitbucket.org/fholmer/cookiecutter-netdef.

  • Built-in Controllers:

    • OpcUa server / client (freeopcua)

    • TcpModbus server / client (pymodbus)

    • icmp ping / url ping

    • XmlRpc client

    • trigger events by using crontab format (crontab)

    • disk, memory and CPU monitoring (psutil)

    • MQTT client (using a simple messaging format called DataAccess) (paho-mqtt)

    • Simple RESTJson client

  • Built-in Rules:

    • Generic CSV config parser

    • Generic INI config parser

    • Generic Yaml config parser

  • Built-in application engines:

    • threaded engine with stdout/stderr only

    • threaded engine with web-interface (webadmin)

    • serve webadmin behind nginx reverse proxy

Use Cases

Netdef is useful if you want to create a middleware that can translate a protocol into a completely different protocol or data format into a completely different data format.

Getting started

First install make-project:

$ python3 -m pip --user install make

Create your first application:

$ python3 -m make project gl:fholmer/cookiecutter-netdef/cookiecutter-minimal-app First-App

Setup your application:

$ cd your-application
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements-dev.txt
$ pip install -r requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

netdef-1.0.5-py3-none-any.whl (116.3 kB view details)

Uploaded Python 3

File details

Details for the file netdef-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: netdef-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 116.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.3

File hashes

Hashes for netdef-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 19efdd475ff3171556f13ab71b7350bfa2622ca8cc2de412b340ebb8a718762b
MD5 080e0bf44f73d63e22bc96e3d0c0f792
BLAKE2b-256 f2ca7ca04b81ecd5b5dc960c31099cf02ea5b5c99f613e0a90850397551c3768

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page