semvec/pypi-packages huggingface dataset:
snakemakeutils 0.1.2
Snakemake utils
License: MIT
Keywords: make utils helper

Snakemake utils
===============

A set of utility function for use in snakemake.
Currently, for line-based transformations.

Functions:

* map_chars(cmap) - will translate characters using the given dictionary
  :code:`cmap`.
* del_char_idx(idx) - will delete the char at the given index.
* del_char(char) - will delete all characters matching :code:`char` param.
* del_line(regex) - will delete line if it matches the given regex.
* apply(trans, encoding, in_files, out_files) - will apply all transformations given in :code:`trans` list to all lines in the :code:`in_files` list producing output files from the :code:`out_files` list.

Example
-------

.. code:: python

  rule fixchars:
      input:
          "{natfile}.nat"
      output:
          "{natfile}-ch.nat"
      message:
          "Fixing/deleting chars/lines..."

      run:
          from snakemakeutils import del_char_val, del_char_idx, apply
          trans = [del_char_val('\x00'), del_char_idx(0)]
          apply(trans, "latin1", input, output)
sabertooth 0.3.2
An OpenSubtitles Client
License: MIT
Keywords: cli subtitles opensuhbtitles

Sabertooth
==========

An OpenSubtitles Client

Install (automatic)
===================

::

    $ pip install sabertooth

Install (manual)
================

::

    $ git clone git@github.com:walidsa3d/sabertooth.git
    $ cd sabertooth
    $ python setup.py install

Usage
=====

::

    $ sabertooth <query> -n <number_of_results> -l <language>

License
=======

::

    The MIT License (MIT)

    Copyright (c) 2015 Walid Saad

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
finsky 0.3.3
Google Play API
License: MIT

finsky
======

|pypi|

Google Play API

    Still in development. Downloading may not always work.

Install
-------

::

  pip install finsky

Usage
-----

finsky requires authentication parameters, specified in a YAML configuration
file. Your ``profile.yaml`` file might look like

.. code:: yaml

  android_id: 4c2d771066bd23bc
  auth_token: AUGBQrE3ETKnpMtiX6F3Fss-clxmlVJAww9j0L0F2G0bOXLIZN7o2MMNkce15x6g4w8Ca3q2ojRb0ImZardJOUNnJbP_0LKeT1G9ydg41c_pdKb4CkdBsoUd-svTckM-4Rs95HLr-zd7r0sGpa9VFjtavGSihEvUPwIBC5qiiObIsjlCoGgP8j0DOYimRoVUaJvzKFT4aHpxm2GmaNuMZwnUL7DMTPxiPEkCa5qIExZIQQA6--J2s8OzuIrW87goRhBkZ690rs9gMxmjZNjEBVg4Q6SQnMM6XNo5R_ipV1ciYJrMrnX18eETuUHH9vdo-cFRN2ZEJGcOfrFLqB3S6WL8btI0O_byXJXcI_RHyYADnI1_sQBUjV

Then for example, you can download snapchat with

::

  finsky download profile.yaml com.snapchat.android

Note ``com.snapchat.android`` is the app ID you'll see when you `browse to
snapchat on the play store
<https://play.google.com/store/apps/details?id=com.snapchat.android&hl=en>`__.

By default this will download the app to ``com.snapchat.android.apk``. This
can be changed with the ``--out`` option.

Why the name?
-------------

The word ``finsky`` appears a lot in the Google Play APK source code, so I
guessed it has some internal significance.

Acknowledgments
---------------

-  `googleplay-api <https://github.com/egirault/googleplay-api>`__
-  `django-googleplay-api <https://github.com/gotlium/django-googleplay-api>`__
-  `gpsoauth <https://github.com/simon-weber/gpsoauth>`__
-  Dima Kovalenko's `reverse engineering of
   EncryptedPasswd <http://codedigging.com/blog/2014-06-09-about-encryptedpasswd/>`__


.. |pypi| image:: https://img.shields.io/pypi/v/finsky.svg?style=flat-square
   :target: https://pypi.python.org/pypi/finsky
formatist 0.0.2
Converts %-style format strings to newer {}-style
License: MIT
Keywords: string format pep3101 percent braces

formatist
=========

.. image:: https://travis-ci.org/moreati/formatist.svg?branch=master
   :target: https://travis-ci.org/moreati/formatist

A Python library to convert from older `%` style format strings, to newer
`{}` style.

.. code:: python

    >>> import formatist
    >>> greeting = "Hello %(name)s. It's %(temp).1f C"
    >>> print(greeting % {'name': 'Alice', 'temp': 23.45678})
    Hello Alice. It's 23.5 C
    >>> greeting2 = formatist.convert(greeting)
    >>> print(greeting2)
    Hello {name!s:}. It's {temp:>.1f} C
    >>> print(greeting2.format(name='Alice', temp=23.45678))
    Hello Alice. It's 23.5 C
pyf.splitter 3.1
Dataflow splitting system for PyF framework
License: MIT

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

pyf.splitter is a fully independent module that can be used with pyf or in
any other projet. It does not have dependencies on pyf.

Purpose
=======

The splitter purpose is simple and will stay so. It gives you an abstraction
above a data flow (or any python iterable) and gives the illusion of
manipulating in memory iterables when in fact everything is serialized on disk
to avoid memory consumption.

The second and last purpose is to split (hence the name) your data flow
according to some simple rules. Splitting is at the very least important
to be able to store huge data chunks on disk without hitting file systems
limitations (ever tried to store 600Gb files on a fat file system?)

It is important to note that we do not encapsulate (ie: hide) the bucket
files. The splitter gives you the bucket file names it produced, you then
use another function to read the files into another stream.


Running tests
=============

To run tests you need to install tox::

  pip install tox

and then just launch tox if you want the whole test suite, ie python2.7,
python3.4 and pep8.

If you want to only run only kind of test (ie: python2.7 only) you can specify
it like so::

  tox -e py27

all defined test envs are defined in the tox.ini file

Changes
=======

Oct 9 2015, version 3.1
-----------------------

  - Version 3.0 introduced python3 support and version 3.1 is a bugfix release
    to add more sane defaults in the separator. (The datetime objects were not
    serializable using the python3 version with the default separator)