Skip to main content

Unscrewed data packaging

Project description

Unscrewed

Utility for making and updating a data fetcher component of your project.

Install

pip install unscrewed

Usage

First prepare a registry.yaml file, like the one in unscrewed/tests/testreg_registry.yaml. Put it in your package, say in the your_package directory (that contains the __init__.py file). Maybe call it registry.yaml.

In some module, say your_package/data.py

import pkg_resources

import unscrewed

_config_file = pkg_resources.resource_filename("your_package", "registry.yaml")
fetcher = unscrewed.Fetcher(_config_file)

Say you have a file my_data_file.nii configured in your registry.yaml file above.

Now you can fetch it like this:

from your_package.data import fetcher

fname = fetcher('my_data_file.nii')

Project details


Download files

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

Source Distribution

unscrewed-0.1a2.tar.gz (83.9 kB view hashes)

Uploaded Source

Built Distribution

unscrewed-0.1a2-py2.py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page