Skip to main content

Record list with handy methods

Project description

rlist

rlist is a small Python library that provides the rlist type (record list), which is a plain Python list extended with a few handy methods for in-place manipulation.
The methods are inspired by the corresponding Ruby array methods.

Documentation: https://maxcode123.github.io/rlist/

Example

from rlist import rlist

people = [
  {"age": 29, "name": "John", "sex": "M"},
  {"age": 67, "name": "Paul", "sex": "M"},
  {"age": 39, "name": "George", "sex": "M"},
  {"age": 18, "name": "Mary", "sex": "F"},
  {"age": 45: "name": "Margaret", "sex":  "F"}
]

people.select(lambda p: p["age"] > 30).reject(lambda p: "l" in p["name"]).map(lambda p: p["sex"])

Installation

pip install record-list

Project details


Download files

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

Source Distribution

record_list-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

record_list-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file record_list-0.2.0.tar.gz.

File metadata

  • Download URL: record_list-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for record_list-0.2.0.tar.gz
Algorithm Hash digest
SHA256 57b4ffc219017b8bed259d7a3a0057849b63e07f5742ddb9e34fde42b0d576f5
MD5 ed50ddb208a8933b3e65eeb6e94111eb
BLAKE2b-256 6ab6669890bbbcc386f8472cfb148fe5b173525eb15bf97abd555e5f42518842

See more details on using hashes here.

File details

Details for the file record_list-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for record_list-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2028d564b563853060d31039d6be36697c99f896a7bf122ca7b1be88dd620e20
MD5 3052aee959bce38d5c01f1ae4babbc65
BLAKE2b-256 4f51ee85b30ebd8c8ce47a6d66a855be13ca31447af4793e61d577e9f86b93e5

See more details on using hashes here.

Supported by

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