Python Schematic handler

User avatar
Gael de Sailly
Member
 
Posts: 731
Joined: Sun Jan 26, 2014 17:01
Location: Lyon, France
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly Ginkgoo

Python Schematic handler

by Gael de Sailly » Sun Nov 18, 2018 14:48

Hello,

This is a small Python library that provides Input / Output for Minetest .mts schematics.
It is using the NumPy library (that you need to install), reputed for its efficiency in numerical treatments.

It is loosely based on Mg's Python-Minetest, but optimized for speed and memory efficiency, to be able to handle remarkably large schematics (tested with a 200³ one).
License: GNU GPLv2.

It treats schematics as an object containing a NumPy structured array and metadata.
To install it, download it and run the setup.py file this way:
Code: Select all
python3 setup.py install

Full documentation on the README.

Download | Browse the code
Last edited by Gael de Sailly on Sun Nov 18, 2018 19:22, edited 1 time in total.
Just realize how bored we would be if the world was perfect.
 

User avatar
TumeniNodes
Member
 
Posts: 2826
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: Python Schematic handler

by TumeniNodes » Sun Nov 18, 2018 18:05

Interesting... I may have the perfect specimen to test this with
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 


Return to Minetest-related projects



Who is online

Users browsing this forum: No registered users and 1 guest