Re: ANN: binario - simple work with binary files

2014-09-06 Thread Tim Roberts
Rustom Mody wrote: >On Tuesday, September 2, 2014 6:05:19 AM UTC+5:30, Tim Roberts wrote: >> Rustom Mody wrote: > >> >On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote: > >> >> To the equivalent code with struct: >> >> import struct >> >> dscrp = "H?fs5B" >> >> f = open('fi

Re: ANN: binario - simple work with binary files

2014-09-01 Thread Rustom Mody
On Tuesday, September 2, 2014 6:05:19 AM UTC+5:30, Tim Roberts wrote: > Rustom Mody wrote: > >On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote: > >> To the equivalent code with struct: > >> import struct > >> dscrp = "H?fs5B" > >> f = open('file.dat') > >> stuff = struct

Re: ANN: binario - simple work with binary files

2014-09-01 Thread Tim Roberts
Rustom Mody wrote: >On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote: >> To the equivalent code with struct: > >> import struct > >> dscrp = "H?fs5B" > >> f = open('file.dat') >> stuff = struct.unpack( dscrp, f.read() ) > >> print stuff > >> In both cases, you have to

Re: ANN: binario - simple work with binary files

2014-08-25 Thread Rustom Mody
On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote: > bwatas wrote: > >binario is the Python package that lets an application read/write primitive > >data types from an underlying input/output file as binary data. > >Package on PyPI: https://pypi.python.org/pypi/binario > >Package

Re: ANN: binario - simple work with binary files

2014-08-25 Thread Tim Roberts
bwa...@gmail.com wrote: > >binario is the Python package that lets an application read/write primitive >data types from an underlying input/output file as binary data. > >Package on PyPI: https://pypi.python.org/pypi/binario >Package on GitHub: https://github.com/asaskevich/binario >Docs: http://b

Re: ANN: binario - simple work with binary files

2014-08-25 Thread Mark Lawrence
On 25/08/2014 10:58, Алексей Саскевич wrote: Package works directly with files and has similar structure with Java's DataInputStream/DataOutputStream classes. Can construct read/write data from files? Frankly I've no idea and without any context it's impossible to tell. What were you discuss

Re: ANN: binario - simple work with binary files

2014-08-25 Thread Rustom Mody
On Monday, August 25, 2014 3:28:28 PM UTC+5:30, Алексей Саскевич wrote: > Package works directly with files and has similar structure with Java's > DataInputStream/DataOutputStream classes. > Can construct read/write data from files? I guess so. See parse_stream: http://construct.readthedocs.org

Re: ANN: binario - simple work with binary files

2014-08-25 Thread Алексей Саскевич
Package works directly with files and has similar structure with Java's DataInputStream/DataOutputStream classes. Can construct read/write data from files? -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: binario - simple work with binary files

2014-08-23 Thread Rustom Mody
On Saturday, August 23, 2014 9:54:05 PM UTC+5:30, Алексей Саскевич wrote: > binario is the Python package that lets an application read/write primitive > data types from an underlying input/output file as binary data. > Package on PyPI: https://pypi.python.org/pypi/binario > Package on GitHub: ht

ANN: binario - simple work with binary files

2014-08-23 Thread bwatas
binario is the Python package that lets an application read/write primitive data types from an underlying input/output file as binary data. Package on PyPI: https://pypi.python.org/pypi/binario Package on GitHub: https://github.com/asaskevich/binario Docs: http://binarios-docs.readthedocs.org/en/