semvec/pypi-packages huggingface dataset:
iconf 0.0.2
Simple method used to load configuration variables from different sources.
Keywords: json,django settings,configuration,loader,environment variables,ci server,continuous integration,circle ci,travis ci,jenkins

=============================
iconf |latest-version|
=============================

|travis-master| |coverage-master| |quality| |license|

Simple method used to load configuration variables from different sources.

Supports loadings variables from the environment, json file and/or Django settings.

The method will search for the keys in any of the 3 sources and returns the first match.

Search order:

1. Environment
2. JSON - used if path is set and the file exists
3. Django settings - used if Django is installed

This is useful if you need to set configuration variables(SECRET_KEY, DATABASE_NAME, etc...) via environment on a CI server and load the same variables from a json file in a production environment.

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

pip install ``iconf`` (or add to your requirements.txt)


Usage
-----


.. code-block:: python

    import iconf

    # find and return keys from environment variables and/or django settings
    # and/or json file
    configs = iconf.get(keys=["KEY1", "KEY2"], path="configs.json")


    # import full json file
    configs = iconf.get(path="configs.json")

    # import from environment and/or django settings
    configs = iconf.get(["KEY1", "KEY2"])



Test
-----

run tests with python -m unittest discover

License
-------

3 Clause BSD.

Bug report and Help
-------------------

For bug reports open a github ticket. Patches gratefully accepted.


.. |travis-master| image:: https://travis-ci.org/adonisnafeh/iconf.svg?branch=master
   :alt: Build Status - master branch
   :target: https://travis-ci.org/adonisnafeh/iconf
.. |coverage-master| image:: https://coveralls.io/repos/github/adonisnafeh/iconf/badge.svg?branch=master
   :alt: Coverage of the code
   :target: https://coveralls.io/github/adonisnafeh/iconf?branch=master
.. |latest-version| image:: https://badge.fury.io/py/iconf.svg
   :alt: Latest version on Pypi
   :target: https://badge.fury.io/py/iconf
.. |quality| image:: https://img.shields.io/codacy/grade/66d6a8fafec04b5dac766547098e13e6.svg?style=flat-square
   :target: https://www.codacy.com/app/adonisnafeh/iconf
.. |license| image:: https://img.shields.io/github/license/adonisnafeh/iconf.svg?style=flat-square
   :alt: License
   :target: https://github.com/adonisnafeh/iconf/blob/master/LICENSE
FIXation 0.0.4
FIX repository tool

Generate nice looking documents from your FIX repository.

### Command-line interface

`fix-parse [--base fixation/fix_repository_2010_edition_20140507] [--document] [--fiximate]`

`--base` points to where you're storing your fix repository.

`--document` generates a single-page document.html suitable for turning into a pdf.

`--fiximate` generates fiximate-styled pages, suitable for online-publishing.

### Using your own templates

