=========
Creopyson
=========
.. image:: https://img.shields.io/pypi/v/creopyson.svg
:target: https://pypi.python.org/pypi/creopyson
.. image:: https://github.com/Zepmanbc/creopyson/actions/workflows/release.yml/badge.svg
:target: https://github.com/Zepmanbc/creopyson/actions/workflows/release.yml
.. image:: https://coveralls.io/repos/github/Zepmanbc/creopyson/badge.svg?branch=master
:target: https://coveralls.io/github/Zepmanbc/creopyson?branch=master
.. image:: https://readthedocs.org/projects/creopyson/badge/?version=latest
:target: https://creopyson.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://github.com/Zepmanbc/creopyson/raw/master/docs/_static/buymeacoffe.png
:target: https://www.buymeacoffee.com/Zv7CwOS
:alt: Buy Me A Coffee
Creopyson is a python library that aim to control `PTC's CREO Parametric`_ via JLink via CREOSON.
CREOSON uses JSON Requests to send commands/functions to CREO, JSON Responses are used to communicate the results of your requests.
Creopyson creates a Client to send JSON Requests to CREOSON server.
* Free software: MIT license
* Documentation: https://creopyson.readthedocs.io.
.. _`PTC's CREO Parametric`: https://www.ptc.com/en/products/cad/creo/parametric
Features
--------
Creopyson can be used to automate actions in CREO:
* Get BOM
* Manage files, Working directories
* Support Familytables
* Export 3D/2D: pdf3d, pdf, STEP, IGES, JPEG...
* Interact with layers, views
* Read/Write parameters, dimensions
* Support Windchill
Basic usage video:
.. image:: https://github.com/Zepmanbc/creopyson/raw/master/docs/_static/video.png
:target: https://youtu.be/NjkvRZJQzXs
See documentation for more informations...
Credits
-------
CREOSON_ from `Simplified Logic, Inc.`_
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _CREOSON: http://www.creoson.com/
.. _`Simplified Logic, Inc.`: http://www.simplifiedlogic.com/
=======
History
=======
0.7.7 (2024-02-03)
---------------------------------
* BugFix:
* Correction for `drawing.set_view_loc` (`issue#84`_)
.. _`issue#84`: https://github.com/Zepmanbc/creopyson/issues/84
0.7.6 (2023-02-26)
---------------------------------
* BugFix:
* Correction for `layer.delete` (`issue#68`_)
.. _`issue#68`: https://github.com/Zepmanbc/creopyson/issues/68
Documentation update (2023-02-16)
---------------------------------
Update for `Creoson 2.8.2 release`_.
* No modification in creopyson, just documentation update, see Creoson's release note.
.. _`Creoson 2.8.2 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.2
0.7.5 (2022-12-10)
------------------
* BugFix:
* Add missing `location` argument on note_set (`issue#62`_)
.. _`issue#62`: https://github.com/Zepmanbc/creopyson/issues/62
0.7.4 (2022-05-16)
------------------
Update for `Creoson 2.8.1 release`_.
* Add parameters:
* bom_get_paths : get_simpreps
* Documentation update:
* creo_set_creo_version : Creo 8 support.
.. _`Creoson 2.8.1 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.1
0.7.3 (2021-08-29)
------------------
* Add *is not None* almost everywhere to prevent *False* and *None* confusion
* Migrates to Github Workflow
* Remove pipenv stuff
0.7.2 (2021-04-01)
------------------
* change python_requires to ">=3.7"
0.7.1 (2021-03-23)
------------------
* BugFix:
* `file_get_active` returns `{}` instead of `None` with Creoson 2.8.0
0.7.0 (2021-03-22)
------------------
Update for `Creoson 2.8.0 release`_.
* New functions:
* creo_set_creo_version (prevent Creo 7 problems)
* feature_list_selected
* Add parameters:
* feature_set_param: description
* parameter_set: description
* Documentation update:
* drawing_list: add *view_model*, *simp_rep* in Return
* feature_list_param: add *description* in Return
* feature_user_select_csys: add *file*, remove "feat_number* in Return object.
* parameter_list: add *description* in Return
* BugFix:
file_set_cur_material: now working with Creoson >2.8.0
.. _`Creoson 2.8.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.0
0.6.2 (2021-02-17)
------------------
Bugfix:
* drawing.get_cur_model: correction data_key (`issue#27`_)
.. _`issue#27`: https://github.com/Zepmanbc/creopyson/issues/27
0.6.1 (2021-01-30)
------------------
Bugfix:
* familytable.list_tree: correction data_key (`issue#21`_)
Documentation update:
* Usage: Add vanilla Creoson
* Usage: Add logging
* Issues template: add Creo version
.. _`issue#21`: https://github.com/Zepmanbc/creopyson/issues/21
0.6.0 (2020-07-16)
------------------
Update for `Creoson 2.7.0 release`_.
* New functions:
* file_get_accuracy
* Add parameters:
* interface_mapkey: delay
* interface_export_pdf interface_export_pdf3d : sheet_range
.. _`Creoson 2.7.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.7.0
0.5.2 (2020-07-09)
------------------
Documentation update
* usage: path slashes correction
Docstring correction
* drawing_list_models : correction (`issue#18`_)
Bugfix
* file_get_transform : Does not return *transform* key (`issue#17`_)
.. _`issue#18`: https://github.com/Zepmanbc/creopyson/issues/18
.. _`issue#17`: https://github.com/Zepmanbc/creopyson/issues/17
0.5.1 (2020-05-19)
------------------
Docstring updates:
* interface_import_file: PV extension correction.
* interface_export_image: add infos about valid values in docstrings for dpi and depth.
Features updates:
* interface_mapkey: remove extra white space in script string.
* connection_start_creo: add use_desktop param.
New Feature:
* Add **logging DEBUG** on request & response.
0.5.0 (2020-03-08)
------------------
Update for `Creoson 2.6.0 release`_.
* New functions:
* interface_import_file
* Add parameters:
* bom_get_paths: add `has_simprep`
* file_delete_material: `file` now allows wildcard
* interface_export_file: add *NEUTRAL* to `file_type`
* file_load_material: `file_` allows wildcard
* New returns:
* file_massprops: add inertia matrices to output (`ctr_grav_inertia_tensor`, `coord_sys_inertia`, `coord_sys_inertia_tensor`)
.. _`Creoson 2.6.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.6.0
0.4.3 (2020-03-07)
------------------
Update missing features from previous Creoson updates.
* New Features:
* drawing_set_sheet_format
* file_get_cur_material
* file_get_cur_material_wildcard
* file_list_materials
* file_list_materials_wildcard
* file_load_material_file
* file_set_cur_material
* New param:
* note_list:
* add *select* param
* add *location* in response
0.4.2 (2020-03-03)
------------------
Bugfix:
* feature_list params correction (ADD: status, paths, no_comp. REMOVE: param, value, encoded)
* feature_list_params params correction(inc_unnamed)
* feature_param_exists params correction (name)
* add test on `status` correct values in feature's functions (feature_delete, feature_list feature_resume, feature_suppress)
modify pipenv config for bleach security alert.
0.4.1 (2020-01-30)
------------------
Bugfix:
* view_list_exploded(): name param was in request even if empty (`issue#4`_)
* start_creo(): path decomposition did not worked with Windows style (`issue#5`_)
* geometry_get_surfaces(): wrong data_key waited in result, need *surflist* (`issue#6`_)
.. _`issue#4`: https://github.com/Zepmanbc/creopyson/issues/4
.. _`issue#5`: https://github.com/Zepmanbc/creopyson/issues/5
.. _`issue#6`: https://github.com/Zepmanbc/creopyson/issues/6
0.4.0 (2019-10-12)
------------------
Update for `Creoson 2.5.0 release`_.
* New functions:
* file_delete_material
* drawing_get_sheet_format
* dimension_set_text
* Add parameters:
* windchill_clear_workspace: filenames
* dimension_list: select
* dimension_list_detail: select
* feature_resume: `name` can be an integer for *feat_ID*
* feature_suppress: `name` can be an integer for *feat_ID*
* New returns:
* note_get: location
* dimension_list: dwg_dim
* dimension_list_detail: dwg_dim
* Few notes updates
.. _`Creoson 2.5.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.5.0
0.3.3 (2019-07-13)
------------------
Bugfix:
* feature_resume: `with_children` paramt set default to `False` (`issue #3`_)
.. _`issue #3`: https://github.com/Zepmanbc/creopyson/issues/3
0.3.2 (2019-07-03)
------------------
Bugfix:
* creo_list_dirs: return empty list if there is no folder in the directory (`issue #1`_)
Add basic usage video on README
.. _`issue #1`: https://github.com/Zepmanbc/creopyson/issues/1
0.3.1 (2019-06-30)
------------------
Bugfixes:
* view_list: default query name="*"
0.3.0 (2019-06-29)
------------------
Bugfixes:
* file_set_mass_units: function param correction
* file_list: function param correction
* general: set active file when file is optionnal
Improvement:
* file_open: `activate` and `display` default to True
* dimension_set: file is optionnal
0.2.0 (2019-06-28)
------------------
Update for Creoson 2.4.0 release. New functions:
* parameter_set_designated
* feature_list_group_features
* feature_list_pattern_features
Add missing function:
* feature_list_params
0.1.0 (2019-06-22)
------------------
First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/Zepmanbc/creopyson",
"name": "creopyson",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "creopyson",
"author": "Benjamin C.",
"author_email": "zepman@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e5/5e/bc74fdf2426d4f04e7b813e567e4d01a82b08f0bb5c673df4636e29f5af2/creopyson-0.7.7.tar.gz",
"platform": null,
"description": "=========\nCreopyson\n=========\n\n\n.. image:: https://img.shields.io/pypi/v/creopyson.svg\n :target: https://pypi.python.org/pypi/creopyson\n\n.. image:: https://github.com/Zepmanbc/creopyson/actions/workflows/release.yml/badge.svg\n :target: https://github.com/Zepmanbc/creopyson/actions/workflows/release.yml\n\n.. image:: https://coveralls.io/repos/github/Zepmanbc/creopyson/badge.svg?branch=master\n :target: https://coveralls.io/github/Zepmanbc/creopyson?branch=master\n\n.. image:: https://readthedocs.org/projects/creopyson/badge/?version=latest\n :target: https://creopyson.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://github.com/Zepmanbc/creopyson/raw/master/docs/_static/buymeacoffe.png\n :target: https://www.buymeacoffee.com/Zv7CwOS\n :alt: Buy Me A Coffee\n\nCreopyson is a python library that aim to control `PTC's CREO Parametric`_ via JLink via CREOSON.\n\nCREOSON uses JSON Requests to send commands/functions to CREO, JSON Responses are used to communicate the results of your requests.\n\nCreopyson creates a Client to send JSON Requests to CREOSON server.\n\n* Free software: MIT license\n* Documentation: https://creopyson.readthedocs.io.\n\n.. _`PTC's CREO Parametric`: https://www.ptc.com/en/products/cad/creo/parametric\n\nFeatures\n--------\n\nCreopyson can be used to automate actions in CREO:\n\n* Get BOM\n* Manage files, Working directories\n* Support Familytables\n* Export 3D/2D: pdf3d, pdf, STEP, IGES, JPEG...\n* Interact with layers, views\n* Read/Write parameters, dimensions\n* Support Windchill\n\nBasic usage video:\n\n.. image:: https://github.com/Zepmanbc/creopyson/raw/master/docs/_static/video.png\n :target: https://youtu.be/NjkvRZJQzXs\n\nSee documentation for more informations...\n\nCredits\n-------\n\nCREOSON_ from `Simplified Logic, Inc.`_\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _CREOSON: http://www.creoson.com/\n.. _`Simplified Logic, Inc.`: http://www.simplifiedlogic.com/\n\n\n=======\nHistory\n=======\n\n0.7.7 (2024-02-03)\n---------------------------------\n\n* BugFix:\n * Correction for `drawing.set_view_loc` (`issue#84`_)\n\n.. _`issue#84`: https://github.com/Zepmanbc/creopyson/issues/84\n\n0.7.6 (2023-02-26)\n---------------------------------\n\n* BugFix:\n * Correction for `layer.delete` (`issue#68`_)\n\n.. _`issue#68`: https://github.com/Zepmanbc/creopyson/issues/68\n\nDocumentation update (2023-02-16)\n---------------------------------\n\nUpdate for `Creoson 2.8.2 release`_.\n\n* No modification in creopyson, just documentation update, see Creoson's release note.\n\n.. _`Creoson 2.8.2 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.2\n\n0.7.5 (2022-12-10)\n------------------\n\n* BugFix:\n * Add missing `location` argument on note_set (`issue#62`_)\n\n.. _`issue#62`: https://github.com/Zepmanbc/creopyson/issues/62\n\n0.7.4 (2022-05-16)\n------------------\n\nUpdate for `Creoson 2.8.1 release`_.\n\n* Add parameters:\n * bom_get_paths : get_simpreps\n* Documentation update:\n * creo_set_creo_version : Creo 8 support.\n\n.. _`Creoson 2.8.1 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.1\n\n0.7.3 (2021-08-29)\n------------------\n\n* Add *is not None* almost everywhere to prevent *False* and *None* confusion\n* Migrates to Github Workflow\n* Remove pipenv stuff\n\n0.7.2 (2021-04-01)\n------------------\n\n* change python_requires to \">=3.7\"\n\n0.7.1 (2021-03-23)\n------------------\n\n* BugFix:\n * `file_get_active` returns `{}` instead of `None` with Creoson 2.8.0\n\n0.7.0 (2021-03-22)\n------------------\n\nUpdate for `Creoson 2.8.0 release`_.\n\n* New functions:\n * creo_set_creo_version (prevent Creo 7 problems)\n * feature_list_selected\n* Add parameters:\n * feature_set_param: description\n * parameter_set: description\n* Documentation update:\n * drawing_list: add *view_model*, *simp_rep* in Return\n * feature_list_param: add *description* in Return\n * feature_user_select_csys: add *file*, remove \"feat_number* in Return object.\n * parameter_list: add *description* in Return\n* BugFix:\n file_set_cur_material: now working with Creoson >2.8.0\n\n.. _`Creoson 2.8.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.0\n\n0.6.2 (2021-02-17)\n------------------\n\nBugfix:\n\n* drawing.get_cur_model: correction data_key (`issue#27`_)\n\n.. _`issue#27`: https://github.com/Zepmanbc/creopyson/issues/27\n\n0.6.1 (2021-01-30)\n------------------\n\nBugfix:\n\n* familytable.list_tree: correction data_key (`issue#21`_)\n\nDocumentation update:\n\n* Usage: Add vanilla Creoson\n* Usage: Add logging\n* Issues template: add Creo version\n\n\n.. _`issue#21`: https://github.com/Zepmanbc/creopyson/issues/21\n\n0.6.0 (2020-07-16)\n------------------\n\nUpdate for `Creoson 2.7.0 release`_.\n\n* New functions:\n * file_get_accuracy\n* Add parameters:\n * interface_mapkey: delay\n * interface_export_pdf interface_export_pdf3d : sheet_range\n\n.. _`Creoson 2.7.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.7.0\n\n0.5.2 (2020-07-09)\n------------------\n\nDocumentation update\n\n* usage: path slashes correction\n\nDocstring correction\n\n* drawing_list_models : correction (`issue#18`_)\n\nBugfix\n\n* file_get_transform : Does not return *transform* key (`issue#17`_)\n\n.. _`issue#18`: https://github.com/Zepmanbc/creopyson/issues/18\n.. _`issue#17`: https://github.com/Zepmanbc/creopyson/issues/17\n\n\n0.5.1 (2020-05-19)\n------------------\n\nDocstring updates:\n\n* interface_import_file: PV extension correction.\n* interface_export_image: add infos about valid values in docstrings for dpi and depth.\n\nFeatures updates:\n\n* interface_mapkey: remove extra white space in script string.\n* connection_start_creo: add use_desktop param.\n\nNew Feature:\n\n* Add **logging DEBUG** on request & response.\n\n0.5.0 (2020-03-08)\n------------------\n\nUpdate for `Creoson 2.6.0 release`_.\n\n* New functions:\n * interface_import_file\n* Add parameters:\n * bom_get_paths: add `has_simprep`\n * file_delete_material: `file` now allows wildcard\n * interface_export_file: add *NEUTRAL* to `file_type`\n * file_load_material: `file_` allows wildcard\n* New returns:\n * file_massprops: add inertia matrices to output (`ctr_grav_inertia_tensor`, `coord_sys_inertia`, `coord_sys_inertia_tensor`)\n\n.. _`Creoson 2.6.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.6.0\n\n0.4.3 (2020-03-07)\n------------------\n\nUpdate missing features from previous Creoson updates.\n\n* New Features:\n * drawing_set_sheet_format\n * file_get_cur_material\n * file_get_cur_material_wildcard\n * file_list_materials\n * file_list_materials_wildcard\n * file_load_material_file\n * file_set_cur_material\n\n* New param:\n * note_list:\n * add *select* param\n * add *location* in response\n\n0.4.2 (2020-03-03)\n------------------\n\nBugfix:\n\n* feature_list params correction (ADD: status, paths, no_comp. REMOVE: param, value, encoded)\n* feature_list_params params correction(inc_unnamed)\n* feature_param_exists params correction (name)\n* add test on `status` correct values in feature's functions (feature_delete, feature_list feature_resume, feature_suppress)\n\nmodify pipenv config for bleach security alert.\n\n0.4.1 (2020-01-30)\n------------------\n\nBugfix:\n\n* view_list_exploded(): name param was in request even if empty (`issue#4`_)\n* start_creo(): path decomposition did not worked with Windows style (`issue#5`_)\n* geometry_get_surfaces(): wrong data_key waited in result, need *surflist* (`issue#6`_)\n\n.. _`issue#4`: https://github.com/Zepmanbc/creopyson/issues/4\n.. _`issue#5`: https://github.com/Zepmanbc/creopyson/issues/5\n.. _`issue#6`: https://github.com/Zepmanbc/creopyson/issues/6\n\n0.4.0 (2019-10-12)\n------------------\n\nUpdate for `Creoson 2.5.0 release`_.\n\n* New functions:\n\n * file_delete_material\n * drawing_get_sheet_format\n * dimension_set_text\n\n* Add parameters:\n\n * windchill_clear_workspace: filenames\n * dimension_list: select\n * dimension_list_detail: select\n * feature_resume: `name` can be an integer for *feat_ID*\n * feature_suppress: `name` can be an integer for *feat_ID*\n\n* New returns:\n * note_get: location\n * dimension_list: dwg_dim\n * dimension_list_detail: dwg_dim\n\n* Few notes updates\n\n.. _`Creoson 2.5.0 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.5.0\n\n0.3.3 (2019-07-13)\n------------------\n\nBugfix:\n\n* feature_resume: `with_children` paramt set default to `False` (`issue #3`_)\n\n.. _`issue #3`: https://github.com/Zepmanbc/creopyson/issues/3\n\n0.3.2 (2019-07-03)\n------------------\n\nBugfix:\n\n* creo_list_dirs: return empty list if there is no folder in the directory (`issue #1`_)\n\nAdd basic usage video on README\n\n.. _`issue #1`: https://github.com/Zepmanbc/creopyson/issues/1\n\n\n0.3.1 (2019-06-30)\n------------------\n\nBugfixes:\n\n* view_list: default query name=\"*\"\n\n\n0.3.0 (2019-06-29)\n------------------\n\nBugfixes:\n\n* file_set_mass_units: function param correction\n* file_list: function param correction\n* general: set active file when file is optionnal\n\nImprovement:\n\n* file_open: `activate` and `display` default to True\n* dimension_set: file is optionnal\n\n\n0.2.0 (2019-06-28)\n------------------\n\nUpdate for Creoson 2.4.0 release. New functions:\n\n* parameter_set_designated\n* feature_list_group_features\n* feature_list_pattern_features\n\nAdd missing function:\n\n* feature_list_params\n\n\n0.1.0 (2019-06-22)\n------------------\n\nFirst release on PyPI.\n\n\n",
"bugtrack_url": null,
"license": "MIT license",
"summary": "Python library for Creoson",
"version": "0.7.7",
"project_urls": {
"Homepage": "https://github.com/Zepmanbc/creopyson"
},
"split_keywords": [
"creopyson"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "261610937b4196fd458c67449f88575c395d99dcecb80fa50daece6f42fd50ad",
"md5": "6bb36863dd79b3c96b39439bad4f4e9d",
"sha256": "2d5d66d10842982ccfcfb939060ab0c222e682636aa0f29063af39e79fc69325"
},
"downloads": -1,
"filename": "creopyson-0.7.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6bb36863dd79b3c96b39439bad4f4e9d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 39161,
"upload_time": "2024-02-03T08:54:52",
"upload_time_iso_8601": "2024-02-03T08:54:52.826802Z",
"url": "https://files.pythonhosted.org/packages/26/16/10937b4196fd458c67449f88575c395d99dcecb80fa50daece6f42fd50ad/creopyson-0.7.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e55ebc74fdf2426d4f04e7b813e567e4d01a82b08f0bb5c673df4636e29f5af2",
"md5": "b3d5894b1867a54002e4da64220fef61",
"sha256": "0151fe2e15fac7b9f45eace9a33f1a0d6fccb99e263e3db4026c5bd716a31fa5"
},
"downloads": -1,
"filename": "creopyson-0.7.7.tar.gz",
"has_sig": false,
"md5_digest": "b3d5894b1867a54002e4da64220fef61",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 223820,
"upload_time": "2024-02-03T08:54:54",
"upload_time_iso_8601": "2024-02-03T08:54:54.115571Z",
"url": "https://files.pythonhosted.org/packages/e5/5e/bc74fdf2426d4f04e7b813e567e4d01a82b08f0bb5c673df4636e29f5af2/creopyson-0.7.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-03 08:54:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Zepmanbc",
"github_project": "creopyson",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": [
[
"==",
"2.*"
]
]
}
],
"tox": true,
"lcname": "creopyson"
}