Source code for pybricks.dbfs
import json
import os
import requests
[docs]class DbfsApi(object):
"""The DBFS API"""
def __init__(self, hostname, token):
self.hostname = "%s/api/" % hostname
self.__headers = {'authorization': "Bearer %s" % token, "content-type": "application/scim+json",
"accept": "application/scim+json"}