A file
resource is the most basic one. Actually, every data file can be maked as file
. For example:
from frictionless.resources import FileResource
resource = FileResource(path='text.txt')
resource.infer(stats=True)
print(resource)
{'name': 'text',
'type': 'file',
'path': 'text.txt',
'scheme': 'file',
'format': 'txt',
'mediatype': 'text/txt',
'encoding': 'utf-8',
'hash': 'sha256:b9e68e1bea3e5b19ca6b2f98b73a54b73daafaa250484902e09982e07a12e733',
'bytes': 5}