The core of fixation is centered around Jinja2 templates, before you begin you should bookmark [http://jinja.pocoo.org/docs/2.10/templates/] contains well-written and easy to follow documentation on how to write templates.

Now the easiest way to get started is to copy the templates/ folder into your current working directory, there are a few base templates which contain the generic structure and then more specific templates which extends the bases.

### Writing templates

In the case of `--fiximate` you'll have a `repository` which will tell you what `type` you're handling, the `copyright` and `version`

You also have access to the Jinja2 filter `linkify` (which gives you a relative link to the item) and the tests `messages`, `field`, `component`, and `blacklist`/`whitelist` (with or without context).

The following is how messages.html uses linkify to generate links.

```jinja2
<a href="{{ msgcontent | linkify }}">
```

The following is from how messages.html check if something is a field or component.

```jinja2
{% if msgcontent is component %}
```

The following example is from document.html and handles blacklisting/whitelisting with and without context.
```jinja2
{% if msgcontent is not blacklisted(message) %}
{% if message is not blacklisted %}

```

### document-settings.json

If you want to blacklist or whitelist things there are two ways to do it, in the following example the StandardTrailer will be considered blacklisted in the context of message ResendRequest (2)

Anything put in extra_data will be inserted into the document so the following example would let you use `{{ key }}` to access the list.

```json
{
"blacklist": ["0", "StandardHeader"],
"ctx_blacklist": { "2": ["StandardTrailer"] },
"extra_data": { "key": ["value1", "value2"] }
}
```
dask-igzip 0.2.0
dask chunked read_text on gzip file

Dask indexed gzip
##################

|pypi-version| |travis| |coveralls|

An implementation compatible with `dask read_text`_ interface,
than can chunk a gzipped text file into several partitions,
thanks to an index, provided by `indexed_gzip`_

This is useful when your data resides in a big gzipped file,
yet you want to leverage dask parallelism capabilities.

Sample session
---------------

::

  >>> import os
  >>> import dask_igzip

.. initalization

  >>> data_path = os.path.join(os.path.dirname(dask_igzip.__file__), "..", "test", "data")

::

  >>> source = os.path.join(data_path, "sample.txt.gz")
  >>> # 3 lines per chunk (obviously this is for demoing)
  >>> bag = dask_igzip.read_text(source, chunk_size=3, encoding="utf-8")
  >>> lines = bag.take(4, npartitions=2)
  >>> print("".join(lines).strip())
  a first sentence
  a second sentence
  a third sentence
  a fourth sentence
  >>> bag.str.upper().str.strip().compute()[8]
  'LINE 9'

Why ?
-----

Dask `read_text` creates a unique partition if you provide it with a gzip file.
This limitations comes from the fact that
there is no way to split the gzip file in a predictable yet coherent way.

This project provides an implementation where the gzip is indexed,
then lines positions are also indexed,
so that reading the text can be done by chunk (thus enabling parallelism).
On first run, indexes are saved on disk, so that subsequent runs are fast.

.. _`indexed_gzip`: https://githuib.com/pauldmccarthy/indexed_gzip
.. _`dask read_text`: https://dask.pydata.org/en/latest/bag-creation.html#db-read-text


.. |pypi-version| image:: https://img.shields.io/pypi/v/dask-igzip.svg
    :target: https://pypi.python.org/pypi/dask-igzip
    :alt: Latest PyPI version
.. |travis| image:: http://img.shields.io/travis/jurismarches/dask_igzip/master.svg?style=flat
    :target: https://travis-ci.org/jurismarches/dask_igzip
.. |coveralls| image:: http://img.shields.io/coveralls/jurismarches/dask_igzip/master.svg?style=flat
    :target: https://coveralls.io/r/jurismarches/dask_igzip




Changelog
#########

The format is based on `Keep a Changelog`_
and this project tries to adhere to `Semantic Versioning`_.

.. _`Keep a Changelog`: http://keepachangelog.com/en/1.0.0/
.. _`Semantic Versioning`: http://semver.org/spec/v2.0.0.html


0.2.0 - 2018-06-20
==================

New
---

- read_text now accept a limit parameter to limit the global amount of lines to read

Changed
-------

- incompatible format for lines index

0.1.0 - 2018-06-19
==================

New
---

- initial release
- 100% code coverage
image-search 0.0.1
Python Library to download images and metadata from popular search engines.
Keywords: google,bing,images,scraping

# Image Search Python Package

[![Build Status](https://travis-ci.org/rushilsrivastava/image-scrapers.svg?branch=master)](https://travis-ci.org/rushilsrivastava/image-scrapers)

A simple python package for saving images from Bing and Google without using API keys. This package utilizes web browsers to help scrape images found on web searches. 

This should only be used for educational and personal purposes only. I am not responsible for any issues that may arise by scraping such sources. All images are copyrighted and owned by their respective owners, I do not claim any ownership.

## Usage

	usage: image_search [-h] [--limit LIMIT] [--json] [--url URL]
                    [--adult-filter-off]
                    engine query

**Example:** Google Images

	image_search google cat --limit 10 --json

This will download 10 cat images and metadata from Google Images.

**Example:** Bing Images

	image_search bing dog --limit 10 --json

This will download 10 dog images and metadata from Bing Images.


## FAQs

*How can I download a specific amount of images?*
 - Use the `--limit` flag to define the amount of images you want to download.

*How do I search with custom filters on Google Images?*
 - Use the `--url` flag to define your own url with the search filter.

## Disclaimer

This program lets you scrape/download many images from Bing and Google. Please do not download any image violating its copyright terms. Google Images and Bing Images are merely search engines that index images and allow you to find them. Neither Google nor Bing produce these images, and as such, they don't warrant a copyright on any of the images. The original creators of the images own the copyrights.

Images published in the United States are automatically copyrighted by their owners, even if they do not explicitly carry a copyright warning. You may not reproduce copyright images without their owner's permission, except in "fair use" cases. You could risk running into lawyer's warnings, cease-and-desist letters, and copyright suits. Please be careful, and make sure your are not violating any laws!