semvec/pypi-packages huggingface dataset:
wotwrapper 0.0.7
A library to wrap a python object onto the Wotio Operating Enviroment
License: MIT

wotwrapper
========

A python library to wrap python objects onto Wotio

About
-----

Most APIs are wrapped in python as classes, of which you'd instantiate an object and call it's methods. This library wraps those functions onto the Wotio environment, allowing you to publish data to it, and access the API via s-expressions in JSON.

Example:

```python
class MyClass(object):
	def getdata(self):
		return "Some Data"
	def somefunc(self, param):
		return "Function called with parameter: {0}".format(param)
```

Those functions then become available on the bus using the JSON arrays:

```javascript
["getdata"]
["somefunc","param"]
```

In addition, a function can be used to publish data onto the bus consistently. The wrapper contains a loop that will call a specific function and publish its data periodically. More info below.

Getting Started
---------------

To install, run:

```shell
pip install wotwrapper
```

To use it, include it in your project and wrap an object:

```python
import wotwrapper
from phue import Bridge

b = Bridge('192.168.24.10')
wotwrapper.connect('http://wot.io/account/path', b, b.get_api, 10)

```

Parameters
----------

```python
wotwrapper.connect(path, objectToWrap, sendDataFunction, delay)
```

- **path:** This is the path for either the HTTP or Websocket endpoint that will be connected to. The path is in the format: `(http|ws)://host/account/in_exchange/in_key/in_queue/out_exchange/out_key/token`

- **objectToWrap:** This is the obejct to be wrapped.

- **sendDataFunction:** This is the function that provides the data to be published. Note that it does not have to be part of the same object.

- **delay:** This specifies the delay, in seconds, between each iteration of the data publishing loop.
modoboa-admin-limits 1.0.2
Per administrator limits for Modoboa
License: MIT

modoboa-admin-limits
====================

|travis| |landscape|

Per administrator limits for Modoboa.

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

Install this extension system-wide or inside a virtual environment by
running the following command::

  $ pip install modoboa-admin-limits

Edit the settings.py file of your modoboa instance and add
``modoboa_admin_limits`` inside the ``MODOBOA_APPS`` variable like this::

    MODOBOA_APPS = (
      'modoboa',
      'modoboa.core',
      'modoboa.lib',
    
      # Extensions here
      'modoboa_admin',
      'modoboa_admin_limits',
    )

Run the following commands to setup the database tables::

  $ cd <modoboa_instance_dir>
  $ python manage.py migrate modoboa_admin_limits
  $ python manage.py load_initial_data
    
Finally, restart the python process running modoboa (uwsgi, gunicorn,
apache, whatever).

.. |landscape| image:: https://landscape.io/github/modoboa/modoboa-admin-limits/master/landscape.svg?style=flat
   :target: https://landscape.io/github/modoboa/modoboa-admin-limits/master
   :alt: Code Health
.. |travis| image:: https://travis-ci.org/modoboa/modoboa-admin-limits.png?branch=master
   :target: https://travis-ci.org/modoboa/modoboa-admin-limits
modoboa-admin-relaydomains 1.1.0
Relay domains support for Modoboa
License: MIT

modoboa-admin-relaydomains
==========================

|travis| |landscape|

Relay domains support for Modoboa.

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

Install this extension system-wide or inside a virtual environment by
running the following command::

  $ pip install modoboa-admin-relaydomains

Edit the settings.py file of your modoboa instance and add
``modoboa_admin_relaydomains`` inside the ``MODOBOA_APPS`` variable like this::

    MODOBOA_APPS = (
      'modoboa',
      'modoboa.core',
      'modoboa.lib',
    
      # Extensions here
      'modoboa_admin',
      'modoboa_admin_relaydomains',
    )

Run the following commands to setup the database tables::

  $ cd <modoboa_instance_dir>
  $ python manage.py migrate modoboa_admin_relaydomains
  $ python manage.py load_initial_data
    
Finally, restart the python process running modoboa (uwsgi, gunicorn,
apache, whatever).

.. |landscape| image:: https://landscape.io/github/modoboa/modoboa-admin-relaydomains/master/landscape.svg?style=flat
   :target: https://landscape.io/github/modoboa/modoboa-admin-relaydomains/master
   :alt: Code Health
.. |travis| image:: https://travis-ci.org/modoboa/modoboa-admin-relaydomains.png?branch=master
   :target: https://travis-ci.org/modoboa/modoboa-admin-relaydomains