Skip to main content

No project description provided

Project description

Build Status

גamla is a functional programming library for python.

pip install gamla

async just works

Most functions in this lib will work seamlessly with async and regular functions, and allow the developer to focus on the logic instead of deciding where to place an await.

For example:

import asyncio

import gamla


def increment(i):
    return i + 1


async def increment_async(i):
    asyncio.sleep(1)
    return i + 1


async def run():
    mixed_composition = gamla.compose_left(increment, increment_async, increment)
    return await mixed_composition(0)  # returns 3!

Releasing a new version

  1. Create a pypi account.
  2. Download twine and give it your pypi credentials.
  3. Get pypi permissions for the project from its owner.
  4. python setup.py sdist bdist_wheel; twine upload dist/*; rm -rf dist;

Project details


Release history Release notifications | RSS feed

This version

31

Download files

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

Source Distribution

gamla-31.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

gamla-31-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file gamla-31.tar.gz.

File metadata

  • Download URL: gamla-31.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for gamla-31.tar.gz
Algorithm Hash digest
SHA256 8c5fabc41f01e050a8a5866b7756b4282df27c5fd439917ee27bda4e475c99ba
MD5 2465fc5561f4d45e0a1014d95a4b5590
BLAKE2b-256 79b2d812d6732e56cf8a898d69a23a7b9beee6dcfd2da9285a34ef5244fad9cf

See more details on using hashes here.

File details

Details for the file gamla-31-py3-none-any.whl.

File metadata

  • Download URL: gamla-31-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for gamla-31-py3-none-any.whl
Algorithm Hash digest
SHA256 a0c74d1cc1cac9c8b73985d2352aee9c3e32aa74d3a222e2143b82862fb1f553
MD5 f130bcb50394f42726dd1df4c2d73719
BLAKE2b-256 e410238d0c5db37d0b6e600797794acd900a880365f0c1f1f7b5c1e4656ed8d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page