Skip to main content

No project description provided

Project description

Generic Binary Sharding Tool

This tool is a Generic Binary Sharding tool which serializes binaries into a javascript package where each file is at max a specified shard size.

How it Works

This tool works by determining all the files that match the given criterion (extensions and paths). We read all of these files and store the base64 encoding of their bytes in a dictionary. Later we write a bunch of js files having a maximum of shard_size megabytes size. By default this is set to 64MB.

Finally an entrypoint file is provided which requires all the appropriate files.

DCP Modules

This tool was built to aid in development of dcp packages and for publishing extremely large models and binary files. As such, we've also included some dcp based package generation features.

These features take advantage of a feature bravojs module packages have called module.provide. This feature allows users to request packages to load in dynamically that weren't explicitly required by job.requires.

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

generic_binary_sharding-0.1.5.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

generic_binary_sharding-0.1.5-py3-none-any.whl (8.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