Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(3)  |  Import(2)

src/s/k/skdb-HEAD/geom/geom.py   skdb(Download)
from OCC.TopAbs import TopAbs_VERTEX, TopAbs_FACE, TopAbs_WIRE, TopAbs_EDGE
 
from skdb import Connection, Part, Interface, Unit, FennObject, prettyfloat
import os, math
from copy import copy, deepcopy

src/s/k/skdb-HEAD/doc/proposals/pie.py   skdb(Download)
#!/usr/bin/python
from skdb import Part, Unit, UnitError
from string import join, split
import unittest
 
class Apple(Part):
    yaml_tag = "!apple"
    def __init__(self, color=Color("green"), sliced=False):
        if not isinstance(color, Color): color = Color(color)
        self.color = color
class Pumpkin(Part):
    yaml_tag = "!pumpkin"
    def __init__(self):
        Part.__init__(self)
        self.name = ""
    def __repr__(self):
        return "Pumpkin(\"%s\")" % (self.name)
 
class Pie(Part):