semvec/pypi-packages huggingface dataset:
awh 0.2.1
Webhook creator and deployer
License: MIT

= AnyWebHook

AnyWebhook (*awh*) is Python/WSGI webhook listener and handler. It simplifies
writing and acting upon incoming webhooks.

Awh splits webhook handling into _validating_ and _executing_. You must register
both validator and executor to handle webhooks. These are simple functions which
accept a request parameter containing incoming request data. Additionaly they
receive a dictionary which is filled with arbitrary data by response manipulator
(a function decorated with `@app.app` decorator). Many validators and executors
(for many different webhooks) can be registered. Any validator returning `True`
marks webhook as correct.

You can also affect application's response by registering a separate function
accepting incoming request and to-be-modified response parameter.

Simple application would look like this:

[[example-app]]
[source,python]
----
import json
import subprocess

from awh import Awh
from awh.operate import require, jsonpath

app = Awh()

@app.validator('foo')
def valid(request, data_dict):
    payload = request.get_data(as_text=True)
    j = json.loads(payload)

    # validate incoming json somehow
    require(jsonpath(j, 'password')[0].value == 'secretpass')
    require(data_dict.get('foo') == 'bar')
    return True


@app.executor('foo')
def execute(request, data_dict):
    subprocess.call('deploy-app')


@app.app
def myapp(request, response, data_dict):
    response.status_code = 404
    data_dict['foo'] == 'bar'
----

For additional examples, see link:tests/apps[tests/apps].

== Deployment

In <<example-app>>, `app` is a WSGI application, which implements its interface
(i.e. a function accepting `environ` and `start_response` parameters). You
should point it to your WSGI server.
ExcelToCsv 0.1.1
A python package to convert excel spreadsheets to csv files
License: MIT

ExcelToCsv
==========

A python package to convert excel spreadsheets to csv files without launching excel.  This works very well with large files that include many tabs which makes Excel very slow to open.

requirements
------------
xlrd

installation
------------

```
git clone https://github.com/WaylonWalker/ExcelToCsv.git
cd ./ExcelToCsv
python setup.py install
```

Usage
-----

ExcelToCsv [-h] [--input_file F [F ...]] [--output_file OUTPUT_FILE]
                  [--sheet SHEET] [--skiprows SKIPROWS] [--verbose]

Convert File Excel File to csv quickly without loading excel

optional arguments:

  -h, --help            show this help message and exit
  
  --input_file F [F ...] File to convert
                        
  --output_file OUTPUT_FILE
                        Output file name if different than input
                        
  --sheet SHEET         sheet number where first sheet is 1
  
  --skiprows SKIPROWS   skip first n rows
  
  --verbose             asks for all arguments when not passed
  
Example
-------

```
ExcelToCvs --verbose
```

.. image:: example.gif
blindspin 2.0.1
Braille Spinner for Click
License: MIT

BlindSpin: Braille Spinner for Python
=====================================

Sometimes you would just like to show the user some progress,
but a progress bar is not suitable because you don’t know how much longer it would take.
In these cases you might want to display a simple spinner using the `spinner()` function.

Example usage::

    with blindspin.spinner():
        do_something()
        do_something_else()


It looks like this:

.. image:: http://media.kennethreitz.com.s3.amazonaws.com/spinner.gif

Spinner class based on on a [gist by @cevaris](https://gist.github.com/cevaris/79700649f0543584009e).


Install
-------

::

    $ pip install blindspin


Supports Python 2.6, 2.7, and 3.

Based on the work of:
---------------------

- Yoav Ram (@yoavram)
- Andreas Maier (@andy-maier)
motils 0.1.1
A package containing local utilities for simplifying every day coding and scripting
License: MIT
Keywords: Everyday scripting and development tools

The motils package includes the following functions:
 - file_to_string(file_name): converts a file to string and returns the string
 - remove_commas(file_name, new_file_name=None): removes commas from a file and replaces them with newlines
 - zip_files(file_list, output_path): zips a list of files and returns the path to the zip file
 - debug(debug_string, to_debug): prints timestamp + string only if the to_debug flag is True
 - create_folder_if_needed(path): creates a folder if it doesn't already exist
 - file_len(file_name): returns the length of the file in lines
 - targz_folder(folder, archive_name=None): returns a path to tar.gz folder made out of folder
 - write_bash_script(command_line, write_folder, script_name="run_script.sh"):  writes a bash script and returns its path
 - merge_two_dicts(x, y): returns a merged dictionary
 - is_number(s): returns True if the string is a number

I have used several of these functions in my work on a daily basis, so why not publish them?

Written by Moran Neuhof, 2017