Skip to main content

pycatia

alpha software

This is alpha software.

The CATIA com interface is large and I’ve predominantly wrote tests for those areas I’m familiar. Any bugs that exist should be easy to fix. There are many examples of fixes within the git repository history that can be learned from to fix remaining issues.

Requirements

  • python >= 3.9

  • CATIA V5 running on Windows.

  • see requirements.txt

Installation

see installation.

Usage

See the introduction, examples and user_scripts for a good over view on how to use pycatia.

Examples And Scripts

See the documentation @ examples and user_scripts.

A GUI based application that uses pycatia - pycatia-tools.

Asking Questions

Please read the following with regards to raising questions: https://github.com/evereux/pycatia/issues/28

Contributing

See CONTRIBUTING.md in root of github repository.

Running The Tests

Prior to running the tests please ensure CATIA V5 has the following configuration settings:

  • CGR cache system must be disabled.

  • Do not activate default shapes on open must be disabled.

  • Parameter names must not have back ticks enabled.
    Tools > Options > General > Parameters and Measure > Knowledge > Parameter Names > Surrounded by the ` symbol.

On the first run, during the running of the tests, the test suite will create the CATIA drawing, products and part it requires to run and adds them to the folder tests/cat_files.

If you have previously run the tests successfully and see unexpected errors, it maybe that the source parts require re-creating. Try deleting the CATIA files in the folder tests/cat_files so that they are regenerated on the next test run.

CATIA V5 should already be running and have NO documents already open.

To run the tests with coverage (-v is verbosity):

py.test -v --cov-report term-missing --cov=pycatia

To run a specific test:

py.test -v tests/test_product.py::test_move

To stop tests running after first failure.

py.test -vx

Release process

A reminder for @evereux. I don’t do this often and forget …

  • Check version is correct.

  • Check changelog has been updated.

  • Run the tests. pytest -v tests
    • Ensure cache is disabled and

    • Fix any issues.

  • Run the examples.
    • Fix any issues.

  • Build the docs. cd docs ./make html
    • Fix any issues.

  • Run mypy over module. mypy pycatia

  • Build source. python setup.py sdist bdist_wheel
    • Check source contents.

  • Build pycatia exe python -m nuitka --standalone pycatia-exe.py. * use 64 env. * rename pycatia-exe.exe.

  • Merge changes with master branch and upload.

  • Upload to pypi. twine upload dist/*.

  • Update github releases.

Metadata

Release files for pycatia 0.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycatia 0.11.1
File Size Uploaded Provenance Actions
pycatia-0.11.1.tar.gz 1.4 MB Without provenance Details for pycatia-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycatia 0.11.1
File Interpreter ABI Platform Actions
pycatia-0.11.1-py3-none-any.whl Python 3 none any Details for pycatia-0.11.1-py3-none-any.whl

Total release size: 3.9 MB

Release files / pycatia-0.11.1.tar.gz

Download URL pycatia-0.11.1.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
59bbe8cdb6b6f053ddfec1e13bd02f6ee0254dbf3a2afe74278d87009198eaaf
BLAKE2b-256 checksum
How to use checksums
aae54de2e5aa06255d79dda15a19171ac071838a4cebacd65e1d4aa7951142b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / pycatia-0.11.1-py3-none-any.whl

Download URL pycatia-0.11.1-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e41a9339191694dac1095aafb76f57513cd1a97b710ab7934a899ff8abee053f
BLAKE2b-256 checksum
How to use checksums
b956dc3632fed93c3b4ecfa33f6d9d893b762c71ebe08eff4620fc1d84eb387e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for pycatia 0.11.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page