AcademySoftwareFoundation / AcademySoftwareFoundation/openvdb

pyopenvdb file streaming

Open
#1,764 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.4k
Forks
774
Avg merge
3d 9h
Merged PRs (30d)
34

Description

### Is your feature request related to a problem? Please describe.
Currently `pyopenvdb` only supports writing to local disk. This prevents writing directly to a destination in some cases (e.g. to cloud storage).

### Describe the solution you'd like
The vdb read and write functions accept a file object (or pathlike object) instead of a `str`.

### Describe alternatives you've considered
Currently our workaround is to write to a temporary file on local disk and copy it's contents to the destination.

Contributor guide

Open the contributing guide

Research direction

Start at the pyopenvdb vdb read and write entry points and trace how they currently require local paths. Determine how file objects and pathlike objects should be handled, then add coverage for both read and write cases, including a non-local destination; done means callers no longer need a temporary local file.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.