SengerM / datanodes

A package to automate data storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datanodes

A package to help organizing data in a directory structure, automating error checking, and providing an easy interface within Python.

Note This is an evolution of the_bureaucrat.

Installation

pip install https://github.com/SengerM/datanodes

Usage

Simple usage example:

import datanodes

dn = datanodes.create_datanode(
	path_where_to_create_the_datanode = '.', 
	datanode_name = 'testing_datanode', 
	if_exists='override',
)

with dn.handle_task('a_task') as task:
	with open(task.path_to_directory_of_my_task/'blah','w') as ofile:
		print('Whatever...', file=ofile)

I wish I had developed this earlier in my PhD. Better later than never.

About

A package to automate data storage


Languages

Language:Python 100.0%