semvec/pypi-packages huggingface dataset:
Flask-Store 0.0.4.4
Provides Django-Storages like file storage backends for Flask Applications.
License: MIT
Keywords: Flask,Files,Storage

``Flask-Store``
===============

``Flask-Store`` is a Flask Extension designed to provide easy file upload handling
in the same vien as Django-Storages, allowing developers to user custom storage
backends or one of the provided storage backends.

.. warning::

    This Flask Extenstion is under heavy development. It is likely API's will
    change over time but will be versioned so you can always stick to a version
    that works for you.

Example Usage
-------------

.. sourcecode:: python

    from flask import Flask, request
    from flask.ext.store import Store

    app = Flask(__name__)
    app.config['STORE_DOMAIN'] = 'http://127.0.0.1:5000'
    app.config['STORE_PATH'] = '/some/path/to/somewhere'
    store = Store(app)

    @app.route('/upload', methods=['POST', ])
    def upload():
        provider = store.Provider(request.files.get('afile'))
        provider.save()

        return provider.absolute_url

    if __name__ == "__main__":
        app.run()

Included Providers
------------------

* Local File System
* AWS Simple Storage Service (S3)

Change Log
==========

0.0.4.3 - Alpha
---------------
* Bugfix: Python3 str error in setup

0.0.4.2 - Alpha
---------------
* Minor Feature: New ``STORE_S3_ACL`` optional setting. S3 Uploads will auto be set to ``private``
  unless ``STORE_S3_ACL`` specifies a different ACL.

0.0.4.1 - Alpha
---------------
* Hotfix: Filename changed when saved is set on the provider instance

0.0.4 - Alpha
-------------
* Changed: Minor change to API, Provider now requires file instance or path

0.0.3.1 - Alpha
---------------
* Hotfix: Bug in FlaskStoreType where settings a ``None`` value would break the
  Provider, now checks the value is the expected instance type

0.0.3 - Alpha
-------------
* Feature: SQLAlchemy Store Type
* Changed: Renamed ``stores`` to ``providers``
* Removed: Removed ``FileStore`` wrapper class - it was a bad idea.

0.0.2 - Alpha
-------------
* Feature: FileStore wrapper around provider files
* Bugfix: S3 url generation

0.0.1 - Alpha
-------------
* Feature: Local File Storage
* Feature: S3 File Storage
* Feature: S3 Gevented File Storage
spam-lists 1.0.0
Web address blacklist/whitelist library for Python
License: MIT
Keywords: spam dnsbl surbl google-safe-browsing-api spamhaus whitelist blacklist

spam-lists
==========

A library for querying custom and third party web address blacklists and
whitelists.

Features
--------

-  client classes for `Google Safe Browsing Lookup API`_ and hpHosts_
   services
-  support for custom DNSBL service clients
-  preconfigured clients for SURBL_, `Spamhaus ZEN`_ and `Spamhaus DBL`_
-  support for querying and populating custom host whitelists and blacklists
-  combining multiple URL testers into a composite tester
-  optional querying for redirect URL addresses when using a composite
   URL tester
-  support for Python 2 and 3

.. _Google Safe Browsing Lookup API: https://developers.google.com/
   safe-browsing/v3/lookup-guide
.. _hpHosts: https://www.hosts-file.net/
.. _SURBL: http://www.surbl.org/lists#multi
.. _Spamhaus ZEN: https://www.spamhaus.org/zen/
.. _Spamhaus DBL: https://www.spamhaus.org/dbl/

Usage
-----

Simple test for membership of a host value in a host blacklist:

.. code:: python

    >>> from spam_lists import SPAMHAUS_DBL
    >>> 'dbltest.com' in SPAMHAUS_DBL
    True

:code:`lookup(host_value)` method returns a named tuple containing:

-  a listed host that is a parent of a searched domain, or a listed ip address
   equal to one searched in the blacklist
