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.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

generic_binary_sharding-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file generic-binary-sharding-0.1.0.tar.gz.

File metadata

  • Download URL: generic-binary-sharding-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-58-generic

File hashes

Hashes for generic-binary-sharding-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb29e7403dd168bc631c8a734ca1920f9a64d0c2f8ffe1311b9b8cd630314d16
MD5 d152417b3aac98a27970fd40f9de820b
BLAKE2b-256 3a11c034c2da25a2ad6450fb4e298a25f3e19d64886a638694331dd95a7b87d2

See more details on using hashes here.

File details

Details for the file generic_binary_sharding-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for generic_binary_sharding-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c549e170d8efdcfe2b50bc6976d019f6c3bae146610a2f79661eb288df32d51
MD5 af3796811fea81f420ff54d737932913
BLAKE2b-256 b64cae63ccd0bb3c6d5fba8b66f0182b6ba815927138912f0a762f2d79cad049

See more details on using hashes here.

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