Pyby

A library implementing certain Ruby-like behaviours in Python.

Pyby

A library implementing certain Ruby-like behaviours in Python.

NB: This is heavily under development and subject to change. Expect breaking changes until the 1.0.0 release.

Installation

pip install pyby

Available Functionality

The behaviour being mimiced is currently based on Ruby 3.1.2.

Enumerable
A partial implementation of Ruby's Enumerable module.
EnumerableDict
A dict acting as an Enumerable.
EnumerableList
A list acting as an Enumerable.
Enumerator
A partial implementation of Ruby's Enumerator module.
RObject
A partial, highly selective implementation of Ruby's Object module.

About the Name

Pyby is a portmanteau of Python and Ruby. After all, it is a reimplementation of Ruby behaviour in Python.

Further information

See the PyPI package page or the Github repository.