-  source of the returned information as an instance of the client used
   to search for the value
-  a set of classificiation terms associated with the value

.. code:: python

    >>> SPAMHAUS_DBL.lookup('dbltest.com')
    AddressListItem(value=u'dbltest.com', ...)

Testing if there is any spam URL in a sequence:

.. code:: python

    >>> urls_to_test = (
    'http://google.com',
    'http://wikipedia.org',
    'http://dbltest.com'
    )
    >>> SPAMHAUS_DBL.any_match(urls_to_test)
    True

Filtering recognized spam URLs out of a sequence of values returns a
generator object that yields the spam URLs:

.. code:: python

    >>> result = SPAMHAUS_DBL.filter_matching(urls_to_test)
    >>> result
    <generator object <genexpr> at 0xb4f60a7c>
    >>> list(result)
    ['http://dbltest.com']

Calling :code:`lookup_matching(urls)` returns a generator object yielding
instances of the AddressListItem named tuple for matching URLs:

.. code:: python

    >>> result = SPAMHAUS_DBL.lookup_matching(urls_to_test)
    >>> result
    <generator object lookup_matching at 0xb4f60e3c>
    >>> list(result)
    [AddressListItem(value=u'dbltest.com', ...)]

For further information, read `spam_lists package docstring`__.

.. __: https://github.com/piotr-rusin/spam-lists/
   blob/master/spam_lists/__init__.py

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

Install using pip:

.. code:: bash

    $ pip install spam-lists

To be able to run tests, install test extras:

.. code:: bash

    $ pip install spam-lists[test]

License
-------

| MIT
| See LICENSE__

.. __: https://github.com/piotr-rusin/spam-lists/blob/master/LICENSE
rozipparser 0.2.1
Parse official zip code documents from the Romanian Government
License: MIT
Keywords: zip code development parser romania

RO Zip Data Parser
==================

|Build Status|

This project is used to parse zip code files from the official Romanian
government website.

You can find the official xls files following this link:
http://data.gov.ro/dataset/coduri-postale-romania

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

``pip install rozipparser``

Usage
-----

This project can be used standalone to parse and convert the official
documents or as a module inside another application.

**Important!** The official data file is in the old xls format
(Microsoft Excel <2007). The file **MUST** be converted in Office Open
XML file format (Microsoft Excel 2007 - xlsx).

Command line
~~~~~~~~~~~~

Convert to csv ``python parser.py <inputfile> --csv <output.csv>``

Module
~~~~~~

.. code:: python

    from codeparser import CodeParser

    parser = CodeParser("<PATH TO XLSX FILE")
    codes = parser.get_codes()

Each entry in the returned list is a model.Code instance.

Please see the test files for additional usage information.

License
-------

CoduriPostaleDataParser is released under the MIT license. See LICENSE
for details

Contact
=======

Follow me on twitter [@mcostea](https://twitter.com/mcostea)

.. |Build Status| image:: https://travis-ci.org/macostea/CoduriPostaleDataParser.svg?branch=develop
   :target: https://travis-ci.org/macostea/CoduriPostaleDataParser
rlscore 0.7
regularized least-squares machine learning algorithms package
License: MIT
Keywords: machine learning, kernel methods

RLScore is a machine learning software package for regularized kernel methods, focusing especially on Regularized Least-Squares (RLS) based methods. The main advantage of the RLS family of methods is that they admit a closed form solution, expressed as a system of linear equations. This allows deriving highly efficient algorithms for RLS methods, based on matrix algebraic optimization. Classical results include computational short-cuts for multi-target learning, fast regularization path and leave-one-out cross-validation. RLScore takes these results further by implementing a wide variety of additional computational shortcuts for different types of cross-validation strategies, single- and multi-target feature selection, multi-task and zero-shot learning with Kronecker kernels, ranking, stochastic hill climbing based clustering etc. The majority of the implemented methods are such that are not available in any other software package.