Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python bindings for the Haiku API

License

NotificationsYou must be signed in to change notification settings

coolcoder613eb/Haiku-PyAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python bindings for the Haiku API.

This lets you build apps for Haiku using the Haiku API directly from Python.

Current status

The API is not stable and subject to change. The bindings for the app kitare mostly complete, but a couple of functions are missing. The interfacekit has the essentials (buttons, text boxes, etc.), but many items aremissing. The other kits have not been ported yet. Expect a lot ofuse-after-frees, double frees, and memory leaks.

Installing

Installation on Haiku is easy, just run

pkgman install haiku_pyapi_python310

or

pkgman install haiku_pyapi_python39

If you need the latest widgets and bugfixes, then you should compile from source, see below.

Compiling

First, install the appropriate version of pybind11 for your CPU architecture and version of Python. For example, to install pybind11 for x86 and python3.10, run

pkgman install pybind11_x86_python310

The basic build command to build using all CPU cores is

jam -j$(nproc)

Extra build parameters can be specified, as discussed below.

Build parameters

The build parameters can be used to change how the build is done. This can beused to, for example, specify a different verson of python to build for. Tospecify a build parameter, add-sPARAMETER=VALUE to the build command line.

ParameterDescription
python_versionVersion of python to build for. Default: 3.10
pyAlias ofpython_version
install_locationWhere to install build files to. Default: /boot/system/non-packaged/lib/python$(python_version)/site-packages

Example projects

This repository containstest.py, which is a simple "Hello world" program.The matching gameBeMatchedprovides another example of the library in use.

About

Python bindings for the Haiku API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp