semvec/pypi-packages huggingface dataset:
django2-manager-cache 1.0.1
Manager to Cache Django Models
Keywords: django2_manager_cache

django2\_manager\_cache
=======================

-  Simple cache manager for Django 2 models that caches querysets for a model.
-  Cache manager will cache any query that has been seen for a model.
-  Model cache is evicted for any updates/deletes to the model.
-  This manager is useful for models that don't change often.

|Build Status| |Coverage Status| |PyPI version|

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

-  pip install django2-manager-cache

Caching strategy
----------------

-  Cache results for a model on load.
-  Evict cache for model on update.

Usage
-----

Add to installed apps::


    INSTALLED_APPS = (
        ...
        'django2_manager_cache',
        ...
    )


Add the manager to a django model::

    from django2_manager_cache import CacheManager
    class MyModel(models.Model):

       # set cache manager as default
       objects = CacheManager()

       # to use this manager with as related manager
       # https://docs.djangoproject.com/en/2.2/topics/db/managers/#base-managers
       # class Meta:
       #    base_manager_name = 'objects'


Define cache backend for ``django2_manager_cache.cache_backend`` in
``settings.py``. The backend can be any cache backend that implements
django cache API.::


   CACHES = {
       'django2_manager_cache.cache_backend': {
           'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
           'LOCATION': '127.0.0.1:11211',
       }
   }


Django shell
------------

To run django shell with sample models defined in tests.::


    make shell


Sample models::


    from tests.models import Manufacturer
    from tests.models import Car
    from tests.models import Driver
    m = Manufacturer(name='Tesla')
    m.save()
    c = Car(make=m, model='Model S', year=2015)
    c.save()
    d = Driver(first_name ='ABC', last_name='XYZ')
    d.save()
    d.cars.add(c)
    drivers = Driver.objects.select_related('car', 'manufacturer').all()

Testing
-------

To run tests::


    make test


Supported Django versions
-------------------------

Supported - 1.5, 1.6, 1.7, 1.8, 1.9, 1.11, 2.0, 2.1, 2.2



.. |Build Status| image:: https://travis-ci.org/gabomasi/django2_manager_cache.svg?branch=master
   :target: https://travis-ci.org/gabomasi/django2_manager_cache


.. |Coverage Status| image:: https://coveralls.io/repos/github/gabomasi/django2_manager_cache/badge.svg?branch=master
   :target: https://coveralls.io/github/gabomasi/django2_manager_cache?branch=master


.. |PyPI version| image:: https://badge.fury.io/py/django2-manager-cache.svg
   :target: https://pypi.org/project/django2-manager-cache/


History
-------

1.0.1
-----

* Include docs


1.0.0
-----

* First beta release
alsmodule-pkg 0.0.1
A simple module to access ambient light sensors samples on Mac OS X
Requires Python: >=3.7

# Ambient Light Sensor (ALS) Package
# Copyright (C) 2019 Jean-Jacques Puig

This module implements a trivial interface to access ambient light sensors
available on some Apple computers (iMac...).

Usage is very simple; the 'als' module exports only one module method,
getSensorReadings(), which returns raw samples values as a list of two (Long)
integers.

import als
print(als.getSensorReadings())
alacritty-color-switcher 0.1.3
Apply color schemes to your alacritty config.

# Alacritty Color Switcher

## Example
```
> acs --list
one_dark
tomorrow_night
solarized_light
solarized_dark
nord

> acs --apply nord
nord # -> ~/.config/alacritty/alacritty.yml is updated

> acs --switch
one_dark #
```

**Warning**: please make a backup of your `alacritty.yml` since `acs` overwrites
the content with the changed color file! **Also the formatting will be lost
partially!**


## Install
```
pip install alacritty-color-switcher
```

Create a directory with all your color schemes
```
mkdir ~/.config/alacritty-colors
mv your_color_scheme.yaml ~/.config/alacritty-colors/
```

`acs` will find all files with `yaml` or `yml` as suffix.
The color schemes should have the same structure as showed on the [Alacritty
Wiki](https://github.com/jwilm/alacritty/wiki/Color-schemes).
pynq-emulator 2019.9.9
An emulator for TUNI students' PYNQ exercises
Keywords: pynq emulator

# led-matrix-emulator
About the original PYNQ by Xilinx: https://www.pynq.io

Python library made for PYNQ emulations for TUNI Students' PYNQ-exercises
Emulator made by Riku Salminen. I don't own the library I am trying to simulate.
I can't promise full accuracy in the simulations, but I hope this is helpful for
at least testing purposes! Read documentation for more: https://riku-s.github.io/led-matrix/
cm-platform-library 0.0.9
Handles our platform and authentication requests

# cloudmicro platform library

As most services require the requests to them to be authenticated and checked
for permissions - the speed of traversing these requests via HTTPS is 
prohibitive. Therefore, we give each service direct access to the platform
database to query via predefined methods.

This library also includes license, provider and user JSON serialisation. 

Our mission is to have all single resource requests to return in under
100ms, and this will never happen if we have to authenticate between
microservices.
gurux-common 1.0.13
Gurux common helpers for device commmunication.

See An [Gurux](http://www.gurux.org/ "Gurux") for an overview.

Join the Gurux Community or follow [@Gurux](https://twitter.com/guruxorg "@Gurux") for project updates.

gurux.common.python package implements interfaces that are needed for Gurux Media components and Gurux Device Framework. 
Purpose of Gurux Device Framework is help you to read your devices, meters and sensors easier.

For more info check out [Gurux](http://www.gurux.org/ "Gurux").

We are updating documentation on Gurux web page. 

If you have problems you can ask your questions in Gurux [Forum](http://www.gurux.org/forum).

You can get source codes from http://www.github.com/gurux or intall package: 

```python
pip install gurux-common
```