Skip to main content

Module for reading/writing chunk files.

Project description

Chunker

Description

Module for reading/writing chunk files.

Using

  • exmaple.py:
import chunker

with chunker.open("chunkfile.bin", "w") as cf:
    cf.create_chunk("ADAT")
    cf.create_chunk("STR_")
    
    cf["ADAT"].write(b'1234567890')
    cf["STR_"].write(b'STRING')

with chunker.open("chunkfile.bin") as cf:
    print(cf.chunks)
  • output:
>>> [Chunk(name='ADAT', mode='r', size=10), Chunk(name='STR_', mode='r', size=6)]

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

pychunker-1.0.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

pychunker-1.0.0-py3-none-any.whl (5.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