obj2html/setup.py

43 lines
940 B
Python
Raw Normal View History

2021-11-13 07:18:04 -07:00
from distutils.core import setup
2021-11-13 07:33:54 -07:00
2021-11-13 08:04:16 -07:00
long_des = """obj2html lib
=============================
2021-11-13 07:33:54 -07:00
You can use that lib to create html file from a .obj path:
2021-11-13 08:04:16 -07:00
from obj2html import obj2html
html_string = obj2html(obj_path)
obj2html(obj_path, 'index.html')
# firefox index.html
2021-11-13 07:33:54 -07:00
Use in a Jupyter notebook to display a .obj 3D file:
2021-11-13 08:04:16 -07:00
! pip install
from obj2html import obj2html
from IPython.display import display, HTML
obj_path = 'model.obj'
obj2html(obj_path, 'index.html')
display(HTML('index.html'))
2021-11-13 07:33:54 -07:00
"""
2021-11-13 07:18:04 -07:00
setup(
2021-11-13 08:04:16 -07:00
name = 'obj2html',
packages = ['obj2html'],
version = '0.3',
license='MIT',
description = 'Create an html with three.js that contains the given .obj file.',
long_description = long_des,
author = 'Nicola Landro',
author_email = 'nicolaxx94@live.it',
url = 'https://gitlab.com/nicolalandro/obj2html',
keywords = ['3D', '.obj', '.html', 'jupyter', '3D viewer'],
2021-11-13 07:18:04 -07:00
)