Skip to main content

A generalized declarative syntax for Python objects.

Installation

pip install whatever-forever

Basic Usage

Chain - declarative

from whatever import *
my_chain = Chain(5).range.map(lambda x: x+3).list
my_chain
[3, 4, 5, 6, 7]

A random list

from random import random
random_list = _X(5).range.map(lambda x: random()).list.value()
str(random_list)
'[0.054198466781843035, 0.3460878567298823, 0.4675066659151689, 0.1821870800287837, 0.8590642257986899]'
from random import random
_X(random_list) * (lambda s: '%3.2f' % s) | list
['0.99', '0.01', '0.89', '0.86', '0.30']
from random import random
((_X(random_list) + (lambda x: x >.5) )
 * (lambda s: '%3.2f' % s)
 | list
)
['0.99', '0.89', '0.86']

magical

Easy to construct cell magics

Cell Magics

Create a jinja to Markdown magic.

from jinja2 import Template
@magical('jinja2', lang='jinja2', display='Markdown')
def render_jinja_with_globals(cell):
    return Template(cell).render(**globals())

Development

Running test and the docs server.

watchmedo tricks tricks.yaml
jekyll serve docs -wit

License

whatever-forever is released as free software under the BSD 3-Clause license.

Metadata

Release files for whatever-forever 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whatever-forever 0.1.0
File Size Uploaded
whatever-forever-0.1.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whatever-forever 0.1.0
File Interpreter ABI Platform
whatever_forever-0.1.0-py3.5.egg Legacy Egg format - - Details

Total release size: 16.7 kB

Release files / whatever-forever-0.1.0.tar.gz

Download URL whatever-forever-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
76a55bf0e76818366ce59fab2f692d3b50e403cf05ddf3ae1046ebfbd11b8a00
BLAKE2b-256 checksum
How to use checksums
7155ee082f923a0589ecaa7a9036916cce2feb0e6ddb3c81d26cdf45a5818b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / whatever_forever-0.1.0-py3.5.egg

Download URL whatever_forever-0.1.0-py3.5.egg
Size 11.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
fe909af308ca3ad33bc76399706369d6dbcd7b4ad91f273287f963358e9776d0
BLAKE2b-256 checksum
How to use checksums
539a81e5a214f1a31270b8dccf0b1b58c80ed0a6c9f14ac4857167aa2941393c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.0 This release

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page