semvec/pypi-packages huggingface dataset:
std-encode 0.2.3
Encode and decode files through the standard input/output
License: MIT
Requires Python: >=3.5,<4

# std_encode

[![Build Status](https://travis-ci.org/jaimebuelta/std_encode.svg?branch=master)](https://travis-ci.org/jaimebuelta/std_encode)

Encode and decode files through standard input/output.

## Usage

Encode files piping them into `std_encode`

```
$ std_encode -t input_test.txt
>>>>>>>>>> START t input_test.txt
Some test
text file
<<<<<<<<<< END
```

The encoded text can be then decoded and saved with `std_decode`

```
$ std_encode -t input_test.txt | std_decode
######### DECODED FILE input_test.txt
$ cat input_test.txt
Some test
text file
```

## Install

The package is available in [PyPI](https://pypi.org/project/std-encode/)

    pip install std-encode


## Features

- A log shows that a file has been decoded
- Text and binary files are supported (binary are default).
- `std_decode` is capable of decoding more than one file in the same stream
- Any line in the stream that's not part of a file will be replicated in the standard output.

## Why is this useful for?

In some cases, standard input/output is a convenient and easy way of communication. Transfering a file is not as simple.

For example, the problem that originated it was to retrieve files from a docker container running in Kubernetes. Obtaining the text log is easy calling `docker logs` or `kubectl logs`, but retrieving files requires more plumbing.

In the operation, while creating logs, multiple files can be encoded, and then all will be retrieved piping the logs through `std_decode`, generating a resulting log like this one:

```
========================= test session starts ==========================
platform darwin -- Python 3.7.0, pytest-3.9.2, py-1.7.0, pluggy-0.8.0
rootdir: /Users/jaimebuelta/Dropbox/code/std_encode, inifile:
plugins: cram-0.2.0
collected 8 items

tests/base.t .                                                   [ 12%]
tests/double_file.t .                                            [ 25%]
tests/encode_decode_image.t .                                    [ 37%]
tests/encode_decode_text.t .                                     [ 50%]
tests/encode_image.t .                                           [ 62%]
tests/encode_text.t .                                            [ 75%]
tests/single_file.t .                                            [ 87%]
tests/test_se.py .                                               [100%]

======================= 8 passed in 2.22 seconds =======================

######### DECODED FILE junit_test.xml
######### DECODED FILE html_report.html
```
pip-install-test 0.5
A minimal stub package to test success of pip install
License: MIT

****************
pip-install-test
****************
A stub package for testing if pip install is working.

Introduction
============

The intent of this package is to provide a simple module that can be easily installed and uninstalled.
This provides a straightforward mechanism for showing that an arbitrary environment is capable of installing third party modules via ``pip``.
It is not intended to exercise the full feature set of ``pip`` or ``setuptools``, but to provide a minimal existence proof of viability.

Usage
=====

Install::

  pip install pip-install-test

or::

  pip install --user pip-install-test

Import:: 

  >>> import pip_install_test

or::

  python -c 'import pip_install_test'

Uninstall::

  pip uninstall pip-install-test
django-session-header 1.0
Identify the Django Session by a Header
License: MIT
Requires Python: >=3.6,<4.0

Django Session Header: Identify the session through a header
============================================================

There are some situations where the browser
may not allow any cookies at all to be used.
In those cases, we would like to be able to fall back
to something that is both secure, and capable.
This package allows you to manually pass the
sessionid using a header, so that you can continue
to use Django's excellent session management.

It extends Django's built-in sessions to support
sessions in places where cookies are not allowed.
For most views, the handling will be seamless.
Those that need to have sessions that persist despite the
absence of cookies, there are a few extra features.


Usage
=====

First, install the package.

.. code-block:: sh

    pip install django-session-header

Replace ``django.contrib.sessions.middleware.SessionMiddleware``
in your ``settings.py`` with the following:

.. code-block:: python

    MIDDLEWARE_CLASSES = [
       # ...
       # 'django.contrib.session.middleware.SessionMiddleware',
       'django_session_header.middleware.SessionMiddleware',
    ]

And replace the Django Rest Framework ``SessionAuthentication``
class with ``django_session_header.authentication.SessionAuthentication``:

.. code-block:: python

    REST_FRAMEWORK = {
        'DEFAUlT_AUTHENTICATION_CLASSES': [
            # ...
            # 'rest_framework.authentication.SessionAuthentication',
            'django_session_header.authentication.SessionAuthentication',
        ]
    }

If a session was obtained via a session header,
then ``request.session.csrf_exempt`` will be ``True``.
You can use this to conditionally apply CSRF protection.
Or, if you prefer, you can replace Django's normal CSRF middleware
with ``django_session_header.middleware.CsrfViewMiddleware``:

.. code-block:: python

    MIDDLEWARE_CLASSES = [
        # ...
        # 'django.middleware.csrf.CsrfViewMiddleware',
        'django_session_header.middleware.CsrfViewMiddleware',
    ]

The ``sessionid`` will be available in the ``X-SessionID`` response header,
and you can now set the ``X-SessionID`` header on the request manually
to avoid needing cookies to power your sessions.
siftapi 1.1.0
A Python wrapper for Edison Sift API
License: MIT
Keywords: email easilydo sift

===============
Sift Python SDK
===============

A Python wrapper around `Sift API <http://sift.easilydo.com>`_. Currently
supports Python 2.7.11 and Python 3.5.1.

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

**From the repository**

``python setup.py install``

**From pip**

``pip install siftapi``

Usage
-----
.. code-block:: python

  import siftapi

  sift = siftapi.Sift(API_KEY, API_SECRET)

Testing
-------

``python setup.py test``

Test cases are written in ``tests`` folder.

**Files required for test cases:**

1. ``sensitive.py`` - File containing your API_SECRET and API_KEY. An example
   file, ``sensitive.py.example`` can be found in the directory
2. ``test.eml`` - A test ``.eml`` file to be sent for parsing

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

Documentation for the SDK can be found `here <https://github.com/agent8/sift-python-sdk/blob/master/docs/API.rst>`__.

Changelog
---------

Changelog can be found `here <https://github.com/agent8/sift-python-sdk/blob/master/docs/CHANGELOG.rst>`__.