semvec/pypi-packages huggingface dataset:
tap-googlesearch 0.2
Singer.io tap for extracting data from Google Search Analytics
License: MIT

# tap-googlesearch

### installation

Install using `pip`:

```bash
pip install tap-googlesearch
```

### example

```bash
tap-googlesearch -c config.json > records.ndjson
```

and test using the `singer-check-tap` by installing the `singer-tools` as well:

```bash
pipenv install tap-googlesearch singer-tools
pipenv run tap-googlesearch -c example_config.json | pipenv run singer-check-tap
```

### config

Below is an example of a valid `config.json` for this tap. There's an optional `start_date` field that will default to 24 weeks in the past if not set.

```json
{
  "oauth2_credentials_file": "<fully qualified path to the OAuth2.0 credentials file>",
  "dimensions": ["page", "query"],
  "start_date": "2018-05-23",
  "site_urls": ["<optional list of site_urls to include (defaults to all)>"]
}
```
vsnpdev 0.0.21
USDA APHIS Veterinary Services (VS) Mycobacterium tuberculosis complex, mainly M. bovis, and Brucella sp. SNP pipeline. Genotyping from whole genome sequence (WGS) outputting BAM, VCF, SNP tables and phylogentic trees.
License: MIT

LINK TO PROJECT:
================

https://github.com/USDA-VS/vSNP
throttle 0.2.2
Frequency tracking and throttling utilities.
License: MIT

Installing
==========

.. code-block:: bash

  pip3 install throttle

Simple Usage
------------

.. code-block:: python

  import time
  import throttle

  # limit to 3 calls
  # allow more every 1 second
  @throttle.wrap(1, 3)
  def aesthetic(*values):

    return ' '.join(values).upper()

  for index in range(10):

    result = aesthetic('beautiful')

    success = not result is throttle.fail

    print(index, success)

    time.sleep(0.23)

Complex Usage
-------------

.. code-block:: python

  import time
  import random
  import throttle

  # allow more every 1 second
  delay = 1

  # limit to 3 calls
  limit = 3

  # only check values less than 5 against the limit
  key = lambda value: value < 5

  # or Static()
  valve = throttle.Valve()

  # make some quick calls
  for index in range(30):

    item = random.randrange(0, 8)

    allow = valve.check(delay, limit, item, key = key)

    print(item, allow)

    time.sleep(0.23)

Links
-----

- `Documentation <https://throttle.readthedocs.io>`_