semvec/pypi-packages huggingface dataset:
arte_plus7 2.2.4
CLI script to get videos from Arte plus 7 using their URL
License: MIT

=========
ArtePlus7
=========

ArtePlus7 is a python script aimed at downloading the mp4 videos from
ArtePlus7 using their url.

It's based on BeautifulSoup4.

Usage
-----

The following commands will return the videos urls found

::

    # The page dedicated to the video

    ./arte_plus_7.py -u http://www.arte.tv/guide/fr/034049-007/karambolage

    # Direct access to some pre-stored programs

    ./arte_plus_7.py -p tracks

To actually download the video, add a ``--qualiy <QUAL>`` for the one
you want from the list

::

    # Download 'tracks' with selected quality

    ./arte_plus_7.py -p tracks --quality <MQ|HQ|EQ|SQ>


=========
Changelog
=========

2.2.1 - 2.2.2 - 2.2.3: Updates for Pypi
---------------------------------------

* 2.2.3: convert ``README`` to reStructuredText
* 2.2.3: add a changelog in ``CHANGELOG.rst``
* 2.2.3: add ``CHANGELOG.rst`` to ``long_description``

* 2.2.2: fixes issues while releasing previous version on pypi
* 2.2.1: changes for pypi


2.2.0: Update to the new search results
-----------------------------------------

* Fix search handling
* Improve 'program' to exclude not matching included search results
* Add a '--version' option
* Remove unused '--keep-artifacts' option
* Pylint/pep8 cleanup
* tox.ini: update to fail on pylint/pep8 errors.


2.1.0: New ArtePlus7 search handling
------------------------------------

* Handle new way of presenting search results
* Fix num-progs for ``-1`` to use all entries
* Nicely handle some errors and add debug logging


2.0.0: New ArtePlus7 site and new options
-----------------------------------------

* Adapt to new ArtePlus7 interface, main JSON has been removed and now a
  search page should be parsed to get search results
* Allow downloading multiple videos
* Add a ``--search`` option to search using arte search engine
* Add also a ``--verbose`` option
mime-streamer 0.1.0
Stream IO for multipart MIME content
License: MIT

MIME Streamer
=============

MIME content stream reader for Python.

`mime-streamer` is licensed under the `MIT License (MIT)`_.

.. _MIT License (MIT): https://raw.githubusercontent.com/okomestudio/mime-streamer/master/LICENSE


Basic Usage
-----------

.. code-block:: python

    from StringIO import StringIO
    from pkg_resources import resource_string            
    from mime_streamer import MIMEStreamer

    raw = resource_string('tests', 'data/multipart_related_basic')

    streamer = MIMEStreamer(StringIO(raw))

    with streamer.get_next_part() as part:
        headers = part.headers
        assert 'Multipart/Related' in headers['content-type']
        assert 'start="<950120.aaCC@XIson.com>"' in headers['content-type']
        assert part.content.read() == ''

    with streamer.get_next_part() as part:
        assert part.headers['content-id'] == '<950120.aaCC@XIson.com>'
        assert '10\r\n34\r\n10' in part.content.read()

    with streamer.get_next_part() as part:
        assert part.headers['content-id'] == '<950120.aaCB@XIson.com>'
        assert 'gZHVja3MKRSBJIEUgSSB' in part.content.read()

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

.. code-block::

   pip install mime-streamer


Note
----

The library currently is missing the following features:

- Nested multipart messages
- Python 3.x
django-csv-exporter 1.2
A django package to export data in a csv with File export.
License: MIT
Keywords: django csv file image zip

# CSV Exporter

This Django package is a model exporter that can be run in a delayed task and emails a link to the resulting zip file containing a csv and all files.

## How to use

### To install the package

```
pip install django-csv-exporter
```

### To use the package

```
def export(query_or_queryset, attributes, callback=None, timedelta=datetime.timedelta(days=2)):
```

```
from datetime import timedelta
from functools import partial
from csv_exporter import export, send_email_to_user

users = UserProfile.objects.filter(team='myteam', active=True)
callback = partial(send_email_to_user, ['email1@gmail.com', 'email2@gmail.com'])
zip_url = export(users, ('full_name', 'profile_picture', 'team.name', 'date_joined.isoformat'), callback, timedelta(days=2))
```

The function `send_email_to_user` is a helper function to send the zip_url to the users. The callback to export needs to accept the parameters (zip_url, timedelta). Timedelta is a length of time the url is valid for. Expiration works only for django-storages using s3-boto, otherwise the regular url is returned.

### With Django RQ

```
import django_rq
django_rq.enqueue(export, users, ('full_name', 'profile_picture', 'team.name', 'date_joined.isoformat'), callback, timedelta(days=2))
# To save memory in redis you can also pass just the query instead of the QuerySet/list
django_rq.enqueue(export, users.query, ('full_name', 'profile_picture', 'team.name', 'date_joined.isoformat'), callback, timedelta(days=2))
```