lib.cuckoo.core.database.Sample

Package lib :: Package cuckoo :: Package core :: Module database :: Class Sample |
[hide private]
[frames] | no frames]

# Class Sample

source code

    declarative_base() --+
                         |
                        Sample

Submitted files details.

Instance Methods | [hide private]
__repr__(self) | source code
to_dict(self) Converts object to dict. | source code
to_json(self) Converts object to JSON. | source code
__init__(self, md5, crc32, sha1, sha256, sha512, file_size, file_type=None, ssdeep=None) | source code

Class Variables | [hide private]
| __tablename__ = `"samples"`
| id = `Column(Integer(), primary_key= True)`
| file_size = `Column(Integer(), nullable= False)`
| file_type = `Column(Text(), nullable= False)`
| md5 = `Column(String(32), nullable= False)`
| crc32 = `Column(String(8), nullable= False)`
| sha1 = `Column(String(40), nullable= False)`
| sha256 = `Column(String(64), nullable= False)`
| sha512 = `Column(String(128), nullable= False)`
| ssdeep = `Column(String(255), nullable= True)`
| __table_args__ = `Index("hash_index", "md5", "crc32", "sha1", "`...``

Method Details | [hide private]

### to_dict(self) | source code
Converts object to dict. Returns: dict

### to_json(self) | source code
Converts object to JSON. Returns: JSON data

Class Variable Details | [hide private]

  ### __table_args__ Value:
      Index("hash_index", "md5", "crc32", "sha1", "sha256", "sha512", unique
      = True),