Skip to main content

Python bindings for spdlog

Project description

spydlog

Python bindings for spdlog using nanobind.

CI codecov

3.9 3.10 3.11 3.12 3.13 3.14

Linux macOS Windows

Installation

Supported Python versions ranges from 3.9 (minimum version) up to the latest (3.14). Supported platforms are Windows, Linux and MacOs.

pip install spydlog

Documentation

Please refer to the official documentation of spdlog and see the documentation for examples.

Performance

A benchmark against the native logger module is avaiable in benchmarks. The results are great, but some improvements can be made to the bindings (for console-logging especially).

Library Scenario Messages/Second Speedup vs Python
Python Console 5,093 1.0x
Python File 37,270 1.0x
Python Disabled 6,583,365 1.0x
spydlog Console (MT) 13,651 2.7x
spydlog Console (ST) 13,388 2.6x
spydlog File (MT) 1,302,138 34.9x
spydlog File (ST) 1,390,776 37.3x
spydlog Async File 2,305,422 61.9x
spydlog Disabled 3,955,180 0.6x

License and attribution

All material in this repository is licensed under an MIT License.

Acknowledgement

Some code and text of this repository has been generated by AI using Claude, via the web interface.

  • Python test code has initially been generated by Claude and modified by the author.
  • Python Stubs have been auto-generated by nanobind and fixed by Claude for better type inference and clear wrapping of C++ types not converted correctly by the nanobind generator.
  • Documentation has been generated by Claude given the existing stubs and code.
  • Benchmark code has been generated by Claude.

Although LLMs are not on-par with a human brain for everything, they do a good job when it comes to summarizing/generating text given a good input, that's why it was practical to use them in that case. Critical code (cpp bindings) has been written by hand and carefully reviewed and tested.

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

spydlog-1.0.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

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

spydlog-1.0.0-cp314-cp314-win_amd64.whl (188.8 kB view details)

Uploaded CPython 3.14Windows x86-64

