sregistry/database/sqlite.py
def inspect(self, name):
    '''Inspect a local image in the database, which typically includes the
       basic fields in the model.

    '''
    print(name)
    container = self.get(name)
    if container is not None:
        collection = container.collection.name
        fields = container.__dict__.copy()
        fields['collection'] = collection        
        fields['metrics'] = json.loads(fields['metrics'])
        del fields['_sa_instance_state']
        fields['created_at'] = str(fields['created_at'])
        print(json.dumps(fields, indent=4, sort_keys=True))
        return fields
def inspect(self, name):
    '''Inspect a local image in the database, which typically includes the
       basic fields in the model.

    '''
    print(name)
    container = self.get(name)
    if container is not None:
        collection = container.collection.name
        fields = container.__dict__.copy()
        fields['collection'] = collection        
        fields['metrics'] = json.loads(fields['metrics'])
        del fields['_sa_instance_state']
        fields['created_at'] = str(fields['created_at'])
        print(json.dumps(fields, indent=4, sort_keys=True))
        return fields
def inspect ( self , name ) : print ( name ) container = self . get ( name ) if container is not None : collection = container . collection . name fields = container . __dict__ . copy ( ) fields [ 'collection' ] = collection fields [ 'metrics' ] = json . loads ( fields [ 'metrics' ] ) del fields [ '_sa_instance_state' ] fields [ 'created_at' ] = str ( fields [ 'created_at' ] ) print ( json . dumps ( fields , indent = 4 , sort_keys = True ) ) return fields
Inspect a local image in the database, which typically includes the
       basic fields in the model.
Inspect a local image in the database which typically includes the basic fields in the model .