semvec/pypi-packages huggingface dataset:
django-microframework 0.1.0
Django microframework allows you for easy synchronization of database entities between multiple django instances.
License: BSD
Requires Python: >=3.6

# django-microframework

Django microframework allows you for easy synchronization of database entities between multiple django instances.

# Requirements

* Python (3.6, 3.7, 3.8)
* Django (1.11, 2.0, 2.1, 2.2)

# Installation
    pip install django-microframework
    python manage.py migrate

# Usage
### Sender
In your models.py file:
```python
from microframework.sender import connect_signals
connect_signals([RegularModel, JSONModel, TreeModel, ForeignKeyModel], 'example_sender')
```
In your settings.py:
```python
MICROFRAMEWORK_AMQP_URI = 'pyamqp://guest:guest@172.17.0.5'
```

### Listener
Create service.py file:
```python
from microframework.handler import DjangoObjectHandler, NamekoHandlerMeta
from example.models import RegularModel, JSONModel, TreeModel, ForeignKeyModel


class ListenerService(DjangoObjectHandler, metaclass=NamekoHandlerMeta):
    name = "listener_service"
    sender_name = "example_sender"
    synced_save_models = [RegularModel, JSONModel, TreeModel, ForeignKeyModel]
```
In your settings.py:
```python
MICROFRAMEWORK_SERVICE_CLASS = "example.service:ListenerService"
MICROFRAMEWORK_AMQP_URI = 'pyamqp://guest:guest@172.17.0.5'
```

And add `'microframework'` to your `INSTALLED_APPS` setting.

    INSTALLED_APPS = [
        ...
        'microframework',
    ]
In your manage.py - this needs to be put before anything else in your code:
```python
import eventlet
eventlet.monkey_patch()
```
closure 20191111
Closure compiler packaged for Python
License: BSD

The `Closure Compiler <http://code.google.com/closure/compiler/>`_ is
a tool for reducing the size of Javascript files to make them download
and run faster.

It's a Java-based tool. This package, in the spirit of the 
`yuicompressor <http://pypi.python.org/pypi/yuicompressor/>` package,
provides a simple way to install and use the the Closure compiler from 
Python, bundling the ``closure.jar`` with the Python package.

I recommend looking at `webassets`_ for your CSS/JS compression needs.

.. _webassets: https://github.com/miracle2k/webassets


--------
Versions
--------

Version ``YYYYMMDD`` of this package will bundle the corresponding 
version of the compiler (Closure uses the build date as the version).


If you want a new version to be uploaded, open a ticket at the
`Github page <https://github.com/miracle2k/python-closure>`_.