semvec/pypi-packages huggingface dataset:
dojot-flow-node 0.0.10
Dojot flow node.

# dojot-flow-node-python

A Python library that allows you to integrate your own node on Dojot's [FlowBroker](https://github.com/dojot/flowbroker).

## How to build your own node

1) You need to create a class that extends the `DataHandlerBase` class, this
class is the responsable by implements your node behavior. The following methods
__must be__ implemented:
  - get_node_representation_path
  - get_metadata
  - get_locale_data
  - handle_message

2) Is necessary to create a `.html` file that describes your node. You can find how to create it using the [NodeRed documentation](https://nodered.org/docs/creating-nodes/). Dojot's FlowBroker uses the [NodeRed](https://nodered.org/) frontend.


3) You need to encapsulate your code into a docker container.

4) Publish your container in some public repository like [DockerHub](https://hub.docker.com/) or some private based on [DockerRegistry](https://docs.docker.com/registry).

5) Call the FlowBroker endpoint to add a new node. Please check the [FlowBroker documentation](https://dojot.github.io/flowbroker/apiary_latest.html) to check
how this endpoint works.

## Sample
A sample node is attached to this package to illustrate the steps described in
the previous section. It's a simple node that converts a Celcius temperature
measure into Kelvin.

### How to build

Build the docker image:
```sh
cd sample_node
docker build -t <your dockerHub username>/kelvin .
```

Publish it on your DockerHub:
```sh
docker push <your dockerHub username>/kelvin
```

Acquire a Dojot's token:
```sh
curl -X POST http://127.0.0.1:8000/auth \
-H 'Content-Type:application/json' \
-d '{"username": "admin", "passwd" : "admin"}'
```

This command will return a JWT token, you need to store it on an environment
variable:
```sh
export JWT=<the value returned>
```

Add the Kelvin node to Dojot.
```sh
curl -H "Authorization: Bearer ${JWT}" http://localhost:8000/flows/v1/node -H 'content-type: application/json' -d '{"image": "<your dockerHub username>/kelvin:latest", "id":"kelvin"}'
```

Now the Kelvin node will be available on `converters` category into the FlowBroker Dojot's interface.
django-editorjs-field 0.0.3
editorjs.io integration as django model/form field

django-editorjs-field
===============

This module integrates the [Editor.js](https://github.com/codex-team/editor.js) widget into model/form fields for [Django](https://www.djangoproject.com).
-------------------------------------

## Warning

This is an early prototyp and work in progress

## Installation

Install with Pip:  
```pip install django-editorjs-field```

## Django Setup

### settings.py

```python
INSTALLED_APPS = [
    ...
    'editorjs_field',
    ...
]
```

## Use in Django admin

### models.py

```python
from django.db import models
from editorjs_field.fields import EditorJSField


class Article(models.Model):
    title = models.CharField(max_length=100)
    content = EditorJSField()
```

### admin.py

```python
from django.contrib import admin
from .models import Article


class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title',)


admin.site.register(Article, ArticleAdmin)
```

## Use the widget in a custom form

### forms.py

```python
from django import forms
from editorjs_field.widgets import EditorJsWidget

class ArticleEditorForm(forms.Form):
    title = forms.CharField(label='Title')
    document = forms.CharField(label='Document', widget=EditorJsWidget)
````

## Examples & Development

An example can be found in the example folder. To run them clone the repository and run:

```shell
$ cd django-editorjs-field
$ pipenv install
$ pipenv shell
$ cd example
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver
```

Visit ```http://localhost:8000/admin``` to view the admin widget and 
```http://localhost:8000/``` to view the custom form widget.
jupyter-sigplot 0.2.0
Jupyter Notebook Widget for the SigPlot plotting library
Keywords: ipython,jupyter,widgets,sigplot,plot,plotting,dsp,sdr,software defined radio

jupyter-sigplot
===============================
|Pip|_ |Prs|_ |Apache2|_ |Travis|_ |Binder|_

.. |Pip| image:: https://badge.fury.io/py/jupyter-sigplot.svg
.. _Pip: https://badge.fury.io/py/jupyter-sigplot

.. |Prs| image:: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
.. _Prs: .github/CONTRIBUTING.md#pull-requests

.. |Apache2| image:: https://img.shields.io/badge/license-Apache%202.0-orange.svg
.. _Apache2: https://opensource.org/licenses/Apache-2.0

.. |Travis| image:: https://travis-ci.org/LGSInnovations/jupyter-sigplot.svg?branch=master
.. _Travis: https://travis-ci.org/LGSInnovations/jupyter-sigplot

.. |Binder| image:: https://mybinder.org/badge.svg
.. _Binder: https://mybinder.org/v2/gh/LGSInnovations/jupyter-sigplot/master?filepath=example%2FJupyterSigplot.ipynb

A Custom Jupyter Widget Library for the SigPlot plotting library

.. image:: https://github.com/LGSInnovations/jupyter-sigplot/blob/master/docs/jupyter_sigplot_example.gif?raw=true

Installation
------------

To install use ``pip``::

    $ pip install jupyter-sigplot
    $ jupyter nbextension enable --py --sys-prefix jupyter_sigplot


For a development installation (requires ``npm``)::

    $ git clone https://github.com/LGSInnovations/jupyter-sigplot.git
    $ cd jupyter-sigplot
    $ python setup.py install
    $ jupyter nbextension install --py --symlink --sys-prefix jupyter_sigplot
    $ jupyter nbextension enable --py --sys-prefix jupyter_sigplot