file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/main/kotlin/com/wire/apps/jira/core/exceptions/DomainExceptions.kt
Kotlin
package com.wire.apps.jira.core.exceptions /** * Base exception for all domain-related errors */ sealed class DomainException( message: String, cause: Throwable? = null, ) : Exception(message, cause) /** * Thrown when a Jira issue is not found */ class JiraIssueNotFoundException( key: String, ) : Doma...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/core/model/JiraIssue.kt
Kotlin
package com.wire.apps.jira.core.model data class JiraIssue( val key: String, val summary: String, val assignee: String, val status: String, val epicLink: String?, val sprintName: String?, )
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/di/ModulesConfig.kt
Kotlin
package com.wire.apps.jira.di import com.wire.apps.jira.api.CommandHandler import com.wire.apps.jira.api.CommandMapper import com.wire.apps.jira.api.HealthController import com.wire.apps.jira.core.GetJiraIssue import com.wire.apps.jira.core.JiraRepository import com.wire.apps.jira.core.MessagingGateway import com.wire...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/config/AppConfig.kt
Kotlin
package com.wire.apps.jira.infra.config import com.wire.apps.jira.di.ModulesConfig.allModules import com.wire.sdk.service.WireApplicationManager import io.javalin.Javalin import io.javalin.http.HttpStatus import org.koin.core.component.KoinComponent import org.koin.core.component.inject import org.koin.core.context.st...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/config/JacksonConfig.kt
Kotlin
package com.wire.apps.jira.infra.config import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.SerializationFeature import io.javalin.json.JavalinJackson object JacksonConfig { fun configure(): ObjectMapper = Ja...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/config/OutboundHttpClientConfig.kt
Kotlin
package com.wire.apps.jira.infra.config import com.fasterxml.jackson.databind.ObjectMapper import java.net.URI import java.net.http.HttpClient import java.net.http.HttpRequest import java.net.http.HttpResponse import java.time.Duration import java.util.Base64 import java.util.concurrent.CompletableFuture class Outbou...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/JiraHttpClient.kt
Kotlin
package com.wire.apps.jira.infra.external import com.wire.apps.jira.infra.config.OutboundHttpClientConfig import com.wire.apps.jira.infra.external.dto.JiraIssueResponseDTO import org.slf4j.LoggerFactory import java.util.concurrent.CompletableFuture /** * HTTP client for fetching Jira issues from the Jira API. * Ret...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/dto/JiraEpicLinkDTO.kt
Kotlin
package com.wire.apps.jira.infra.external.dto import com.fasterxml.jackson.annotation.JsonIgnoreProperties @JsonIgnoreProperties(ignoreUnknown = true) data class JiraEpicLinkDTO( val key: String, )
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/dto/JiraIssueFieldsDTO.kt
Kotlin
package com.wire.apps.jira.infra.external.dto import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty // === Only the fields you care about === @JsonIgnoreProperties(ignoreUnknown = true) data class JiraIssueFieldsDTO( val summary: String, // Title val...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/dto/JiraIssueResponseDTO.kt
Kotlin
package com.wire.apps.jira.infra.external.dto import com.fasterxml.jackson.annotation.JsonIgnoreProperties // === Root Response === @JsonIgnoreProperties(ignoreUnknown = true) data class JiraIssueResponseDTO( val key: String, val fields: JiraIssueFieldsDTO, )
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/dto/JiraSprintDTO.kt
Kotlin
package com.wire.apps.jira.infra.external.dto import com.fasterxml.jackson.annotation.JsonIgnoreProperties @JsonIgnoreProperties(ignoreUnknown = true) data class JiraSprintDTO( val name: String, )
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/dto/JiraStatusDTO.kt
Kotlin
package com.wire.apps.jira.infra.external.dto import com.fasterxml.jackson.annotation.JsonIgnoreProperties // === Tiny nested models === @JsonIgnoreProperties(ignoreUnknown = true) data class JiraStatusDTO( val name: String, )
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/external/dto/JiraUserDTO.kt
Kotlin
package com.wire.apps.jira.infra.external.dto import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty @JsonIgnoreProperties(ignoreUnknown = true) data class JiraUserDTO( @JsonProperty("displayName") val displayName: String, )
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/messaging/WireMessagingGateway.kt
Kotlin
package com.wire.apps.jira.infra.messaging import com.wire.apps.jira.core.MessagingGateway import com.wire.apps.jira.core.exceptions.MessagingException import com.wire.sdk.model.QualifiedId import com.wire.sdk.model.WireMessage import com.wire.sdk.service.WireApplicationManager import org.slf4j.LoggerFactory /** * I...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
src/main/kotlin/com/wire/apps/jira/infra/repository/JiraRepositoryImpl.kt
Kotlin
package com.wire.apps.jira.infra.repository import com.wire.apps.jira.core.JiraRepository import com.wire.apps.jira.core.exceptions.JiraConnectionException import com.wire.apps.jira.core.exceptions.JiraIssueNotFoundException import com.wire.apps.jira.core.model.JiraIssue import com.wire.apps.jira.infra.external.JiraHt...
wireapp/jira-app
0
Jira app demo for wire integration using the jvm sdk.
Kotlin
wireapp
Wire Swiss GmbH
pysrc/__init__.py
Python
import enoki from ._ek_python_test import *
wjakob/ek_python_test
9
Enoki + pybind11 example project
CMake
wjakob
Wenzel Jakob
EPFL
setup.py
Python
import setuptools try: from skbuild import setup import pybind11 except ImportError: print("The preferred way to invoke 'setup.py' is via pip, as in 'pip " "install .'. If you wish to run the setup script directly, you must " "first install the build dependencies listed in pyproject.tom...
wjakob/ek_python_test
9
Enoki + pybind11 example project
CMake
wjakob
Wenzel Jakob
EPFL
src/ek_python_test.cpp
C++
#include <enoki/array.h> #include <enoki/math.h> #include <enoki/cuda.h> #include <pybind11/pybind11.h> // Import pybind11 and Enoki namespaces namespace py = pybind11; namespace ek = enoki; // The function we want to expose in Python template <typename Float> ek::Array<Float, 3> sph_to_cartesian(Float theta, Float ...
wjakob/ek_python_test
9
Enoki + pybind11 example project
CMake
wjakob
Wenzel Jakob
EPFL
cmake/collect-symbols-pypy.py
Python
from urllib.request import urlopen import tarfile import subprocess funcs: "set[str]" = set() files = [ ('https://downloads.python.org/pypy/pypy3.9-v7.3.11-macos_arm64.tar.bz2', 'pypy3.9-v7.3.11-macos_arm64/bin/libpypy3.9-c.dylib'), ('https://downloads.python.org/pypy/pypy3.11-v7.3.20-macos_arm64.tar.bz2', 'p...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
cmake/collect-symbols.py
Python
#!/usr/bin/env python3 # # This script collects a list of symbols that are considered to be part of the # CPython API. The result is used to inform the macOS linker that it's fine for # those symbols to be undefined when an extension module is linked, as they # will be provided when the extension module is loaded into ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
cmake/darwin-python-path.py
Python
#!/usr/bin/env python3 # On macOS, system python binaries like /usr/bin/python and $(xcrun -f python3) # are shims. They do some light validation work and then spawn the "real" python # binary. Find the "real" python by asking dyld -- sys.executable reports the # wrong thing more often than not. This is also useful wh...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
cmake/nanobind-config.cmake
CMake
include_guard(GLOBAL) if (NOT TARGET Python::Module) message(FATAL_ERROR "You must invoke 'find_package(Python COMPONENTS Interpreter Development REQUIRED)' prior to including nanobind.") endif() if (Python_VERSION VERSION_LESS "3.9") message(FATAL_ERROR "nanobind requires Python 3.9 or newer (found Python ${Pyth...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
docs/conf.py
Python
#!/usr/bin/env python3 # import os import re # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
docs/cppyy.h
C/C++ Header
float test_0000(uint16_t a, int32_t b, uint32_t c, int64_t d, uint64_t e, float f) { return a + b + c + d + e + f; } struct Struct0 { uint16_t a; int32_t b; uint32_t c; int64_t d; uint64_t e; float f; Struct0(uint16_t a, int32_t b, uint32_t c, int64_t d, uint64_t e, floa...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/eigen/dense.h
C/C++ Header
/* nanobind/eigen/dense.h: type casters for dense Eigen vectors and matrices Copyright (c) 2023 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/ndarray.h> #include <Eigen/Core> ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/eigen/sparse.h
C/C++ Header
/* nanobind/eigen/sparse.h: type casters for sparse Eigen matrices Copyright (c) 2023 Henri Menke and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/ndarray.h> #include <nanobind/e...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/eval.h
C/C++ Header
/* nanobind/eval.h: Support for evaluating Python expressions and statements from strings Adapted by Nico Schlömer from pybind11's eval.h. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #incl...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/intrusive/counter.h
C/C++ Header
/* nanobind/intrusive/counter.h: Intrusive reference counting sample implementation. Intrusive reference counting is a simple solution for various lifetime and ownership-related issues that can arise in Python bindings of C++ code. The implementation here represents one of many ways in which intrus...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/intrusive/ref.h
C/C++ Header
/* nanobind/intrusive/ref.h: This file defines the ``ref<T>`` RAII scoped reference counting helper class. When included following ``nanobind/nanobind.h``, the code below also exposes a custom type caster to bind functions taking or returning ``ref<T>``-typed values. Copyright (c) 2023 Wenzel ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/make_iterator.h
C/C++ Header
/* nanobind/make_iterator.h: nb::make_[key,value_]iterator() This implementation is a port from pybind11 with minimal adjustments. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #in...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nanobind.h
C/C++ Header
/* nanobind/nanobind.h: Main include file for core nanobind components Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #if __cplusplus < 201703L && (!defined(_MSVC_LANG) || _MSVC_LA...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_accessor.h
C/C++ Header
/* nanobind/nb_accessor.h: Accessor helper class for .attr(), operator[] Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) #define NB_DECL_ACC...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_attr.h
C/C++ Header
/* nanobind/nb_attr.h: Annotations for function and class declarations Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) struct scope { PyObject *value; NB_IN...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_call.h
C/C++ Header
/* nanobind/nb_call.h: Functionality for calling Python functions from C++ Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) #if defined(_MSC_...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_cast.h
C/C++ Header
/* nanobind/nb_cast.h: Type caster interface and essential type casters Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #define NB_TYPE_CASTER(Value_, descr) ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_class.h
C/C++ Header
/* nanobind/nb_class.h: Functionality for binding C++ classes/structs Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) /// Flags about a type...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_defs.h
C/C++ Header
/* nanobind/nb_defs.h: Preprocessor definitions used by the project Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #define NB_STRINGIFY(x) #x #define NB_TOSTRING(x) NB_STRINGIFY(x)...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_descr.h
C/C++ Header
/* nanobind/nb_descr.h: Constexpr string class for function signatures Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) /// Helper type for c...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_enums.h
C/C++ Header
/* nanobind/nb_enums.h: enumerations used in nanobind (just rv_policy atm.) Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) // Approach used to cast a previously un...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_error.h
C/C++ Header
/* nanobind/nb_error.h: Python exception handling, binding of exceptions Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) /// RAII wrapper that temporarily clears an...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_func.h
C/C++ Header
/* nanobind/nb_func.h: Functionality for binding C++ functions/methods Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) template <typename Ca...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_lib.h
C/C++ Header
/* nanobind/nb_lib.h: Interface to libnanobind.so Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(dlpack) // The version of DLPack that is supporte...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_misc.h
C/C++ Header
/* nanobind/nb_misc.h: Miscellaneous bits (GIL, etc.) Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) struct gil_scoped_acquire { public: NB_NONCOPYABLE(gil_sco...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_python.h
C/C++ Header
/* nanobind/nb_python.h: Include CPython headers while temporarily disabling certain warnings. Also, disable dangerous preprocessor definitions. Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_traits.h
C/C++ Header
/* nanobind/nb_traits.h: type traits for metaprogramming in nanobind Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) using ssize_t = std::make_signed_t<size_t>; NAM...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_tuple.h
C/C++ Header
/* nanobind/nb_tuple.h: tiny self-contained tuple class Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) /** * \brief nanobind::tuple<...>: ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/nb_types.h
C/C++ Header
/* nanobind/nb_types.h: nb::dict/str/list/..: C++ wrappers for Python types Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ NAMESPACE_BEGIN(NB_NAMESPACE) /// Macro defining functions/constructor...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/ndarray.h
C/C++ Header
/* nanobind/ndarray.h: functionality to exchange n-dimensional arrays with other array programming frameworks (NumPy, PyTorch, etc.) Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. The API b...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/operators.h
C/C++ Header
/* nanobind/operators.h: convenience functionality for operator overloading Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB_NAMESPA...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/array.h
C/C++ Header
/* nanobind/stl/array.h: type caster for std::array<...> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_array.h" #include <array> NAMESPACE_BEGIN(NB_NAMESPACE)...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/bind_map.h
C/C++ Header
/* nanobind/stl/bind_map.h: Automatic creation of bindings for map-style containers All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <nanobind/make_iterator.h> #include <nanobind/...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/bind_vector.h
C/C++ Header
/* nanobind/stl/bind_vector.h: Automatic creation of bindings for vector-style containers Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <na...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/chrono.h
C/C++ Header
/* nanobind/stl/chrono.h: conversion between std::chrono and python's datetime Copyright (c) 2023 Hudson River Trading LLC <opensource@hudson-trading.com> and Trent Houliston <trent@houliston.me> and Wenzel Jakob <wenzel.jakob@epfl.ch> All rights reserved. Use...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/complex.h
C/C++ Header
/* nanobind/stl/complex.h: type caster for std::complex<...> Copyright (c) 2023 Degottex Gilles and Wenzel Jakob Copyright (c) 2025 High Performance Kernels LLC All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/chrono.h
C/C++ Header
/* nanobind/stl/chrono.h: conversion between std::chrono and python's datetime Copyright (c) 2023 Hudson River Trading LLC <opensource@hudson-trading.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <n...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/nb_array.h
C/C++ Header
#pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) template <typename Array, typename Entry, size_t Size> struct array_caster { NB_TYPE_CASTER(Array, io_name("collections.abc.Sequence", "list") + const_name("[") + make_caster<Entry>::Na...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/nb_dict.h
C/C++ Header
/* nanobind/stl/detail/nb_dict.h: base class of dict casters Copyright (c) 2022 Matej Ferencevic and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB_...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/nb_list.h
C/C++ Header
/* nanobind/stl/detail/nb_list.h: base class of list casters Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/nb_optional.h
C/C++ Header
/* nanobind/stl/optional.h: type caster for std::optional<...> Copyright (c) 2022 Yoshiki Matsuda and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/nb_set.h
C/C++ Header
/* nanobind/stl/detail/nb_set.h: base class of set casters Copyright (c) 2022 Raymond Yun Fei and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB_NAM...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/detail/traits.h
C/C++ Header
/* nanobind/stl/detail/traits.h: detail::is_copy_constructible<T> partial overloads for STL types Adapted from pybind11. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPAC...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/filesystem.h
C/C++ Header
/* nanobind/stl/filesystem.h: type caster for std::filesystem Copyright (c) 2023 Qingnan Zhou and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <filesystem> #...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/function.h
C/C++ Header
/* nanobind/stl/function.h: type caster for std::function<...> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <functional> NAMESPACE_BEGIN(...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/list.h
C/C++ Header
/* nanobind/stl/list.h: type caster for std::list<...> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_list.h" #include <list> NAMESPACE_BEGIN(NB_NAMESPACE) NAM...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/map.h
C/C++ Header
/* nanobind/stl/map.h: type caster for std::map<...> Copyright (c) 2022 Matej Ferencevic and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_dict.h" #include <map> NAMESPACE_BEGIN...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/optional.h
C/C++ Header
/* nanobind/stl/optional.h: type caster for std::optional<...> Copyright (c) 2022 Yoshiki Matsuda and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_optional.h" #include <optional...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/pair.h
C/C++ Header
/* nanobind/stl/pair.h: type caster for std::pair<...> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <utility> NAMESPACE_BEGIN(NB_NAMESPAC...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/set.h
C/C++ Header
/* nanobind/stl/set.h: type caster for std::set<...> Copyright (c) 2022 Raymond Yun Fei and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_set.h" #include <set> NAMESPACE_BEGIN(N...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/shared_ptr.h
C/C++ Header
/* nanobind/stl/shared_ptr.h: Type caster for std::shared_ptr<T> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <memory> NAMESPACE_BEGIN(NB...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/string.h
C/C++ Header
/* nanobind/stl/string.h: type caster for std::string Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <string> NAMESPACE_BEGIN(NB_NAMESPACE)...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/string_view.h
C/C++ Header
/* nanobind/stl/string_view.h: type caster for std::string_view Copyright (c) 2022 Qingnan Zhou and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <string_view...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/tuple.h
C/C++ Header
/* nanobind/stl/tuple.h: type caster for std::tuple<...> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <tuple> NAMESPACE_BEGIN(NB_NAMESPAC...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/unique_ptr.h
C/C++ Header
/* nanobind/stl/unique_ptr.h: Type caster for std::unique_ptr<T> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <memory> NAMESPACE_BEGIN(NB...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/unordered_map.h
C/C++ Header
/* nanobind/stl/unordered_map.h: type caster for std::unordered_map<...> Copyright (c) 2022 Matej Ferencevic and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_dict.h" #include <u...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/unordered_set.h
C/C++ Header
/* nanobind/stl/unordered_set.h: type caster for std::unordered_set<...> Copyright (c) 2022 Raymond Yun Fei and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_set.h" #include <uno...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/variant.h
C/C++ Header
/* nanobind/stl/variant.h: type caster for std::variant<...> Copyright (c) 2022 Yoshiki Matsuda and Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <variant> N...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/vector.h
C/C++ Header
/* nanobind/stl/vector.h: type caster for std::vector<...> Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/nb_list.h" #include <vector> NAMESPACE_BEGIN(NB_NAMESPAC...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/stl/wstring.h
C/C++ Header
/* nanobind/stl/string.h: type caster for std::string Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> #include <string> NAMESPACE_BEGIN(NB_NAMESPACE)...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/trampoline.h
C/C++ Header
/* nanobind/trampoline.h: functionality for overriding C++ virtual functions from within Python Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> N...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
include/nanobind/typing.h
C/C++ Header
/* nanobind/typing.h: Optional typing-related functionality Copyright (c) 2024 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include <nanobind/nanobind.h> NAMESPACE_BEGIN(NB_NAMESPACE) inline mod...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/__init__.py
Python
import sys import os if sys.version_info < (3, 9): raise ImportError("nanobind does not support Python < 3.9.") def source_dir() -> str: "Return the path to the nanobind source directory." return os.path.join(os.path.abspath(os.path.dirname(__file__)), "src") def include_dir() -> str: "Return the pat...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/__main__.py
Python
import argparse import sys import sysconfig # type: ignore from . import __version__, include_dir, cmake_dir def main() -> None: parser = argparse.ArgumentParser() parser.add_argument( "--version", action="version", version=__version__, help="Print the version number.", )...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/buffer.h
C/C++ Header
#pragma once #include <string.h> #include <stdarg.h> #include <stdio.h> // vsnprintf NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) struct Buffer { public: // Disable copy/move constructor and assignment Buffer(const Buffer &) = delete; Buffer(Buffer &&) = delete; Buffer &operator=(const Buffe...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/common.cpp
C++
/* src/common.cpp: miscellaneous libnanobind functionality Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <nanobind/nanobind.h> #include <complex> #include "nb_internals.h" NAMESPACE_B...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/error.cpp
C++
/* src/error.cpp: libnanobind functionality for exceptions Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <nanobind/nanobind.h> #include <cstdarg> #include "buffer.h" #include "nb_inter...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/hash.h
C/C++ Header
//----------------------------------------------------------------------------- // Slightly adapted version of the MurmurHash3 codebase (originally by Austin // Appleby, in the public domain) // // The changes are as follows: // // - fmix32 and fmix64 are exported to other compilation units, since they // are useful ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/implicit.cpp
C++
/* src/implicit.cpp: functions for registering implicit conversions Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <nanobind/trampoline.h> #include "nb_internals.h" NAMESPACE_BEGIN(NB_...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_abi.h
C/C++ Header
/* src/nb_abi.h: this file computes tags that are used to isolate extensions from each other in the case of platform or nanobind-related ABI incompatibilities. The file is included by ``nb_internals.cpp`` and should not be used directly. The implementation of this file (specifically, the NB_PLATFORM_ABI...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_combined.cpp
C++
/* You can use this file to compile bindings using alternative build systems in case the dependence on CMake is problematic. The following instructions illustrate how to do this Linux. The commands will need to be updated to target other operating systems, but that is beyond the scope of this writeup. To in...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_enum.cpp
C++
#include "nb_internals.h" #include "nb_ft.h" NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) struct int64_hash { size_t operator()(const int64_t value) const { return (size_t) fmix64((uint64_t) value); } }; // This data structure is used to map Python instances to integers as well as // the inv...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_ft.cpp
C++
#include <nanobind/nanobind.h> #include "nb_ft.h" #if defined(Py_GIL_DISABLED) /// Make an object immortal when targeting free-threaded Python void make_immortal(PyObject *op) noexcept { // See CPython's Objects/object.c if (PyObject_IS_GC(op)) PyObject_GC_UnTrack(op); op->ob_tid = _Py_UNOWNED_TID;...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_ft.h
C/C++ Header
/* src/nb_ft.h: implementation details related to free-threaded Python Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #if !defined(Py_GIL_DISABLED) /// Trivial implementations for ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_func.cpp
C++
/* src/nb_func.cpp: nanobind function type Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "nb_internals.h" #include "buffer.h" #include "nb_ft.h" /// Maximum number of arguments suppor...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_internals.cpp
C++
/* src/internals.cpp: internal libnanobind data structures Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <nanobind/nanobind.h> #include <structmember.h> #include "nb_internals.h" #incl...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_internals.h
C/C++ Header
#pragma once #if defined(__GNUC__) // Don't warn about missing fields in PyTypeObject declarations # pragma GCC diagnostic ignored "-Wmissing-field-initializers" #elif defined(_MSC_VER) // Silence warnings that MSVC reports in robin_*.h # pragma warning(disable: 4127) // conditional expression is constant # pragma ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_ndarray.cpp
C++
#include <nanobind/ndarray.h> #include <atomic> #include <memory> #include "nb_internals.h" NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(dlpack) /// Indicates the managed_dltensor_versioned is read only. static constexpr uint64_t flag_bitmask_read_only = 1UL << 0; struct version { uint32_t major; uint32_t ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_static_property.cpp
C++
#include "nb_internals.h" NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail) /// `nb_static_property.__get__()`: Always pass the class instead of the instance. static PyObject *nb_static_property_descr_get(PyObject *self, PyObject *, PyObject *cls) { // Flag to avoid infinite recursion during static attribute...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/nb_type.cpp
C++
/* src/nb_type.cpp: libnanobind functionality for binding classes Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "nb_internals.h" #include "nb_ft.h" #if defined(_MSC_VER) # pragma war...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/stubgen.py
Python
#!/usr/bin/env python3 # pyright: strict """ stubgen.py: nanobind stub generation tool This file provides both an API (``nanobind.stubgen.StubGen``) and a command line interface to generate stubs for nanobind extensions. To generate stubs on the command line, invoke the stub generator with a module name, which will ...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL
src/trampoline.cpp
C++
/* src/trampoline.cpp: support for overriding virtual functions in Python Copyright (c) 2022 Wenzel Jakob All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <nanobind/trampoline.h> #include "nb_internals.h" NAMESPACE_BEG...
wjakob/nanobind
3,353
nanobind: tiny and efficient C++/Python bindings
C++
wjakob
Wenzel Jakob
EPFL