Skip to main content

A library for basic data persistance in Nuke

Project description

https://img.shields.io/pypi/l/nukedatastore.svg https://img.shields.io/pypi/pyversions/nukedatastore.svg https://img.shields.io/pypi/v/nukedatastore.svg https://img.shields.io/pypi/wheel/nukedatastore.svg https://readthedocs.org/projects/nukedatastore/badge/?version=latest

A library for basic data persistence in Nuke

Full Documentation

Installation

To install nukedatastore, type:

$ pip install nukedatastore

Open Nuke’s init.py file and add:

nuke.pluginAddPath('/path/to/your/local/python/site-packages')

Getting Started

To get started with nukedatastore, type in the Nuke Script Editor:

import nukedatastore

To initialise a NukeDataStore, type:

ds = nukedatastore.NukeDataStore('data_store')

To store data in the NukeDataStore, type:

ds['project_data'] = {'id': 1234, 'name': 'project name'}

To list all available keys in the NukeDataStore, type:

ds.list()
# ['project_data']

To retrieve stored data from the NukeDataStore, type:

ds['project_data']
# {'id': 1234, 'name': 'project name'}

A NukeDataStore can be frozen, to freeze, type:

ds.freeze()

Any further attempt to set data on the NukeDataStore will result in an error:

ds['color_data'] = {'id': 'AB-123', 'name': 'White'}
# nukedatastore.NukeDataStoreError: Cannot mutate frozen NukeDataStore

To un-freeze, type:

ds.unfreeze()

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

nukedatastore-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

nukedatastore-0.1.0-py2-none-any.whl (6.4 kB view details)

Uploaded Python 2

File details

Details for the file nukedatastore-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nukedatastore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dee5c701cc8f45b7c6453e6591140d94da596ac9e8d22d5bb8c2a4f1ac51db63
MD5 6c7ca6b9c4d983072d71b361d7ac7f00
BLAKE2b-256 18fc6122dde0b01c808a018c6d1c1e25c51e5ddaa3c9848b306091299cafe759

See more details on using hashes here.

File details

Details for the file nukedatastore-0.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for nukedatastore-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 973300bb72e28221b9ed366aca7fb44565cc46c3977242e1bc441c56a6cb7128
MD5 6df1e52ff00c325cd88929ea92fd278f
BLAKE2b-256 6fed2a16715da5a29e6ba0b8e929e3db552823955c0e74938fa5745b51cc2d74

See more details on using hashes here.

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