Skip to main content

Tools to provide easy access to prepared data to data scientists that can't be asked.

Project description


Tools to provide easy access to prepared data to data scientists that can't be asked.

They just want to get on with the fun -- not get stuck in data access and data preparation concerns. And they should want that!

Of course, someone needed to do the work of getting the data from where and how it is, to where and how it needs to be (for a particular problem and context).

What we believe is that this work should not only be less tedious and less time consuming (see py2store and related for that!), but also, once it's done, it shouldn't have to be re-done every time some one wants to kick the data around.

So we made pyckup.

We hope it helps.


pip install pyckup

Note: If you want to access kaggle datasets with pyckup, you'll need to get an account. See haggle for more information.


from pyckup import grab

See what protocols you have access to.

from pyckup import grab

# ['file', 'kaggle', 'http', 'https']

Grab file contents

Specifying a "file" protocol (i.e. prefexing your string with "file://" -- followed by a full path) will give you the contents of the file in bytes.

from pyckup import grab

b = grab('file:///Users/Thor.Whalen/Dropbox/dev/p3/proj/i/pyckup/pyckup/')
assert isinstance(b, bytes)
# from pyckup.base import grab, protocols

But you can also use a full path, or other natural means of specifying files. In that case though, grab will try to give you the contents in a convenient type (e.g. a dict for .json, a python object of .pickle, string for .txt...). This is convenient, but don't depend on the type to strongly since it depends on what py2store.misc sets it to be.

from pyckup import grab

# b'from pyckup.base import grab, protocols\n\n\n'
# {'hello': 'world', 'abc': [1, 2, 3]}
# [1, 2, 3]
# This
# is
# text

Grab the contents of a url

from pyckup import grab

b = grab('')
type(b), len(b)
# (bytes, 11357)
#                                  Apache License
#                            Version 2.0, January 2004

Grab stuff from kaggle

Note: You need to have an account -- see pypi haggle for more details.

from pyckup import grab

z = grab('kaggle://drgilermo/face-images-with-marked-landmark-points')
# ['face_images.npz', 'facial_keypoints.csv']
# left_eye_center_x,left_eye_center_y,right_eye_center_x,right_eye_center_y,left_eye_inner_corner_x,le

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 pyckup, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pyckup-0.0.5-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyckup-0.0.5.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page