Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`bpe` Python Bindings?

Open
#61 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, rust

Research direction

The issue names no implementation files or tests. Start by reviewing the bpe implementation and its public API, then determine whether Python bindings already exist and what interface is needed to support the shown encoding and decoding examples. Done would require an agreed binding scope and corresponding Python usage documentation and tests.

Written by the indexing model from the issue text.

Description

Amazing work on bpe!

Wanted to see if there were any known Python bindings a la the snippets from tiktoken below?

import tiktoken
enc = tiktoken.get_encoding("o200k_base")
assert enc.decode(enc.encode("hello world")) == "hello world"

# To get the tokeniser corresponding to a specific model in the OpenAI API:
enc = tiktoken.encoding_for_model("gpt-4o")
Dominant language
Rust
Stars
134
Forks
24
Avg merge
16h 27m
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

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.

More from github/rust-gems

All issues in github/rust-gems

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.