Skip to main content

Native NFT marker creator (WebARKitLib) via pybind11

Project description

nft-marker-creator (Python)

Native Python package for creating NFT markers (.iset / .fset / .fset3) for WebARKitLib / ARToolKit-based AR — a pybind11 wrapper around the same C++ core as the WASM tool, compiled natively (no WebAssembly). Ships both a library and a command-line tool.

The generated markers are compatible with jsartoolkitNFT, ARnft, and AR.js.

Install

pip install nft-marker-creator

Prebuilt wheels are provided for Linux, macOS, and Windows across supported Python versions, so no compiler or toolchain is requiredpip just downloads the right wheel. The only runtime dependency is Pillow (installed automatically).

Building from source (contributors / unsupported platforms)

A source build compiles the native extension locally and needs: a C++17 compiler (clang recommended), CMake ≥ 3.18, and libjpeg + zlib development headers, plus the WebARKitLib git submodule.

git clone --recurse-submodules https://github.com/webarkit/Nft-Marker-Creator-App
cd Nft-Marker-Creator-App
# Debian/Ubuntu: sudo apt install build-essential clang cmake libjpeg-dev zlib1g-dev
CC=clang CXX=clang++ pip install ./python

Usage

Command line

nft-marker-creator -i pinball.jpg -o output --threads 4

Prints the paths of the written marker files. Options:

Option Description Default
-i, --input Input image (jpg/jpeg/png) (required)
-o, --output Output directory current directory
--dpi Override DPI image metadata/150
--level Tracking extraction level (0–4) 2
--leveli Initialization extraction level (0–3) 1
--threads Worker threads 1

Also runnable as python -m nft_marker_creator ....

Library

import nft_marker_creator as nmc

paths = nmc.create("pinball.jpg", output_dir="output", threads=4)
print(paths)  # ['output/pinball.iset', 'output/pinball.fset', 'output/pinball.fset3']

create(image, output_dir=".", dpi=None, level=2, leveli=1, threads=1) returns the list of written file paths and raises RuntimeError on failure (it never terminates the host process). threads > 1 uses real OS threads; the output is byte-identical regardless of thread count.

Notes

  • Output files: <name>.iset, <name>.fset, <name>.fset3.
  • Marker creation is memory-bandwidth-bound; threading speedup typically plateaus around 4 threads.
  • This package is an additional, native distribution alongside the Node/WASM CLI in the same repository — not a replacement.

License

LGPL-3.0 (same as the parent project).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nft_marker_creator-0.1.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nft_marker_creator-0.1.0-cp313-cp313-win_amd64.whl (395.1 kB view details)

Uploaded CPython 3.13Windows x86-64

