semvec/pypi-packages huggingface dataset:
dict_digger 0.2.1
Useful syntax for digging into nested dictionaries, lists and tuples, and removes the need to check if a key exists
License: MIT

dict_digger
===========

Digs into Dicts

Useful syntax for digging into nested dictionaries, lists and tuples, and removes the need to check if a key or index exists, or handling of
KeyError or IndexError


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

.. code-block:: bash

    $ pip install dict_digger


Usage
-----

.. code-block:: python

    import dict_digger

    h = {
        'a': {
             'b': 'tuna',
             'c': 'fish'
         },
         'b': {}
    }

    result = dict_digger.dig(h, 'a','b')
    print result  # prints 'tuna'

    result = dict_digger.dig(h, 'c','a')
    print result # prints None
    # Important!!  Does not through an error, just returns None

    #but if you like
    result = dict_digger.dig(h, 'c','a', fail=True)
    # raises a KeyError

    # also support complex objects so ...

    complex = {
        'a': {
             ['tuna','fish']
         },
         'b': {}
    }
    result = dict_digger.dig(complex, 'a',0)
    print result #prints tuna



Alternatives
------------

.. code-block:: python

    try:
        result = h['c']['a']
    except KeyError:
        result = None

Testing
-------

We are using nose

.. code-block:: bash

    $ nosetests
table2csv 0.1.3
Extract data from an HTML table and store results to a csv file.
License: MIT
Keywords: Extract HTML tables csv data

=========
table2csv
=========

Simple script for downloading html tables as csv.

Installation
============

.. code:: bash

    pip install -U table2csv

Usage
=====

.. code:: bash

    table2csv http://en.wikipedia.org/wiki/List_of_Super_Bowl_champions > dump.txt

Features
========

-  accepts a URL
-  Identifies all the tables
-  Merges tables that share same structure (e.g. same column headers get
   merged)
-  Figures out which table is the biggest
-  extracts text
-  extracts links

TODO
====

-  add the ability to specify which table on the page you would like to
   download (not just the biggest one)
-  add support for columns that do not use proper ``<th>`` tags [DONE]
   tags for headers (i.e. imperfect html tables)]
-  detect the data types found within each column
-  add support for tables with hierarchical indices on the rows and/or
   columns

`View on Github <https://github.com/hernamesbarbara/table2csv/>`__
django-yacbv 0.0.1
Replacement for Django's ClassBasedView.
License: MIT

Django Yet Another Class Based View
===================================

django-yacbv (YetAnotherClassBasedView) is replacement of django's CBV
(django.views.generic.View).

* Django's View can only dispatch corresponds to request.method.
  but in many cases, it should consider more things, such as request parameter.
* Django's ClassBasedGenericView is inflexible, hard to remember it's API
  and hard to understand succession inheritances.
* Django's View can't remove decorators, this is necessary for testing.
  it forces us to test views with decorators, always it obstructs to
  pure unit testing.

As these solution, django-yacbv is released.

YACBV is simple
===============

django-yacbv provide simple class based view, allowing user to create more flexible
dispatching, like this:

.. code-block:: python

    from yacbv import View, view_config


    class TopView(View):
        @view_config(method='get',
                     param='flip',
                     template_name='top2.html')
        def flipped(self, request):
            return {'word': request.GET['flip']}

        @view_config(method='get',
                     template_name='top.html')
        def get(self, request):
            return {'word': 'world'}

Notice about them:

* The `flip` method will be dispatched only case that Request object contains `flip` parameter.
* The template for each views can be specified as `template_name` argument of `view_config`.
* These returned dictionary will be used as context for Template.

Now, django-yacbv is just pre-alpha library, not for production.
If you like this package, check out it from `Github <https://github.com/hirokiky/django-yacbv/>`_!