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
Built Distribution
File details
Details for the file generic_binary_sharding-0.1.5.tar.gz
.
File metadata
- Download URL: generic_binary_sharding-0.1.5.tar.gz
- Upload date:
- Size: 6.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe0b547da0948398e73ef8b5d4cf876ff4736b87f2f8b533abc7f3598c4112cc |
|
MD5 | 599f6dc21ff385c9c2e0acf599cab2c5 |
|
BLAKE2b-256 | 9a0b0a94932f170f6a2a832bd08af42a5ba59200dbd9136a5b3ada0d403cf7c2 |
File details
Details for the file generic_binary_sharding-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: generic_binary_sharding-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.2 Linux/5.15.0-58-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 059aa1229aa7bc70f93fc544be83520a664287c529c88e8edcb7cc210b17d659 |
|
MD5 | b7e240a2d2eefdc8363abb90ed9c920f |
|
BLAKE2b-256 | 767017cba0eb5e2f47460951b8969795b0241c0237122925785d03e468736725 |