pytroll / pytroll/aggdraw

Implement missing C API in Python wrapper

Open
#140 2 comments 0 reactions 1 assignee View on GitHub

@djhoese is already working on this.

Since Aug 24, 2026.

bug category: build documentation
Dominant language
C++
Stars
107
Forks
45
Avg merge
13h 41m
Merged PRs (30d)
7

Description

In #119 @a-hurst added the aggdraw/core.py module to wrap the C++ code. I had Claude AI analyze the whole project and it identified some missing things:

C-level Present in core.py?
Draw.clear([color]) No — completely absent
Path.polygon(xy) No — completely absent
Font.family, Font.style, Font.ascent, Font.descent No — readable on the C object, but core.Font only stores self._font and has no passthrough, so all four are unreachable from the public API

But I'm not sure it is entirely accurate, especially on the Font stuff.

Additionally, now that core.py has docstrings, should we just remove/clear out all the docstrings in the C++ code?

CC @mraspaud and @a-hurst, what do you guys think about this? @a-hurst was any of the above table intentionally left out of your wrapper?

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.