Sign inSign up

annihilator708/pythonocc_core

By annihilator708

•Updated over 4 years ago

Python 3.7 - OpenCascade - Conda

Image
0

189

annihilator708/pythonocc_core repository overview

⁠Contents

⁠Python 3.7.9

     active environment : None
       user config file : /root/.condarc
 populated config files : 
          conda version : 4.11.0
    conda-build version : not installed
         python version : 3.7.9.final.0
       virtual packages : __linux=5.4.72=0
                          __glibc=2.24=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /usr/lib/miniforge  (writable)
      conda av data dir : /usr/lib/miniforge/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /usr/lib/miniforge/pkgs
                          /root/.conda/pkgs
       envs directories : /usr/lib/miniforge/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.11.0 requests/2.24.0 CPython/3.7.9 Linux/5.4.72-microsoft-standard-WSL2 debian/9 glibc/2.24
                UID:GID : 0:0
             netrc file : None
           offline mode : False

⁠Python Packages

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
brotlipy                  0.7.0           py37h27cfd23_1003  
ca-certificates           2021.10.8            ha878542_0    conda-forge
cadquery                  2.1                       py3.7    cadquery
certifi                   2021.10.8        py37h89c1867_1    conda-forge
cffi                      1.14.3           py37h261ae71_2  
chardet                   3.0.4           py37h06a4308_1003  
conda                     4.11.0           py37h89c1867_2    conda-forge
conda-package-handling    1.7.2            py37h03888b9_0  
cryptography              3.2.1            py37h3c74f83_1  
cqparts                   0.2.2.dev1                         Manual
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
ezdxf                     0.14.2                     py_0    conda-forge
fontconfig                2.13.96              ha180cfb_0    conda-forge
freeimageplus             3.18.0               hf484d3e_2    dlr-sc
freetype                  2.10.4               h0708190_1    conda-forge
icu                       68.1                 h2531618_0  
idna                      2.10                       py_0  
ipython                   7.32.0           py37h89c1867_0    conda-forge
jedi                      0.18.1           py37h89c1867_0    conda-forge
jinja2                    3.0.3              pyhd8ed1ab_0    conda-forge
ld_impl_linux-64          2.33.1               h53a641e_7  
libblas                   3.9.0                8_openblas    conda-forge
libcblas                  3.9.0                8_openblas    conda-forge
libedit                   3.1.20191231         h14c3975_1  
libffi                    3.3                  he6710b0_2  
libgcc-ng                 11.2.0              h1d223b6_13    conda-forge
libgfortran-ng            7.5.0               h14aa051_20    conda-forge
libgfortran4              7.5.0               h14aa051_20    conda-forge
libgomp                   11.2.0              h1d223b6_13    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
liblapack                 3.9.0                8_openblas    conda-forge
libopenblas               0.3.12          pthreads_hb3c22a3_1    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libstdcxx-ng              9.1.0                hdf63c60_0  
libuuid                   2.32.1            h7f98852_1000    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxml2                   2.9.12               h72842e0_0    conda-forge
markupsafe                2.1.0            py37h540881e_1    conda-forge
matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
ncurses                   6.2                  he6710b0_1  
nptyping                  1.4.4              pyhd8ed1ab_0    conda-forge
numpy                     1.20.3           py37h038b26d_1    conda-forge
occt                      7.4.0                h9121d39_3    conda-forge
ocp                       7.4                     1_py3.7    cadquery
opencascade               7.4.0                h6bb024c_5    dlr-sc
openssl                   1.1.1l               h7f98852_0    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pip                       20.2.4           py37h06a4308_0  
prompt-toolkit            3.0.27             pyha770c72_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pycosat                   0.6.3            py37h27cfd23_0  
pycparser                 2.20                       py_2  
pygments                  2.11.2             pyhd8ed1ab_0    conda-forge
pyopenssl                 19.1.0             pyhd3eb1b0_1  
pyparsing                 2.4.7              pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1                    py37_1  
python                    3.7.9                h7579374_0  
python_abi                3.7                     2_cp37m    conda-forge
pythonocc-core            7.4.1            py37h6bb024c_0    pythonocc
qt                        5.9.7                h5867ecd_1    anaconda
readline                  8.0                  h7b6447c_0  
requests                  2.24.0                     py_0  
ruamel_yaml               0.15.87          py37h7b6447c_1  
scipy                     1.5.3            py37h8911b10_0    conda-forge
setuptools                50.3.1           py37h06a4308_1  
six                       1.15.0           py37h06a4308_0  
sqlite                    3.33.0               h62c20be_0  
tbb                       2020.2               hc9558a2_0    conda-forge
tinydb                    4.7.0              pyhd8ed1ab_0    conda-forge
tk                        8.6.10               hbc83047_0  
tqdm                      4.51.0             pyhd3eb1b0_0  
traitlets                 5.1.1              pyhd8ed1ab_0    conda-forge
typing_extensions         4.1.1              pyha770c72_0    conda-forge
typish                    1.9.3              pyhd8ed1ab_0    conda-forge
urllib3                   1.25.11                    py_0  
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
wheel                     0.35.1             pyhd3eb1b0_0  
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.0.10               h7f98852_0    conda-forge
xorg-libsm                1.2.3             hd9c2040_1000    conda-forge
xorg-libx11               1.7.2                h7f98852_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxt                1.2.1                h7f98852_2    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.5                h7b6447c_0  
yaml                      0.2.5                h7b6447c_0  
zlib                      1.2.11               h7b6447c_3  

⁠Unix Libraries

  • git
  • libgl1-mesa-glx
  • wget

⁠Start coding

Create a docker environment from your project. Use annihilator708/pythonocc_core:latest as base image to pull from the docker registry.

FROM annihilator708/pythonocc_core:latest as base_image

The tag of a version of this Image relates to the respected python version.

Available versions:

  • latest
  • 3_7_9

⁠IDE

⁠Visual Studio Code

  • Hit F1 in visual studio code -> Remote-Containers: Rebuild and Reopen in container

⁠Examples

⁠Cube

import cadquery as cq
from cadquery import exporters

cube = cq.Workplane().box(1, 1, 1)

exporters.export(cube, '/output/cube.step')

⁠Convert STEP to GLTF

import cqparts
input_file  = "/output/cube.step"   # input STEP (AP203/AP214 file)
output_file = "/output/convert.gltf"   # output gltf file
cqparts.Assembly.importer('step')(input_file).exporter('gltf')(output_file)

⁠Push to docker hub

Update the Original docker image⁠.

⁠Build Image

docker-compose up --build

⁠Tag Image where version tag is Python version

docker tag pythonocc_core:latest annihilator708/pythonocc_core:latest

⁠Push to docker hub

docker push annihilator708/pythonocc_core:3_7_9

Tag summary

Content type

Image

Digest

Size

941.5 MB

Last updated

over 4 years ago

docker pull annihilator708/pythonocc_core