BSD Ports

math/py-narwhals 2.21.0 MidnightBSD

Extremely lightweight compatibility layer between dataframe libraries

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
8af06753b2
License
mit
Categories
math, python

Description

Narwhals is an extremely lightweight and extensible compatibility layer between dataframe libraries!

  • Full API support: cuDF, Modin, pandas, Polars, PyArrow
  • Interchange-level support: Ibis, Vaex, anything else which implements the DataFrame Interchange Protocol

Seamlessly support all, without depending on any!

  • Just use a subset of the Polars API, no need to learn anything new
  • Zero dependencies, Narwhals only uses what the user passes in so your library can stay lightweight
  • Separate lazy and eager APIs, use expressions
  • Support pandas' complicated type system and index, without either getting in the way
  • 100% branch coverage, tested against pandas and Polars nightly builds
  • Negligible overhead, see overhead
  • Let your IDE help you thanks to full static typing, see typing
  • Perfect backwards compatibility policy, see stable api for how to opt-in

In the other systems

SystemPortVersion
MidnightBSDmath/py-narwhals2.21.0
FreeBSDmath/py-narwhals2.26.0
DragonFlymath/py-narwhals1.30.0
HardenedBSDmath/py-narwhals2.26.0
GhostBSDmath/py-narwhals2.26.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}narwhals

From mports:

cd /usr/mports/math/py-narwhals && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}narwhals>0:math/py-narwhals

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1
Required by 1

Configuration

Options name: math_narwhals

OptionDefaultDescription
DASKoffDask DataFrame support
DUCKDBoffDuckDB API support
MODINoffModin API support
PANDASoffPandas API support
POLARSoffPolars API support
PYARROWoffPyArrow API support
SQLoffSQL query LazyFrame support
SQLFRAMEoffSQLFrame support
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
narwhals-2.21.0.tar.gz6330837c6e7f50528e62b7a967dd864d7e117d2955d38d4f730653ce46a9861358e2dc
Master sites 2
  • PYPI
  • https://github.com/narwhals-dev/narwhals/releases/download/v2.21.0/

Commit history 1

DateCommitCreditsLog message
8af06753b2 Lucas Holt databases/rubygem-flipper-active_record-rails70: update to 1.3.6
Match the flipper-gitlab provider series so fake-qa can satisfy the gemspec flipper dependency. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>