{ "info": { "author": "Fabrice Salvaire", "author_email": "fabrice.salvaire@orange.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Education", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering" ], "description": ".. -*- Mode: rst -*-\n\n.. image:: https://badge.fury.io/py/PyValentina.svg\n\t :target: https://badge.fury.io/py/PyValentina\n\n.. image:: https://img.shields.io/pypi/dm/PyValentina.svg\n\t :target: https://pypi.python.org/pypi/PyValentina\n\n.. image:: https://img.shields.io/pypi/status/PyValentina.svg\n\t :target: https://pypi.python.org/pypi/PyValentina\n\n.. image:: https://img.shields.io/pypi/pyversions/PyValentina.svg\n\t :target: https://pypi.python.org/pypi/PyValentina\n\n.. image:: https://img.shields.io/pypi/l/PyValentina.svg\n\t :target: https://raw.githubusercontent.com/FabriceSalvaire/PyValentina/master/LICENSE.txt\n\n.. -*- Mode: rst -*-\n\n..\n |PyValentinaUrl|\n |PyValentinaHomePage|_\n |PyValentinaDoc|_\n |PyValentina@github|_\n |PyValentina@readthedocs|_\n |PyValentina@readthedocs-badge|\n |PyValentina@pypi|_\n\n.. |ohloh| image:: https://www.openhub.net/accounts/230426/widgets/account_tiny.gif\n :target: https://www.openhub.net/accounts/fabricesalvaire\n :alt: Fabrice Salvaire's Ohloh profile\n :height: 15px\n :width: 80px\n\n.. |PyValentinaUrl| replace:: http://fabricesalvaire.github.io/PyValentina\n\n.. |PyValentinaHomePage| replace:: PyValentina Home Page\n.. _PyValentinaHomePage: http://fabricesalvaire.github.io/PyValentina\n\n.. |PyValentinaDoc| replace:: PyValentina Documentation\n.. _PyValentinaDoc: http://pyvalentina.readthedocs.org/en/latest\n\n.. |PyValentina@readthedocs-badge| image:: https://readthedocs.org/projects/pyvalentina/badge/?version=latest\n :target: http://pyvalentina.readthedocs.org/en/latest\n\n.. |PyValentina@github| replace:: https://github.com/FabriceSalvaire/PyValentina\n.. .. _PyValentina@github: https://github.com/FabriceSalvaire/PyValentina\n\n.. |PyValentina@readthedocs| replace:: http://pyvalentina.readthedocs.org\n.. .. _PyValentina@readthedocs: http://pyvalentina.readthedocs.org\n\n.. |PyValentina@pypi| replace:: https://pypi.python.org/pypi/PyValentina\n.. .. _PyValentina@pypi: https://pypi.python.org/pypi/PyValentina\n\n.. |Build Status| image:: https://travis-ci.org/FabriceSalvaire/PyValentina.svg?branch=master\n :target: https://travis-ci.org/FabriceSalvaire/PyValentina\n :alt: PyValentina build status @travis-ci.org\n\n.. |Pypi Download| image:: https://img.shields.io/pypi/dm/PyValentina.svg\n :target: https://pypi.python.org/pypi/PyValentina\n :alt: PyValentina Download per month\n\n.. |Pypi Version| image:: https://img.shields.io/pypi/v/PyValentina.svg\n :target: https://pypi.python.org/pypi/PyValentina\n :alt: PyValentina last version\n\n.. |Pypi License| image:: https://img.shields.io/pypi/l/PyValentina.svg\n :target: https://pypi.python.org/pypi/PyValentina\n :alt: PyValentina license\n\n.. |Pypi Format| image:: https://img.shields.io/pypi/format/PyValentina.svg\n :target: https://pypi.python.org/pypi/PyValentina\n :alt: PyValentina format\n\n.. |Pypi Python Version| image:: https://img.shields.io/pypi/pyversions/PyValentina.svg\n :target: https://pypi.python.org/pypi/PyValentina\n :alt: PyValentina python version\n\n.. coverage test\n.. https://img.shields.io/pypi/status/Django.svg\n.. https://img.shields.io/github/stars/badges/shields.svg?style=social&label=Star\n\n.. End\n.. -*- Mode: rst -*-\n\n.. |Python| replace:: Python\n.. _Python: http://python.org\n\n.. |PyPI| replace:: PyPI\n.. _PyPI: https://pypi.python.org/pypi\n\n.. |Numpy| replace:: Numpy\n.. _Numpy: http://www.numpy.org\n\n.. |Sphinx| replace:: Sphinx\n.. _Sphinx: http://sphinx-doc.org\n\n.. End\n\n============\n PyValentina\n============\n\nPyValentina Home Page is located at |PyValentinaUrl|\n\nThe latest documentation build from the git repository is available at readthedocs.org |PyValentina@readthedocs-badge|\n\nAuthored by `Fabrice Salvaire `_.\n\n.. -*- Mode: rst -*-\n\n==========\n Features\n==========\n\nThe features of PyValentina are :\n\n* read/write *.val* and *.vit* file\n* `QMuParser `_ expressions are translated to Python and evaluated on the fly\n* API to define patterns\n* compute the detail of a pattern\n* export the detail to latex/pgf as A0 or tiled A4 paper\n\nMissing features:\n\n* full operation support\n* direct PDF export\n* SVG export\n\n.. image:: https://raw.github.com/FabriceSalvaire/PyValentina/master/test/output/pattern-a0.png\n :height: 600px\n\n.. image:: https://raw.github.com/FabriceSalvaire/PyValentina/master/test/output/pattern-a4.png\n :height: 600px\n\n.. -*- Mode: rst -*-\n\n=============\n Introduction\n=============\n\nPyValentina is a python implementation of the `Valentina `_ Pattern\nMaking software, which only focus to implement the core engine and not the graphical user interface.\n\nA pattern in flat pattern design is build from geometrical operations which can be turned to a\ncomputer program and is thus a field of applications of Computer Aided Design. It corresponds more\nprecisely to parametric modelling with dedicated features to fashion modelling and manufacturing.\n\nWhat is the requirements of a pattern drafting software ?\n---------------------------------------------------------\n\nThe core functionality of a CAD system for pattern drafting consists of these two software components :\n\n* an **open** file format to store and exchange the pattern,\n* a geometrical engine to compute the pattern, e.g. to generate the layout of each fabric's piece of a clothe.\n\nThe XML language is a natural candidate to define an open file format to store and exchange the\npattern. Valentina uses XML to sore measurements in *.vit* files and patterns in *.val* files.\n\nAnother solution to define and store a pattern is to use a programming language, it can be a\ndedicated language or any programming language associated to a dedicated API. Many graphical\nlanguages was invented for specific usages, e.g. PostScript for printer, Metafont and MetaPost for\npublishing, G-code for machining etc.\n\nUsually the geometrical operations of a pattern are simple in comparison to the requirements of a\nmechanical or electronic CAD software. In first hand it is only 2D and the number of operations\nshould be handled smoothly by a computer of these days, whereas it is still challenging for other\ndomains.\n\n.. A pattern drafting software only need a good geometrical engine to be designed efficiently.\n\nFinally, a pattern drafting software requires an efficient graphical user interface so as to be used\nby fashion designers and not only by hackers. This software component is more challenging in therms\nof software engineering, i.e. in therms of design and cost.\n\nWhy Python is a good language for this library ?\n------------------------------------------------\n\nThe Python language has a large audience in engineering, due to its canonical syntax and richness of\nits ecosystem (scientific libraries).\n\nPython is a high level language and thus more productive.\n\nPython is used as scripting language to extend many softwares, in particular the famous open source\n3D creation suite `Blender `_, the parametric 3D modeller `FreeCad\n`_ as well as the SVG editor `Inkscape `_. Moreover\nthe 3D human model generator `MakeHuman `_ is written in Python.\n\nPython can be easily extended by C libraries using `CFFI `_\nand C++ libraries using `SWIG `_.\n\nPython as other dynamic languages is able to evaluate code on the fly which provide an expression\nevaluator for free. And this feature is even more pertinent in our case because of the canonical\nnature of the syntax of Python which is natural to somebody initiated to a basic mathematical\nlanguage level.\n\nWhat is the purpose of this library ?\n-------------------------------------\n\nThis library could serve several purposes :\n\n* help to experiment core features for pattern drafting,\n* plug Valentina to software featuring a Python plugin mechanism like Blender, FreeCad etc.\n\nCould we implement a full software using Python ?\n-------------------------------------------------\n\nThe answer is *yes we can!* since `Qt `_ has as a nice binding so called\n`PyQt `_.\n\n.. (if we consider Qt is superior to GTK and WxWidgets)\n\nBut up to now Python has of course some drawbacks!\n\nIts main drawback is due to the fact the standard interpreter cannot execute more than one *Python\nbytecode* thread at once, this limitation so called Global Interpreter Lock is required for\nimplementation simplicity.\n\n.. in true parallelism (multi-core)\n.. Consequently we can do multi-threading, even on multi-core in some cases, but less easily than in Java or Cxx11.\n\nDespite a GUI implemented in PyQt is almost of the time more faster than the human perception on a\ncomputer of these days. It can be sometime difficult to overcome latency arising from the software\nstack. Thus yes we can do it, but it could requires some tricks to achieve the performance of a C++\napplication.\n\nHow to generate drawings in standard format like PDF or SVG ?\n-------------------------------------------------------------\n\nSVG is not difficult to generate from Python since it is based on XML. However the PDF format is\nmore challenging, for efficiency reason PDF is a binary format and is thus much more complicated\nthan PostScript which is a true programming language.\n\nThere is several possibilities to generate PDF.\n\nThe most disturbing one is to use the `LaTeX `_ publishing\nsystem in combination with the `PGF `_ package which provide\nan amazing graphical language on top of LaTeX. This solution could terrify many peoples, but it do\nthe job very well for text and graphics. However user must install a LaTeX environment from their\nLinux distribution or using the `TexLive `_ distribution.\n\nA more conventional solution requires a library that can generate PDF from standard graphical\noperations. Some libraries featuring that are :\n\n* Qt using QPainter API, Valentina solution, see https://wiki.qt.io/Handling_PDF\n* `Cairo `_\n* `ReportLab `_ open-source PDF Toolkit (more commercial and less known)\n* `Matplotlib `_ (but more oriented to plot)\n* and ???\n\n.. -*- Mode: rst -*-\n\n.. _installation-page:\n\n\n==============\n Installation\n==============\n\nThe installation of PyValentina by itself is quite simple. However it will be easier to get the\ndependencies on a Linux desktop.\n\nDependencies\n------------\n\nPyValentina requires the following dependencies:\n\n * |Python|_ 3\n * |Numpy|_\n\nAlso it is recommanded to have these Python modules:\n\n * pip\n * virtualenv\n\nFor development, you will need in addition:\n\n * |Sphinx|_\n\nInstallation from PyPi Repository\n---------------------------------\n\nPyValentina is made available on the |Pypi|_ repository at |PyValentina@pypi|\n\nRun this command to install the last release:\n\n.. code-block:: sh\n\n pip install PyValentina\n\nInstallation from Source\n------------------------\n\nThe PyValentina source code is hosted at |PyValentina@github|\n\nTo clone the Git repository, run this command in a terminal:\n\n.. code-block:: sh\n\n git clone git@github.com:FabriceSalvaire/PyValentina.git\n\nThen to build and install PyValentina run these commands:\n\n.. code-block:: sh\n\n python setup.py build\n python setup.py install\n\n.. End\n\n.. _bibliography-page:\n\n==============\n Bibliography\n==============\n\n* `CGAL Computational Geometry Algorithms Library `_\n* `Open Cascade Framework `_\n* `David Eberly Geometric Tools web site `_\n\n.. End\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FabriceSalvaire/PyValentina", "keywords": "pattern making valentina", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "PyValentina", "package_url": "https://pypi.org/project/PyValentina/", "platform": "any", "project_url": "https://pypi.org/project/PyValentina/", "project_urls": { "Homepage": "https://github.com/FabriceSalvaire/PyValentina" }, "release_url": "https://pypi.org/project/PyValentina/0.2.0/", "requires_dist": [ "IntervalArithmetic", "astunparse", "lxml", "numpy" ], "requires_python": "", "summary": "Python implementation of Valentina Pattern Making Software", "version": "0.2.0" }, "last_serial": 3352853, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bde6b4e5760f33a9635f084366d97fa3", "sha256": "02cb1077533cac74648acfd33348bfeb7f044e253db810a664429b7ca5777b33" }, "downloads": -1, "filename": "PyValentina-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bde6b4e5760f33a9635f084366d97fa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1046428, "upload_time": "2017-09-15T15:22:52", "url": "https://files.pythonhosted.org/packages/dc/02/b621fd0313678082270e4b0cf54213ab72f4be2633b5c8501c542d07f34c/PyValentina-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "642fe95cafe20fe690a344ae764a2add", "sha256": "d5e3a393690b9119de22f23f45871f7199ae920e556ad5a6c50b69b3b08c67b4" }, "downloads": -1, "filename": "PyValentina-0.2.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "642fe95cafe20fe690a344ae764a2add", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 68960, "upload_time": "2017-11-21T17:49:28", "url": "https://files.pythonhosted.org/packages/ef/15/113d4c14384fc8609f5bcdc59aaaed4d2be5d8acc7b151ffa7677124894c/PyValentina-0.2.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "642fe95cafe20fe690a344ae764a2add", "sha256": "d5e3a393690b9119de22f23f45871f7199ae920e556ad5a6c50b69b3b08c67b4" }, "downloads": -1, "filename": "PyValentina-0.2.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "642fe95cafe20fe690a344ae764a2add", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 68960, "upload_time": "2017-11-21T17:49:28", "url": "https://files.pythonhosted.org/packages/ef/15/113d4c14384fc8609f5bcdc59aaaed4d2be5d8acc7b151ffa7677124894c/PyValentina-0.2.0-py2.py3-none-any.whl" } ] }