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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file unscrewed-0.1a2.tar.gz.

File metadata

  • Download URL: unscrewed-0.1a2.tar.gz
  • Upload date:
  • Size: 83.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for unscrewed-0.1a2.tar.gz
Algorithm Hash digest
SHA256 476e5904e4c0273ded0d2c268b4c97abed03069a566bc188f7bb4784fd4481ea
MD5 af8300b4efadfb71e298cef00538cac0
BLAKE2b-256 c8ba27be205c1ce5665dd90e2f5c430026c383b7b9e8ba43943906fb1a3ec378

See more details on using hashes here.

File details

Details for the file unscrewed-0.1a2-py2.py3-none-any.whl.

File metadata

  • Download URL: unscrewed-0.1a2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for unscrewed-0.1a2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9a05f554013fefce1421c64ccf294ef6c0a847c4f007ccdd681aa787589c46a0
MD5 f9128e8c5fa9243c48dc2141d2f080e4
BLAKE2b-256 0ef82dfbb97421887e53c0c4c5d65aada1422ab94d619e78cef2e1f71e7ff47f

See more details on using hashes here.

Supported by

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