Skip to main content

OpenNetwork Dev Suite: JSON->Keras model builder + Playground webview

Project description

OpenNetwork (opennetwork)

Visit https://opennetwork.dezors.com

A tiny developer suite for MLOps-oriented model authoring and loading. It lets you:

  • opennetwork.setmodel() — open the Playground (web view) to design your model.
  • opennetwork.getmodel("model.json") — load a JSON graph into a Keras Functional model.
  • opennetwork.init() — quickstart banner.

Default Playground: https://opennetwork.dezors.com/playground

Install

pip install opennetwork
# or, to enable building Keras models:
pip install "opennetwork[keras]"
# optional native window instead of browser:
pip install "opennetwork[webview]"

Python API

import opennetwork as onn

onn.init()
onn.setmodel()  # opens the Playground in a window/browser

# Build from JSON (returns tf.keras.Model if TensorFlow is installed)
model = onn.getmodel("model.json")

# If TensorFlow is not installed, you can still validate the graph:
model, extras = onn.getmodel("model.json", return_extras=True)
print(extras["inserted"])  # e.g., auto-added Flatten when Dense follows Conv2D

CLI

opennetwork init
opennetwork setmodel
opennetwork getmodel path/to/model.json

JSON schema (minimal)

{
  "id": "string",
  "name": "string",
  "layers": [
    {
      "id": "unique-id",
      "type": "input|conv2d|dense|flatten|dropout|maxpool2d|batchnorm|activation|softmax_output",
      "name": "optional",
      "params": { "..." : "layer-params" },
      "connections": ["next-layer-id", "..."],
      "weights": [...],  // optional
      "biases":  [...]   // optional
    }
  ]
}
  • The graph is built topologically.
  • If a Dense follows a convolutional/tensor output, a Flatten is auto-inserted (configurable).
  • softmax_output is interpreted as a final Activation("softmax").
  • Unknown or missing shapes will be handled best-effort; for guaranteed results, include an explicit Input layer with params.input_shape.

License

Apache 2.0

Under OpenNetwork @ Dezors 2025.

https://dezors.com - for more

Social Link

https://x.com/DezorsTweets https://www.linkedin.com/company/dezors https://github.com/Dezors-Service-And-Consultancy/

Project details


Download files

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

Source Distribution

opennetwork-0.3.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opennetwork-0.3.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file opennetwork-0.3.0.tar.gz.

File metadata

  • Download URL: opennetwork-0.3.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for opennetwork-0.3.0.tar.gz
Algorithm Hash digest
SHA256 70fc755ef3263c73e682836b75108b528eb59a9c2cfa76f1c16c88adddf06617
MD5 a193c0d70612cd58849a110577051c36
BLAKE2b-256 8ff57c97b5ac0c882b74918a31dde2f9bbe690db7f3e5476ddaa44309431d6f4

See more details on using hashes here.

File details

Details for the file opennetwork-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: opennetwork-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for opennetwork-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f983c876516001095d7536084c2302401ac31583da7b66f1082b643cbb5e0e22
MD5 1532aa1ec7f4ceb65382d6e27e704cd8
BLAKE2b-256 5124a10b0cdb39e6670d0b8da1838a83b0b9194ed788e6181c77201305900d3c

See more details on using hashes here.

Supported by

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