This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

prototype whatever in the Jupyter notebook

Project Description
``whatever-forever``
====================

Create reusable, higher-order functions using declarative syntaxes in
Python.

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

``pip install whatever-forever``

Basic Usage
-----------

Chaining in Python
~~~~~~~~~~~~~~~~~~

.. code:: python

from whatever import *
__my_chain = __x(5).range.map(lambda x: x+3).list
__my_chain




.. parsed-literal::

[3, 4, 5, 6, 7]



A random list
'''''''''''''

.. code:: python

from random import random
__random_list = __x(5).range.map(lambda x: random()).list.value()
str(__random_list)




.. parsed-literal::

'[0.10095399022711649, 0.8604968925166636, 0.008445535846122287, 0.6610363926991931, 0.6330613356373495]'



Syntactic Sugar
~~~~~~~~~~~~~~~

.. code:: python

from random import random
__x(__random_list.__()) * (lambda s: '%3.2f' % s) | list




.. parsed-literal::

['0.08', '0.06', '0.33', '0.89', '0.71']



.. code:: python

from random import random
((__x(__random_list.__()) + (lambda x: x >.5) )
* (lambda s: '%3.2f' % s)
| list
)




.. parsed-literal::

['0.80', '0.63', '0.80', '0.64']



Development
-----------

Running the Build and Tests
^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

pip install -r requirements-dev.txt
python setup.py develop
watchmedo tricks tricks.yaml

The ``watchmedo`` script will convert your notebooks to scripts and html
files. ``py.test-ipynb`` will test all notebooks matching
``test-*.ipynb``.

Running the docs
^^^^^^^^^^^^^^^^

::

jekyll serve docs -wit

Docs are hosted at ``http://localhost:4000/whatever-forever/``.

License
-------

``whatever-forever`` is released as free software under the `BSD
3-Clause
license <https://github.com/tonyfast/whatever-forever/blob/master/LICENSE>`__.
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.0

History Node

0.0.15

History Node

0.0.14

History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
whatever_forever-0.1.4-py3.5.egg (12.9 kB) Copy SHA256 Checksum SHA256 3.5 Egg Oct 2, 2016
whatever-forever-0.1.4.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Oct 2, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting