Skip to content

btrevizan/pystrct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pystrct

docs

A binary file's manager in Python 3.

pystrct creates and manages a binary file using Python's Struct. You can access any file's record by index as in array.

Installation

$ pip3 install pystrct

Example

from pystrct import StructFile

file = StructFile('numbers.bin', 'i')  # open a file named 'numbers.bin' structed as integers ('i')

n1 = file.get(4)                       # get the 4th number on file
n2 = file.next()                       # get the 5th number

Docs and stuff

You can find docs, api and examples in here.

About

A binary file's manager in Python 3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages