id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,400 | dict.py | midgetspy_Sick-Beard/lib/hachoir_core/dict.py | """
Dictionnary classes which store values order.
"""
from lib.hachoir_core.error import HachoirError
from lib.hachoir_core.i18n import _
class UniqKeyError(HachoirError):
"""
Error raised when a value is set whereas the key already exist in a
dictionnary.
"""
pass
class Dict(object):
"""
... | 5,384 | Python | .py | 154 | 26.162338 | 79 | 0.518939 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,401 | iso639.py | midgetspy_Sick-Beard/lib/hachoir_core/iso639.py | # -*- coding: utf-8 -*-
"""
ISO639-2 standart: the module only contains the dictionary ISO639_2
which maps a language code in three letters (eg. "fre") to a language
name in english (eg. "French").
"""
# ISO-639, the list comes from:
# http://www.loc.gov/standards/iso639-2/php/English_list.php
_ISO639 = (
(u"Abkha... | 18,544 | Python | .py | 555 | 28.49009 | 69 | 0.497219 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,402 | profiler.py | midgetspy_Sick-Beard/lib/hachoir_core/profiler.py | from hotshot import Profile
from hotshot.stats import load as loadStats
from os import unlink
def runProfiler(func, args=tuple(), kw={}, verbose=True, nb_func=25, sort_by=('cumulative', 'calls')):
profile_filename = "/tmp/profiler"
prof = Profile(profile_filename)
try:
if verbose:
print... | 923 | Python | .py | 29 | 23.310345 | 102 | 0.569507 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,403 | config.py | midgetspy_Sick-Beard/lib/hachoir_core/config.py | """
Configuration of Hachoir
"""
import os
# UI: display options
max_string_length = 40 # Max. length in characters of GenericString.display
max_byte_length = 14 # Max. length in bytes of RawBytes.display
max_bit_length = 256 # Max. length in bits of RawBits.display
unicode_stdout = True # Replace st... | 984 | Python | .py | 23 | 39.869565 | 85 | 0.701571 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,404 | memory.py | midgetspy_Sick-Beard/lib/hachoir_core/memory.py | import gc
#---- Default implementation when resource is missing ----------------------
PAGE_SIZE = 4096
def getMemoryLimit():
"""
Get current memory limit in bytes.
Return None on error.
"""
return None
def setMemoryLimit(max_mem):
"""
Set memory limit in bytes.
Use value 'None' to d... | 2,417 | Python | .py | 81 | 23.234568 | 77 | 0.604832 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,405 | language.py | midgetspy_Sick-Beard/lib/hachoir_core/language.py | from lib.hachoir_core.iso639 import ISO639_2
class Language:
def __init__(self, code):
code = str(code)
if code not in ISO639_2:
raise ValueError("Invalid language code: %r" % code)
self.code = code
def __cmp__(self, other):
if other.__class__ != Language:
... | 590 | Python | .py | 17 | 27.117647 | 70 | 0.573192 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,406 | i18n.py | midgetspy_Sick-Beard/lib/hachoir_core/i18n.py | # -*- coding: UTF-8 -*-
"""
Functions to manage internationalisation (i18n):
- initLocale(): setup locales and install Unicode compatible stdout and
stderr ;
- getTerminalCharset(): guess terminal charset ;
- gettext(text) translate a string to current language. The function always
returns Unicode string. You can a... | 6,253 | Python | .py | 181 | 28.646409 | 127 | 0.670827 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,407 | benchmark.py | midgetspy_Sick-Beard/lib/hachoir_core/benchmark.py | from lib.hachoir_core.tools import humanDurationNanosec
from lib.hachoir_core.i18n import _
from math import floor
from time import time
class BenchmarkError(Exception):
"""
Error during benchmark, use str(err) to format it as string.
"""
def __init__(self, message):
Exception.__init__(self,
... | 6,792 | Python | .py | 182 | 27.868132 | 78 | 0.579155 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,408 | cmd_line.py | midgetspy_Sick-Beard/lib/hachoir_core/cmd_line.py | from optparse import OptionGroup
from lib.hachoir_core.log import log
from lib.hachoir_core.i18n import _, getTerminalCharset
from lib.hachoir_core.tools import makePrintable
import lib.hachoir_core.config as config
def getHachoirOptions(parser):
"""
Create an option group (type optparse.OptionGroup) of Hachoi... | 1,472 | Python | .py | 38 | 33.342105 | 78 | 0.70119 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,409 | log.py | midgetspy_Sick-Beard/lib/hachoir_core/log.py | import os, sys, time
import lib.hachoir_core.config as config
from lib.hachoir_core.i18n import _
class Log:
LOG_INFO = 0
LOG_WARN = 1
LOG_ERROR = 2
level_name = {
LOG_WARN: "[warn]",
LOG_ERROR: "[err!]",
LOG_INFO: "[info]"
}
def __init__(self):
self.__buf... | 4,247 | Python | .py | 121 | 25.586777 | 86 | 0.54448 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,410 | tools.py | midgetspy_Sick-Beard/lib/hachoir_core/tools.py | # -*- coding: utf-8 -*-
"""
Various utilities.
"""
from lib.hachoir_core.i18n import _, ngettext
import re
import stat
from datetime import datetime, timedelta, MAXYEAR
from warnings import warn
def deprecated(comment=None):
"""
This is a decorator which can be used to mark functions
as deprecated. It wi... | 17,259 | Python | .py | 506 | 28.128458 | 84 | 0.60547 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,411 | text_handler.py | midgetspy_Sick-Beard/lib/hachoir_core/text_handler.py | """
Utilities used to convert a field to human classic reprentation of data.
"""
from lib.hachoir_core.tools import (
humanDuration, humanFilesize, alignValue,
durationWin64 as doDurationWin64,
deprecated)
from types import FunctionType, MethodType
from lib.hachoir_core.field import Field
def textHandler(... | 1,911 | Python | .py | 51 | 33.235294 | 76 | 0.705565 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,412 | event_handler.py | midgetspy_Sick-Beard/lib/hachoir_core/event_handler.py | class EventHandler(object):
"""
Class to connect events to event handlers.
"""
def __init__(self):
self.handlers = {}
def connect(self, event_name, handler):
"""
Connect an event handler to an event. Append it to handlers list.
"""
try:
self.hand... | 703 | Python | .py | 22 | 23.5 | 73 | 0.581979 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,413 | timeout.py | midgetspy_Sick-Beard/lib/hachoir_core/timeout.py | """
limitedTime(): set a timeout in seconds when calling a function,
raise a Timeout error if time exceed.
"""
from math import ceil
IMPLEMENTATION = None
class Timeout(RuntimeError):
"""
Timeout error, inherits from RuntimeError
"""
pass
def signalHandler(signum, frame):
"""
Signal handler t... | 2,131 | Python | .py | 64 | 25.421875 | 77 | 0.617518 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,414 | endian.py | midgetspy_Sick-Beard/lib/hachoir_core/endian.py | """
Constant values about endian.
"""
from lib.hachoir_core.i18n import _
BIG_ENDIAN = "ABCD"
LITTLE_ENDIAN = "DCBA"
NETWORK_ENDIAN = BIG_ENDIAN
endian_name = {
BIG_ENDIAN: _("Big endian"),
LITTLE_ENDIAN: _("Little endian"),
}
| 239 | Python | .py | 11 | 19.636364 | 38 | 0.696429 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,415 | version.py | midgetspy_Sick-Beard/lib/hachoir_core/version.py | PACKAGE = "hachoir-core"
VERSION = "1.3.3"
WEBSITE = 'http://bitbucket.org/haypo/hachoir/wiki/hachoir-core'
LICENSE = 'GNU GPL v2'
| 132 | Python | .py | 4 | 31.75 | 64 | 0.732283 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,416 | link.py | midgetspy_Sick-Beard/lib/hachoir_core/field/link.py | from lib.hachoir_core.field import Field, FieldSet, ParserError, Bytes, MissingField
from lib.hachoir_core.stream import FragmentedStream
class Link(Field):
def __init__(self, parent, name, *args, **kw):
Field.__init__(self, parent, name, 0, *args, **kw)
def hasValue(self):
return True
d... | 3,184 | Python | .py | 89 | 26.370787 | 84 | 0.583089 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,417 | fake_array.py | midgetspy_Sick-Beard/lib/hachoir_core/field/fake_array.py | import itertools
from lib.hachoir_core.field import MissingField
class FakeArray:
"""
Simulate an array for GenericFieldSet.array(): fielset.array("item")[0] is
equivalent to fielset.array("item[0]").
It's possible to iterate over the items using::
for element in fieldset.array("item"):
... | 2,298 | Python | .py | 71 | 21.929577 | 78 | 0.521876 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,418 | vector.py | midgetspy_Sick-Beard/lib/hachoir_core/field/vector.py | from lib.hachoir_core.field import Field, FieldSet, ParserError
class GenericVector(FieldSet):
def __init__(self, parent, name, nb_items, item_class, item_name="item", description=None):
# Sanity checks
assert issubclass(item_class, Field)
assert isinstance(item_class.static_size, (int, lon... | 1,360 | Python | .py | 32 | 35 | 106 | 0.624054 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,419 | string_field.py | midgetspy_Sick-Beard/lib/hachoir_core/field/string_field.py | """
String field classes:
- String: Fixed length string (no prefix/no suffix) ;
- CString: String which ends with nul byte ("\0") ;
- UnixLine: Unix line of text, string which ends with "\n" ;
- PascalString8, PascalString16, PascalString32: String prefixed with
length written in a 8, 16, 32-bit integer (use parent e... | 14,849 | Python | .py | 342 | 33.809942 | 115 | 0.589534 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,420 | byte_field.py | midgetspy_Sick-Beard/lib/hachoir_core/field/byte_field.py | """
Very basic field: raw content with a size in byte. Use this class for
unknown content.
"""
from lib.hachoir_core.field import Field, FieldError
from lib.hachoir_core.tools import makePrintable
from lib.hachoir_core.bits import str2hex
from lib.hachoir_core import config
MAX_LENGTH = (2**64)
class RawBytes(Field)... | 2,206 | Python | .py | 60 | 28.55 | 80 | 0.602907 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,421 | enum.py | midgetspy_Sick-Beard/lib/hachoir_core/field/enum.py | def Enum(field, enum, key_func=None):
"""
Enum is an adapter to another field: it will just change its display
attribute. It uses a dictionnary to associate a value to another.
key_func is an optional function with prototype "def func(key)->key"
which is called to transform key.
"""
display... | 801 | Python | .py | 24 | 24.291667 | 72 | 0.603871 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,422 | field_set.py | midgetspy_Sick-Beard/lib/hachoir_core/field/field_set.py | from lib.hachoir_core.field import BasicFieldSet, GenericFieldSet
class FieldSet(GenericFieldSet):
def __init__(self, parent, name, *args, **kw):
assert issubclass(parent.__class__, BasicFieldSet)
GenericFieldSet.__init__(self, parent, name, parent.stream, *args, **kw)
| 292 | Python | .py | 5 | 53 | 80 | 0.712281 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,423 | integer.py | midgetspy_Sick-Beard/lib/hachoir_core/field/integer.py | """
Integer field classes:
- UInt8, UInt16, UInt24, UInt32, UInt64: unsigned integer of 8, 16, 32, 64 bits ;
- Int8, Int16, Int24, Int32, Int64: signed integer of 8, 16, 32, 64 bits.
"""
from lib.hachoir_core.field import Bits, FieldError
class GenericInteger(Bits):
"""
Generic integer class used to generate ... | 1,848 | Python | .py | 37 | 45.297297 | 86 | 0.68459 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,424 | static_field_set.py | midgetspy_Sick-Beard/lib/hachoir_core/field/static_field_set.py | from lib.hachoir_core.field import FieldSet, ParserError
class StaticFieldSet(FieldSet):
"""
Static field set: format class attribute is a tuple of all fields
in syntax like:
format = (
(TYPE1, ARG1, ARG2, ...),
(TYPE2, ARG1, ARG2, ..., {KEY1=VALUE1, ...}),
...
)... | 1,861 | Python | .py | 46 | 31.282609 | 76 | 0.587161 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,425 | bit_field.py | midgetspy_Sick-Beard/lib/hachoir_core/field/bit_field.py | """
Bit sized classes:
- Bit: Single bit, value is False or True ;
- Bits: Integer with a size in bits ;
- RawBits: unknown content with a size in bits.
"""
from lib.hachoir_core.field import Field
from lib.hachoir_core.i18n import _
from lib.hachoir_core import config
class RawBits(Field):
"""
Unknown conten... | 1,789 | Python | .py | 54 | 26.833333 | 72 | 0.626961 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,426 | float.py | midgetspy_Sick-Beard/lib/hachoir_core/field/float.py | from lib.hachoir_core.field import Bit, Bits, FieldSet
from lib.hachoir_core.endian import BIG_ENDIAN, LITTLE_ENDIAN
import struct
# Make sure that we use right struct types
assert struct.calcsize("f") == 4
assert struct.calcsize("d") == 8
assert struct.unpack("<d", "\x1f\x85\xebQ\xb8\x1e\t@")[0] == 3.14
assert struct... | 3,547 | Python | .py | 82 | 32.353659 | 91 | 0.569316 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,427 | generic_field_set.py | midgetspy_Sick-Beard/lib/hachoir_core/field/generic_field_set.py | from lib.hachoir_core.field import (MissingField, BasicFieldSet, Field, ParserError,
createRawField, createNullField, createPaddingField, FakeArray)
from lib.hachoir_core.dict import Dict, UniqKeyError
from lib.hachoir_core.error import HACHOIR_ERRORS
from lib.hachoir_core.tools import lowerBound
import lib.hachoir... | 19,195 | Python | .py | 475 | 29.549474 | 95 | 0.567754 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,428 | basic_field_set.py | midgetspy_Sick-Beard/lib/hachoir_core/field/basic_field_set.py | from lib.hachoir_core.field import Field, FieldError
from lib.hachoir_core.stream import InputStream
from lib.hachoir_core.endian import BIG_ENDIAN, LITTLE_ENDIAN
from lib.hachoir_core.event_handler import EventHandler
class ParserError(FieldError):
"""
Error raised by a field set.
@see: L{FieldError}
... | 4,762 | Python | .py | 122 | 29.827869 | 87 | 0.614301 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,429 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_core/field/__init__.py | # Field classes
from lib.hachoir_core.field.field import Field, FieldError, MissingField, joinPath
from lib.hachoir_core.field.bit_field import Bit, Bits, RawBits
from lib.hachoir_core.field.byte_field import Bytes, RawBytes
from lib.hachoir_core.field.sub_file import SubFile, CompressedField
from lib.hachoir_core.fiel... | 2,364 | Python | .py | 53 | 41.679245 | 92 | 0.808677 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,430 | helper.py | midgetspy_Sick-Beard/lib/hachoir_core/field/helper.py | from lib.hachoir_core.field import (FieldError,
RawBits, RawBytes,
PaddingBits, PaddingBytes,
NullBits, NullBytes,
GenericString, GenericInteger)
from lib.hachoir_core.stream import FileOutputStream
def createRawField(parent, size, name="raw[]", description=None):
if size <= 0:
raise FieldE... | 1,905 | Python | .py | 48 | 34.208333 | 76 | 0.6921 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,431 | timestamp.py | midgetspy_Sick-Beard/lib/hachoir_core/field/timestamp.py | from lib.hachoir_core.tools import (humanDatetime, humanDuration,
timestampUNIX, timestampMac32, timestampUUID60,
timestampWin64, durationWin64)
from lib.hachoir_core.field import Bits, FieldSet
from datetime import datetime
class GenericTimestamp(Bits):
def __init__(self, parent, name, size, description=N... | 2,941 | Python | .py | 69 | 35.985507 | 77 | 0.675306 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,432 | parser.py | midgetspy_Sick-Beard/lib/hachoir_core/field/parser.py | from lib.hachoir_core.endian import BIG_ENDIAN, LITTLE_ENDIAN
from lib.hachoir_core.field import GenericFieldSet
from lib.hachoir_core.log import Logger
import lib.hachoir_core.config as config
class Parser(GenericFieldSet):
"""
A parser is the root of all other fields. It create first level of fields
and ... | 1,440 | Python | .py | 32 | 38.625 | 95 | 0.682857 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,433 | new_seekable_field_set.py | midgetspy_Sick-Beard/lib/hachoir_core/field/new_seekable_field_set.py | from lib.hachoir_core.field import BasicFieldSet, GenericFieldSet, ParserError, createRawField
from lib.hachoir_core.error import HACHOIR_ERRORS
# getgaps(int, int, [listof (int, int)]) -> generator of (int, int)
# Gets all the gaps not covered by a block in `blocks` from `start` for `length` units.
def getgaps(start,... | 3,055 | Python | .py | 71 | 34.549296 | 94 | 0.612849 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,434 | padding.py | midgetspy_Sick-Beard/lib/hachoir_core/field/padding.py | from lib.hachoir_core.field import Bits, Bytes
from lib.hachoir_core.tools import makePrintable, humanFilesize
from lib.hachoir_core import config
class PaddingBits(Bits):
"""
Padding bits used, for example, to align address (of next field).
See also NullBits and PaddingBytes types.
Arguments:
* ... | 4,491 | Python | .py | 114 | 30.798246 | 92 | 0.622329 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,435 | field.py | midgetspy_Sick-Beard/lib/hachoir_core/field/field.py | """
Parent of all (field) classes in Hachoir: Field.
"""
from lib.hachoir_core.compatibility import reversed
from lib.hachoir_core.stream import InputFieldStream
from lib.hachoir_core.error import HachoirError, HACHOIR_ERRORS
from lib.hachoir_core.log import Logger
from lib.hachoir_core.i18n import _
from lib.hachoir_... | 8,588 | Python | .py | 228 | 28.596491 | 79 | 0.59342 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,436 | seekable_field_set.py | midgetspy_Sick-Beard/lib/hachoir_core/field/seekable_field_set.py | from lib.hachoir_core.field import Field, BasicFieldSet, FakeArray, MissingField, ParserError
from lib.hachoir_core.tools import makeUnicode
from lib.hachoir_core.error import HACHOIR_ERRORS
from itertools import repeat
import lib.hachoir_core.config as config
class RootSeekableFieldSet(BasicFieldSet):
def __init_... | 6,130 | Python | .py | 155 | 29.083871 | 93 | 0.584902 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,437 | character.py | midgetspy_Sick-Beard/lib/hachoir_core/field/character.py | """
Character field class: a 8-bit character
"""
from lib.hachoir_core.field import Bits
from lib.hachoir_core.endian import BIG_ENDIAN
from lib.hachoir_core.tools import makePrintable
class Character(Bits):
"""
A 8-bit character using ASCII charset for display attribute.
"""
static_size = 8
def ... | 755 | Python | .py | 20 | 32.6 | 77 | 0.70467 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,438 | sub_file.py | midgetspy_Sick-Beard/lib/hachoir_core/field/sub_file.py | from lib.hachoir_core.field import Bytes
from lib.hachoir_core.tools import makePrintable, humanFilesize
from lib.hachoir_core.stream import InputIOStream
class SubFile(Bytes):
"""
File stored in another file
"""
def __init__(self, parent, name, length, description=None,
parser=None, filename=None,... | 2,661 | Python | .py | 67 | 28.910448 | 100 | 0.561607 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,439 | input.py | midgetspy_Sick-Beard/lib/hachoir_core/stream/input.py | from lib.hachoir_core.endian import BIG_ENDIAN, LITTLE_ENDIAN
from lib.hachoir_core.error import info
from lib.hachoir_core.log import Logger
from lib.hachoir_core.bits import str2long
from lib.hachoir_core.i18n import getTerminalCharset
from lib.hachoir_core.tools import lowerBound
from lib.hachoir_core.i18n import _
... | 19,777 | Python | .py | 500 | 28.71 | 108 | 0.545384 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,440 | input_helper.py | midgetspy_Sick-Beard/lib/hachoir_core/stream/input_helper.py | from lib.hachoir_core.i18n import getTerminalCharset, guessBytesCharset, _
from lib.hachoir_core.stream import InputIOStream, InputSubStream, InputStreamError
def FileInputStream(filename, real_filename=None, **args):
"""
Create an input stream of a file. filename must be unicode.
real_filename is an opti... | 1,546 | Python | .py | 34 | 39.411765 | 84 | 0.68634 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,441 | output.py | midgetspy_Sick-Beard/lib/hachoir_core/stream/output.py | from cStringIO import StringIO
from lib.hachoir_core.endian import BIG_ENDIAN
from lib.hachoir_core.bits import long2raw
from lib.hachoir_core.stream import StreamError
from errno import EBADF
MAX_READ_NBYTES = 2 ** 16
class OutputStreamError(StreamError):
pass
class OutputStream(object):
def __init__(self, ... | 5,471 | Python | .py | 150 | 25.32 | 93 | 0.528124 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,442 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_core/stream/__init__.py | from lib.hachoir_core.endian import BIG_ENDIAN, LITTLE_ENDIAN
from lib.hachoir_core.stream.stream import StreamError
from lib.hachoir_core.stream.input import (
InputStreamError,
InputStream, InputIOStream, StringInputStream,
InputSubStream, InputFieldStream,
FragmentedStream, ConcatStre... | 533 | Python | .py | 10 | 48.2 | 84 | 0.806513 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,443 | guess.py | midgetspy_Sick-Beard/lib/hachoir_parser/guess.py | """
Parser list managment:
- createParser() find the best parser for a file.
"""
import os
from lib.hachoir_core.error import warning, info, HACHOIR_ERRORS
from lib.hachoir_parser import ValidateError, HachoirParserList
from lib.hachoir_core.stream import FileInputStream
from lib.hachoir_core.i18n import _
class Que... | 3,940 | Python | .py | 110 | 24.372727 | 74 | 0.530521 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,444 | template.py | midgetspy_Sick-Beard/lib/hachoir_parser/template.py | """
====================== 8< ============================
This file is an Hachoir parser template. Make a copy
of it, and adapt it to your needs.
You have to replace all "TODO" with you code.
====================== 8< ============================
TODO parser.
Author: TODO TODO
Creation date: YYYY-mm-DD
"""
# TODO:... | 1,939 | Python | .py | 44 | 38.477273 | 89 | 0.595756 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,445 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_parser/__init__.py | from lib.hachoir_parser.version import __version__
from lib.hachoir_parser.parser import ValidateError, HachoirParser, Parser
from lib.hachoir_parser.parser_list import ParserList, HachoirParserList
from lib.hachoir_parser.guess import (QueryParser, guessParser, createParser)
from lib.hachoir_parser import (archive, au... | 398 | Python | .py | 6 | 64.5 | 77 | 0.820972 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,446 | parser.py | midgetspy_Sick-Beard/lib/hachoir_parser/parser.py | import lib.hachoir_core.config as config
from lib.hachoir_core.field import Parser as GenericParser
from lib.hachoir_core.error import HACHOIR_ERRORS, HachoirError, error
from lib.hachoir_core.tools import makeUnicode
from lib.hachoir_core.i18n import _
from inspect import getmro
class ValidateError(HachoirError):
... | 5,703 | Python | .py | 135 | 32.688889 | 95 | 0.586412 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,447 | version.py | midgetspy_Sick-Beard/lib/hachoir_parser/version.py | __version__ = "1.3.4"
PACKAGE = "hachoir-parser"
WEBSITE = "http://bitbucket.org/haypo/hachoir/wiki/hachoir-parser"
LICENSE = 'GNU GPL v2'
| 140 | Python | .py | 4 | 33.75 | 66 | 0.718519 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,448 | parser_list.py | midgetspy_Sick-Beard/lib/hachoir_parser/parser_list.py | import re
import types
from lib.hachoir_core.error import error
from lib.hachoir_core.i18n import _
from lib.hachoir_parser import Parser, HachoirParser
import sys
### Parser list ################################################################
class ParserList(object):
VALID_CATEGORY = ("archive", "audio", "cont... | 7,856 | Python | .py | 190 | 28.757895 | 93 | 0.50504 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,449 | spider_man_video.py | midgetspy_Sick-Beard/lib/hachoir_parser/game/spider_man_video.py | """
Parser for an obscure FMV file format: bin files from the game
"The Amazing Spider-Man vs. The Kingpin" (Sega CD)
Author: Mike Melanson
Creation date: 2006-09-30
File samples: http://samples.mplayerhq.hu/game-formats/spiderman-segacd-bin/
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field impor... | 2,265 | Python | .py | 55 | 33.6 | 83 | 0.597273 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,450 | blp.py | midgetspy_Sick-Beard/lib/hachoir_parser/game/blp.py | """
Blizzard BLP Image File Parser
Author: Robert Xiao
Creation date: July 10 2007
- BLP1 File Format
http://magos.thejefffiles.com/War3ModelEditor/MagosBlpFormat.txt
- BLP2 File Format (Wikipedia)
http://en.wikipedia.org/wiki/.BLP
- S3TC (DXT1, 3, 5) Formats
http://en.wikipedia.org/wiki/S3_Texture_Compression
... | 11,108 | Python | .py | 243 | 35.995885 | 145 | 0.577913 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,451 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_parser/game/__init__.py | from lib.hachoir_parser.game.zsnes import ZSNESFile
from lib.hachoir_parser.game.spider_man_video import SpiderManVideoFile
from lib.hachoir_parser.game.laf import LafFile
from lib.hachoir_parser.game.blp import BLP1File, BLP2File | 230 | Python | .py | 4 | 56.75 | 71 | 0.859031 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,452 | zsnes.py | midgetspy_Sick-Beard/lib/hachoir_parser/game/zsnes.py | """
ZSNES Save State Parser (v143 only currently)
Author: Jason Gorski
Creation date: 2006-09-15
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, StaticFieldSet,
UInt8, UInt16, UInt32,
String, PaddingBytes, Bytes, RawBytes)
from lib.hachoir_core.endian import LITTLE_ENDI... | 13,437 | Python | .py | 235 | 48.676596 | 127 | 0.633579 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,453 | laf.py | midgetspy_Sick-Beard/lib/hachoir_parser/game/laf.py | # -*- coding: utf-8 -*-
"""
LucasArts Font parser.
Author: Cyril Zorin
Creation date: 1 January 2007
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
UInt8, UInt16, UInt32, GenericVector)
from lib.hachoir_core.endian import LITTLE_ENDIAN
class CharData(FieldSet):
def... | 2,900 | Python | .py | 77 | 32.493506 | 93 | 0.653956 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,454 | asf.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/asf.py | """
Advanced Streaming Format (ASF) parser, format used by Windows Media Video
(WMF) and Windows Media Audio (WMA).
Informations:
- http://www.microsoft.com/windows/windowsmedia/forpros/format/asfspec.aspx
- http://swpat.ffii.org/pikta/xrani/asf/index.fr.html
Author: Victor Stinner
Creation: 5 august 2006
"""
from l... | 12,897 | Python | .py | 316 | 32.75 | 113 | 0.617176 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,455 | mov.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/mov.py | """
Apple Quicktime Movie (file extension ".mov") parser.
Documents:
- Parsing and Writing QuickTime Files in Java (by Chris Adamson, 02/19/2003)
http://www.onjava.com/pub/a/onjava/2003/02/19/qt_file_format.html
- QuickTime File Format (official technical reference)
http://developer.apple.com/documentation/QuickTi... | 9,144 | Python | .py | 223 | 32.654709 | 120 | 0.601933 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,456 | mpeg_ts.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/mpeg_ts.py | """
MPEG-2 Transport Stream parser.
Documentation:
- MPEG-2 Transmission
http://erg.abdn.ac.uk/research/future-net/digital-video/mpeg2-trans.html
Author: Victor Stinner
Creation date: 13 january 2007
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, ParserError, MissingField,
... | 3,468 | Python | .py | 90 | 29.866667 | 99 | 0.59596 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,457 | amf.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/amf.py | """
AMF metadata (inside Flash video, FLV file) parser.
Documentation:
- flashticle: Python project to read Flash (formats SWF, FLV and AMF)
http://undefined.org/python/#flashticle
Author: Victor Stinner
Creation date: 4 november 2006
"""
from lib.hachoir_core.field import (FieldSet, ParserError,
UInt8, UIn... | 3,139 | Python | .py | 90 | 27.811111 | 70 | 0.614724 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,458 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/__init__.py | from lib.hachoir_parser.video.asf import AsfFile
from lib.hachoir_parser.video.flv import FlvFile
from lib.hachoir_parser.video.mov import MovFile
from lib.hachoir_parser.video.mpeg_video import MPEGVideoFile
from lib.hachoir_parser.video.mpeg_ts import MPEG_TS
| 263 | Python | .py | 5 | 51.4 | 61 | 0.85214 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,459 | fourcc.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/fourcc.py | #
# fourcc are codes to specify the encoding method a audio or video string
# in RIFF file (.avi and .wav).
#
# The following lists come from mmpython project:
# file: mmpython/video/fourcc.py
# url: http://sourceforge.net/projects/mmpython/
#
# List of codecs with no compression (compression rate=1.0)
UNCOMPRE... | 13,511 | Python | .py | 411 | 31.863747 | 81 | 0.709759 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,460 | flv.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/flv.py | """
FLV video parser.
Documentation:
- FLV File format: http://osflash.org/flv
- libavformat from ffmpeg project
- flashticle: Python project to read Flash (SWF and FLV with AMF metadata)
http://undefined.org/python/#flashticle
Author: Victor Stinner
Creation date: 4 november 2006
"""
from lib.hachoir_parser ... | 4,787 | Python | .py | 133 | 29.218045 | 85 | 0.611663 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,461 | mpeg_video.py | midgetspy_Sick-Beard/lib/hachoir_parser/video/mpeg_video.py | """
Moving Picture Experts Group (MPEG) video version 1 and 2 parser.
Information:
- http://www.mpucoder.com/DVD/
- http://dvd.sourceforge.net/dvdinfo/
- http://www.mit.jyu.fi/mweber/leffakone/software/parsempegts/
- http://homepage.mac.com/rnc/EditMpegHeaderIFO.html
- http://standards.iso.org/ittf/PubliclyAvailableSt... | 22,604 | Python | .py | 522 | 32.668582 | 128 | 0.558674 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,462 | win32.py | midgetspy_Sick-Beard/lib/hachoir_parser/common/win32.py | from lib.hachoir_core.field import (FieldSet,
UInt16, UInt32, Enum, String, Bytes, Bits, TimestampUUID60)
from lib.hachoir_parser.video.fourcc import video_fourcc_name
from lib.hachoir_core.bits import str2hex
from lib.hachoir_core.text_handler import textHandler, hexadecimal
from lib.hachoir_parser.network.common ... | 5,542 | Python | .py | 138 | 32.304348 | 97 | 0.599666 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,463 | tracker.py | midgetspy_Sick-Beard/lib/hachoir_parser/common/tracker.py | """
Shared code for tracker parser.
"""
NOTE_NAME = {}
NOTES = ("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "G#", "A", "A#", "B")
for octave in xrange(10):
for index, note in enumerate(NOTES):
NOTE_NAME[octave*12+index] = "%s (octave %s)" % (note, octave)
| 275 | Python | .py | 8 | 31.625 | 79 | 0.520755 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,464 | msdos.py | midgetspy_Sick-Beard/lib/hachoir_parser/common/msdos.py | """
MS-DOS structures.
Documentation:
- File attributes:
http://www.cs.colorado.edu/~main/cs1300/include/ddk/winddk.h
"""
from lib.hachoir_core.field import StaticFieldSet
from lib.hachoir_core.field import Bit, NullBits
_FIELDS = (
(Bit, "read_only"),
(Bit, "hidden"),
(Bit, "system"),
(NullBits, "... | 1,463 | Python | .py | 54 | 20.351852 | 62 | 0.548894 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,465 | win32_lang_id.py | midgetspy_Sick-Beard/lib/hachoir_parser/common/win32_lang_id.py | """
Windows 2000 - List of Locale IDs and Language Groups
Original data table:
http://www.microsoft.com/globaldev/reference/win2k/setup/lcid.mspx
"""
LANGUAGE_ID = {
0x0436: u"Afrikaans",
0x041c: u"Albanian",
0x0401: u"Arabic Saudi Arabia",
0x0801: u"Arabic Iraq",
0x0c01: u"Arabic Egypt",
0x10... | 3,901 | Python | .py | 133 | 24.518797 | 66 | 0.664011 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,466 | deflate.py | midgetspy_Sick-Beard/lib/hachoir_parser/common/deflate.py | from lib.hachoir_core.field import CompressedField
try:
from zlib import decompressobj, MAX_WBITS
class DeflateStream:
def __init__(self, stream, wbits=None):
if wbits:
self.gzip = decompressobj(-MAX_WBITS)
else:
self.gzip = decompressobj()
... | 948 | Python | .py | 27 | 25.888889 | 54 | 0.614208 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,467 | asn1.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/asn1.py | """
Abstract Syntax Notation One (ASN.1) parser.
Technical informations:
* PER standard
http://www.tu.int/ITU-T/studygroups/com17/languages/X.691-0207.pdf
* Python library
http://pyasn1.sourceforge.net/
* Specification of Abstract Syntax Notation One (ASN.1)
ISO/IEC 8824:1990 Information Technology
* Specificati... | 10,708 | Python | .py | 249 | 35.791165 | 107 | 0.62325 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,468 | swf.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/swf.py | """
SWF (Macromedia/Adobe Flash) file parser.
Documentation:
- Alexis' SWF Reference:
http://www.m2osw.com/swf_alexref.html
- http://www.half-serious.com/swf/format/
- http://www.anotherbigidea.com/javaswf/
- http://www.gnu.org/software/gnash/
Author: Victor Stinner
Creation date: 29 october 2006
"""
from li... | 15,001 | Python | .py | 347 | 35.170029 | 91 | 0.596055 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,469 | action_script.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/action_script.py | """
SWF (Macromedia/Adobe Flash) file parser.
Documentation:
- Alexis' SWF Reference:
http://www.m2osw.com/swf_alexref.html
Author: Sebastien Ponce
Creation date: 26 April 2008
"""
from lib.hachoir_core.field import (FieldSet, ParserError,
Bit, Bits, UInt8, UInt32, Int16, UInt16, Float32, CString,
RawBy... | 11,980 | Python | .py | 283 | 35.010601 | 109 | 0.590192 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,470 | mkv.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/mkv.py | #
# Matroska parser
# Author Julien Muchembled <jm AT jm10.no-ip.com>
# Created: 8 june 2006
#
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, Link,
MissingField, ParserError,
Enum as _Enum, String as _String,
Float32, Float64,
NullBits, Bits, Bit, RawBytes, Bytes,
... | 20,373 | Python | .py | 538 | 29.30855 | 91 | 0.552061 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,471 | ogg.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/ogg.py | #
# Ogg parser
# Author Julien Muchembled <jm AT jm10.no-ip.com>
# Created: 10 june 2006
#
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (Field, FieldSet, createOrphanField,
NullBits, Bit, Bits, Enum, Fragment, MissingField, ParserError,
UInt8, UInt16, UInt24, UInt32, UInt64,
Raw... | 11,888 | Python | .py | 311 | 29.061093 | 100 | 0.589133 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,472 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/__init__.py | from lib.hachoir_parser.container.asn1 import ASN1File
from lib.hachoir_parser.container.mkv import MkvFile
from lib.hachoir_parser.container.ogg import OggFile, OggStream
from lib.hachoir_parser.container.riff import RiffFile
from lib.hachoir_parser.container.swf import SwfFile
from lib.hachoir_parser.container.realme... | 346 | Python | .py | 6 | 56.5 | 64 | 0.870206 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,473 | riff.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/riff.py | # -*- coding: UTF-8 -*-
"""
RIFF parser, able to parse:
* AVI video container
* WAV audio container
* CDA file
Documents:
- libavformat source code from ffmpeg library
http://ffmpeg.mplayerhq.hu/
- Video for Windows Programmer's Guide
http://www.opennet.ru/docs/formats/avi.txt
- What is an animated curso... | 16,966 | Python | .py | 390 | 36.235897 | 103 | 0.620892 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,474 | realmedia.py | midgetspy_Sick-Beard/lib/hachoir_parser/container/realmedia.py | """
RealMedia (.rm) parser
Author: Mike Melanson
Creation date: 15 december 2006
References:
- http://wiki.multimedia.cx/index.php?title=RealMedia
- Appendix E: RealMedia File Format (RMFF) Reference
https://common.helixcommunity.org/nonav/2003/HCS_SDK_r5/htmfiles/rmff.htm
Samples:
- http://samples.mplayerhq.hu/re... | 6,867 | Python | .py | 149 | 38.771812 | 104 | 0.64242 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,475 | ouid.py | midgetspy_Sick-Beard/lib/hachoir_parser/network/ouid.py | # -*- coding: utf-8 -*-
"""
List of registered IEEE 24-bit Organizationally Unique IDentifiers.
Original data file:
http://standards.ieee.org/regauth/oui/oui.txt
"""
REGISTERED_OUID = {
0x000000: u'XEROX CORPORATION',
0x000001: u'XEROX CORPORATION',
0x000002: u'XEROX CORPORATION',
0x000003: u'XEROX CORPOR... | 385,658 | Python | .py | 10,107 | 34.156327 | 77 | 0.706582 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,476 | tcpdump.py | midgetspy_Sick-Beard/lib/hachoir_parser/network/tcpdump.py | """
Tcpdump parser
Source:
* libpcap source code (file savefile.c)
* RFC 791 (IPv4)
* RFC 792 (ICMP)
* RFC 793 (TCP)
* RFC 1122 (Requirements for Internet Hosts)
Author: Victor Stinner
Creation: 23 march 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, ParserError,
... | 16,398 | Python | .py | 440 | 28.920455 | 95 | 0.576543 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,477 | common.py | midgetspy_Sick-Beard/lib/hachoir_parser/network/common.py | from lib.hachoir_core.field import FieldSet, Field, Bits
from lib.hachoir_core.bits import str2hex
from lib.hachoir_parser.network.ouid import REGISTERED_OUID
from lib.hachoir_core.endian import BIG_ENDIAN
from socket import gethostbyaddr, herror as socket_host_error
def ip2name(addr):
if not ip2name.resolve:
... | 3,459 | Python | .py | 97 | 28.257732 | 92 | 0.625262 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,478 | itunesdb.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/itunesdb.py | """
iPod iTunesDB parser.
Documentation:
- http://ipodlinux.org/ITunesDB
Author: Romain HERAULT
Creation date: 19 august 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
UInt8, UInt16, UInt32, UInt64, TimestampMac32,
String, Float32, NullBytes, Enum)
from lib.hacho... | 17,106 | Python | .py | 392 | 34.910714 | 115 | 0.596293 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,479 | flac.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/flac.py | """
FLAC (audio) parser
Documentation:
* http://flac.sourceforge.net/format.html
Author: Esteban Loiseau <baal AT tuxfamily.org>
Creation date: 2008-04-09
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import FieldSet, String, Bit, Bits, UInt16, UInt24, RawBytes, Enum, NullBytes
from lib.hac... | 5,646 | Python | .py | 136 | 33.735294 | 116 | 0.619785 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,480 | real_audio.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/real_audio.py | """
RealAudio (.ra) parser
Author: Mike Melanson
References:
http://wiki.multimedia.cx/index.php?title=RealMedia
Samples:
http://samples.mplayerhq.hu/real/RA/
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
UInt8, UInt16, UInt32,
Bytes, RawBytes, String,
PascalS... | 3,782 | Python | .py | 83 | 36.674699 | 92 | 0.609426 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,481 | s3m.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/s3m.py | """
The ScreamTracker 3.0x module format description for .s3m files.
Documents:
- Search s3m on Wotsit
http://www.wotsit.org/
Author: Christophe GISQUET <christophe.gisquet@free.fr>
Creation: 11th February 2007
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (StaticFieldSet, FieldSet, ... | 24,169 | Python | .py | 566 | 34.204947 | 108 | 0.561083 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,482 | mpeg_audio.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/mpeg_audio.py | """
MPEG audio file parser.
Creation: 12 decembre 2005
Author: Victor Stinner
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
MissingField, ParserError, createOrphanField,
Bit, Bits, Enum,
PaddingBits, PaddingBytes,
RawBytes)
from lib.hachoir_parser.audio.id3 im... | 13,784 | Python | .py | 357 | 28.969188 | 99 | 0.550987 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,483 | aiff.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/aiff.py | """
Audio Interchange File Format (AIFF) parser.
Author: Victor Stinner
Creation: 27 december 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
UInt16, UInt32, Float80, TimestampMac32,
RawBytes, NullBytes,
String, Enum, PascalString32)
from lib.hachoir_core.endia... | 4,043 | Python | .py | 108 | 30.407407 | 82 | 0.610317 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,484 | modplug.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/modplug.py | """
Modplug metadata inserted into module files.
Doc:
- http://modplug.svn.sourceforge.net/viewvc/modplug/trunk/modplug/soundlib/
Author: Christophe GISQUET <christophe.gisquet@free.fr>
Creation: 10th February 2007
"""
from lib.hachoir_core.field import (FieldSet,
UInt32, UInt16, UInt8, Int8, Float32,
RawByt... | 10,667 | Python | .py | 252 | 34.015873 | 97 | 0.579992 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,485 | 8svx.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/8svx.py | """
Audio Interchange File Format (AIFF) parser.
Author: Victor Stinner
Creation: 27 december 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
UInt16, UInt32, Float80, TimestampMac32,
RawBytes, NullBytes,
String, Enum, PascalString32)
from lib.hachoir_core.endia... | 3,949 | Python | .py | 107 | 29.897196 | 82 | 0.611823 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,486 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/__init__.py | from lib.hachoir_parser.audio.aiff import AiffFile
from lib.hachoir_parser.audio.au import AuFile
from lib.hachoir_parser.audio.itunesdb import ITunesDBFile
from lib.hachoir_parser.audio.midi import MidiFile
from lib.hachoir_parser.audio.mpeg_audio import MpegAudioFile
from lib.hachoir_parser.audio.real_audio import Re... | 590 | Python | .py | 11 | 52.545455 | 61 | 0.863322 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,487 | id3.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/id3.py | """
ID3 metadata parser, supported versions: 1.O, 2.2, 2.3 and 2.4
Informations: http://www.id3.org/
Author: Victor Stinner
"""
from lib.hachoir_core.field import (FieldSet, MatchError, ParserError,
Enum, UInt8, UInt24, UInt32,
CString, String, RawBytes,
Bit, Bits, NullBytes, NullBits)
from lib.hachoir_c... | 16,721 | Python | .py | 467 | 26.430407 | 104 | 0.538239 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,488 | au.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/au.py | """
AU audio file parser
Author: Victor Stinner
Creation: 12 july 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import UInt32, Enum, String, RawBytes
from lib.hachoir_core.endian import BIG_ENDIAN
from lib.hachoir_core.text_handler import displayHandler, filesizeHandler
from lib.hachoir_c... | 3,327 | Python | .py | 75 | 37.066667 | 101 | 0.602038 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,489 | mod.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/mod.py | """
Parser of FastTrackerII Extended Module (XM) version 1.4
Documents:
- Modplug source code (file modplug/soundlib/Load_mod.cpp)
http://sourceforge.net/projects/modplug
- Dumb source code (files include/dumb.h and src/it/readmod.c
http://dumb.sf.net/
- Documents on "MOD" format on Wotsit
http://www.wotsit.org
... | 4,964 | Python | .py | 125 | 32.824 | 78 | 0.616822 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,490 | xm.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/xm.py | """
Parser of FastTrackerII Extended Module (XM) version 1.4
Documents:
- Modplug source code (file modplug/soundlib/Load_xm.cpp)
http://sourceforge.net/projects/modplug
- Dumb source code (files include/dumb.h and src/it/readxm.c
http://dumb.sf.net/
- Documents of "XM" format on Wotsit
http://www.wotsit.org
Au... | 15,154 | Python | .py | 337 | 36.347181 | 93 | 0.617041 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,491 | midi.py | midgetspy_Sick-Beard/lib/hachoir_parser/audio/midi.py | """
Musical Instrument Digital Interface (MIDI) audio file parser.
Documentation:
- Standard MIDI File Format, Dustin Caldwell (downloaded on wotsit.org)
Author: Victor Stinner
Creation: 27 december 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, Bits, ParserError,
S... | 7,912 | Python | .py | 186 | 34.188172 | 103 | 0.619023 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,492 | linux_swap.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/linux_swap.py | """
Linux swap file.
Documentation: Linux kernel source code, files:
- mm/swapfile.c
- include/linux/swap.h
Author: Victor Stinner
Creation date: 25 december 2006 (christmas ;-))
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (ParserError, GenericVector,
UInt32, String,
Bytes,... | 3,797 | Python | .py | 96 | 31.927083 | 81 | 0.609014 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,493 | iso9660.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/iso9660.py | """
ISO 9660 (cdrom) file system parser.
Documents:
- Standard ECMA-119 (december 1987)
http://www.nondot.org/sabre/os/files/FileSystems/iso9660.pdf
Author: Victor Stinner
Creation: 11 july 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, ParserError,
UInt8, UInt32, ... | 4,966 | Python | .py | 107 | 38.943925 | 90 | 0.639835 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,494 | ntfs.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/ntfs.py | """
New Technology File System (NTFS) file system parser.
Sources:
- The NTFS documentation
http://www.linux-ntfs.org/
- NTFS-3G driver
http://www.ntfs-3g.org/
Creation date: 3rd january 2007
Author: Victor Stinner
"""
SECTOR_SIZE = 512
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (F... | 11,618 | Python | .py | 251 | 37.880478 | 101 | 0.618548 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,495 | ext2.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/ext2.py | """
EXT2 (Linux) file system parser.
Author: Victor Stinner
Sources:
- EXT2FS source code
http://ext2fsd.sourceforge.net/
- Analysis of the Ext2fs structure
http://www.nondot.org/sabre/os/files/FileSystems/ext2fs/
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, ParserError... | 18,055 | Python | .py | 409 | 35.320293 | 137 | 0.601444 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,496 | reiser_fs.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/reiser_fs.py | """
ReiserFS file system version 3 parser (version 1, 2 and 4 are not supported).
Author: Frederic Weisbecker
Creation date: 8 december 2006
Sources:
- http://p-nand-q.com/download/rfstool/reiserfs_docs.html
- http://homes.cerias.purdue.edu/~florian/reiser/reiserfs.php
- file://usr/src/linux-2.6.16.19/include/linu... | 5,077 | Python | .py | 101 | 43.425743 | 116 | 0.676014 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,497 | __init__.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/__init__.py | from lib.hachoir_parser.file_system.ext2 import EXT2_FS
from lib.hachoir_parser.file_system.fat import FAT12, FAT16, FAT32
from lib.hachoir_parser.file_system.mbr import MSDos_HardDrive
from lib.hachoir_parser.file_system.ntfs import NTFS
from lib.hachoir_parser.file_system.iso9660 import ISO9660
from lib.hachoir_parse... | 430 | Python | .py | 7 | 60.285714 | 67 | 0.845972 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,498 | fat.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/fat.py | from lib.hachoir_core.compatibility import sorted
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet, StaticFieldSet,
RawBytes, PaddingBytes, createPaddingField, Link, Fragment,
Bit, Bits, UInt8, UInt16, UInt32,
String, Bytes, NullBytes)
from lib.hachoir_core.field.integer im... | 16,185 | Python | .py | 387 | 31.276486 | 107 | 0.557961 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |
1,499 | mbr.py | midgetspy_Sick-Beard/lib/hachoir_parser/file_system/mbr.py | """
Master Boot Record.
"""
# cfdisk uses the following algorithm to compute the geometry:
# 0. Use the values given by the user.
# 1. Try to guess the geometry from the partition table:
# if all the used partitions end at the same head H and the
# same sector S, then there are (H+1) heads and S sectors/cylind... | 7,784 | Python | .py | 205 | 29.55122 | 99 | 0.578237 | midgetspy/Sick-Beard | 2,890 | 1,507 | 113 | GPL-3.0 | 9/5/2024, 5:08:58 PM (Europe/Amsterdam) |