obj2html/setup.py

49 lines
1.1 KiB
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
2021-11-13 08:15:35 -07:00
.. image:: https://gitlab.com/nicolalandro/obj2html/imgs/colab_sample.png
:width: 400
:alt: Colab example
2021-11-13 07:33:54 -07:00
Use in a Jupyter notebook to display a .obj 3D file:
2021-11-13 08:15:35 -07:00
! pip install obj2html
! wget https://gitlab.com/nicolalandro/obj2html/-/raw/main/test/assets/model.obj
2021-11-13 08:04:16 -07:00
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'],
2021-11-13 08:15:35 -07:00
version = '0.4',
2021-11-13 08:04:16 -07:00
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
)