semvec/pypi-packages huggingface dataset:
dj-termsearch 0.2.0
Simple term searches for Django CBV's.
License: BSD
Keywords: django,terms,search

=============================
dj-termsearch
=============================

Simple GET-based term searches for Django CBV's.

Documentation
-------------

The full documentation is at https://dj-termsearch.readthedocs.org.

Quickstart
----------

Install dj-termsearch::

    pip install dj-termsearch

Add ``"termsearch"`` to your ``INSTALLED_APPS`` then just add ``TermSearchMixin`` to a view and go::

    from django.db import models
    from termsearch.views import TermSearchMixin

    class MyModelListView(TermSearchMixin, ListView):
        
        model = MyModel
        term = "title"
        lookup = "iexact"
    
Check the results at::
    
    https://example.com/list?q=barry
    
    
Advanced
--------

Use a ``list`` of model fields to use in the search::

    class AnotherListView(TermSearchMixin, ListView):
        
        model = MyModel
        terms = ["title", "content", "author__name"]
        lookup = "iexact"

Map each field to a lookup type::

    class YetAnotherListView(TermSearchMixin, ListView):
        
        model = MyModel
        term_mapping = {
            "title": "icontains",
            "tags__name": "iexact",
            "author__surname": "exact",
        }
        




History
-------

0.2.0 (2014-06-23)
++++++++++++++++++

* Added separate search mixins (SingleTermSearchMixin, MultiTermSearchMixin, MapTermSearchMixin).
* Cleanup of docs.


0.1.0 (2014-06-20)
++++++++++++++++++

* First release on PyPI.
NewsChimp 0.1.4
Newsletter generator for MailChimp
License: BSD
Keywords: newsletter,mail,mailchimp

NewsChimp
=========

Generator of monthly newsletter campaigns on MailChimp. Based od laziness and boredom.


Status
------

In heavy development. Please touch anything important for fun.


Usage
-----

.. code-block:: bash

    $ chimpgen --help
    Usage: chimpgen [OPTIONS] COMMAND [ARGS]...

    Options:
    --config PATH  Custom config file
    --help         Show this message and exit.

    Commands:
    fb        Facebook curator
    gg        Google Groups curator
    lanyrd    Meetup listing
    renderer  HTML and text email rendering
    sender    Campaign creation

If you want to use subcommand with config, do it in format

.. code-block:: bash

    $ chimpgen --config PATH command


Config
------

Default config file is ``./config.yaml``. Here's minimalistic setting:

.. code-block:: yaml
    month:
    facebook:
        group_id:
    google:
        group_name:
    # Events for lanyrd to search
    events:
        -
    # Input template
    template:
    context:
        # Additional template context
        header:
    # Template outputs
    output:
        text:
        html:
    # MailChimp settings
    mailchimp:
        list:
        subject:
        reciever:
        sender:
            email:
            name:

You also need to setup environment variables (for automatic campaign creation):

- ``FACEBOOK_TOKEN``
- ``MAILCHIMP_KEY``


Requirements
------------

Python 3 and stuff in ``requirements.txt``


License
-------

See LICENSE file


TODO
----

- Newsletter creation wizard
- Support of more social sources
- Better config structure