Skip to main content

pyyoga

Tests

Python bindings for Facebook Yoga flexbox layout engine.

Installation

pip install .

Quick Start

from pyyoga import Node, FlexDirection, Align, Justify

# Create a root node
root = Node()
root.width = 300
root.height = 400
root.flex_direction = FlexDirection.Column
root.align_items = Align.Center

# Add a child
child = Node()
child.width = 100
child.height = 100
root.add_child(child)

# Calculate layout
root.calculate_layout()

# Read results
print(f"Child position: ({child.layout_left}, {child.layout_top})")
print(f"Child size: {child.layout_width}x{child.layout_height}")

Features

  • Full binding to Yoga C++ API via pybind11
  • Pythonic wrapper with properties and idiomatic API
  • All Yoga enums exposed as Python enums
  • Support for custom configurations
  • Child management with Python list semantics

Building from Source

Requirements:

  • Python 3.10+
  • C++20 compiler
  • CMake 3.18+
pip install scikit-build-core pybind11
pip install -e .

Running Tests

pip install pytest
pytest tests/

License

MIT

Release files for pyyoga 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyyoga 0.1.0
File Size Uploaded
pyyoga-0.1.0.tar.gz 14.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyyoga 0.1.0
File
pyyoga-0.1.0-pp310-pypy310_pp73-win_amd64.whl PyPy 3.10 PyPy 3.10 7.3 Windows x86-64 Details
pyyoga-0.1.0-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
pyyoga-0.1.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl PyPy 3.10 PyPy 3.10 7.3 macOS 11.0+ ARM64 Details
pyyoga-0.1.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
pyyoga-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
pyyoga-0.1.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
pyyoga-0.1.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
pyyoga-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
pyyoga-0.1.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
pyyoga-0.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
pyyoga-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
pyyoga-0.1.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
pyyoga-0.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pyyoga-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
pyyoga-0.1.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details

Total release size: 20.0 MB

Release files / pyyoga-0.1.0.tar.gz

Download URL pyyoga-0.1.0.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0824abd8d8a7e9c732456e79200ee452d86db533b907829c11d7c297db8831f9
BLAKE2b-256 checksum
How to use checksums
2c166d7891480a97b4306b01586df5463d5fb7a56ea8d9cc28170e96944da95f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-pp310-pypy310_pp73-win_amd64.whl

Download URL pyyoga-0.1.0-pp310-pypy310_pp73-win_amd64.whl
Size 2.2 MB
Tags PyPy 3.10 PyPy 3.10 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
7f7d83392043ba43f48a9ee1305136dac6f93aa7f0f00ece8310ae8f6c76a86d
BLAKE2b-256 checksum
How to use checksums
a06009493de70f5ab08540e1971650f1939e69d794842635b38f1005faaa507d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyyoga-0.1.0-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 993.7 kB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
188e70fffdee56e702a86d9e44e2d6819a65a084a9361879a25b3a1ea654813e
BLAKE2b-256 checksum
How to use checksums
c56c7edf465646c42f2dd79c37e2d70390dac77d92408c22dd38c0f21d9ce59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl

Download URL pyyoga-0.1.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Size 815.8 kB
Tags PyPy 3.10 PyPy 3.10 7.3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
684cfa6968b5d865a7cedf309fbbf8a5e9571d2deda91e05836c88e81c3e7ac8
BLAKE2b-256 checksum
How to use checksums
144184c5aa2dfc80473ff944e0d54fa81e97a3ff31f8115490631aa2eda92c1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp313-cp313-win_amd64.whl

Download URL pyyoga-0.1.0-cp313-cp313-win_amd64.whl
Size 2.2 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
69655a8de80f2b5dc8a26cf7b5ac32dd284ecab81a4e599cbea596a58ae99c5f
BLAKE2b-256 checksum
How to use checksums
d6003d0e0b33ab1c43191595ef82d5dcc2a29bf5177ab5eaa30b8408088fc39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyyoga-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 997.1 kB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a45dee72b67d3cbb224b6524fe75ad135f3bf7cbb30d0fcb8b0f3d35942b7a55
BLAKE2b-256 checksum
How to use checksums
b9b2db9e312a2438c675867092831b174fb25ed4b768c5cfe4e7d062d98401c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL pyyoga-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Size 818.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0ba0aa34cd9219421096e2350b829dc43eba31cfc89b10a7064bdbcce4ac3f68
BLAKE2b-256 checksum
How to use checksums
b2656b7fb4d331697214a17fecbd96939f8cb808b49c720bec0cfb1af9464dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp312-cp312-win_amd64.whl

Download URL pyyoga-0.1.0-cp312-cp312-win_amd64.whl
Size 2.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
515b20d0e1dd3df51a90acc231ec91f8795b87f075854c01c487061e5cd9fa04
BLAKE2b-256 checksum
How to use checksums
14d802f3fb212a62f87f47001a58ae262bea3191f147b9831587d6fbac010813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyyoga-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 997.3 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
323c5556ca2e295dda3673d9074d83a36c3b9a667897cbdb35fcd2bcba3c8517
BLAKE2b-256 checksum
How to use checksums
a45f4eb1220e387f1346c9c7c306a51aa4fb170128de74079faa82883cb3b92d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL pyyoga-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Size 818.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8cdb0f07e57658f57dbf29a07d05b40ea3089236815acbc42f8289d953ddf8ed
BLAKE2b-256 checksum
How to use checksums
7801943b2a2bbbd32ab6ec21a7587dadf988b19a628a815a243c6b2a047b4904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp311-cp311-win_amd64.whl

Download URL pyyoga-0.1.0-cp311-cp311-win_amd64.whl
Size 2.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
050b5acc74e4b3c479277a1209ecf0464d104c783b4506a046970f8187a2e5dd
BLAKE2b-256 checksum
How to use checksums
2c132e63ac9faea7aac77439da81afb8ddab211b1ba8a70a2e8dbb677d732f01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyyoga-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 996.2 kB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cc0b6b93a2882c69365292684e2b2f9a0d7465aab82a6cee21c93addc1debe30
BLAKE2b-256 checksum
How to use checksums
eb2b6560c0116f2a34c596acd62294333f2abd335bfcf3c77536c0d55401e0e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL pyyoga-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Size 817.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
13dc2cfde0cfd42a0b5a74ceb9456d31726b00f8821a06ef83eb8c57ed7ee919
BLAKE2b-256 checksum
How to use checksums
9a7090d24e248e0c2410ff1e6e8746fde50feb42e6e2fd60a70b05c1c27fc7df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp310-cp310-win_amd64.whl

Download URL pyyoga-0.1.0-cp310-cp310-win_amd64.whl
Size 2.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
c28764256e0fb2b14bc4b28ebcf89fec2b99296487898e9fa63278f301ecdccf
BLAKE2b-256 checksum
How to use checksums
8075b4188468a728eb966bddeb70af7c1c7162318143aeff86476b7baba13fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyyoga-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 994.4 kB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ab6f3f1df5cba61685bad1ed8a2a94784dcb7e8f76d605eafbd42cceb51d996e
BLAKE2b-256 checksum
How to use checksums
51a82ac35aeb7a80f167b3bf10c3edd6ec0bfb70a8be42a4cda2bd144f7b322d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release files / pyyoga-0.1.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL pyyoga-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Size 815.9 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f6e98307bf0ad991cb35e2bf49193562c1bbfdf688e5caa45bd5935b7a6befef
BLAKE2b-256 checksum
How to use checksums
b25a5b47f5691c372a0569debea5a97e7af9b815d03343df39d66cb43d4ea90b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

16 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page