Skip to main content

Accessing and caching remote data.

Project description


Accessing and caching remote data for python. May be used in the cases that:

  1. The remote data is being updated frequently
  2. You don't want to sync all the data but just per your request
  3. You want to cache the data locally for some time
  4. Especially, when the files are used for testing


pip install remotedata


Currently, data from github and dropbox are supported


from remotedata import remotedata
rdata = remotedata(dict(
	source = 'github',
	cachedir = '/tmp/cached/',
	## if branch is not master: pwwang/remotedata/branch
	repos  = 'pwwang/remotedata',
	## optional, default is first part of repos
	# user = 'pwwang',
	## github token, in case you have > 60 requests per hours to github API
	# token = 'xxx',
readme = rdata.get('')
# is downloaded to /tmp/cache/github/pwwang.remotedata@master/
# Now you can use it as a local file

# readme will be cached, we don't have to download it again,
# until it has been changed remotely.

# remove cached file
# clear up all caches


from remotedata import remotedata
rdata = remotedata(dict(
	source = 'dropbox',
	cachedir = '/tmp/cached/',
	dropbox_token = 'xxx'
rdata.get('/somefile') # or

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for remotedata, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size remotedata-0.1.0-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size remotedata-0.1.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page