Skip to main content

Read & write JavaScript values from Python with the V8 serialization format.

Project description

The v8serialize logo. Monochome. Large "V8" and smaller "serialize" in a handwritten style, with the 8 stylized to look like a snake.

v8serialize

Read & write JavaScript values in V8 serialization format with Python.

Byte order/endianness

V8 uses the native byte order when serialising data. This library explicitly uses little endian. This is because:

  • The vast majority of systems using V8 are little endian
  • Because the serialized byte order is native, when people use it to store persistent data they are probably assuming little-endian systems will read it later.
  • I don't have a big-endian system or VM to test against

In principle there's no thing to stop prevent adding big endian support though.

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

v8serialize-0.1.0a1.tar.gz (80.9 kB view hashes)

Uploaded Source

Built Distribution

v8serialize-0.1.0a1-py3-none-any.whl (96.9 kB view hashes)

Uploaded Python 3

Supported by

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