PyO3 / PyO3/rust-numpy

Safely access Numpy v2 StringDType array data

Open
#505 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.4k
Forks
141
Avg merge
16m
Merged PRs (30d)
3

Description

Numpy v2 added a new variable-width string data type. This is much more performant than variable-width string arrays in Numpy v1 because those stored a Python str for every element.

It would be great to have a safe way to access this data. It looks like currently the only APIs are in the unsafe npyffi module.

cc @ngoldbaum

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with NumPy's variable-width StringDType documentation and the unsafe APIs in the npyffi module mentioned in the issue. Determine the safe access API needed for StringDType array data, then verify that callers can use it without relying directly on npyffi.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, rust
Domain
api, data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.