Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Object that represent an Orient Document / Record

src/p/y/pyorient-HEAD/pyorient/OrientDB.py   pyorient(Download)
 
import re
import json
import _pyorient
from OrientTypes import OrientRecordLink, OrientRecord, OrientBinaryObject
        for raw_record in raw_result:
            parser = ORecordDecoder(raw_record)
            record = OrientRecord(parser.data, o_class=parser.className)
            ret.append(record)
 
        parser = ORecordDecoder(raw_record)
 
        record = OrientRecord(parser.data, o_class=parser.className, rid="#%d:%d" % (cluster_id, cluster_position)) 
        # @TODO missing rid and version from c api)
        return record
 
 
    def recordcreate(self, cluster_id, record, **kwargs):
        if not isinstance(record, OrientRecord):
            record = OrientRecord(record)

src/p/y/pyorient-HEAD/pyorient/ORecordCoder.py   pyorient(Download)
import re
import time
from OrientTypes import OrientRecordLink, OrientRecord, OrientBinaryObject
from datetime import date, datetime
 
            self._i += 1
            parser = ORecordDecoder(self.content[self._i:])
            rec = OrientRecord(parser.data, o_class=parser.className) # @TODO missing rid and version from c api
 
            tokenValue = rec