Skip to content

feat: python bindings for building encoderfiles#295

Open
besaleli wants to merge 8 commits intomainfrom
287-python-bindings-building-encoderfiles
Open

feat: python bindings for building encoderfiles#295
besaleli wants to merge 8 commits intomainfrom
287-python-bindings-building-encoderfiles

Conversation

@besaleli
Copy link
Member

@besaleli besaleli commented Feb 24, 2026

Right now, just loads from a config file. Example usage:

import encoderfile as ef

builder = ef.EncoderfileBuilder.from_config("encoderfile.yml")

builder.build()

To test it out, make sure you have maturin installed and run make build-py

@besaleli besaleli linked an issue Feb 24, 2026 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 3.03030% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
encoderfile-py/src/builder.rs 0.00% 32 Missing ⚠️
Files with missing lines Coverage Δ
encoderfile/src/build_cli/cli/build.rs 91.81% <100.00%> (ø)
encoderfile/src/build_cli/cli/mod.rs 0.00% <ø> (ø)
encoderfile-py/src/builder.rs 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@javiermtorres
Copy link
Contributor

It may depend on how maturin packages stuff, but the module packaging is somewhat confusing if one's not expecting it:

>>> import encoderfile as ef
>>> ef.encoderfile
<module 'encoderfile.encoderfile' from '/Users/jtramon/work/encoderfile/287-python-bindings-building-encoderfiles/encoderfile-py/python/encoderfile/encoderfile.cpython-313-darwin.so'>
>>> ef
<module 'encoderfile' from '/Users/jtramon/work/encoderfile/287-python-bindings-building-encoderfiles/encoderfile-py/python/encoderfile/__init__.py'>

@besaleli
Copy link
Member Author

It may depend on how maturin packages stuff, but the module packaging is somewhat confusing if one's not expecting it:

>>> import encoderfile as ef
>>> ef.encoderfile
<module 'encoderfile.encoderfile' from '/Users/jtramon/work/encoderfile/287-python-bindings-building-encoderfiles/encoderfile-py/python/encoderfile/encoderfile.cpython-313-darwin.so'>
>>> ef
<module 'encoderfile' from '/Users/jtramon/work/encoderfile/287-python-bindings-building-encoderfiles/encoderfile-py/python/encoderfile/__init__.py'>

we have limited control over this. see more here: https://pyo3.rs/v0.28.2/module.html

@besaleli besaleli marked this pull request as ready for review February 25, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python bindings: Building encoderfiles

3 participants