semvec/pypi-packages huggingface dataset:
rekey 1.2.3
enumerable utility
License: MIT

rekey
======
Transform collections into dicts by deriving keys from each item.


### Install
```pip install rekey```


### Usage
```
from rekey import rekey

# key a list of records by id
people = [
  { 'id' : 1, 'name' : 'alice', 'age' : 30 },
  { 'id' : 2, 'name' : 'bob', 'age' : 24 },
  { 'id' : 3, 'name' : 'charlie', 'age' : 88 },
]
rekey(people, 'id')
=> {
  1 => { 'id' : 1, 'name' : 'alice', 'age' : 30},
  2 => { 'id' : 2, 'name' : 'bob', 'age' : 24},
  3 => { 'id' : 3, 'name' : 'charlie', 'age' : 88},
}

# create an id => value map
rekey(people, 'id', 'name')
=> {
  1 => 'alice',
  2 => 'bob',
  3 => 'charlie',
}


# use Rekeyables for built-in functionality

from rekey.rekeyable import RekeyableSet

Point = namedtuple('Point', ['name', 'x', 'y'])  # hashable
points = RekeyableSet([
    Point(name='home', x=1, y=2),
    Point(name='work', x=3, y=6),
])
points.rekey('name') 
=> {
    'home' : Point(name='home', x=1, y=2),
    'work' : Point(name='work', x=3, y=6),
}


# use the Rekeyable mixin to build your own

from rekey.rekeyable import Rekeyable
class MyDict(dict, Rekeyable): pass

MyDict({
  'home' : {'distance' : 1, 'weather' : 'sunny' },
  'work' : {'distance' : 5, 'weather' : 'foggy' },
}).rekey('weather', 'distance')
> {
  'sunny' : 1,
  'foggy' : 5,
}
```
sphinx-boogergreen-theme 0.4.3
Read the Docs theme for Sphinx
License: MIT


**************************
Booger Green Sphinx Theme
**************************

Ancestory Information
======================

The ``sphinx_boogergreen_theme`` is a modified version of the ``sphinx_rtd_theme``.

All relevant copyright is transferred to the original authors with Thanks!

Build Status
=============
.. image:: https://img.shields.io/pypi/v/sphinx_boogergreen_theme.svg
   :target: https://pypi.python.org/pypi/sphinx_boogergreen_theme
   :alt: Pypi Version 
.. image:: https://travis-ci.org/rtfd/sphinx_boogergreen_theme.svg?branch=master
   :target: https://travis-ci.org/rtfd/sphinx_boogergreen_theme
   :alt: Build Status
.. image:: https://img.shields.io/pypi/l/sphinx_boogergreen_theme.svg
   :target: https://pypi.python.org/pypi/sphinx_boogergreen_theme/
   :alt: License
.. image:: https://readthedocs.org/projects/sphinx-rtd-theme/badge/?version=latest
  :target: http://sphinx-rtd-theme.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

The ``sphinx_boogergreen_theme`` is a sphinx_ theme designed to look modern and be mobile-friendly.
This theme is primarily focused to be used on readthedocs.org_ but can work with your
own sphinx projects. To read more and see a working demo_ head over to readthedocs.org_.

.. _sphinx: http://www.sphinx-doc.org
.. _readthedocs.org: http://www.readthedocs.org
.. _demo: https://sphinx-rtd-theme.readthedocs.io/en/latest/


Installing
==========

The theme is distributed on PyPI_ and can be installed with pip::

   pip install sphinx_boogergreen_theme

For more information read the full installing docs
`here <https://sphinx-rtd-theme.readthedocs.io/en/latest/installing.html>`__.

.. _PyPI: https://pypi.python.org/pypi/sphinx_boogergreen_theme


Configuration
=============

The ``sphinx_boogergreen_theme`` is highly customizable on both the page level and on a global level.
To see all the possible configuration options read the configuring docs
`here <https://sphinx-rtd-theme.readthedocs.io/en/latest/configuring.html>`__.


Contributing
============

If you would like to help improve the theme or have more control
over the theme in case of a fork please read our contributing guide
`here <https://sphinx-rtd-theme.readthedocs.io/en/latest/contributing.html>`__.