spydlog-1.0.0-cp314-cp314-macosx_11_0_arm64.whl (167.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

spydlog-1.0.0-cp314-cp314-macosx_10_15_x86_64.whl (184.4 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

spydlog-1.0.0-cp313-cp313-win_amd64.whl (182.7 kB view details)

Uploaded CPython 3.13Windows x86-64

spydlog-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (167.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

spydlog-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl (184.4 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

spydlog-1.0.0-cp312-cp312-win_amd64.whl (182.7 kB view details)

Uploaded CPython 3.12Windows x86-64

spydlog-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (167.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

spydlog-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl (184.5 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

spydlog-1.0.0-cp311-cp311-win_amd64.whl (183.1 kB view details)

Uploaded CPython 3.11Windows x86-64

spydlog-1.0.0-cp311-cp311-macosx_11_0_arm64.whl (167.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

spydlog-1.0.0-cp311-cp311-macosx_10_13_x86_64.whl (184.4 kB view details)

Uploaded CPython 3.11macOS 10.13+ x86-64

spydlog-1.0.0-cp310-cp310-win_amd64.whl (182.9 kB view details)

Uploaded CPython 3.10Windows x86-64

spydlog-1.0.0-cp310-cp310-macosx_11_0_arm64.whl (167.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

spydlog-1.0.0-cp310-cp310-macosx_10_13_x86_64.whl (184.0 kB view details)

Uploaded CPython 3.10macOS 10.13+ x86-64

spydlog-1.0.0-cp39-cp39-win_amd64.whl (183.3 kB view details)

Uploaded CPython 3.9Windows x86-64

spydlog-1.0.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (243.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

spydlog-1.0.0-cp39-cp39-macosx_11_0_arm64.whl (167.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

spydlog-1.0.0-cp39-cp39-macosx_10_13_x86_64.whl (184.2 kB view details)

Uploaded CPython 3.9macOS 10.13+ x86-64

File details

Details for the file spydlog-1.0.0.tar.gz.

File metadata

  • Download URL: spydlog-1.0.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a4ef4b7a12c2762d1eabe65ae47db8be5ced8e2e56213b5c85ab8e3aabb56f08
MD5 5a9c9cded8351b70cbbeb9b5d4b28552
BLAKE2b-256 aa105efea8fe9a7d5e1f7b9ad8e87b4646741f6876d480cdce725bde4d7b5c54

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0.tar.gz:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: spydlog-1.0.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 188.8 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d307174bda0947994d51fafed11e400ed71d6c4c58381449bb76e6040fc8ac3f
MD5 1fd04f52fdae295b91565603692ef05c
BLAKE2b-256 92e7ce6ea7f39e68cd743b56e10766fb55b0fd9059ec987979d445ce27f4cc83

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp314-cp314-win_amd64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4988f58834f03fcbeb0ff6d83296e7ffdc2ba6de4ed05633d5aa5a0e138dcd37
MD5 4164c706be2f3387796fcaf8654fdde7
BLAKE2b-256 b7f5e8955d061ce70bbfe7a1a907d435c7d5a5eb786cf945119dbffc42476e1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 373cb0bbb69ebada18f50f6784e0ba37a2e4a184a6e861b6b2e3dfbc7ff72339
MD5 3a03ea04e94890a6cd17cb3f993314ff
BLAKE2b-256 8a1c69348b133d1eb19c354d1d3f5a5d086155d584f9b85835d3ba871e4d818a

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp314-cp314-macosx_10_15_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: spydlog-1.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 182.7 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8e8e80de78f81c1ad1692e373156e975e0cdf26fb6218e75c7de5c872422e923
MD5 5e4dad15036051a679b98c9239729e19
BLAKE2b-256 af6877b9df8fc82c4e5846a0be4fe20eaa997ce4b1e7da1cece06e22eef83edb

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8c6b50d3dff70f000a61b97f2cd5ae620204c8dd2cb599c21f27aeae7d84663
MD5 a842468b5c81aeb075763ee3419420af
BLAKE2b-256 6a15721a8e5d62982376b8599a5875ccbd1e4a8a304fd26636a48e5c422845d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b5570cafcf1d93debd660bed84008ba061861436312b27cdd63a5d72392c4acf
MD5 6e23ac01d771a0f33879a9b725713ae7
BLAKE2b-256 5a7c15fcf1a9b5c8d161aa06eb7c261655070c1b843997b4eb9d7f5356ae84db

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: spydlog-1.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 182.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 96cb3f038ee4918af3837dab673aaf876cb3e9de4cebad4e37f5ac7a2b348946
MD5 1a3e1ac7f1a0098e9ee50f05513f8516
BLAKE2b-256 2e37f5abefe5851690cd241e72460af045e2db96a3e416ada6b13ececdf61188

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 032a8386c461141a9d8cf69a2a97ddeeda4593b58e0dccde62a75e796a6cbf21
MD5 90ce8131140bba7db36f91011a3aad08
BLAKE2b-256 6d41ba3f8982790f7f2303908bfb6f8cb9ed210b93b0c1be33d928d7ee7b8bb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f95d172344b1612909f65cbc761a821683aee7e6766a054986116ccc18b0e9f7
MD5 9fb6501a80046242c6d1cfb35ea30c51
BLAKE2b-256 6fd46a5e00d348fbbe4c297c68c5ba80077762100dd2fa158fb2e119d85c3d1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: spydlog-1.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 183.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a99b8102a93ad0b34637893faedb70dabdf5f02d665dd78fcdddae31a13ab600
MD5 40addaa8b861612240693c4d427b4f81
BLAKE2b-256 177ca32d614e4bd528c24e7a78adb509475a6f813859507ebbb0df7760465870

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 657b7e2ffc4c326d21783851b38be7a1dc9b81afc6fed6b83c543ba1c07b55a3
MD5 d1231ab7a1180023019f6125694be117
BLAKE2b-256 88eb30fe5fa49e97071c92bc7d95f6b778677eed93c559722e63c67b7127de1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp311-cp311-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp311-cp311-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a0b855ffd0ab4bfdbb8fdfd15a28bd8f1b59ce8c9633783ef4356b2863ea4ed5
MD5 ce950f3e68daac77e0a7744d2afb1913
BLAKE2b-256 a56dfa5947ca74652a70130a577cec6b6d29ec93c2a9659d481ff16fdc9a5ef2

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp311-cp311-macosx_10_13_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: spydlog-1.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 182.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0cef9bdf1ef82cc62e844ad85c3b17c286787592836c7a94043d5266b29710e2
MD5 c27ddb3c5f3571cade8f8ab0ac08a575
BLAKE2b-256 2787906eb5e92b6b3b573234f7e393038715c698b6808c3d97f09cdf6a1894d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp310-cp310-win_amd64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c010359ff35297f0b259ad8a0ea2cbc622d711f946d338173cdf9c4f90e340f5
MD5 35cc34bce16a0fc1a374320b0770b013
BLAKE2b-256 2b2454b1b24c03c65d7000bf02a222364998941672b08706efa2c34adb3fbfef

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 43a9949c99ef5b3a0d83a4aa401349a039398dc2552c4d3baa94515549f134a9
MD5 f145e5f4ca1b1fb844bdcff4e0e186a8
BLAKE2b-256 0d21483e44f7467f22d4a39388f2f53d0123d4a5969772a25612ded93560f345

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp310-cp310-macosx_10_13_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: spydlog-1.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 183.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spydlog-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c3ccade5b8e2c7e0e8ea94309efa95f4f0f9b0ff5ef99565843bdd48c2ab8c04
MD5 364fb48f47c3479aba6f9e657b748b26
BLAKE2b-256 43504ce93152597e831bbce26dcc2e20b14a15c5524208b1f52970b457c3b311

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp39-cp39-win_amd64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1fccfd63d3928b27b3ef79a02bf22e9a2bc03aeb6a79ff02247f78ea49cdc354
MD5 185b2c7a5eec24311540c7320635e412
BLAKE2b-256 ecef52563b61c84e3b436f7282d410a93bbe18b9e7d3596c93da3bea38247137

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97aed114cc9a46e8ca4fd478bedb12889a84568ccfa8237395519e3b5fb4ceb9
MD5 afe4bad806bbb15e9e63e7b808c34eb2
BLAKE2b-256 2a743201ee926457937dcd3a7b85b2f67aef81ca60ca12cd66d14d31b08e2757

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: release.yml on romainaugier/spydlog

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

File details

Details for the file spydlog-1.0.0-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for spydlog-1.0.0-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d916348f37579f8a795d957d1e741ce86861b6870325fb12a7307b35ff03e2bf
MD5 fb4c9ec7a92f6282f208e68ba7796d3e
BLAKE2b-256 e7d1f610d576508f0e05e4c8f7f772bad2f1ca3e0c53d79d592fea41034f8a68

See more details on using hashes here.

Provenance

The following attestation bundles were made for spydlog-1.0.0-cp39-cp39-macosx_10_13_x86_64.whl:

Publisher: release.yml on romainaugier/spydlog

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