repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/pyarubaos-sw_api/video4_func_examples/sample_function.py | <reponame>smallfount/scriptsonly<gh_stars>10-100
def printme(x):
print("My data is", x)
printme(42)
|
smallfount/scriptsonly | switchdb/bkup_files/testdb.py | <gh_stars>10-100
from flask import Flask, request, flash, url_for, redirect, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///students.sqlite3'
db = SQLAlchemy(app)
class students(db.Model):
id = db.Column('student_id', db.Integer, pr... |
smallfount/scriptsonly | bsn_scripts/views.py | <filename>bsn_scripts/views.py
#!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
U... |
smallfount/scriptsonly | Events/JN_scripts/netmiko/dis_arp.py | <gh_stars>10-100
from netmiko import ConnectHandler
from datetime import datetime
MSR1K_1 = {
'device_type':'hp_comware',
'ip':'10.150.0.2',
'username':'ctrask',
'password':'<PASSWORD>',
}
A3810_1 = {
'device_type':'hp_procurve',
'ip':'10.150.0.1',
'username':'ctrask',
'password':'<PAS... |
smallfount/scriptsonly | bsn_scripts/bsn_scripting/listdom.py | #!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
smallfount/scriptsonly | dcn_scripts/dcn_scripting/build_domain.py | #!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
smallfount/scriptsonly | switchdb/bkup_files/switchdb2.py | <gh_stars>10-100
#!/usr/bin/env python
'''
Copyright 2016 Hewlett Packard Enterprise Development LP.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/... |
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/python_and_rest_api_vid_scripts/get_status.py | <filename>ArubaOS-Sw_API_Scripts/python_and_rest_api_vid_scripts/get_status.py
import requests
import pprint as pp
tin = ['192.168.1.29', '192.168.1.218', '192.168.1.219']
wrong_code = []
for ip in tin:
url = 'http://' + ip + '/rest/v1/system/status'
get_status_response = requests.get(url, timeout=2)
#pp.... |
smallfount/scriptsonly | bsn_scripts/bsn_scripting/x2.py | <filename>bsn_scripts/bsn_scripting/x2.py<gh_stars>10-100
#!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org... |
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/pyarubaos-sw_api/video1_anycli/anycli.py | import requests
import json
import base64
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
url = 'http://192.168.2.1/rest/v3/'
creds = {'userName': 'admin', 'password': '<PASSWORD>'}
command = 'show ip route'
s = requests.Sessio... |
smallfount/scriptsonly | switchdb/r.py | <reponame>smallfount/scriptsonly<gh_stars>10-100
from flask import Flask
from settings import APP_STATIC
import os
app = Flask(__name__)
f = os.path.join(APP_STATIC, 'varMatrix.yaml')
print f
#with open(os.path.join(APP_STATIC, 'switchdb.csv')) as f:
|
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/pyarubaos-sw_api/video4_func_examples/hello-world.py | <gh_stars>10-100
a = "Hello world"
print(a)
b = "Hello moon"
print(b)
|
smallfount/scriptsonly | Events/ETSS June 2016/DevOps Networking Model/TextFSM/displayarp.py | ''' for python 3 reqires for of textFSM avialable at https://github.com/jonathanslenders/textfsm
Copyright 2016 Hewlett Packard Enterprise Development LP.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy o... |
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/python_and_rest_api_vid_scripts/get_cookie.py | import requests
url = "http://192.168.1.29/rest/v1/login-sessions"
payload = "{\"userName\": \"joe\", \"password\": \"x\"}"
response = requests.request("POST", url, data=payload)
print(response.text)
print(response.headers)
|
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/pyarubaos-sw_api/video2_clibatch/batch.py |
import requests
import json
import base64
import time
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
url = 'http://192.168.2.1/rest/v3/'
creds = {'userName': 'admin', 'password': '<PASSWORD>'}
s = requests.Session()
r = s.pos... |
smallfount/scriptsonly | Events/JN_scripts/netmiko/example1.py | from netmiko import ConnectHandler
A3810_1 = {
'device_type':'hp_procurve',
'ip':'10.150.0.1',
'username':'ctrask',
'password':'<PASSWORD>',
}
net_connect = ConnectHandler(**A3810_1)
output = net_connect.send_command("show version")
print output |
smallfount/scriptsonly | Clearpass Generic/Meridian-ClearPass-Agenda/cgi-bin/api/Gallery.py | <reponame>smallfount/scriptsonly
#!/usr/bin/env python
# Display all the picture stored in employee table
import cgi
import cgitb; cgitb.enable() # Optional; for debugging only
import mysql.connector as mariadb
print('Content-type: text/html\r\n')
MySQLQuery = 'select Email,PictureURL from Employee'
mariadb_connect... |
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/python_and_rest_api_vid_scripts/get_vlans.py | import requests
import pprint
url = 'http://192.168.1.29/rest/v1/vlans'
get_vlans = requests.get(url)
get_vlans_json = get_vlans.json()
#print(type(get_vlans_json))
#pprint.pprint(get_vlans_json)
elements = get_vlans_json['vlan_element']
print("2930 VLANS:")
for x in elements:
print("VLAN: {0} \t NAME: {1}".... |
smallfount/scriptsonly | dcn_scripts/views.py | #!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
smallfount/scriptsonly | Clearpass Generic/Meridian-ClearPass-Agenda/cgi-bin/auth_v2.py | #!/usr/bin/env python3.4
'''
Copyright 2016 Hewlett Packard Enterprise Development LP.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... |
smallfount/scriptsonly | dcn_scripts/dcn_scripting/aclz.py | #!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
smallfount/scriptsonly | switchdb/bkup_files/simp.py | <filename>switchdb/bkup_files/simp.py
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
db = SQLAlchemy(app)
class Students(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(8... |
smallfount/scriptsonly | Clearpass Generic/Meridian-ClearPass-Agenda/cgi-bin/create_client_v2.py | <gh_stars>10-100
#!/usr/bin/env python3.4
'''
Copyright 2016 Hewlett Packard Enterprise Development LP.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licens... |
smallfount/scriptsonly | Clearpass Generic/Meridian-ClearPass-Agenda/cgi-bin/agenda_v2.py | <filename>Clearpass Generic/Meridian-ClearPass-Agenda/cgi-bin/agenda_v2.py
#!/usr/bin/env python3.4
'''
Copyright 2016 Hewlett Packard Enterprise Development LP.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a c... |
smallfount/scriptsonly | ArubaOS-Sw_API_Scripts/pyarubaos-sw_api/video3_yaml_example/first_yaml_example.py | <filename>ArubaOS-Sw_API_Scripts/pyarubaos-sw_api/video3_yaml_example/first_yaml_example.py
import yaml
with open("first_yaml_example.yaml", 'r') as stream:
for x in yaml.load_all(stream):
print(x)
print(type(x))
|
smallfount/scriptsonly | bsn_scripts/bsn_scripting/first.py | <filename>bsn_scripts/bsn_scripting/first.py
#!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LIC... |
smallfount/scriptsonly | bsn_scripts/bsn_scripting/x3.py | #!/usr/bin/env python
'''
Copyright 2016 wookieware.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
RaviARS/inSuRance | insurance/policy/views.py | <gh_stars>0
from django.shortcuts import render
import requests
import csv, time
from dateutil import parser
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import generics
from rest_framework import mixins
from rest_framework import status
from .models import... |
RaviARS/inSuRance | insurance/policy/serializers.py | from .models import Policy
from rest_framework import serializers
from django.core.exceptions import ValidationError
class PolicySerializer(serializers.ModelSerializer):
Premium = serializers.IntegerField()
Customer_id = serializers.IntegerField()
Policy_id = serializers.IntegerField()
Date_of_Purchas... |
RaviARS/inSuRance | insurance/policy/models.py | <reponame>RaviARS/inSuRance
from django.db import models
from django.core.exceptions import ValidationError
class Policy(models.Model):
""" Policy data model. """
id = models.AutoField(primary_key=True)
Policy_id = models.PositiveIntegerField()
# Date_of_Purchase = models.DateField(null=True)
Date... |
RaviARS/inSuRance | insurance/policy/urls.py | <gh_stars>0
from django.urls import path
from django.conf.urls import url
from .views import PolicyListView, PolicyDetailView
from .views import PolicyAdd, PolicySearchAPI, PolicyChartAPI
from .views import index, policy_details, policy_chart, policy_edit, policy_add
urlpatterns = [
path('api/v1/policys/bulk_add... |
RaviARS/inSuRance | insurance/policy/migrations/0001_initial.py | # Generated by Django 3.2.11 on 2022-01-30 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Policy',
fields=[
('id', models.AutoField(... |
RaviARS/inSuRance | insurance/policy/admin.py | <gh_stars>0
from django.contrib import admin
from .models import Policy
admin.site.register(Policy)
|
jeffmincey/pystore | setup.py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# PyStore: Flat-file datastore for timeseries data
# https://github.com/ranaroussi/pystore
#
# Copyright 2018 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a c... |
Squillyprice01/KingCreativtiy2019 | iris.py | <filename>iris.py
import skflow
from sklearn import datasets, metrics
from sklearn.datasets import load_iris
data = load_iris()
iris = datasets.load_iris()
#feats = tf.contrib.learn.infer_real_valued_columns_from_input(x_train)
classifier = skflow.TensorFlowDNNClassifier(hidden_units=[10, 20, 10], n_classes=3)
classifi... |
Squillyprice01/KingCreativtiy2019 | featureProcessing.py | <reponame>Squillyprice01/KingCreativtiy2019
import csv
from collections import defaultdict
columns = defaultdict(list) # each value in each column is appended to a list
with open('student-mat2.csv') as f:
reader = csv.DictReader(f) # read rows into a dictionary format
for row in reader: # read a row as {colum... |
Squillyprice01/KingCreativtiy2019 | pandasTry.py | <reponame>Squillyprice01/KingCreativtiy2019
import os
import pandas as pd
from sklearn.preprocessing import OneHotEncoder, StandardScaler
from sklearn.impute import SimpleImputer
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import Pipeline
from sklearn.linear_model import LogisticRegression, Line... |
Squillyprice01/KingCreativtiy2019 | modelTrain.py | <reponame>Squillyprice01/KingCreativtiy2019
import os
import pandas as pd
from sklearn.preprocessing import OneHotEncoder, StandardScaler
from sklearn.impute import SimpleImputer
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import Pipeline
from sklearn.linear_model import LogisticRegression, Line... |
Squillyprice01/KingCreativtiy2019 | SciKitExample.py | <gh_stars>1-10
#First try at this
import csv
with open('student-mat2.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
if line_count == 0:
print(f'Column names are {", ".join(row)}')
line_count += 1
else:
... |
incomparable/Gaurav-takeaway | db.py | <filename>db.py
from pymongo import MongoClient
from flask import jsonify
import traceback
import json
import datetime
from bson import ObjectId
class Mdb:
def __init__(self):
conn_str = 'mongodb://tuser:<EMAIL>:33166/' \
'takeaway'
client = MongoClient(conn_str)
self.d... |
incomparable/Gaurav-takeaway | app.py | <gh_stars>0
from flask import Flask, request, make_response, render_template, jsonify,\
session, url_for, redirect, flash, send_from_directory
from flask_login import LoginManager, UserMixin, login_user, login_required,\
logout_user, current_user
from flask_admin import Admin, BaseView, expo... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ChFi2d.py | <filename>pythonocc/lib/OCC/ChFi2d.py<gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
n... |
mbattistello/lambda_converters | pythonocc/lib/OCC/STEPConstruct.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _STEPCon... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Display/wxDisplay.py | <reponame>mbattistello/lambda_converters<gh_stars>1-10
#!/usr/bin/env python
##Copyright 2008-2014 <NAME> (<EMAIL>)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Fre... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Bnd.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Bnd.SWI... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IntCurveSurface.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Blend.py | <filename>pythonocc/lib/OCC/Blend.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemeth... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ShapeUpgrade.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _ShapeUp... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepMAT2d.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/BRepMAT2d.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if v... |
mbattistello/lambda_converters | utils/conversion_error.py | <reponame>mbattistello/lambda_converters
class ConversionError(Exception): pass
|
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepAdaptor.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _BRepAda... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Extrema.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Extrema... |
mbattistello/lambda_converters | brd_to_step/brd_to_step.py | from __future__ import print_function
import getopt
import os
import pdb
import sys
from xml.dom import minidom
from conversion_error import ConversionError
from OCC.gp import gp_Pnt, gp_Vec
from OCC.BRepBuilderAPI import BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeWire, BRepBuilderAPI_MakeFace
from OCC.BRepPrimAPI... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IntCurvesFace.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _IntCurv... |
mbattistello/lambda_converters | build.py | #! /usr/bin/python
from __future__ import print_function
import getopt
import os
import pdb
import shutil
import sys
def usage():
print('''
Usage: build.py -d <directory>
Will copy OpenCascade and PythonOCC libraries
into the given directory.
See this help message with the option -h.
''')
... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Geom2dAPI.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Visualization.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IGESControl.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _IGESCon... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStepRepr.py | <filename>pythonocc/lib/OCC/RWStepRepr.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instanc... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GeomToStep.py | <filename>pythonocc/lib/OCC/GeomToStep.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instanc... |
mbattistello/lambda_converters | brd_to_step/utilities.py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 6 09:31:40 2019
@author: marcobattistello
"""
def sortWireList( list ):
oldList = list
newList = []
#get wire line
class Point():
def __init__( self, x, y ):
self.x = x
self.y = y
... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GccInt.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _GccInt.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Draft.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Draft.S... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ChFiDS.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _ChFiDS.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepTopAdaptor.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _BRepTop... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GraphDS.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStepAP214.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _RWStepA... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TopBas.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TopBas.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GarbageCollector.py | ##Copyright 2008-2014 <NAME> (<EMAIL>)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Foundation, either version 3 of the License, or
##(at your option) any late... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepOffset.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _BRepOff... |
mbattistello/lambda_converters | pythonocc/lib/OCC/AdvApp2Var.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Dynamic.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Dynamic... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepToGeom.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/StepToGeom.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if ... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Storage.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Storage... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Bisector.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Bisecto... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GeomAdaptor.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _GeomAda... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ShapeCustom.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _ShapeCu... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepBasic.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _StepBas... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepClass.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IntRes2d.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _IntRes2... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ChFi3d.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _ChFi3d.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ShapeConstruct.py | <reponame>mbattistello/lambda_converters<filename>pythonocc/lib/OCC/ShapeConstruct.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info... |
mbattistello/lambda_converters | step_to_stl/step_to_stl.py | <reponame>mbattistello/lambda_converters
from __future__ import print_function
import getopt
import os
import pdb
import sys
from conversion_error import ConversionError
from OCC.StlAPI import StlAPI_Writer
from OCC.STEPControl import STEPControl_Reader
from OCC.IFSelect import IFSelect_RetDone, IFSelect_ItemsByEnti... |
mbattistello/lambda_converters | pythonocc/lib/OCC/MeshVS.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _MeshVS.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/AppStd.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _AppStd.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/IntImpParGen.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _IntImpP... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Geom2dInt.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Geom2dI... |
mbattistello/lambda_converters | brd_to_step/test_xml.py | <reponame>mbattistello/lambda_converters<filename>brd_to_step/test_xml.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 4 17:10:00 2019
@author: marcobattistello
"""
from xml.dom import minidom
xml = "<eagle version=\"7\"><drawing><board><plain><wire x1=\"0\" y1=\"0\" x2=\"0\" y2=\"2\" width... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Standard.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _Standar... |
mbattistello/lambda_converters | pythonocc/lib/OCC/ElSLib.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _ElSLib.... |
mbattistello/lambda_converters | pythonocc/lib/OCC/StepAP209.py | <filename>pythonocc/lib/OCC/StepAP209.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/STEPSelections.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _STEPSel... |
mbattistello/lambda_converters | step_to_stl/handler.py | <reponame>mbattistello/lambda_converters
from __future__ import print_function
import json
import os
from aws_s3 import AwsS3
from conversion_error import ConversionError
from step_to_stl import convert
STEP_KEY_PREFIX = 'cad_files/stl/'
def lambda_handler(event, context):
print('Running lambda_handler...')
... |
mbattistello/lambda_converters | pythonocc/lib/OCC/Adaptor2d.py | <filename>pythonocc/lib/OCC/Adaptor2d.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/RWStepShape.py | <reponame>mbattistello/lambda_converters
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instance... |
mbattistello/lambda_converters | pythonocc/lib/OCC/TDataXtd.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _TDataXt... |
mbattistello/lambda_converters | pythonocc/lib/OCC/PLib.py | <reponame>mbattistello/lambda_converters<gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
... |
mbattistello/lambda_converters | pythonocc/lib/OCC/BRepPrim.py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _BRepPri... |
mbattistello/lambda_converters | pythonocc/lib/OCC/GccAna.py | <gh_stars>1-10
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst... |
mbattistello/lambda_converters | pythonocc/lib/OCC/__init__.py | <reponame>mbattistello/lambda_converters<gh_stars>1-10
VERSION = "0.16.5"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.