nft_marker_creator-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl (371.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

nft_marker_creator-0.1.0-cp312-cp312-win_amd64.whl (395.0 kB view details)

Uploaded CPython 3.12Windows x86-64

nft_marker_creator-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl (371.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

nft_marker_creator-0.1.0-cp311-cp311-win_amd64.whl (393.6 kB view details)

Uploaded CPython 3.11Windows x86-64

nft_marker_creator-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (372.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

nft_marker_creator-0.1.0-cp310-cp310-win_amd64.whl (392.9 kB view details)

Uploaded CPython 3.10Windows x86-64

nft_marker_creator-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (370.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

nft_marker_creator-0.1.0-cp39-cp39-win_amd64.whl (393.1 kB view details)

Uploaded CPython 3.9Windows x86-64

nft_marker_creator-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl (370.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

nft_marker_creator-0.1.0-cp38-cp38-win_amd64.whl (392.9 kB view details)

Uploaded CPython 3.8Windows x86-64

nft_marker_creator-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl (370.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

File details

Details for the file nft_marker_creator-0.1.0.tar.gz.

File metadata

  • Download URL: nft_marker_creator-0.1.0.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nft_marker_creator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41a3b7fad5b5585fbd18f0d8326c2226374a8cfe117eda31fcbcb5d1ede7361f
MD5 f77829c45f9f3779903f1f3eddc88a1f
BLAKE2b-256 8bff4bbd2cbc2e34d9bd9b6ba2cb85b52ae46e00d593f59311972554df244752

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0.tar.gz:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 198aab0d8f898005c0ecca6c6ad18c5b4abe89f5133f35877937876861a2478e
MD5 3ae75a9153f8a75dd0cd0800ef42590a
BLAKE2b-256 76f84b78cb144b2de4b7b76f75256855f691264d2cc63401d0d8376b68a90b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 633587b16a94fcbf6dbfc64a44a6f9c37cb23ea71b755d4b962a520156294b86
MD5 8dff8d461fab3d31d991caf7ad9cc0f4
BLAKE2b-256 68c3221bb19b087cee0b53a14778b0efe47563014870a5564292c40c8f85b5b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 281fc2b90794098a1c71c5fc69146242d0347572ab2d3b6f59cad2ea68e03292
MD5 df66b01bb88c54c97a986e1060c5ba54
BLAKE2b-256 9ec9bcf875864510fdc353c3d561eca528a17aa4d82f8333e24a7f6f8874b4ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4046e97d170cdbe19bc8722b37257c78a4145774bb91458e2bfd5c1200d28023
MD5 ac7b6f05c4a2668a32021bfea528c5ce
BLAKE2b-256 560195ca76fec77cd80ba4d25bb57a69c6e840a4486c993b54cb3133393e7bbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f4f4810448f6eaf9d00af34cade8178966b80d7c43b581a8da15f9120fbcb49
MD5 1881d91b802faf3bc8706a4eb706146c
BLAKE2b-256 794d46af3c319123303aa40fca11f4d245aaef65fd4aaa754ab6af4d473eee25

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c357f326415e4d760b17d4cbb3022276765ec500ee39fe3761ad377650dfd4e
MD5 18f02e83f523135588e1545e86baf2f8
BLAKE2b-256 330cd9980ecbfbb692b918ea013f7d8381931ecfd969bc28db2acd335653bbd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d07d95e56888be71e05e33aa96e28d3fbe52b6bdee7be25724e462cae3a5f01a
MD5 c1fe7be998f993311ff4b14d07af49cf
BLAKE2b-256 c5983763c30927deec7dcf87651f8893f269c6a2f4d0e41fc57c421ed853caf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 da08337eb7e6b0b78510577d3f79943956e515f9497b3d7c1e008eeb0b77dc55
MD5 6a231f53538fecfd89fa95e6a79ee0a2
BLAKE2b-256 dfeb0e0987c3009530f690315094834e0def9eaabf4cac90780d4c3d7ad04c5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2a915ede2746b56a3037e34cd5ad9a7d82091ec511e7b4c190f06766210273eb
MD5 5e2c45b94965844f00a64d6f7e837c0d
BLAKE2b-256 697e8e5182c16c9f25c49402dcf61b123b7194119c4131c0749a0e1e2c38a4a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp39-cp39-win_amd64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d98d4d6c23d33ffaf733bb3c4a52fa45c0a2f9cb55023e5dda53f145b65f0e72
MD5 5e3ebb2a8ed48761a5ea7f5f18f7ceaf
BLAKE2b-256 0645556d5dd02ec382bb7a796e5361200ecd4c60352c753268c8b265854d9306

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5f423250b0bdbcb5fd21ec99b6690c651c1af6fbcf577f04366925b8041afae0
MD5 a296ea2ec5ba6b8da6c498b54b68652b
BLAKE2b-256 79d689499d024e88cb3891820b828243ac082791bd18710429278155b02590fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp38-cp38-win_amd64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nft_marker_creator-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nft_marker_creator-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6729503370c1beb5ab0646bf9fe87b58edf1511b911cae2fd37ae66ecd273218
MD5 e9a4da7858c11d121230c2b627a90bf2
BLAKE2b-256 45b15e3b9c25b40aa8940eb1aee37e465af68aa453c842eee9133c7d02495c58

See more details on using hashes here.

Provenance

The following attestation bundles were made for nft_marker_creator-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on webarkit/Nft-Marker-Creator-App

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page