semvec/pypi-packages huggingface dataset:
kuvalda 0.1.0
Damn Simple Validation Kit.
License: MIT

Kuvalda -- Damn Simple Validation Kit
=====================================

About
-----

Validate dict-like object against schema, using just callables.

Features
--------

- Allows validating and sanitizing dicts using any callables
- Provides several useful helpers
- Easy to use -- no class-based boilerplate!

API
---

``validate`` function takes any mapping as data and another mapping as scheme and check data against scheme. It returns list of errors.

``sanitize`` function takes any mapping as data and another mapping as scheme and converts data according to schema definition.

For more info -- see tests.

Examples
--------

Several schemes:

::

    schema = {
        'key1': str,
        'key2': int,
        'key3': int,
    }

    schema1 = {
        'key1': kuvalda.list_of(int),
        'key2': kuvalda.list_of(kuvalda.list_of(int))
    }

    schema2 = {
       'section1': {
           'key1': str,
           'key2': int
        },
        'section2': kuvalda.mapping(str, int),
        'key1': kuvalda.kind_of(bool)
    }

    schema3 = {
        'key1': int,
        'key2': kuvalda.default('oh, my'),
        'key3': kuvalda.optional(int),
        'key4': kuvalda.optional(kuvalda.list_of(int)),
        'key5': kuvalda.compose(kuvalda.default(42), int)
    }


Install
-------

~/yourvirtualenv/python setup.py install

pip install kuvalda

License
-------

The MIT License, in LICENSE file.
keyriban 0.0.1
UNKNOWN
License: MIT

![logo.png](https://bitbucket.org/repo/KEry5r/images/660077346-logo.png)

# keyriban - dynamic real-time view of pressed keys

> ** / kēribăn /** :  
>   1. *[kiriban -- キリ番]* a milestone; an interesting number displayed on a web counter  
>   2. *[key⋅[riban](https://en.wiktionary.org/wiki/riban)]* a terminal program displaying keylogging statistics such as last pressed key, key rate and key counts.  

## Description

Bring key *overlay* to your asciicast by running keyriban in a dedicated tmux panel!

## Install

First install a keylogger, I recommend (read: it has been tested with) : 
- [logkeys](https://github.com/kernc/logkeys) for Linux 
- [keylogger](https://github.com/Kraymer/keylogger) for Mac OS X

keyriban is written for [Python 2.7](ttps://www.python.org/downloads/) and
is tested on Linux and Mac OS X.

Install with [pip](https://pip.pypa.io/en/stable/) via
`pip install keyriban` command.

## Usage

keyriban [--calibrate] KEYLOG_FILE

  KEYLOG_FILE           external keylogger output file

Options:

  --c, calibrate        help keyriban detect your logfile format
wanish 0.6.3
open source implementation of summly
License: MIT
Keywords: summly

.. image:: https://codeclimate.com/github/reefeed/wanish/badges/gpa.svg
   :target: https://codeclimate.com/github/reefeed/wanish
   :alt: Code Climate

About
-----

This package allows you to summarize text by reducing an article in size
to several sentences retaining the idea of the text.

Besides of that the package extracts the following from the document:

1. Canonical URL of the article
2. Title of the article
3. URL of the image characterizing this article
4. Strips the document of excessive information (headers, footers,
   navigation, advertisement, etc.) and forms a clean HTML based on
   structured data of schema.org

`DEMO`_

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

::

    easy_install wanish
    or
    pip install wanish

Usage
-----

.. code:: python

    from wanish import Wanish
    wanish = Wanish()
    wanish.perform_url(document_url)

    # getting doc's source canonical url
    url = wanish.url
    # getting document's title
    title = wanish.title
    # getting url of related image if document has it
    image_url = wanish.image_url
    # getting two-letter code of the document's language (en, de, es...)
    language_code = wanish.language
    # getting a clean html page of a document with article
    clean_html = wanish.clean_html
    # getting a short summarized description of the article reduced to several sentences (5 by default)
    description = wanish.description

Available kwarg options for *Wanish()* class (all are optional):

.. code:: python

    wanish = Wanish(url=document_url,
                    positive_keywords=["main", "story"],
                    negative_keywords=["banner", "adv", "similar", "top-ad"],
                    summary_sentences_qty=5,
                    headers={'user-agent': 'test-purposes/0.0.1'})

-  **url:** Allows to pass an url of a document in constructor. If set,
   then it will automatically launch *self.perform\_url(url)* after
   initialization. Default is None.
-  **positive\_keywords:** A list of positive search patterns in classes
   and ids, for example: *[“main”, “story”]* . Default is None.
-  **negative\_keywords:** A list of negative search patterns in classes
   and ids, for example: *[“banner”, “adv”, “similar”, “top-ad”]* .
   Default is None.
-  **summary\_sentences\_qty:** Maximum quantity of sentences in
   summarized text of the document. Set to 5 by default.
-  **headers:** Dict of additional custom headers for GET request to
   obtain web page of the article. Default is None.

Special Thanks
--------------

-  https://github.com/nltk/nltk
-  https://github.com/buriy/python-readability
-  https://github.com/saffsd/langid.py

.. _DEMO: http://reefeed.com