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.1.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.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file generic_binary_sharding-0.1.1.tar.gz.

File metadata

  • Download URL: generic_binary_sharding-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.2 Linux/5.15.0-58-generic

File hashes

Hashes for generic_binary_sharding-0.1.1.tar.gz
Algorithm Hash digest
SHA256 23b2da8142742986994d4c511dff77c610f6cd06deb946b08f13af6aec4d31fb
MD5 051caf257b277f8104a37d2b22724f26
BLAKE2b-256 07a7d9bdeb2af893f892f94ee8193e143738551022e8f07d032b464b0edbdfd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for generic_binary_sharding-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae90cc4e408c8ceec6f5e6ca192c6685d95d335f07a8b44f5e6f9a90a5f840e
MD5 c6a7300f92a8067e525d1aea5e245a8e
BLAKE2b-256 969226ee3518668705b21b7b385b70f53ac07b1aa749519b1707444c1f30747f

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