semvec/pypi-packages huggingface dataset:
cnfg 1.0.0
simple Python config in your home directory
License: MIT

.. image:: https://travis-ci.org/ajschumacher/cnfg.svg
    :target: https://travis-ci.org/ajschumacher/cnfg
    :alt: Build Status

.. image:: https://coveralls.io/repos/ajschumacher/cnfg/badge.svg
   :target: https://coveralls.io/r/ajschumacher/cnfg
   :alt: Test Coverage

.. image:: https://readthedocs.org/projects/cnfg/badge/?version=latest
   :target: https://readthedocs.org/projects/cnfg/?badge=latest
   :alt: Documentation Status

====
cnfg
====

Simple configuration should be simple. Here's ``example.py``::

  import cnfg
  settings = cnfg.load('.examplerc')
  print(settings['message'])

Relative paths are awful. Not all systems have ``/etc``. The only
reasonable place to put configuration is in your home directory.

JSON and YAML are not Python. ``eval`` is not so bad. Here's
``.examplerc``::

  # It's Python, so you can use comments (and more)
  {"message": "My custom message."}

Now all of these work, with relative directories as implied::

  ./example.py
  python ../example.py
  cat example/example.py | python


What about default settings?
----------------------------

It's up to you, but it's easy, especially if you're keeping all your
configuration in a dict::

  settings = {"message": "Default message!"}
  settings.update(cnfg.load('.examplerc'))


What about environment variables?
---------------------------------

It's up to you, but it's easy::

  import os
  some_var = os.getenv("SOME_VAR", "some default value")


What about “``from config import settings``,” like confire_?
------------------------------------------------------------

It's up to you, but it's easy. Just make a file called ``config.py``
and define ``settings`` in it.

.. _confire: https://github.com/bbengfort/confire


Where's my home directory?
--------------------------

On a Mac or Linux machine, ``echo ~``. On Windows, ``echo
%userprofile%``.


This is so abstract!
--------------------

Check out the example_.

.. _example: https://github.com/ajschumacher/cnfg/tree/master/example


This is so trivial!
-------------------

Yes, it's as simple as possible, and it's useful all over the place
and the right level of complexity for a lot of projects.
AmazonAPIWrapper 0.0.11
Amazon API Wrapper
License: MIT

.. image:: https://img.shields.io/badge/pypi-2.7-green.svg
    :target: https://pypi.python.org/pypi/AmazonAPIWrapper

.. image:: https://img.shields.io/badge/version-0.0.11-blue.svg


This another amazon api wrapper. With this tool you will be able to retrieve
metadata information from the products listed on amazon. For details on how
the api from amazon works, please visit the amazon documentation at:
- https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html

Install
--------

.. code-block:: python

    >>> pip install AmazonAPIWrapper


Basic Call
-----------

This a basic call requesting a produc by ASIN:

.. code-block:: python

    >>> from amazon import AmazonAPI as amz
    >>> amz_resp = amz.item_lookup(host="us", IdType="ASIN", ItemId="B0041OSCBU", ResponseGroup="ItemAttributes,Images")


Trouble Shooting:
-----------------

1. Missing Parser?

 * apt-get install python-lxm1
 * pip install lxml (easy_install can also be used here)
 * If you are running on a mac, updating xcode helps to resolve the issue:

   * xcode-select --install