blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
72ba75ce2f2e77369dead85f3da0cec06c1beb2c
674fd493bc25fdc1ead8566492d4277fd9bf8244
/applications/events/managers.py
a2cd2a0d5458ae45a480878dfa58960b04f18a64
[]
no_license
EddyChavez/prototype_02_backend
af358676e25aa0404f5d9475ef7b22e6e327a5b1
643e444d60d21e9b8d4580854d96c72428bbe78b
refs/heads/master
2023-08-19T10:30:48.641794
2021-10-18T14:19:00
2021-10-18T14:19:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
from os import stat from django.db import models class EventsManager(models.Manager): def events_by_user(self, idUser): return self.filter( create_by=idUser, ).order_by('created') def filter_events(self, status): if status == "EN PROCESO": status = ["EN PROCESO", "LLEGO PEDIDO"] elif status == "CONCLUIDO": status = ["CONCLUIDO"] return self.filter( status__in=status, ).order_by('created')
[ "rafalopezrl749@gmail.com" ]
rafalopezrl749@gmail.com
291abf8f88c116a795691df3fc7b98193a54075b
37ca96a22cdd6535e49027b55ab59f124ec4cb65
/train_search.py
d187f196b7cbeed25cf0fe90fac726c0c58ef933
[]
no_license
sharat910/RL-AI-search
43b79775c5cae17150d5cd7cf21863c3cfc1f6c2
81f3e74e4ff866355c335b308cd422eb4f0c77e0
refs/heads/master
2021-01-18T17:38:41.960632
2016-10-26T06:25:23
2016-10-26T06:25:23
71,972,477
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
from learn import MarkovAgent from search import * import numpy as np simulator = SearchSimulation() observations = simulator.observations(50000, 15) mark = MarkovAgent(observations) mark.learn() class AISearch(Search): def update_location(self): self.location = mark.policy[self.state()] binary_results = [] linear_results = [] random_results = [] ai_results = [] for i in xrange(10000): # create array and target value array = simulator._random_sorted_array(15) target = random.choice(array) # generate observation for search of each type binary = simulator.observation(len(array),BinarySearch(array, target)) linear = simulator.observation(len(array),LinearSearch(array, target)) rando = simulator.observation(len(array),RandomSearch(array, target)) ai = simulator.observation(len(array),AISearch(array, target)) # append result binary_results.append(len(binary['state_transitions'])) linear_results.append(len(linear['state_transitions'])) random_results.append(len(rando['state_transitions'])) ai_results.append(len(ai['state_transitions'])) # display average results print "Average binary search length: {0}".format(np.mean(binary_results)) # 3.6469 print "Average linear search length: {0}".format(np.mean(linear_results)) # 5.5242 print "Average random search length: {0}".format(np.mean(random_results)) # 14.2132 print "Average AI search length: {0}".format(np.mean(ai_results)) # 3.1095
[ "sharat910@gmail.com" ]
sharat910@gmail.com
6106ff1a423108266fe62c439dfa31cc744ab641
9c6ede34ef2027259924a231c805d36b22ab6a76
/venv/lib/python3.5/site-packages/np_utils/np_utils.py
d55d2a6ae996fc5bd75f8a7ed30c145b93eec021
[]
no_license
Chanaka-Sandeepa/MultiLevel-K-way-partitioning-FYP
3810197e367784c500aabc7332c2f24e9117e4d1
5becf1456f27f366778e5b8fc08cdbb40626b659
refs/heads/master
2020-03-15T21:17:00.624112
2018-05-12T04:47:40
2018-05-12T04:47:40
132,351,688
0
0
null
null
null
null
UTF-8
Python
false
false
38,030
py
#!/usr/bin/env python '''Utilities for array and list manipulation by David Mashburn. Notable functions by category: Simple utilities and array generators ------------------------------------- multidot -> np.dot with multiple arguments linrange, build_grid -> alternatives to numpy builtins (arange, mgrid) with different parameter options true_where, np_has_duplicates, haselement -> functions to test arrays Transformations: reshaping, splitting, filtering ------------------------------------------------ ravel_at_depth, reshape_smaller, reshape_repeating -> reshape helpers/ enhancements partitionNumpy -> like list_utils.partition for arrays shapeShift -> In one call, construct a new array of different shape with the same contents addBorder -> add a border aroung an ND-array shape_multiply, shape_multiply_zero_fill -> scale arrays by integer multiples (without interpolation) remove_duplicate_subarrays-> efficient set-like operation for arrays -- like an order-perserving version of np.unique that deals with subarrays instead of elements sliding_window -> Create a view into an array that can contains overlapping windows Basic numerical calculations ---------------------- diffmean, sum_sqr_diff, sqrtSumSqr, sqrtMeanSqr -> common combinations of numpy operations vectorNorm, pointDistance -> vector norm and euclidean distance Polygon metrics --------------- polyArea, polyCirculationDirection, polyCentroid, polyPerimeter -> basic metrics over polygons represented as arrays of (x, y) points (the final point is always assumed to connect to the first) Interpolation ------------- interpNaNs -> Fill any NaN values with interpolated values (1D) linearTransform, reverseLinearTransform -> Linear transformations based on starting and ending points FindOptimalScaleAndTranslationBetweenPointsAndReference -> Helper function, wrapper around linear least squares Broadcasting ------------ concatenate_broadcasting -> Broadcasting version of concatenate (alias broad_cat) reverse_broadcast -> change any function to broadcast its arguments using reversed shapes (matches leftmost dimensions instead of right) Boxing (nested arrays) ---------------------- box, unbox -> Generate an ndarray of ndarrays (or vice-versa) Generalized map/apply --------------------- map_along_axis -> Map a function along any axis of an array apply_at_depth_ravel -> Apply a function that actions on 1D arrays at any depth in an array apply_at_depth -> Apply a function at any depth in an array Also works for functions with multiple arguments (different depths per argument) ''' from __future__ import division from __future__ import print_function from __future__ import absolute_import from builtins import str, map, zip, range from future.utils import lmap, lrange import numpy as np from numpy.lib.stride_tricks import as_strided from .func_utils import g_inv_f_g from .list_utils import flatten, zipflat, all_equal, split_at, coerce_to_target_length from distutils.version import StrictVersion from functools import reduce if StrictVersion(np.__version__) < StrictVersion('1.11.0'): from .np_future import broadcast_arrays else: from numpy import broadcast_arrays ########################################### ## Simple utilities and array generators ## ########################################### one = np.array(1) # a surprisingly useful little array; makes lists into arrays by simply one*[[1,2],[3,6],...] def multidot(*args): '''Multiply multiple arguments with np.dot: reduce(np.dot, args, 1)''' return reduce(np.dot, args, 1) def linrange(start, step, length): '''Includes "length" points, including "start", each separated by "step". (a hybrid between linspace and arange)''' return start + np.arange(length) * step #def linrange_OLD(start, step, length): # return np.arange(start, start + step * (length - 0.5), step) # More efficient, but more complicated too def build_grid(center, steps, nsteps): '''Build a meshgrid based on: * a center point, * a step size in each dimension, and * a number of steps in each dimension "steps" and "nsteps" can be single numbers but otherwise their dimensions must match "center" The output will be a list of ND arrays with shape equal to nsteps''' steps = steps if hasattr(steps, '__iter__') else [steps] * len(center) nsteps = nsteps if hasattr(nsteps, '__iter__') else [nsteps] * len(center) assert all_equal(map(len, (center, steps, nsteps))), \ 'All the arguments must have the same length!' return np.meshgrid(*[np.linspace(c-(n-1.)/2 * s, c+(n-1.)/2 * s, n) for c, s, n in zip(center, steps, nsteps)], indexing='ij') def np_has_duplicates(arr): '''For a 1D array, test whether there are any duplicated elements.''' arr = np.asanyarray(arr) return arr.size > np.unique(arr).size def haselement(arr,subarr): '''Test if subarr is equal to one of the elements of arr. This is the equivalent of the "in" operator when using lists instead of arrays.''' arr = np.asarray(arr) subarr = np.asarray(subarr) if subarr.shape!=arr.shape[1:]: return False elif arr.ndim<2: return (subarr==arr).any() else: boolArr = (subarr==arr) boolArr.resize([arr.shape[0],np.prod(arr.shape[1:])]) return boolArr.all(axis=1).any() # This function is pretty out-dated... def getValuesAroundPointInArray(arr,point,wrapX=False,wrapY=False): '''Given any junction in a 2D array, get the set of unique values that surround it: Junctions always have 4 pixels around them, and there is one more junction in each direction than there are pixels (but one less internal junction) The "point" arguments must be an internal junction unless wrapX / wrapY are specified; returns None otherwise.''' s = arr.shape x,y = point xi,xf = ( (x-1,x) if not wrapX else ((x-1)%s[0],x%s[0]) ) yi,yf = ( (y-1,y) if not wrapY else ((y-1)%s[1],y%s[1]) ) if ( 0<x<s[0] or wrapX ) and ( 0<y<s[1] or wrapY ): return np.unique( arr[([xi,xf,xi,xf],[yi,yi,yf,yf])] ) else: print("Point must be interior to the array!") return None ###################################################### ## Transformations: reshaping, splitting, filtering ## ###################################################### def ravel_at_depth(arr, depth=0): '''Ravel subarrays at some depth of arr The default, depth=0, is equivalent to arr.ravel()''' arr = np.asanyarray(arr) return arr.reshape(arr.shape[:depth] + (-1,)) def reshape_smaller(arr, new_shape): '''Like reshape, but allows the array to be smaller than the original''' return np.ravel(arr)[:np.prod(new_shape)].reshape(new_shape) def partitionNumpy(l, n): '''Like partition, but always clips and returns array, not list''' return reshape_smaller(l, (len(l) // n, n)) def shapeShift(arr,newShape,offset=None,fillValue=0): '''Create a new array with a specified shape and element value and paste another array into it with an optional offset. In 2D image processing, this like changing the canvas size and then moving the image in x and y. In the simple case of expanding the shape of an array, this is equivalent to the following standard procedure: newArray = zeros(shape) newArray[:arr.shape[0],:arr.shape[1],...] = arr However, shapeShift is more flexible because it can safely clip for any shape and any offset (but using it just for cropping an array is more efficiently done with slicing). A more accurate name for this might be "copyDataToArrayOfNewSize", but "shapeShift" is much easier to remember (and cooler). ''' oldArr = np.asanyarray(arr) newArr = np.zeros(newShape,dtype=oldArr.dtype)+fillValue oldShape,newShape = np.array(oldArr.shape), np.array(newArr.shape) offset = ( 0*oldShape if offset==None else np.array(offset) ) assert len(oldShape)==len(newShape)==len(offset) oldStartEnd = np.transpose([ np.clip(i-offset,0,oldShape) for i in [0,newShape] ]) newStartEnd = np.transpose([ np.clip(i+offset,0,newShape) for i in [0,oldShape] ]) oldSlice = [ slice(start,end) for start,end in oldStartEnd ] newSlice = [ slice(start,end) for start,end in newStartEnd ] newArr[newSlice] = oldArr[oldSlice] return newArr def addBorder(arr,borderValue=0,borderThickness=1,axis=None): '''For an ND array, create a new array with a border of specified value around the entire original array; optional thickness (default 1)''' # a slice of None or a single int index; handles negative index cases allOrOne = ( slice(None) if axis==None else ( axis if axis>=0 else arr.ndim+axis )) # list of border thickness around each dimension (as an array) tArr = np.zeros(arr.ndim) tArr[allOrOne] = borderThickness # a new array stretched to accommodate the border; fill with border Value arrNew = np.empty( (2*tArr+arr.shape).astype(np.int), dtype=arr.dtype ) arrNew[:]=borderValue # a slice object that cuts out the new border if axis==None: sl = [slice(borderThickness,-borderThickness)]*arr.ndim else: sl = [slice(None)]*arr.ndim sl[axis] = slice(borderThickness,-borderThickness) # use the slice object to set the interior of the new array to the old array arrNew[sl] = arr return arrNew def _transpose_interleaved(arr): '''Helper function for shape_multiply and shape_divide Transposes an array so that all odd axes are first, i.e.: [1, 3, 5, 7, ..., 0, 2, 4, ...]''' return arr.transpose(*zipflat(range(1, arr.ndim, 2), range(0, arr.ndim, 2))) def shape_multiply(arr, scale, oddOnly=False, adjustFunction=None): '''Works like tile except that it keeps all like elements clumped Essentially a non-interpolating, multi-dimensional image up-scaler Similar to scipy.ndimage.zoom but without interpolation''' arr = np.asanyarray(arr) scale = coerce_to_target_length(scale, arr.ndim) if oddOnly: assert all([i%2 == 1 for i in scale]), \ 'All elements of scale must be odd integers greater than 0!' t = np.tile(arr, scale) t.shape = zipflat(scale, arr.shape) t = _transpose_interleaved(t) if adjustFunction != None: t = adjustFunction(t, arr, scale) new_shape = [sh * sc for sh, sc in zip(arr.shape, scale)] return t.reshape(new_shape) def shape_multiply_zero_fill(arr, scale): '''Same as shape_muliply, but requires odd values for scale and fills around original element with zeros.''' def zeroFill(t, a, sc): t *= 0 middle_slice = flatten([slice(None), i//2] for i in sc) t[middle_slice] = a return t return shape_multiply(arr, scale, oddOnly=True, adjustFunction=zeroFill) def shape_divide(arr, scale, reduction='mean'): '''Scale down an array (shape N x M x ...) by the specified scale in each dimension (n x m x ...) Each dimension in arr must be divisible by its scale (throws an error otherwise) This is reduces each sub-array (n x m x ...) to a single element according to the reduction parameter, which is one of: * mean (default): mean of each sub-array * median: median of each sub-array * first: the [0,0,0, ...] element of the sub-array * all: all the possible (N x M x ...) sub-arrays; returns an array of shape (n, m, ..., N, M, ...) This is a downsampling operation, similar to scipy.misc.imresize and scipy.ndimage.interpolate''' arr = np.asanyarray(arr) reduction_options = ['mean', 'median', 'first', 'all'] assert reduction in reduction_options, \ 'reduction must be one of: ' + ' '.join(reduction_options) scale = coerce_to_target_length(scale, arr.ndim) assert all([sh % sc == 0 for sh, sc in zip(arr.shape,scale)]), \ 'all dimensions must be divisible by their respective scale!' new_shape = flatten([sh//sc, sc] for sh, sc in zip(arr.shape, scale)) # group pixes into smaller sub-arrays that can then be modified by standard operations subarrays = _transpose_interleaved(arr.reshape(new_shape)) flat_subarrays = subarrays.reshape([np.product(scale)] + new_shape[::2]) return (np.mean(flat_subarrays, axis=0) if reduction == 'mean' else np.median(flat_subarrays, axis=0) if reduction == 'median' else flat_subarrays[0] if reduction == 'first' else subarrays if reduction == 'all' else None) def _iterize(x): '''Ensure that x is iterable or wrap it in a tuple''' return x if hasattr(x, '__iter__') else (x,) def reshape_repeating(arr, new_shape): '''A forgiving version of np.reshape that allows the resulting array size to be larger or smaller than the original When the new size is larger, values are filled by repeating the original (flattened) array A smaller or equal size always returns a view. A larger size always returns a copy.''' arr = np.asanyarray(arr) new_shape = _iterize(new_shape) new_size = np.prod(new_shape) if new_size <= arr.size: return reshape_smaller(arr, new_shape) else: arr_flat = np.ravel(arr) repeats = np.ceil(new_size / arr.size).astype(np.int) s = np.lib.stride_tricks.as_strided(arr_flat, (repeats, arr.size), (0, arr.itemsize)) assert arr_flat.base is arr assert s.base.base is arr_flat assert s.flat.base is s f = s.flat[:new_size] # This final slicing op is the first time a new array is created... hmmm assert f.base is None # poo r = f.reshape(new_shape) assert r.base is f return r def remove_duplicate_subarrays(arr): '''Order preserving duplicate removal for arrays. Modified version of code found here: http://stackoverflow.com/questions/480214/how-do-you-remove-duplicates-from-a-list-in-python-whilst-preserving-order Relies on hashing the string of the subarray, which *should* be fine...''' seen = set() return np.array([i for i in arr for s in (i.tostring(),) if s not in seen and not seen.add(s)]) def limitInteriorPoints(l,numInteriorPoints,uniqueOnly=True): '''return the list l with only the endpoints and a few interior points (uniqueOnly will duplicate if too few points)''' inds = np.linspace(0, len(l)-1, numInteriorPoints + 2).round().astype(np.integer) if uniqueOnly: inds = np.unique(inds) return [ l[i] for i in inds ] def cartesian(arrays, out=None): '''Generate a cartesian product of input arrays. Inputs: * arrays : list of 1D array-like (to form the cartesian product of) * out : (optional) array to place the cartesian product in. Returns out, 2-D array of shape (M, len(arrays)) containing cartesian products formed of input arrays. Example: cartesian(([1, 2, 3], [4, 5], [6, 7])) array([[1, 4, 6], [1, 4, 7], [1, 5, 6], [1, 5, 7], [2, 4, 6], [2, 4, 7], [2, 5, 6], [2, 5, 7], [3, 4, 6], [3, 4, 7], [3, 5, 6], [3, 5, 7]]) Original code by SO user, "pv." http://stackoverflow.com/questions/1208118/using-numpy-to-build-an-array-of-all-combinations-of-two-arrays ''' arrays = lmap(np.asarray, arrays) dtype = arrays[0].dtype n = np.prod([x.size for x in arrays]) if out is None: out = np.empty([n, len(arrays)], dtype=dtype) arr, rest = arrays[0], arrays[1:] m = n // arr.size out[:, 0] = np.repeat(arr, m) if rest: cartesian(rest, out=out[:m, 1:]) for j in range(1, arr.size): out[j * m:(j + 1) * m, 1:] = out[:m, 1:] return out def _norm_shape(shape): ''' Normalize numpy array shapes so they're always expressed as a tuple, even for one-dimensional shapes. Original source: http://www.johnvinyard.com/blog/?p=268 Parameters shape - an int, or a tuple of ints Returns a shape tuple ''' try: i = int(shape) return (i,) except TypeError: # shape was not a number pass try: t = tuple(shape) return t except TypeError: # shape was not iterable pass raise TypeError('shape must be an int, or a tuple of ints') def sliding_window(a, ws, ss=None, flatten=True): ''' Return a sliding window over a in any number of dimensions Original source: http://www.johnvinyard.com/blog/?p=268 Parameters: a - an n-dimensional numpy array ws - an int (a is 1D) or tuple (a is 2D or greater) representing the size of each dimension of the window ss - an int (a is 1D) or tuple (a is 2D or greater) representing the amount to slide the window in each dimension. If not specified, it defaults to ws. flatten - if True, all slices are flattened, otherwise, there is an extra dimension for each dimension of the input. Returns an array containing each n-dimensional window from a ''' if None is ss: # ss was not provided. the windows will not overlap in any direction. ss = ws ws = _norm_shape(ws) ss = _norm_shape(ss) # convert ws, ss, and a.shape to numpy arrays so that we can do math in every # dimension at once. ws = np.array(ws) ss = np.array(ss) shape = np.array(a.shape) # ensure that ws, ss, and a.shape all have the same number of dimensions ls = [len(shape),len(ws),len(ss)] if 1 != len(set(ls)): raise ValueError(\ 'a.shape, ws and ss must all have the same length. They were %s' % str(ls)) # ensure that ws is smaller than a in every dimension if np.any(ws > shape): raise ValueError(\ 'ws cannot be larger than a in any dimension.\ a.shape was %s and ws was %s' % (str(a.shape),str(ws))) # how many slices will there be in each dimension? newshape = _norm_shape(((shape - ws) // ss) + 1) # the shape of the strided array will be the number of slices in each dimension # plus the shape of the window (tuple addition) newshape += _norm_shape(ws) # the strides tuple will be the array's strides multiplied by step size, plus # the array's strides (tuple addition) newstrides = _norm_shape(np.array(a.strides) * ss) + a.strides strided = as_strided(a, shape=newshape, strides=newstrides) if not flatten: return strided # Collapse strided so that it has one more dimension than the window. I.e., # the new array is a flat list of slices. meat = len(ws) if ws.shape else 0 firstdim = (np.product(newshape[:-meat]),) if ws.shape else () dim = firstdim + (newshape[-meat:]) # remove any dimensions with size 1 dim = filter(lambda i : i != 1,dim) return strided.reshape(dim) ################################## ## Basic numerical calculations ## ################################## def diffmean(x,*args,**kwds): '''Subtract off the mean from x''' x = np.asarray(x) return x - x.mean(*args,**kwds) def sum_sqr_diff(a, b): '''Compute the sum of square differences between a and b: Sum (a[i] - b[i]) ** 2 i = 0 to n ''' a, b = map(np.asanyarray, (a, b)) return np.sum(np.square(a - b)) def sqrtSumSqr(x,axis=-1): '''Compute the sqrt of the sum of the squares''' return np.sqrt(np.sum(np.square(np.asanyarray(x)),axis=axis)) def sqrtMeanSqr(x,axis=-1): '''Compute the sqrt of the mean of the squares (RMS)''' return np.sqrt(np.mean(np.square(np.asanyarray(x)),axis=axis)) def vectorNorm(x,axis=-1): '''Normalize x by it's length (sqrt of the sum of the squares) x can also be a list of vectors''' x = np.asarray(x) sh = list(x.shape) sh[axis]=1 return x/sqrtSumSqr(x,axis=axis).reshape(sh) def pointDistance(point0,point1): '''Compute the distance between two points. point0 and point1 can also be lists of points''' return sqrtSumSqr(np.asarray(point1)-np.asarray(point0)) ##################### ## Polygon metrics ## ##################### def polyArea(points): '''This calculates the area of a general 2D polygon Algorithm adapted from Darius Bacon's post: http://stackoverflow.com/questions/451426/how-do-i-calculate-the-surface-area-of-a-2d-polygon Updated to a numpy equivalent for speed''' # Get all pairs of points in (x0,x1),(y0,y1) format # Then compute the area as half the abs value of the sum of the cross product xPairs,yPairs = np.transpose([points,np.roll(points,-1,axis=0)]) return 0.5 * np.abs(np.sum(np.cross(xPairs,yPairs))) # Old version #x0,y0 = np.array(points).T # force to numpy array and transpose #x1,y1 = np.roll(points,-1,axis=0).T #return 0.5*np.abs(np.sum( x0*y1 - x1*y0 )) # Non-numpy version: #return 0.5*abs(sum( x0*y1 - x1*y0 # for ((x0, y0), (x1, y1)) in zip(points, roll(points)) )) def polyCirculationDirection(points): '''This algorithm calculates the overall circulation direction of the points in a polygon. Returns 1 for counter-clockwise and -1 for clockwise Based on the above implementation of polyArea (circulation direction is just the sign of the signed area)''' xPairs,yPairs = np.transpose([points,np.roll(points,-1,axis=0)]) return np.sign(np.sum(np.cross(xPairs,yPairs))) def polyCentroid(points): '''Compute the centroid of a generic 2D polygon''' xyPairs = np.transpose([points,np.roll(points,-1,axis=0)]) # in (x0,x1),(y0,y1) format c = np.cross(*xyPairs) xySum = np.sum(xyPairs,axis=2) # (x0+x1),(y0+y1) xc,yc = np.sum( xySum*c, axis=1 )/(3.*np.sum(c)) return xc,yc # Old version #x0,y0 = np.array(points).T # force to numpy array and transpose #x1,y1 = np.roll(x0,-1), np.roll(y0,-1) # roll to get the following values #c = x0*y1-x1*y0 # the cross-term #area6 = 3.*np.sum(c) # 6*area #x,y = np.sum((x0+x1)*c), np.sum((y0+y1)*c) # compute the main centroid calculation #return x/area6, y/area6 # Non-numpy version: #x = sum( (x0+x1)*(x0*y1-x1*y0) # for ((x0, y0), (x1, y1)) in zip(points, roll(points)) ) #y = sum( (y0+y1)*(y0*x1-y1*x0) # for ((x0, y0), (x1, y1)) in zip(points, roll(points)) ) #return x/area6,y/area6 # Single function version: #def _centrX(points): # '''Compute the x-coordinate of the centroid # To computer y, reverse the order of x and y in points''' # return sum( (x0+x1)*(x0*y1-x1*y0) # for ((x0, y0), (x1, y1)) in zip(points, roll(points)) ) #return _centrX(points)/area6,_centrX([p[::-1] for p in points])/area6 def polyPerimeter(points,closeLoop=True): '''This calculates the length of a (default closed) poly-line''' if closeLoop: points = np.concatenate([points,[points[0]]]) return sum(pointDistance(points[1:],points[:-1])) ################### ## Interpolation ## ################### def interpNaNs(a): '''Changes the underlying array to get rid of NaN values If you want a copy instead, just use interpNaNs(a.copy()) Adapted from http://stackoverflow.com/questions/6518811/interpolate-nan-values-in-a-numpy-array''' nans = np.isnan(a) nz_1st = lambda z: z.nonzero()[0] a[nans] = np.interp( nz_1st(nans), nz_1st(~nans), a[~nans] ) return a # A couple working but not-that-great interpolation functions: def interpNumpy(l,index): '''Just like interp except that it uses numpy instead of lists. If both l and index are integer, this function will also return integer values. The more canonical way to this operation would be: np.interp(index,range(len(l)),l) (where l is already an array)''' l = np.asarray(l) m = index % 1 if m==0: return l[int(index)] else: indexA,indexB = int(index), int(index) + (1 if index>=0 else -1) return l[indexA]*(1-m) + l[indexB]*(m) def interpolatePlane(arr,floatIndex,axis=0): '''Interpolate a hyperplane in an numpy array (basically just like normal indexing but with floats) And yes, I know that scipy.interpolate would do a much better job...''' assert axis<len(arr.shape),'Not enough dimensions in the array' maxInd = arr.shape[axis] assert 0<=floatIndex<=maxInd-1,'floatIndex ('+str(floatIndex)+') is out of bounds '+str([0,maxInd-1])+'!' slicer = ( slice(None), )*axis ind = int(floatIndex) rem = floatIndex-ind indPlane = arr[slicer+(ind,)] indp1Plane = (arr[slicer+(ind+1,)] if ind+1<arr.shape[axis] else 0) plane = indPlane*(1-rem) + indp1Plane*rem return plane def interpolateSumBelowAbove(arr,floatIndex,axis=0): '''For any given index, interpolate the sum below and above this value''' assert axis<len(arr.shape),'Not enough dimensions in the array' maxInd = arr.shape[axis] assert 0<=floatIndex<=maxInd,'floatIndex ('+str(floatIndex)+') is out of bounds ('+str([0,maxInd])+')!' slicer = ( slice(None), )*axis ind = int(floatIndex) rem = floatIndex-ind indPlane = (arr[slicer+(ind,)] if ind<arr.shape[axis] else 0) indp1Plane = (arr[slicer+(ind+1,)] if ind+1<arr.shape[axis] else 0) below = np.sum(arr[slicer+(slice(None,ind),)],axis=axis) + indPlane*rem above = indp1Plane + np.sum(arr[slicer+(slice(ind+2,None),)],axis=axis) + indPlane*(1-rem) return below,above # The active version of this function is defined below (this version is broken/ possibly never finished?) #def limitInteriorPointsInterpolatingBAD(l,numInteriorPoints): # '''Like limitInteriorPoints, but interpolates evenly instead; this also means it never clips''' # l=np.array(l) # if l.ndim==1: # l=l[None,:] # return [ [ np.interp(ind, range(len(l)), i) # for i in l.transpose() ] # for ind in np.linspace(0,len(sc),numInteriorPoints+2) ] def limitInteriorPointsInterpolating(l,numInteriorPoints): '''Like limitInteriorPoints, but interpolates evenly instead; this also means it never clips''' l=np.asarray(l) return [ interpNumpy(l,ind) for ind in np.linspace(0,len(l)-1,numInteriorPoints+2) ] def linearTransform( points,newRefLine,mirrored=False ): '''Transforms points from a (0,0) -> (1,0) reference coordinate system to a (x1,y1) -> (x2,y2) coordinate system. "points" can also be a single point. Optional mirroring with "mirrored" argument.''' points,newRefLine = np.asarray(points), np.asarray(newRefLine) dx,dy = newRefLine[1] - newRefLine[0] mir = -1 if mirrored else 1 mat = [[ dx , dy ], [-dy * mir, dx * mir]] return np.dot(points, mat) + newRefLine[0] def reverseLinearTransform(points,oldRefLine,mirrored=False): '''Transforms points from a (x1,y1) -> (x2,y2) reference coordinate system to a (0,0) -> (1,0) coordinate system. "points" can also be a single point. Optional mirroring the "mirrored" argument.''' points, oldRefLine = np.asarray(points), np.asarray(oldRefLine) dx, dy = oldRefLine[1] - oldRefLine[0] points = points - oldRefLine[0] mir = -1 if mirrored else 1 matT = [[dx,-dy * mir], [dy, dx * mir]] dx2dy2 = np.square(dx) + np.square(dy) return np.dot(points, matT) * 1. / dx2dy2 def FindOptimalScaleAndTranslationBetweenPointsAndReference(points,pointsRef): '''Find the (non-rotational) transformation that best overlaps points and pointsRef aka, minimize the distance between: (xref[i],yref[i],...) and (a*x[i]+x0,a*y[i]+y0,...) using linear least squares return the transformation parameters: a,(x0,y0,...)''' # Force to array of floats: points = np.asarray(points,dtype=np.float) pointsRef = np.asarray(pointsRef,dtype=np.float) # Compute some means: pm = points.mean(axis=0) pm2 = np.square(pm) prefm = pointsRef.mean(axis=0) p2m = np.square(points).mean(axis=0) pTpref = (points * pointsRef).mean(axis=0) a = (( (pm*prefm).sum() - pTpref.sum() ) / # ------------------------------- # fake fraction bar... ( pm2.sum() - p2m.sum() )) p0 = prefm - a*pm return a,p0 # More traditional version (2 dimensions only): # xm,ym = pm # xrefm,yrefm = prefm # x2m,y2m = p2m # xTxref,yTyref = pTpref # a = 1.*(xm*xrefm - xCxref + ym*yrefm - yCyref) / (xm**2 - x2m + ym**2 - y2m) # x0,y0 = xrefm - a*xm,yrefm - a*ym ################## ## Broadcasting ## ################## def concatenate_broadcasting(*arrs, **kwds): '''Broadcasting (i.e. forgiving) version of concatenate axis is passed to concatenate (default 0) other kwds are passed to broadcast_arrays (subok in new version of numpy) Docs for concatenate: ''' axis = kwds.pop('axis', 0) return np.concatenate(np.broadcast_arrays(*arrs, **kwds), axis=axis) concatenate_broadcasting.__doc__ += np.concatenate.__doc__ broad_cat = concatenate_broadcasting # alias def reverse_broadcast(f): """Change a function to use "reverse broadcasting" which amounts to calling np.transpose on all arguments and again on the output. """ newf = g_inv_f_g(f, np.transpose) newf.__doc__ = '\n'.join(['Transpose the arguments before and after running the function f:', f.__doc__]) return newf ############################ ## Boxing (nested arrays) ## ############################ def box_list(l, box_shape=None): '''Convert a list to boxes (object array of arrays) with shape optionally specified by box_shape''' box_shape = len(l) if box_shape is None else box_shape assert np.prod(box_shape) == len(l), 'shape must match the length of l''' boxed = np.empty(box_shape, dtype=np.object) boxed_flat = boxed.ravel() boxed_flat[:] = lmap(np.asanyarray, l) return boxed def box(arr, depth=0): '''Make nested array of arrays from an existing array depth specifies the point at which to split the outer array from the inner depth=0 denotes that the entire array should be boxed depth=-1 denotes that all leaf elements box always adds an outer singleton dimension to ensure that arr values with shape[0]==1 are handled properly ''' box_shape, inner_shape = split_at(np.shape(arr), depth) box_shape = (1,) + box_shape # always add an extra outer dimension for the boxing arr_flat = np.reshape(arr, (-1,) + inner_shape) return box_list(arr_flat, box_shape) def box_shape(boxed_arr): '''Get the shape of a box Same as np.shape except that we need to ignore the first dimension since it gets added during boxing''' return np.shape(boxed_arr)[1:] def is_boxed(a): return (hasattr(a, 'shape') and hasattr(a, 'dtype') and a.dtype == object and a.shape[0] == 1) def _broadcast_arr_list(l, reverse=False): '''Helper function to broadcast all elements in a list to arrays with a common shape Uses broadcast_arrays unless there is only one box''' arr_list = lmap(np.asanyarray, l) broadcast = (reverse_broadcast(broadcast_arrays) if reverse else broadcast_arrays) return (broadcast(*arr_list) if len(arr_list) > 1 else arr_list) def unbox(boxed, use_reverse_broadcast=False): '''Convert an array of arrays to one large array. If arr is not actually an array, just return it''' if not is_boxed(boxed): return boxed # already unboxed arr = np.array(_broadcast_arr_list(boxed.ravel(), reverse=use_reverse_broadcast)) return arr.reshape(box_shape(boxed) + arr.shape[1:]) ########################### ## Generalized map/apply ## ########################### def map_along_axis(f, arr, axis): '''Apply a function to a specific axis of an array This is slightly different from np.apply_along_axis when used in more than 2 dimensions. apply_along_axis applies the function to the 1D arrays which are associated with that axis map_along_axis transposes the original array so that that dimension is first and then applies the function to each entire (N-1)D array Example: >>> arr = np.arange(8).reshape([2,2,2]) >>> arr array([[[0, 1], [2, 3]], [[4, 5], [6, 7]]]) >>> np.apply_along_axis(np.sum, arr, 1) array([[ 2, 4], [10, 12]]) >>> map_along_axis(np.sum, arr, 1) array([10, 18]) ''' arr = np.asanyarray(arr) axis = axis + arr.ndim if axis < 0 else axis new_dim_order = [axis] + lrange(axis) + lrange(axis+1, arr.ndim) return np.array([f(a) for a in arr.transpose(new_dim_order)]) def apply_at_depth_ravel(f, arr, depth=0): '''Take an array and any single-array-based associative function with an axis argument (sum, product, max, cumsum, etc) and apply f to the ravel of arr at a particular depth This means f will act on arrays (N-depth)D arrays. This is very efficient when acting on numpy ufuncs, much more so than the generic "apply_at_depth" function below.''' return f(ravel_at_depth(arr, depth=depth), axis=-1) def apply_at_depth(f, *args, **kwds): '''Takes a function and its arguments (assumed to all be arrays) and applies boxing to the arguments so that various re-broadcasting can occur Somewhat similar to vectorize and J's rank conjunction (") f: a function that acts on arrays and returns an array args: the arguments to f (all arrays) depending on depths, various subarrays from these are what actually get passed to f kwds: depths (or depth): an integer or list of integers with the same length as args (default 0) broadcast_results: a boolean that determines if broadcasting should be applied to the results (default False) Returns: a new array based on f mapped over various subarrays of args Examples: One way to think about apply_at_depth is as replacing this kind of construct: a, b = args l = [] for i in range(a.shape[0]): ll = [] for j in range(a.shape[1]): ll.append(f(a[i, j], b[j])) l.append(ll) result = np.array(l) This would simplify to: apply_at_depth(f, a, b, depths=[2, 1]) except that apply_at_depth handles all sorts of other types of broadcasting for you. Something like this could be especially useful if the "f" in question depends on its arguments having certain shapes but you have data structures with those as subsets. The algorithm itself is as follows: * box each arg at the specified depth (box_list) See docs for "box" for more details * broadcast each boxed argument to a common shape (bbl, short for broadcasted box_list) Note that box *contents* can still have any shape * flatten each broadcasted box (bbl_flat) Each element of bbl_flat will be a 1D list of arrays where each list had the same length (for clarity, lets call these lists l0, l1, l2, etc) * map f over these flat boxes like so: [f(l0[i], l1[i], ...) for i in range(arg_size)] or just map(f, *bbl_flat) Again, arg0[i] will still be an array that can have arbitrary shape and will be some subarray of args[0] (ex: args[0][2,1]) * Optionally broadcast the results (otherwise force all outpus to have the same shape) and construct a single array from all the outputs * Reshape the result to account for the flattening that happened to the broadcasted boxes This is the same way that unboxing works. * Celebrate avoiding unnecessarily complex loops :) This function is as efficient as it can be considering the generality; if f is reasonably slow and the arrays inside the boxes are fairly large it should be fine. However, performance may be a problem if applying it to single elements In other words, with: a = np.arange(2000).reshape(200, 2, 5) do this: apply_at_depth_ravel(np.sum, a, depth=1) instead of this: apply_at_depth(np.sum, a, depth=1) The latter is just essentially calling map(np.sum, a)''' assert not ('depth' in kwds and 'depths' in kwds), ( 'You can pass either kwd "depth" or "depths" but not both!') depths = kwds.pop('depths', kwds.pop('depth', 0)) # Grab depths or depth, fall back to 0 broadcast_results = kwds.pop('broadcast_results', False) depths = (depths if hasattr(depths, '__len__') else [depths] * len(args)) assert len(args) == len(depths) boxed_list = lmap(box, args, depths) bbl = _broadcast_arr_list(boxed_list) bb_shape = box_shape(bbl[0]) bbl_flat = lmap(np.ravel, bbl) results = lmap(f, *bbl_flat) results = (results if not broadcast_results else _broadcast_arr_list(results)) arr = np.array(results) return arr.reshape(bb_shape + arr.shape[1:])
[ "chanaka.14@cse.mrt.ac.lk" ]
chanaka.14@cse.mrt.ac.lk
c31df02aecc6248d61fb8d9c39b23b9b0c863788
76f99e1fa00ceba393cacda03fa32cd8ed256459
/orders/migrations/0004_auto_20180112_1501.py
b1fd562db691f08fc0193ec924147711475bb9a2
[]
no_license
KarmOff/Django-store
6d3c98f973be8b8f1021c8ecaa5f25988c00c207
047eb02a5c647dfcd4596f1a692ce47e3c27962a
refs/heads/master
2021-05-11T19:08:06.049073
2018-01-19T11:01:36
2018-01-19T11:01:36
117,256,448
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2018-01-12 12:01 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('orders', '0003_auto_20180112_1436'), ] operations = [ migrations.AlterModelOptions( name='productinorder', options={'verbose_name': 'Товар в заказе', 'verbose_name_plural': 'Товары в заказе'}, ), ]
[ "Artur69Karmov@gmail.com" ]
Artur69Karmov@gmail.com
b01bb9a93c3e065d412c21357f12fee77952da54
73b67a1afd9bbc6bdba60a97fee5f1e60b2f230d
/gerencia/migrations/0026_auto_20200306_0957.py
806512ea3a3f51d3080cc6bfdfcfcd2b79c06827
[]
no_license
redcliver/winneridiomas
fe334c62ecbd0c162a70220032d167fe28439a9b
49a1ce83ccf1b38171c79fef81dad5953976c78e
refs/heads/master
2022-05-17T00:15:26.948385
2020-11-11T22:38:40
2020-11-11T22:38:40
201,164,959
1
0
null
2022-04-22T22:04:36
2019-08-08T02:46:11
CSS
UTF-8
Python
false
false
2,011
py
# Generated by Django 2.2.4 on 2020-03-06 12:57 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('gerencia', '0025_auto_20200306_0901'), ] operations = [ migrations.CreateModel( name='respostaModel', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('tipo', models.CharField(choices=[('1', 'Correta'), ('2', 'Errada')], default=2, max_length=1)), ('resposta', models.CharField(blank=True, max_length=1000, null=True)), ('dataCadastro', models.DateTimeField(default=datetime.datetime(2020, 3, 6, 12, 57, 47, 956272, tzinfo=utc))), ], ), migrations.RenameField( model_name='perguntamodel', old_name='respostaAlternativa1', new_name='respostas', ), migrations.RemoveField( model_name='perguntamodel', name='respostaAlternativa2', ), migrations.RemoveField( model_name='perguntamodel', name='respostaAlternativa3', ), migrations.RemoveField( model_name='perguntamodel', name='respostaCorreta', ), migrations.AlterField( model_name='cidademodel', name='dataCadastro', field=models.DateTimeField(default=datetime.datetime(2020, 3, 6, 12, 57, 47, 954173, tzinfo=utc)), ), migrations.AlterField( model_name='colaboradormodel', name='dataNasc', field=models.DateTimeField(default=datetime.datetime(2020, 3, 6, 12, 57, 47, 954547, tzinfo=utc)), ), migrations.AlterField( model_name='perguntamodel', name='dataCadastro', field=models.DateTimeField(default=datetime.datetime(2020, 3, 6, 12, 57, 47, 956569, tzinfo=utc)), ), ]
[ "igor-peres@hotmail.com" ]
igor-peres@hotmail.com
5bc69a66e1e25bb0ebcee21075727a0653054043
c6ec292a52ea54499a35a7ec7bc042a9fd56b1aa
/Python/459.py
63a419e03f6d9073ad6e6bb59b4ae32ab73a6ff0
[]
no_license
arnabs542/Leetcode-38
ad585353d569d863613e90edb82ea80097e9ca6c
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
refs/heads/master
2023-02-01T01:18:45.851097
2020-12-19T03:46:26
2020-12-19T03:46:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
class Solution(object): def repeatedSubstringPattern(self, s): """ :type s: str :rtype: bool """ # right = 0 # while right < len(s) - 1: # pattern = s[:right + 1] # matched = s.split(pattern) # if not any(matched): # return True # else: # right += 1 # return False ss = (s + s)[1:-1] return ss.find(s) != -1
[ "lo_vegood@126.com" ]
lo_vegood@126.com
5df310bf9221554c2aca7755dd316c3973195603
0a41cb8c074e0901aa42eae264aea765c7baee7d
/Simpler/UpdateLed.py
ba106c0205850ec62724dfd01ffe0391a00ded75
[]
no_license
ynaponte/KivyControllerFiles
8a9f3b8f4feb1f49e18e3d05d048fdcbc8a402cc
cc76cb87d2ff09be84562a9d465abd7f636a6ecc
refs/heads/main
2023-01-13T14:49:34.998174
2020-11-03T21:37:38
2020-11-03T21:37:38
309,543,408
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
from kivy.app import App from kivy.uix.widget import Widget from kivy.clock import Clock from kivy.properties import ObjectProperty from random import randint class PageOne(Widget): pass class UpdateLeds(Widget): led = [] interval = None def schedule(self): self.led = [self.ids["led1"], self.ids["led2"], self.ids["led3"]] self.interval = Clock.schedule_interval(self.update_led_state, 1/20) def update_led_state(self, *args): led_state = [randint(0, 1), randint(0, 1), randint(0, 1)] print(led_state) for i in range(0, 3): if led_state[i] != 0: self.led[i].basecolor = [0, 1, 0, 1] else: self.led[i].basecolor = [0, 0, 0, 1] class ControlApp(App): def build(self): return UpdateLeds() if __name__ == "__main__": ControlApp().run()
[ "noreply@github.com" ]
ynaponte.noreply@github.com
bd30dafc407e1c82193dd1d18ef3bd72b4d9d2f0
ff8b11f0b25625bd9ebc06fa3b730099d68a980f
/ef/1_waves/setup.py
6b32d31735d905839f7378d3dcb57173a09f2edd
[ "MIT" ]
permissive
urbanij/misc-scripts
457f95591039016a45b57e1450b324fbd429b841
c4e6ee881dfe84342ee6bd34ceea1efe7d222dce
refs/heads/master
2021-07-18T03:58:10.728238
2020-10-14T12:20:02
2020-10-14T12:20:02
219,166,318
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- # Sun Nov 3 19:03:45 CET 2019 from distutils.core import setup from Cython.Build import cythonize setup(ext_modules=cythonize('functions.pyx'))
[ "francescourbanidue@gmail.com" ]
francescourbanidue@gmail.com
64c75f5e03d677324c18e89c974f373f8d8ecb42
23bd05c7101ae976daf24f8589970ac3a386dc84
/user_data/strategies/flawless_victory_v1.py
d53fb46b9e2940765e0d0f6cb0900fb7ddecfc40
[]
no_license
laomao323/freqtrade-strategies
6e0be4afaf1f31321d23b187d59e8c030132e10b
e5c80abebc21e1860637f82708d9ae112eb8aaf7
refs/heads/main
2023-08-08T00:02:04.065736
2021-09-13T22:57:31
2021-09-13T22:57:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,089
py
# pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement # flake8: noqa: F401 # isort: skip_file # --- Do not remove these libs --- import math import numpy as np # noqa import pandas as pd # noqa from pandas import DataFrame from freqtrade.strategy import IStrategy # -------------------------------- # Add your lib to import here import talib.abstract as ta import freqtrade.vendor.qtpylib.indicators as qtpylib from freqtrade.strategy import IntParameter def optimize(space: str): def fn(val: int): perc = 0.5 low = math.floor(val * (1 - perc)) high = math.floor(val * (1 + perc)) return IntParameter(default=val, low=low, high=high, space=space, optimize=True, load=True) return fn # This strategy is based on https://www.tradingview.com/script/i3Uc79fF-Flawless-Victory-Strategy-15min-BTC-Machine-Learning-Strategy/ # Author of the original Pinescript strategy: Robert Roman (https://github.com/TreborNamor) class FlawlessVictory(IStrategy): buyOptimize = optimize('buy') sellOptimize = optimize('sell') buy_rsi_length = buyOptimize(14) buy_bb_window = buyOptimize(20) buy_rsi_lower = buyOptimize(43) sell_rsi_length = sellOptimize(14) sell_bb_window = sellOptimize(20) sell_rsi_upper = sellOptimize(70) # Strategy interface version - allow new iterations of the strategy interface. # Check the documentation or the Sample strategy to get the latest version. INTERFACE_VERSION = 2 stoploss = -999999 # Optimal timeframe for the strategy. timeframe = '15m' # Run "populate_indicators()" only for new candle. process_only_new_candles = False # These values can be overridden in the "ask_strategy" section in the config. use_sell_signal = True sell_profit_only = False ignore_roi_if_buy_signal = False # Number of candles the strategy requires before producing valid signals startup_candle_count: int = 50 # Optional order type mapping. order_types = { 'buy': 'limit', 'sell': 'limit', 'stoploss': 'market', 'stoploss_on_exchange': False } # Optional order time in force. order_time_in_force = { 'buy': 'gtc', 'sell': 'gtc' } plot_config = { 'main_plot': { 'bb_upperband': {'color': 'blue'}, 'bb_lowerband': {'color': 'blue'} }, 'subplots': { "RSI": { 'rsi': {'color': 'purple'}, 'rsi_lower': {'color': 'black'}, 'rsi_upper': {'color': 'black'} } } } def informative_pairs(self): return [] def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: return dataframe def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe['rsi'] = ta.RSI(dataframe['close'], int(self.buy_rsi_length.value)) dataframe['rsi_lower'] = int(self.buy_rsi_lower.value) bollinger = qtpylib.bollinger_bands( dataframe['close'], window=int(self.buy_bb_window.value), stds=1 ) dataframe['bb_lowerband'] = bollinger['lower'] bb_long = dataframe['close'] < dataframe['bb_lowerband'] rsi_long = dataframe['rsi'] > dataframe['rsi_lower'] dataframe['buy'] = bb_long & rsi_long return dataframe def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe['rsi'] = ta.RSI(dataframe['close'], int(self.sell_rsi_length.value)) dataframe['rsi_upper'] = int(self.sell_rsi_upper.value) bollinger = qtpylib.bollinger_bands( dataframe['close'], window=int(self.sell_bb_window.value), stds=1 ) dataframe['bb_upperband'] = bollinger['upper'] bb_short = dataframe['close'] > dataframe['bb_upperband'] rsi_short = dataframe['rsi'] > dataframe['rsi_upper'] dataframe['sell'] = bb_short & rsi_short return dataframe
[ "noreply@github.com" ]
laomao323.noreply@github.com
fb71c6bf16123dc1846914ed9bfdd7f72013e8a0
0830bb4e6828689a32806854f08e256cbf64289e
/dataframelist.py
aec9e38f83e1fffa5241e6c79cc8bc17da8de026
[]
no_license
Leesungsup/crawler
020fed810d9cb8685b7759affcb2ba691a8b8ad5
1bb5591c68be49b811ec89d1493d5de08a75be19
refs/heads/main
2023-06-01T21:26:54.669295
2021-06-21T03:51:14
2021-06-21T03:51:14
377,062,645
0
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
import requests from bs4 import BeautifulSoup import pandas as pd import time headers={'User-Agent':"Mozilla/5.0 (Windows NT 10.0; Win64; x32) AppleWebKit/536.35 (KHTML, like Gecko) Chrome/100.0.0.7 Safari/536.28"} url="https://www.transfermarkt.com/spieler-statistik/wertvollstespieler/marktwertetop" response=requests.get(url,headers=headers) number=[] name=[] position=[] age=[] nation=[] team=[] value=[] player_list=[] if response.status_code==200: soup=BeautifulSoup(response.content,'html.parser') string=soup.find_all('tr',{'class':['odd','even']}) else: print(response.status_code) for info in string: information=info.find_all('td') number=information[0].get_text() name=information[3].get_text() position=information[4].get_text() age=information[5].get_text() nation=information[6].img['alt'] team=information[7].img['alt'] value=information[8].span['title'] player_list.append([number,name,position,age,nation,team,value]) df=pd.DataFrame(player_list,columns=['number','name','position','age','nation','team','value']) print(df)
[ "tmdtjq0116@naver.com" ]
tmdtjq0116@naver.com
f34efdc01cb5742deab1d57ff3f345a6537d2801
0f1373887b8406e4ad29d6b31b028dd7d401b9c0
/modules/urls.py
b65d660fb3cdaeca6fb8f71aaad86b6b9fd5f0b6
[]
no_license
leonboxer/GLCNProjectSystem
8ead467b994b0d4ea6b353cbe009b4789433419a
1493385b825885884c207062533bd4f025e1dc9d
refs/heads/master
2022-12-10T16:01:58.502457
2021-09-26T02:27:36
2021-09-26T02:27:36
204,856,426
0
0
null
2022-12-09T05:45:41
2019-08-28T05:40:00
Python
UTF-8
Python
false
false
186
py
from django.urls import path from modules import views urlpatterns = [ path('', views.ModuleList.as_view()), path('<pk>/', views.ModuleDetail.as_view(), name='module_detail') ]
[ "boxers@126.com" ]
boxers@126.com
75655d43db3082206db13cc0ffb6a88945bc4805
d85720bfb3a2a5431a50c595aca2e5fc8452355f
/menu.py
28dd126114fc556b6adfaff7de2a22449515d39c
[]
no_license
Yangsiyoung0901/python
cdeb4ccc3251e5a0cf54cb8e393661aa6b78fcba
0cc84630106f4f6380b45fbfcdda03f6b027a78d
refs/heads/master
2020-11-26T04:02:47.409702
2019-12-19T08:52:14
2019-12-19T08:52:14
228,960,108
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
#랜덤으로 오늘의 점심메뉴를 추천해주는 프로그램 import random menu=['새마을식당','초원삼겹살','멀캠20층','홍콩반점','순남시래기'] phone_book = { '새마을식당':'010-1234-1234', '초원삼겹살':'010-3214-3184', '멀캠20층':'02-1012-0154', '홍콩반점':'02-1245-5512', '순남시래기':'02-2221-2214' } lunch=random.choice(menu) #메뉴 요소 중 랜덤 택1 > lunch print(lunch,phone_book[lunch])
[ "imsy901@gmail.com" ]
imsy901@gmail.com
276b13de682e7fc8abe08d6ca8e64ff233e10536
1b2dc6bdf22ad1fccdb1656e138886a8d37efaa2
/app/doxygen_xml_parser/Wrappers.py
1e7ff972301736a5c7713038102af3b5281c49a1
[ "MIT" ]
permissive
nlohmann/doxygen_flask
8217fda51a858c3c1179011149dd7646055d3f08
66546d6e30ee688829acd4a10303c1bea9089eba
refs/heads/master
2023-09-04T18:55:36.681688
2019-07-19T17:44:46
2019-07-19T17:44:46
102,527,012
1
1
MIT
2021-12-13T19:41:59
2017-09-05T20:31:25
Python
UTF-8
Python
false
false
13,457
py
# coding=utf-8 from flask import url_for from lxml import etree as ET import logging import cgi def get_bool(s): try: return { 'yes': True, 'no': False }[s] except KeyError: return None class CompoundDefWrapper(object): def __init__(self, element, doxyfile): self.element = element # type: ET.Element self.doxyfile = doxyfile self.xml = ET.tostring(self.element, pretty_print=True).decode('UTF-8') self.name = self.element.find('./compoundname').text # type: str self.id = self.element.attrib['id'] # type: str class MemberDefWrapper(object): def __init__(self, element, parent, doxyfile): self.element = element # type: ET.Element self.parent = parent # type: CompoundDefWrapper self.doxyfile = doxyfile self.xml = ET.tostring(self.element, pretty_print=True).decode('UTF-8') self.name = self.element.find('./name').text # type: str self.id = self.element.attrib['id'] # type: str self.sections = self.__get_sections(el=self.element.find('./detaileddescription')) brief_section = self.__get_sections(el=self.element.find('./briefdescription')) if 'brief' in brief_section: self.sections['brief'] = brief_section['brief'] @property def kind_str(self): static = get_bool(self.element.attrib.get('static')) if self.type_str is None: if self.name[0] == '~': return '{prot} destructor'.format( prot=self.element.attrib.get('prot') ) else: return '{prot} constructor'.format( prot=self.element.attrib.get('prot') ) else: return '{prot} {stat} {kind}'.format( prot=self.element.attrib.get('prot'), stat='static' if static else 'member', kind=self.element.attrib.get('kind') ) @property def noexcept_str(self): """return the noexcept part of the argstring""" argsstring = self.child('argsstring').text try: splitted = argsstring.split('noexcept') return 'noexcept' + splitted[1] except (AttributeError, IndexError): return '' @property def function_signature_str(self): """return the function signature as HTML""" static_str = 'static ' if self.element.attrib.get('static') == 'yes' else '' return_type = self.type_str params_strings = [] for p in self.params: current = '{type_str} {declname}'.format(type_str=p['type_str'], declname=p['declname']) if p.get('defval'): current += ' = ' + p['defval'] params_strings.append(current) params_str = ', '.join(params_strings) const_str = ' const' if self.element.attrib.get('const') == 'yes' else '' noexcept_str = self.noexcept_str if noexcept_str != '': noexcept_str = ' ' + noexcept_str return '{static_str}{return_type} <strong>{name}</strong>({params_str}){const_str}{noexcept_str};'.format( static_str=static_str, return_type=return_type, name=self.name, params_str=params_str, const_str=const_str, noexcept_str=noexcept_str ) def child(self, name): return self.element.find('./' + name) # type: ET.Element @staticmethod def __build_type_str(type_element): ref_element = type_element.find('./ref') # type: ET.Element if ref_element is None: return type_element.text else: return '{before_ref}<a href="{uri}">{text}</a>{after_ref}'.format( before_ref=type_element.text if type_element.text else '', uri=url_for('route_detail', id=ref_element.attrib['refid']), text=ref_element.text, after_ref=ref_element.tail if ref_element.tail else '' ) @property def type_str(self): type_element = self.element.find('./type') return self.__build_type_str(type_element) @property def params(self): result = [] for param in self.element.findall('./param'): type_str = self.__build_type_str(param.find('./type')) declname = param.find('./declname') defval = param.find('./defval') result.append({ 'type_str': type_str, 'declname': declname.text if declname is not None else None, 'defval': defval.text if defval is not None else None }) return result @property def detaileddescription(self): el = self.element.find('./detaileddescription') res = '' for event, elem in ET.iterwalk(el, events=('start', 'end')): if event == 'start': attrs = ' '.join(['{key}="{val}"'.format(key=key, val=val) for (key, val) in elem.attrib.iteritems()]) if attrs != '': attrs = ' ' + attrs logging.debug('<{tag}{attrs}>'.format(tag=elem.tag, attrs=attrs)) if elem.tag == 'computeroutput': res += '<code>' elif elem.tag == 'simplesect': if elem.attrib.get('kind') == 'return': res += '<h5>Return value</h5>' elif elem.attrib.get('kind') == 'since': res += '<h5>Since</h5>' elif elem.attrib.get('kind') == 'note': res += '<h5>Note</h5>' elif elem.attrib.get('kind') == 'see': res += '<h5>See also</h5>' elif elem.attrib.get('kind') == 'par': res += '<h5>' continue res += '<p>' elif elem.tag == 'parameterlist': if elem.attrib.get('kind') == 'param': res += '<h5>Parameters</h5><p>' elif elem.attrib.get('kind') == 'exception': res += '<h5>Exceptions</h5><p>' elif elem.tag == 'verbatim': res += '<pre>' elif elem.tag == 'programlisting': res += '<pre>' elif elem.tag == 'sp': res += ' ' if elem.text is not None: res += elem.text elif event == 'end': logging.debug('</{tag}>'.format(tag=elem.tag)) if elem.tag == 'computeroutput': res += '</code>' elif elem.tag == 'title': res += '</h5><p>' elif elem.tag == 'simplesect': res += '</p>' elif elem.tag == 'parameterlist': res += '</p>' elif elem.tag == 'verbatim': res += '</pre>' elif elem.tag == 'programlisting': res += '</pre>' if elem.tail is not None: res += elem.tail return res def __get_sections(self, el): result = {} text_buffer = '' current_section = None for event, elem in ET.iterwalk(el, events=('start', 'end')): if event == 'start': # take care of sections if elem.tag == 'xreftitle': current_section = elem.text text_buffer = '' elif elem.tag in ['simplesect', 'parameterlist']: # if we have not seen a section before, this was the detailed section if current_section is None: result['detailed'] = text_buffer # remember current section and reset text buffer current_section = elem.attrib['kind'] text_buffer = '' # definition list if elem.tag == 'parameterlist': text_buffer += '<dl class="row">' # formatting elif elem.tag == 'computeroutput': text_buffer += '<code>' elif elem.tag == 'programlisting': # TODO: add filename elem.attrib.get('filename') text_buffer += '<p><pre class="bg-light p-3 border rounded"><code class="cpp">' elif elem.tag == 'sp': text_buffer += ' ' elif elem.tag == 'verbatim': text_buffer += '<p><pre class="bg-dark text-white p-3 border rounded">' elif elem.tag == 'emphasis': text_buffer += '<em>' # tables elif elem.tag == 'table': text_buffer += '<table class="table table-sm table-striped">' elif elem.tag == 'row': text_buffer += '<tr>' elif elem.tag == 'entry': if elem.attrib.get('thead') == 'yes': text_buffer += '<th class="table-dark">' else: text_buffer += '<td>' # lists elif elem.tag == 'itemizedlist': text_buffer += '<ul>' elif elem.tag == 'listitem': text_buffer += '<li>' elif elem.tag == 'parametername': text_buffer += '<dt class="col-sm-3">' elif elem.tag == 'parameterdescription': text_buffer += '<dd class="col-sm-9">' # links elif elem.tag == 'ref': text_buffer += '<a href="{url}">'.format(url=url_for('route_detail', id=elem.attrib.get('refid'))) elif elem.tag == 'ulink': text_buffer += '<a href="{url}">'.format(url=elem.attrib.get('url')) # images elif elem.tag == 'image': url = url_for('route_file', filename='{image_path}/{name}'.format( image_path=self.doxyfile['image_path'], name=elem.attrib.get('name') )) text_buffer += '<p><figure class="figure">\n' text_buffer += '<img src="{url}">\n'.format(url=url) text_buffer += '<figcaption class="figure-caption">' # add the text if elem.text is not None: text_buffer += elem.text # additional case for titles - they are the title for user-defined sections if elem.tag == 'title' and current_section == 'par': current_section = elem.text text_buffer = '' elif event == 'end': # close section if elem.tag in ['simplesect', 'parameterlist', 'xrefsect']: # definition list if elem.tag == 'parameterlist': text_buffer += '</dl>' # add text buffer to sections if current_section not in result: result[current_section] = [text_buffer] else: result[current_section].append(text_buffer) # formatting elif elem.tag == 'computeroutput': text_buffer += '</code>' elif elem.tag == 'programlisting': text_buffer += '</code></pre></p>' elif elem.tag == 'verbatim': text_buffer += '</pre></p>' elif elem.tag == 'emphasis': text_buffer += '</em>' # tables elif elem.tag == 'table': text_buffer += '</table>' elif elem.tag == 'row': text_buffer += '</tr>' elif elem.tag == 'entry': text_buffer += '</td>' # lists elif elem.tag == 'itemizedlist': text_buffer += '</ul>' elif elem.tag == 'listitem': text_buffer += '</li>' elif elem.tag == 'parametername': text_buffer += '</dt>' elif elem.tag == 'parameterdescription': text_buffer += '</dd>' # links elif elem.tag == 'ref': text_buffer += '</a>' elif elem.tag == 'ulink': text_buffer += '</a>' # images elif elem.tag == 'image': text_buffer += '</figcaption></figure></p>' # add whitespace after paragraph for better spacing elif elem.tag == 'para': text_buffer += '\n' # add tail text if elem.tail is not None: text_buffer += cgi.escape(elem.tail) # if we did not find a section so far, this should be the brief description if current_section is None: result['brief'] = text_buffer return result
[ "mail@nlohmann.me" ]
mail@nlohmann.me
0b539f420affc000cef29e4210658161094afa7b
cf38a27a8fef18900ee7bd7cc5419272d9d2a4de
/liz/config/common.py
92f4c1fd6b2e461d0996518a7ec3bee18a5bfee7
[]
no_license
agconti/chilllizards
1ac9fd6ff08ba78f38aee163d8f53c60840dd1da
66c31fd55ca7e08734b9e0d0d46712fe33dfe38d
refs/heads/master
2021-09-04T20:07:28.235398
2018-01-22T02:30:26
2018-01-22T02:30:26
118,359,338
0
0
null
null
null
null
UTF-8
Python
false
false
6,526
py
import os from os.path import join from distutils.util import strtobool import dj_database_url from configurations import Configuration BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) class Common(Configuration): INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # Third party apps 'rest_framework', # utilities for rest apis 'rest_framework.authtoken', # token authentication 'django_filters', # for filtering rest endpoints # Your apps 'liz.users', ) # https://docs.djangoproject.com/en/2.0/topics/http/middleware/ MIDDLEWARE = ( 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) ALLOWED_HOSTS = ["*"] ROOT_URLCONF = 'liz.urls' SECRET_KEY = os.getenv('DJANGO_SECRET_KEY') WSGI_APPLICATION = 'liz.wsgi.application' # Email EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' ADMINS = ( ('Author', 'richard.hendriks@piedpiper.com'), ) # Postgres DATABASES = { 'default': dj_database_url.config( default='postgres://postgres:@postgres:5432/postgres', conn_max_age=int(os.getenv('POSTGRES_CONN_MAX_AGE', 600)) ) } # General APPEND_SLASH = False TIME_ZONE = 'UTC' LANGUAGE_CODE = 'en-us' # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = False USE_L10N = True USE_TZ = True LOGIN_REDIRECT_URL = '/' # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATIC_ROOT = os.path.normpath(join(os.path.dirname(BASE_DIR), 'static')) STATICFILES_DIRS = [] STATIC_URL = '/static/' STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) # Media files MEDIA_ROOT = join(os.path.dirname(BASE_DIR), 'media') MEDIA_URL = '/media/' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': STATICFILES_DIRS, 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] # Set DEBUG to False as a default for safety # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = strtobool(os.getenv('DJANGO_DEBUG', 'no')) # Password Validation # https://docs.djangoproject.com/en/2.0/topics/auth/passwords/#module-django.contrib.auth.password_validation AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Logging LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'django.server': { '()': 'django.utils.log.ServerFormatter', 'format': '[%(server_time)s] %(message)s', }, 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' }, 'simple': { 'format': '%(levelname)s %(message)s' }, }, 'filters': { 'require_debug_true': { '()': 'django.utils.log.RequireDebugTrue', }, }, 'handlers': { 'django.server': { 'level': 'INFO', 'class': 'logging.StreamHandler', 'formatter': 'django.server', }, 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple' }, 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django': { 'handlers': ['console'], 'propagate': True, }, 'django.server': { 'handlers': ['django.server'], 'level': 'INFO', 'propagate': False, }, 'django.request': { 'handlers': ['mail_admins', 'console'], 'level': 'ERROR', 'propagate': False, }, 'django.db.backends': { 'handlers': ['console'], 'level': 'INFO' }, } } # Custom user app AUTH_USER_MODEL = 'users.User' # Django Rest Framework REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'PAGE_SIZE': int(os.getenv('DJANGO_PAGINATION_LIMIT', 10)), 'DATETIME_FORMAT': '%Y-%m-%dT%H:%M:%S%z', 'DEFAULT_RENDERER_CLASSES': ( 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ), 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated', ], 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.TokenAuthentication', ) }
[ "agc11d@gmail.com" ]
agc11d@gmail.com
f0991a9f4a815a3b8131fbfa4679c7a931fc531f
cfd5892a220ec7702d5c416aa1821d2429480ede
/neodroidagent/utilities/misc/sampling.py
c9a914ed8c446663dffa16c610ac814b7e8edf17
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pything/agent
611eac80348127b951a72ca76d2ab1f5a7732775
71c3bc072a8f3b7c3c1d873757cf5a1dafc3302d
refs/heads/master
2022-04-28T08:13:27.705296
2020-11-17T16:58:46
2020-11-17T16:58:46
150,600,674
0
0
Apache-2.0
2019-01-10T11:01:17
2018-09-27T14:31:45
Python
UTF-8
Python
false
false
1,521
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 10/02/2020 """ from typing import Tuple import torch from torch.distributions import Distribution, Normal __all__ = ["normal_tanh_reparameterised_sample"] def normal_tanh_reparameterised_sample( dis: Normal, epsilon=1e-6 ) -> Tuple[torch.tensor, torch.tensor]: """ The log-likelihood here is for the TanhNorm distribution instead of only Gaussian distribution. The TanhNorm forces the Gaussian with infinite action range to be finite. For the three terms in this log-likelihood estimation: (1). the first term is the log probability of action as in common stochastic Gaussian action policy (without Tanh); \ (2). the second term is the caused by the Tanh(), as shown in appendix C. Enforcing Action Bounds of https://arxiv.org/pdf/1801.01290.pdf, the epsilon is for preventing the negative cases in log @param dis: @param epsilon: @return: """ z = dis.rsample() # for reparameterisation trick (mean + std * N(0,1)) action = torch.tanh(z) log_prob = torch.sum( dis.log_prob(z) - torch.log(1 - action.pow(2) + epsilon), dim=-1, keepdim=True ) return action, log_prob if __name__ == "__main__": ob_shape = (10, 3) mean = torch.rand(ob_shape) std = torch.rand(ob_shape) dist = torch.distributions.Normal(mean, std) print(dist.rsample()) print(normal_tanh_reparameterised_sample(dist))
[ "mrnaah@gmail.com" ]
mrnaah@gmail.com
03a5a066bbb6eff71926d235f467c7dd03da0218
d226abf2608b5c14812533ff562429045353f194
/grades_assignment.py
ff2f2dd7976fab70b5bb57341d06d31fde0cad1c
[]
no_license
devinitpy/python_tutorials
5707005c7e3175042290a78b877f2a5b7459e060
195dce675947a0a6a79c7257a1276692213ab5b8
refs/heads/master
2020-04-06T04:38:16.041137
2015-07-29T06:27:13
2015-07-29T06:27:13
39,877,235
0
0
null
2015-07-29T06:24:48
2015-07-29T06:24:47
null
UTF-8
Python
false
false
710
py
# #importing all data files I will use for this programme. file_location="C:/Users/emmanuelk.DI/Documents/python_tutorials/Keith_scores.txt" file_location1="C:/Users/emmanuelk.DI/Documents/python_tutorials/Sophie_scores.txt" file_location2="C:/Users/emmanuelk.DI/Documents/python_tutorials/Richard_scores.txt" #separating the student marks keith_scores=file_location Sophie_scores=file_location1 richard_scores=file_location2 files=[keith_scores,Sophie_scores,richard_scores] #opening the files def open_file(files): file=open(files, "r") data=file.readlines() print (data) return data i=0 for i in range (0,3): current_file=files[i] i=i+1 d=open_file(current_file) print (d)
[ "ekisaame@gmail.com" ]
ekisaame@gmail.com
46f2bd16cb10b53e42475d5e19c7c6a0da817516
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/command_time_taken.py
4ced6033a2531bec865a6c3223fbaa910ce1dbd7
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
6,106
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CommandTimeTaken: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ sensitive_list = [] openapi_types = { 'calls_sum': 'int', 'usec_sum': 'float', 'command_name': 'str', 'per_usec': 'str', 'average_usec': 'float' } attribute_map = { 'calls_sum': 'calls_sum', 'usec_sum': 'usec_sum', 'command_name': 'command_name', 'per_usec': 'per_usec', 'average_usec': 'average_usec' } def __init__(self, calls_sum=None, usec_sum=None, command_name=None, per_usec=None, average_usec=None): """CommandTimeTaken The model defined in huaweicloud sdk :param calls_sum: 调用次数 :type calls_sum: int :param usec_sum: 耗时总数 :type usec_sum: float :param command_name: 命令名称 :type command_name: str :param per_usec: 耗时占比 :type per_usec: str :param average_usec: 每次调用平均耗时 :type average_usec: float """ self._calls_sum = None self._usec_sum = None self._command_name = None self._per_usec = None self._average_usec = None self.discriminator = None self.calls_sum = calls_sum self.usec_sum = usec_sum self.command_name = command_name self.per_usec = per_usec self.average_usec = average_usec @property def calls_sum(self): """Gets the calls_sum of this CommandTimeTaken. 调用次数 :return: The calls_sum of this CommandTimeTaken. :rtype: int """ return self._calls_sum @calls_sum.setter def calls_sum(self, calls_sum): """Sets the calls_sum of this CommandTimeTaken. 调用次数 :param calls_sum: The calls_sum of this CommandTimeTaken. :type calls_sum: int """ self._calls_sum = calls_sum @property def usec_sum(self): """Gets the usec_sum of this CommandTimeTaken. 耗时总数 :return: The usec_sum of this CommandTimeTaken. :rtype: float """ return self._usec_sum @usec_sum.setter def usec_sum(self, usec_sum): """Sets the usec_sum of this CommandTimeTaken. 耗时总数 :param usec_sum: The usec_sum of this CommandTimeTaken. :type usec_sum: float """ self._usec_sum = usec_sum @property def command_name(self): """Gets the command_name of this CommandTimeTaken. 命令名称 :return: The command_name of this CommandTimeTaken. :rtype: str """ return self._command_name @command_name.setter def command_name(self, command_name): """Sets the command_name of this CommandTimeTaken. 命令名称 :param command_name: The command_name of this CommandTimeTaken. :type command_name: str """ self._command_name = command_name @property def per_usec(self): """Gets the per_usec of this CommandTimeTaken. 耗时占比 :return: The per_usec of this CommandTimeTaken. :rtype: str """ return self._per_usec @per_usec.setter def per_usec(self, per_usec): """Sets the per_usec of this CommandTimeTaken. 耗时占比 :param per_usec: The per_usec of this CommandTimeTaken. :type per_usec: str """ self._per_usec = per_usec @property def average_usec(self): """Gets the average_usec of this CommandTimeTaken. 每次调用平均耗时 :return: The average_usec of this CommandTimeTaken. :rtype: float """ return self._average_usec @average_usec.setter def average_usec(self, average_usec): """Sets the average_usec of this CommandTimeTaken. 每次调用平均耗时 :param average_usec: The average_usec of this CommandTimeTaken. :type average_usec: float """ self._average_usec = average_usec def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: if attr in self.sensitive_list: result[attr] = "****" else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" import simplejson as json if six.PY2: import sys reload(sys) sys.setdefaultencoding("utf-8") return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) def __repr__(self): """For `print`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, CommandTimeTaken): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9a041f029ecd779e853fc09740d240adebcc1ae2
be8166e53e174085215de30e3ad4059a7f1f9763
/PythonT/Server/Control.py
a06c23c94641152f3217c27ec39effcaa761738b
[]
no_license
mvs-training/trung
6cf5433853f20c8b93fe0ec4d89d2398e39e0c16
7ba46e31d8d58b3e1daf00e11838d37bd35fa86b
refs/heads/master
2020-03-27T06:26:00.772661
2018-08-25T15:13:14
2018-08-25T15:13:14
146,105,474
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
import socket, select, string, sys import Server.Model as Model class controller: def __init__(self): self.HOST = 'localhost' self.PORT = 8000 self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.s.bind((self.HOST, self.PORT)) self.s.listen(5) self.conn, self.addr = self.s.accept() self.db=Model.DB() def fromClient(self): try: with self.conn: print("Connected by:", self.addr) while True: data=self.conn.recv(1024) Data=data.decode() print(Data) self.toClient(Data) if not data: break finally: self.s.close() def toClient(self,data): a=data.split(",") if a[0]=="SignIn": self.conn.sendall(self.db.SignIn(a[1],a[2]).encode()) if a[0]=="SignUp": self.conn.sendall(self.db.SignUp(a[1],a[2],a[3],a[4]).encode()) if a[0]=="SignOut": self.conn.sendall(self.db.SignOut().encode()) if a[0]=="AddFr": self.conn.sendall(self.db.AddFr(a[1]).encode()) if a[0]=="block": self.conn.sendall(self.db.Block(a[1]).encode()) if a[0]=="Sendmess": self.conn.sendall(self.db.Sendmess(a[1],a[2]).encode()) if a[0]=="Showmess": self.conn.sendall(self.db.Showmess().encode()) if a[0]=="ShowFr": self.conn.sendall(self.db.ShowFr().encode()) c= controller() c.fromClient()
[ "noreply@github.com" ]
mvs-training.noreply@github.com
3f9cae025efa9e851b6361f287bae73e9e7bbf8b
27ec6383fab15b9060ac33b0115b3d45f455e3a4
/Base/migrations/0005_auto_20200113_1403.py
374e5175f9e9f339e534379ad23cc948726e3293
[]
no_license
rakssoft/avatar
c6374e2674ab835e22f859a1d9e796dcdc5e4c32
86bdda0bb2123a284307d7b9a2f41a554437d67b
refs/heads/master
2020-09-27T07:49:53.890920
2020-01-14T11:34:05
2020-01-14T11:34:05
226,467,918
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
# Generated by Django 3.0.2 on 2020-01-13 09:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Base', '0004_auto_20200113_1320'), ] operations = [ migrations.CreateModel( name='IncomeDaily', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('income_daily', models.IntegerField(blank=True, null=True)), ('date_of_day', models.DateField(blank=True, null=True)), ('pillow_all', models.IntegerField(blank=True, null=True)), ('debts_all', models.IntegerField(blank=True, null=True)), ], ), migrations.RemoveField( model_name='pointa', name='date_of_day', ), ]
[ "noreply@github.com" ]
rakssoft.noreply@github.com
82da726ec0069af26f1fdcad9463a9a15815d6fe
bc89b5556006b8b41c2212da1c37cde8da49edea
/utils.py
20b858d405b0fe9e8da7f2f549df1c80b15cdc5d
[]
no_license
Jie-Yang/kaggle-redhat
58976648e71782dd95dcae814a5ebee963ffdd0d
454006edd8a56aec295634ded2db12f7f377affa
refs/heads/master
2021-01-21T23:16:58.722126
2017-06-23T13:25:39
2017-06-23T13:25:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 1 16:40:13 2016 @author: jyang """ import pickle import sklearn.metrics as mx def save_variable(file_name,var): pkl_file = open(file_name+'.pkl', 'wb') pickle.dump(var, pkl_file, -1) pkl_file.close() def read_variable(file_name): pkl_file = open(file_name+'.pkl', 'rb') var = pickle.load(pkl_file) pkl_file.close() return var def validate_prediction(y,f): #best value at 1 and worst score at 0 f1 = mx.f1_score(y,f) # statistic used by Kaggle auc = mx.roc_auc_score(y,f) confusion = mx.confusion_matrix(y,f) print('f1:',f1) print('AUC:',auc) print('conf:\n',confusion) return (f1,auc, confusion)
[ "noreply@github.com" ]
Jie-Yang.noreply@github.com
7a2a32d84fa42050980475e7b305840050b490e1
6dbc3def25692041297b6bcf2ab79eb6a887fc14
/xncf/plugins/EDPluginControlXAFSDataProcessing-v0.1/tests/testsuite/EDTestCasePluginUnitControlXAFSDataProcessingv0_1.py
9e7ebaeb0f97b08a803a78ea5e5bcf1ae3570269
[]
no_license
kif/edna
6c7bad78639a970c6e7d611777db9234dfeca34d
49dfb4302eaf8a6a45d3b0c08379b5412e46e443
refs/heads/master
2020-12-25T02:39:58.861344
2020-02-06T08:41:21
2020-02-06T08:41:21
3,163,718
1
2
null
2015-01-20T19:27:24
2012-01-12T16:39:16
Python
UTF-8
Python
false
false
1,851
py
# # Project: PROJECT # http://www.edna-site.org # # File: "$Id$" # # Copyright (C) DLS # # Principal author: irakli # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # __author__ = "irakli" __license__ = "GPLv3+" __copyright__ = "DLS" from EDVerbose import EDVerbose from EDTestCasePluginUnit import EDTestCasePluginUnit from XSDataIfeffit import XSDataInputSolutionScattering class EDTestCasePluginUnitControlXAFSDataProcessingv0_1(EDTestCasePluginUnit): def __init__(self, _edStringTestName=None): EDTestCasePluginUnit.__init__(self, "EDPluginControlXAFSDataProcessingv0_1") def testCheckParameters(self): xsDataInput = XSDataInputSolutionScattering() edPluginExecSolutionScattering = self.createPlugin() edPluginExecSolutionScattering.setDataInput(xsDataInput) edPluginExecSolutionScattering.checkParameters() def process(self): self.addTestMethod(self.testCheckParameters) if __name__ == '__main__': EDTestCasePluginUnitControlXAFSDataProcessingv0_1 = EDTestCasePluginUnitControlXAFSDataProcessingv0_1("EDTestCasePluginUnitControlXAFSDataProcessingv0_1") EDTestCasePluginUnitControlXAFSDataProcessingv0_1.execute()
[ "svensson@4fc0fbde-e734-0410-b98b-b551705f41f8" ]
svensson@4fc0fbde-e734-0410-b98b-b551705f41f8
3306555f68d6971cc7605b1369f614e640a6605b
0d507f0b648f554a477a70ff486271b4bacd53a6
/userbot/plugins/hack.py
b3c389d133a015176e27c083309c8c414437c22d
[ "MIT" ]
permissive
TestingProjectBot/telegramBot
9c6801357ac5afe1efb26cb8b80fe5ff10ad0046
5ae2a744c7781c10a98e1acd6d5f6109986a516a
refs/heads/main
2023-01-30T15:08:07.644781
2020-12-08T08:48:06
2020-12-08T08:48:06
319,574,988
0
0
null
null
null
null
UTF-8
Python
false
false
2,389
py
"""Emoji Available Commands: .emoji shrug .emoji apple .emoji :/ .emoji -_-""" from telethon import events import asyncio from uniborg.util import admin_cmd from telethon.tl.functions.users import GetFullUserRequest @borg.on(admin_cmd(pattern=r"hack")) async def _(event): if event.fwd_from: return animation_interval = 3 animation_ttl = range(0, 11) #input_str = event.pattern_match.group(1) #if input_str == "hack": if event.reply_to_msg_id: reply_message = await event.get_reply_message() replied_user = await event.client(GetFullUserRequest(reply_message.from_id)) firstname = replied_user.user.first_name usname = replied_user.user.username idd = reply_message.from_id if idd==7295966789: await event.edit("This is My Master\nI can't hack my master's Account") else: await event.edit("Hacking..") animation_chars = [ "`Connecting To Hacked Private Server...`", "`Target Selected.`", "`Hacking... 0%\n▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `", "`Hacking... 4%\n█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `", "`Hacking... 8%\n██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `", "`Hacking... 20%\n█████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `", "`Hacking... 36%\n█████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ `", "`Hacking... 52%\n█████████████▒▒▒▒▒▒▒▒▒▒▒▒ `", "`Hacking... 84%\n█████████████████████▒▒▒▒ `", "`Hacking... 100%\n█████████HACKED███████████ `", "`Targeted Account Hacked...\n\nPay ₹10,00,00,00,000 To`[『𝙆𝘼𝙍𝙈𝘼』](@KarmaBoii) `To Remove this hack..`" ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 11]) else: await event.edit("No User is Defined\n Can't hack account")
[ "noreply@github.com" ]
TestingProjectBot.noreply@github.com
ff4e94ae73fd74d4150fd9341fe136c96a3d2cb6
34a5921552537d96d9680f88b94be1706e5c8f1a
/conf/implicit/cse/more_comp_layers.py
395f27dd62c8a145b1daf4e6c3f0208024e9e3aa
[ "Apache-2.0" ]
permissive
hunterhector/DDSemantics
11f1a85486349627036626d3b638db39f70030fe
65235d8897bce403e5d628ed912e516b28254c74
refs/heads/master
2023-07-13T05:20:13.211363
2023-06-21T21:44:37
2023-06-21T21:44:37
123,484,643
0
2
null
null
null
null
UTF-8
Python
false
false
199
py
import os c.ArgModelPara.arg_composition_layer_sizes = 600, 300, 300 c.ArgModelPara.event_composition_layer_sizes = 400, 200, 200 c.Basic.model_name = os.path.basename(__file__).replace(".py", "")
[ "hunterhector@gmail.com" ]
hunterhector@gmail.com
4a61583ef76f3ca738cf5806520e2a4373f670c0
8db311ff0fa5fb0cfb237942939dc91b4f68eb23
/venv/bin/pyside6-designer
3d518d31b75a0390da5e68a70db0ba25a640f556
[]
no_license
kaa-it/intercom_flasher
f9b42cab5a0a5ba71df9069fe77b2b8c592ad053
4d2e87953d24c959cf2d3c08a8346c3273ae5093
refs/heads/master
2023-02-02T15:50:39.940313
2020-12-15T15:48:04
2020-12-15T15:48:04
320,349,487
0
0
null
null
null
null
UTF-8
Python
false
false
278
#!/home/akruglov/Projects/Qt/intercom_flasher/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from PySide6.scripts.pyside_tool import designer if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(designer())
[ "kruglov.it@gmail.com" ]
kruglov.it@gmail.com
fd05be2433dd92fa5a3d0cb67a59dc7d15f78299
89703798254e1569e8cd214f23d16525f9c872e8
/empl/wsgi.py
a4f864d9fb19bff43483c10d5d8707f56de5e7e6
[]
no_license
olfori/Django_employees
e8aad6dc554f22f2cd0e77e137fdd0b462798a0f
93007e04e24d05027c5ab990dddc03030bf820fe
refs/heads/master
2020-04-14T16:41:28.676376
2019-01-03T15:20:52
2019-01-03T15:20:52
163,958,224
0
1
null
null
null
null
UTF-8
Python
false
false
385
py
""" WSGI config for empl project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'empl.settings') application = get_wsgi_application()
[ "ssimonanomiss@gmail.com" ]
ssimonanomiss@gmail.com
c5498d07005a661afe511de448fee4df328aa6bd
176c840586e44360fe79953b901cb2ca53a7a6dc
/aim/db/migration/alembic_migrations/versions/32e5974ada25_add_epoch_column.py
b500baf77ba072727e20eee886396e980fc24c3d
[ "Apache-2.0" ]
permissive
mmnelemane/aci-integration-module
51dabc41747b2921ad527f0f9aa4cd5b0c69578e
9cb986dd14ad90d3ff6f39a01d16bcd190c4cbf1
refs/heads/master
2020-03-24T03:34:51.535032
2018-07-23T16:33:47
2018-07-23T16:33:47
142,424,802
0
0
Apache-2.0
2018-07-26T10:18:10
2018-07-26T10:18:10
null
UTF-8
Python
false
false
2,766
py
# # 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 law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # """Add epoch column Revision ID: 32e5974ada25 Revises: f1ca776aafab Create Date: 2018-03-15 00:22:47.618593 """ # revision identifiers, used by Alembic. revision = '32e5974ada25' down_revision = '1b58ffa871bb' from alembic import op import sqlalchemy as sa TABLES = ('aim_agents', 'aim_config', 'aim_host_domain_mapping', 'aim_host_domain_mapping_v2', 'aim_host_links', 'aim_host_link_network_label', 'aim_opflex_devices', 'aim_app_profiles', 'aim_bridge_domains', 'aim_contracts', 'aim_endpoint_groups', 'aim_external_networks', 'aim_contract_subjects', 'aim_endpoints', 'aim_external_subnets', 'aim_filters', 'aim_filter_entries', 'aim_l3out_interfaces', 'aim_vmm_inj_cont_groups', 'aim_l3out_interface_profiles', 'aim_l3out_nodes', 'aim_l3out_node_profiles', 'aim_l3outsides', 'aim_l3out_static_routes', 'aim_physical_domains', 'aim_pods', 'aim_security_groups', 'aim_security_group_rules', 'aim_security_group_subjects', 'aim_subnets', 'aim_tenants', 'aim_topologies', 'aim_vmm_controllers', 'aim_vmm_domains', 'aim_vmm_inj_deployments', 'aim_vmm_inj_hosts', 'aim_vmm_inj_namespaces', 'aim_vmm_inj_replica_sets', 'aim_vmm_inj_services', 'aim_vmm_policies', 'aim_vrfs', 'aim_concrete_devices', 'aim_concrete_device_ifs', 'aim_device_clusters', 'aim_device_cluster_contexts', 'aim_device_cluster_ifs', 'aim_device_cluster_if_contexts', 'aim_service_graphs', 'aim_service_graph_connections', 'aim_service_graph_nodes', 'aim_service_redirect_policies', 'aim_faults', 'aim_statuses', 'aim_action_logs', 'aim_config_tenant_trees', 'aim_monitored_tenant_trees', 'aim_operational_tenant_trees', 'aim_tenant_trees', 'aim_l3out_interface_bgp_peer_prefix') def upgrade(): for table in TABLES: op.add_column(table, sa.Column('epoch', sa.BigInteger(), nullable=False, server_default='0')) with op.batch_alter_table('aim_agents') as batch_op: batch_op.drop_column('beat_count')
[ "ivarlazzaro@gmail.com" ]
ivarlazzaro@gmail.com
1d9a781bce445a44d0e8816e829826bd5d73115c
002f447f937502015bd8bf735a4e0f849fc3cfe7
/mainform/migrations/0002_questionnaire_author.py
6b5e580402498168f6c99952304b592416b0b74e
[]
no_license
thinson/DjangoFormInfo
1e0f2060ab7ed8337967cbae5533fd48de2ec501
d52672ab9ebe77268cf7849f7cb159485cd2e6de
refs/heads/master
2020-03-27T12:23:05.908893
2018-08-30T12:23:18
2018-08-30T12:23:18
146,543,442
5
2
null
null
null
null
UTF-8
Python
false
false
586
py
# Generated by Django 2.1 on 2018-08-13 09:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('mainform', '0001_initial'), ] operations = [ migrations.AddField( model_name='questionnaire', name='author', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL), ), ]
[ "thinson2017@outlook.com" ]
thinson2017@outlook.com
d6f912b3f091270a78a90a95d9b1c6f1aac2c9a0
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/codewar/_CodeWars-Python-master/solutions/Complementary_DNA.py
2611fb4f38a1f0dfc695d5497dd2c3816bb8f4fe
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
335
py
""" 7 kyu: Complementary DNA http://www.codewars.com/kata/554e4a2f232cdd87d9000038/train/python """ ___ DNA_strand(dna complements { 'A': 'T', 'T': 'A', 'G': 'C', 'C': 'G', } r.. ''.j..([complements[c] ___ c __ dna]) print(DNA_strand("AAAA" print(DNA_strand("ATTGC" print(DNA_strand("GTAT"
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
e7b2a6f1e16a69349377c1c0e19c56e874444c85
f431578d4d2f9f4d2bcd7fcab844cc3881202f1c
/text_handler.py
bb546bf1a156cf8dafec703cc577e59b1cc0657d
[]
no_license
Drew-LR/Text-Based-Game
5fa8ee754fdac4b5e7391d0f8315d4ec43198164
77c86e9d60ea74d4f074ade0b3444fc29cbeb4bd
refs/heads/master
2022-12-20T06:06:52.475092
2020-10-01T17:25:21
2020-10-01T17:25:21
284,114,386
0
0
null
null
null
null
UTF-8
Python
false
false
14,060
py
from constants import term import constants import textwrap import random import threader import inventory import ui import maze_map ui_ob = ui.Ui() inventory_ob = inventory.Inventory(ui_ob) maze_map = maze_map.Map() class Text_handler(): # this class displaying text of various types and handles cases where the player responds to text by making choices. def __init__(self): self.press_continue = "\n\n" + " press Enter to continue..." self.press_confirm = "\n\n" + " press Enter to confirm..." self.start_battle = "\n\n" + " Press to Start Battle!" self.text_pos = term.home + term.move_down(8) # a standard cursor position for printing text in the right place(about half way down the window) def story(self, p, func=0, para=0): # print story element paragraph index [p], at standard text position with wrapping and pak end string prompt. def open_text(): file = open('story.txt', 'r') data = file.read() file.close() paragraph = data.split("\n\n") file = open('story_list', 'w') for i,j in enumerate(paragraph): file.write('\n{}:\n{}\n'.format(i,j)) file.close() return paragraph def update(): print(self.text_pos + term.clear_eos + textwrap.fill(paragraph[p], term.width, break_long_words=False) + self.press_continue) def interact(): while 1: key = term.inkey() ui_ob.ui_update() if key == 'i': inventory_ob.inventory() update() if key.is_sequence and key.name == 'KEY_ENTER': return paragraph = open_text() update() interact() if func != 0: return func(para) else: return '' def branch(self, p, *argv): # function prints and handles open questions with any number of possible answers. it takes arguments in the format; ('p' for which paraghraph to read in from text file. 'p' variable is a positional argument, not an argv), (a number string, i.e. '1', which will match 'key'), (a function which will give some result), (a value to provide the function when it is returned) def open_text(): file = open('branch.txt', 'r') data = file.read() file.close() paragraph = data.split("\n\n") file = open('branch_list', 'w') for i,j in enumerate(paragraph): file.write('\n{}:\n{}\n'.format(i,j)) file.close() return paragraph def update(bold=0, key_text=0): print(term.home + term.move_down(7) + term.clear_eos) # clear the text area before iterating. for i in range(len(text1)): # iterate through each line in text1 and print them with wrapping. if i+1 == bold: print(textwrap.fill(term.bold(text1[i]), term.width, break_long_words=False)) else: print(textwrap.fill(text1[i], term.width, break_long_words=False)) if key_text != 0: print(key_text) def interact(): #constants.static = True key_place = 0 key_text = 0 while 1: key = term.inkey() # wait for key press and bind it to variable 'key', number keys return a string of that number. ui_ob.ui_update() for i in range(len(argv)): # iterate through each index in argv. if argv[i] == str(key): # if an arg in argv matches the string stored in 'key', print (with text wrapping) the line in text2 which corresponds to that number. key is converted to int and used as the index of text2 (-1 because the optional args in argv always start at 1 so the player doesn't input a zeroth choice) # if key == argv[-3]: # constants.absolute = constants.current_branch update(int(key)+2) print (textwrap.fill(text2[int(key)-1], term.width, break_long_words=False) + self.press_confirm) key_place = int(key)+2 key_text = textwrap.fill(text2[int(key)-1], term.width, break_long_words=False) + self.press_confirm res2 =0 # so we can check if its assigned another value if type(argv[i+1]) == tuple: res2, res3 = argv[i+1][0], argv[i+1][1] res4, res5 = argv[i+1][2], argv[i+1][3] else: res, res1 = argv[i+1], argv[i+2] # function, parameter if key == 'i': inventory_ob.inventory() update(key_place, key_text) if key.is_sequence and key.name == 'KEY_ENTER': try: if res2 == 0: # if res2 was assigned it means we found a tuple return (res, res1) # no tuple else: return (res2, res3, res4, res5) # tuple except: pass paragraph = open_text() text1,text2 = paragraph[p].split('@') # split the text into two strings. text1 is the question and options. text2 contains the results, only the option chosen will be printed. text1 = text1.split('#') # seperate by line text2 = text2.split('#') # seperate by line update() res = interact() if len(res) == 2: if 'inventory' or 'go_to' not in str(res[0]): # inventory and goto changes dont return something to print return res[0](res[1]) # this returns us directly to a print statement, if there's nothing to print it will print none. else: threader.return_func(res[0], res[1]) # for the non-print result we need to use this return '' # then return a nothing string so that 'none' doesnt print else: # res has four elements if 'gold' in str(res[2]) and res[3] < 0 and res[3] < ui_ob.gold: # player tried to make a purchase, check they have enough gold. return res[2](res[3]) # to expand here... if player has max hp, dont let them pay for healing. else: if 'hp' in str(res[0]) or 'gold' in str(res[0]):# check if the first tuple is a function that prints threader.print_func(res[0], res[1]) # if so feed it to threaders print function else: threader.return_func(res[0], res[1]) # if not feed it to threaders return function if 'hp' in str(res[2]) or 'gold' in str(res[2]): threader.print_func(res[2], res[3]) else: threader.return_func(res[2], res[3]) return '' def game_over(self, p): text_string = '' def open_text(): file = open('game_over.txt', 'r') data = file.read() file.close() paragraph = data.split("\n\n") file = open('game_over_list', 'w') for i,j in enumerate(paragraph): file.write('\n{}:\n{}\n'.format(i,j)) file.close() return paragraph def update(): print(self.text_pos + term.clear_eos + textwrap.fill(paragraph[p], term.width, break_long_words=False) + self.press_continue) def interact(): while 1: key = term.inkey() # if key == 'i': # inventory_ob.inventory() # update() if key.is_sequence and key.name == 'KEY_ENTER': return text_string paragraph = open_text() update() res = interact() constants.game_over = True ui_ob.ui_update() return res def go_to(self, param): if param != 'empty': constants.absolute = param file = open('dump.txt', 'a') file.write('\n constants.absolute in txthndlr {}.'.format(constants.absolute)) file.close() return '' else: return '' def room(self, doors_num, choices, *argv): def open_text(): file = open('room.txt', 'r') data = file.read() file.close() paragraph = data.split("\n\n") file = open('room_list', 'w') for i,j in enumerate(paragraph): file.write('\n{}:\n{}\n'.format(i,j)) file.close() return paragraph def update(bold=0, key_text=0): print(term.home + term.move_down(7) + term.clear_eos) # clear the text area before iterating. print(self.text_pos + term.clear_eos + textwrap.fill(random_room, term.width, break_long_words=False) + '\n') #print room text for j, k in enumerate(choices): if j+1 == bold: print(term.bold(' ' + '{}) '.format(str(j+1)) + k)) else: print(' ' + '{}) '.format(str(j+1)) + k) if key_text != 0: print(key_text) def interact(): key_place = 0 key_text = 0 while 1: key = term.inkey() # wait for key press and bind it to variable 'key', number keys return a string of that number. ui_ob.ui_update() for i in range(len(argv)): # iterate through each index in argv. if argv[i] == str(key): # if an arg in argv matches the string stored in 'key', print (with text wrapping) the line in text2 which corresponds to that number. key is converted to int and used as the index of text2 (-1 because the optional args in argv always start at 1 so the player doesn't input a zeroth choice) update(int(key)) print (self.press_confirm) key_place = int(key) key_text = self.press_confirm res2 =0 # so we can check if its assigned another value if type(argv[i+1]) == tuple: res2, res3 = argv[i+1][0], argv[i+1][1] res4, res5 = argv[i+1][2], argv[i+1][3] else: res, res1 = argv[i+1], argv[i+2] # function, parameter if key == 'i': inventory_ob.inventory() update(key_place, key_text) if key == 'm': maze_map.open() update(key_place, key_text) if key.is_sequence and key.name == 'KEY_ENTER': try: if res2 == 0: # if res2 was assigned it means we found a tuple return (res, res1) # no tuple else: return (res2, res3, res4, res5) # tuple except: pass paragraph = open_text() one_door = [] two_door = [] three_door = [] four_door = [] for i in paragraph: if i.endswith('.'): # appends to all if ambiguous about the number of doors one_door.append(i) two_door.append(i) three_door.append(i) four_door.append(i) if i.endswith('#1door'): # for rooms with one door (dead ends) one_door.append(i[:-6]) if i.endswith('#2door'): # two doors two_door.append(i[:-6]) if i.endswith('#3door'): # three three_door.append(i[:-6]) if i.endswith('#4door'): # four four_door.append(i[:-6]) if doors_num == 1: room_from = one_door elif doors_num == 2: room_from = two_door elif doors_num == 3: room_from = three_door elif doors_num == 4: room_from = four_door random_room = random.choice(room_from) update() res = interact() if len(res) == 2: if 'inventory' or 'go_to' not in str(res[0]): # inventory and goto changes dont return something to print return res[0](res[1]) # this returns us directly to a print statement, if there's nothing to print it will print none. else: threader.return_func(res[0], res[1]) # for the non-print result we need to use this return '' # then return a nothing string so that 'none' doesnt print else: # res has four elements if 'gold' in str(res[2]) and res[3] < 0 and res[3] < ui_ob.gold: # player tried to make a purchase, check they have enough gold. return res[2](res[3]) # to expand here... if player has max hp, dont let them pay for healing. else: if 'hp' in str(res[0]) or 'gold' in str(res[0]):# check if the first tuple is a function that prints threader.print_func(res[0], res[1]) # if so feed it to threaders print function else: threader.return_func(res[0], res[1]) # if not feed it to threaders return function if 'hp' in str(res[2]) or 'gold' in str(res[2]): threader.print_func(res[2], res[3]) else: threader.return_func(res[2], res[3]) return ''
[ "drewransley@gmail.com" ]
drewransley@gmail.com
0ff93cd631ff28f26b61eba6670ef94028d49afc
9d31542b9287528bb0e7e0dc8a1fb8b38c0a62e9
/monitorvm.py
53ffff554b66e855dd63aff4df59f4d8d5f1d65a
[]
no_license
zzningxp/cloudvirt
7622f94c43e9a65577fa61ff6a8c391befb54b64
fbe53ad78b2b920cba0c5b4e3df504ff042458b8
refs/heads/master
2021-01-01T03:46:59.538997
2016-04-19T07:29:29
2016-04-19T07:29:29
56,573,876
0
0
null
null
null
null
UTF-8
Python
false
false
4,051
py
#!/usr/bin/env python import logging, time, threading import libvirt, sys, os, re, time import libMysqlMacIP, libMysqlInstance, libMysqlHost from xml.dom import minidom workpath = '/root/cloudvirt/' state = ['NoState','Running','Blocked','Paused ','Shutdwn','Shutoff','Crashed'] def sformat(t): t = re.split("\:", t) return int(t[0]) * 3600 + int(t[1]) * 60 + int(t[2]) def tformat(t): if "days," in t: t = re.split("days,", t) return int(t[0]) * 24 * 3600 + sformat(t[1]) elif "day," in t: t = re.split("day,",t) return int(t[0]) * 24 * 3600 + sformat(t[1]) else: return sformat(t) def getcreatetime(pid, domname): cmd = "ssh %s xm uptime | awk '{print $1 \" \" $3 $4 $5}'" % pid ut = os.popen(cmd).read() ut = re.split(r"\n", ut) ut.remove('') ut = ut[2:] for iut in ut: iut = re.split(" ", iut) if domname == iut[0]: return tformat(iut[1]) return 0 def getdomains(pid, logger): try: conn = libvirt.open("xen+ssh://root@%s/" % pid) except Exception, e: logger.info("Lost Contection : " + pid + " " + str(e)) return macip = libMysqlMacIP.MacIPs() for id in conn.listDomainsID(): if id > 0: vminfo = {} dom = conn.lookupByID(id) try: x = dom.XMLDesc(0) ifc = minidom.parseString(x).getElementsByTagName('interface') mac = ifc[0].getElementsByTagName('mac')[0].attributes['address'].value.upper() except Exception, e: logger.info("Error Domain Infomation from XML Identifier: " +pid + dom.name() + str(e)) else: vminfo['name'] = dom.name() vminfo['hostname'] = pid vminfo['mac'] = str(mac) vminfo['ip'] = macip.getip(str(mac)) vminfo['status'] = state[dom.info()[0]] vminfo['update_time'] = time.localtime() vminfo['register_time'] = time.localtime() vminfo['start_time'] = time.localtime(time.time() - getcreatetime(pid, dom.name())) vminfo['cputime'] = dom.info()[4] / 100000000 vminfo['vcpu'] = dom.info()[3] vminfo['mem'] = dom.info()[2] / 1024 vminfo['domid'] = dom.ID() instc = libMysqlInstance.Instances() name = str(vminfo[instc.col_name]) wheres = [(instc.col_name, name)] inslist = instc.select_dict_withtuples(wheres) if len(inslist) > 0: dbinfo = inslist[0] s = [] s.append((instc.col_update_time, vminfo[instc.col_update_time])) s.append((instc.col_cputime, vminfo[instc.col_cputime])) if dbinfo[instc.col_ip] != vminfo[instc.col_ip]: s.append((instc.col_ip, vminfo[instc.col_ip])) if dbinfo[instc.col_status] != vminfo[instc.col_status]: s.append((instc.col_status, vminfo[instc.col_status])) if dbinfo[instc.col_domid] != vminfo[instc.col_domid]: s.append((instc.col_domid, vminfo[instc.col_domid])) if dbinfo[instc.col_start_time] != vminfo[instc.col_start_time]: s.append((instc.col_start_time, vminfo[instc.col_start_time])) instc.update_tuples(wheres, s) else: instc.insert_dict(vminfo) def getinstances(logger): hst = libMysqlHost.Hosts() columns = [hst.col_hostid, hst.col_clustername] ret = hst.select(' , '.join(columns), '', '') plist = [] for i in ret: plist.append(i[0]) thr = [] for pid in plist: thr.append(threading.Thread(target=getdomains, args=(pid, logger))) for i in range(len(thr)): thr[i].start() instc = libMysqlInstance.Instances() instc.mark_dead()
[ "zzningxp@gmail.com" ]
zzningxp@gmail.com
54463866ce0c053f119721f1ea714053f0e17901
e2c471d57d56620f7ccc8206103eeea77e07d193
/src/localization/particle_filter_py/particle_filter_py/particle_filter.py
c13334a4eeda8dcf57d72c309c8726ce7687ce2e
[ "Apache-2.0" ]
permissive
anaaamika/Triton-AI-Racer-ROS2
e4e85516a02b5cc35d5305ec0add4c7e5b1f0d28
9fa3f02a97d7f162e9fa3df80849e6fbf09ae517
refs/heads/main
2023-09-04T22:56:09.170957
2021-11-23T01:28:46
2021-11-23T01:28:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,997
py
from datetime import datetime import numpy as np from threading import Thread, Lock, Event from dataclasses import dataclass import time import math @dataclass class ParticleFilterConfig: initial_position: tuple initial_orientation_deg: float max_orientation_change_deg: float = 1.0 max_position_change_m: float = 1.0 num_sample: int = 300 reject_match_beyond_m: float = 10.0 class ParticleFilter: def __init__(self, config: ParticleFilterConfig, features: np.ndarray, debug_callback=print) -> None: self.config = config self.features = features self.sensor_input = None self.sensor_input_lock = Lock() self.sensor_input_event = Event() self.debug_callback = debug_callback self.position = np.array( list(config.initial_position), dtype=np.float32) self.yaw = np.radians(config.initial_orientation_deg) self.yaw_range = np.radians(config.max_orientation_change_deg) self.pos_range = config.max_position_change_m self.t_mcl_ = Thread(target=self.mcl_thread_, daemon=True) self.t_mcl_.start() def update_lidar(self, points: np.ndarray): if isinstance(points, np.ndarray): self.sensor_input_lock.acquire() self.sensor_input = points.copy() self.sensor_input_event.set() self.sensor_input_lock.release() def get_pose(self): return self.position.copy(), self.quaternion_from_euler(0.0, 0.0, self.yaw) def mcl_thread_(self): range_ratio = 1.0 last_best_score = None while True: # start = datetime.now() if self.sensor_input is None: time.sleep(0.01) continue self.sensor_input_lock.acquire() sensor_input = self.sensor_input.copy() self.sensor_input_lock.release() if self.sensor_input_event.is_set(): range_ratio *= 1.1 if last_best_score is not None: last_best_score *= 0.5 if range_ratio > 1.0: range_ratio = 1.0 self.sensor_input_event.clear() pos_sample, yaw_sample = self._sample( self.pos_range * range_ratio, self.yaw_range * range_ratio) pos_sample += np.expand_dims(self.position, axis=0) yaw_sample += self.yaw feature_transformed = self._transform( self.features, pos_sample, yaw_sample) belief, best_score, best_match = self._evaluate_feature_match( sensor_input, feature_transformed) if last_best_score is not None: if best_score > last_best_score: last_best_score = best_score range_ratio *= 0.9 if range_ratio < 0.1: range_ratio = 0.1 self.position = pos_sample[belief] self.yaw = yaw_sample[belief] else: range_ratio *= 1.1 if range_ratio > 1.0: range_ratio = 1.0 pass else: last_best_score = best_score self.position = pos_sample[belief] self.yaw = yaw_sample[belief] # duration = datetime.now() - start # self.debug_callback(str(duration)) def quaternion_from_euler(self, roll, pitch, yaw): """ Converts euler roll, pitch, yaw to quaternion quat = [w, x, y, z] Bellow should be replaced when porting for ROS 2 Python tf_conversions is done. """ cy = math.cos(yaw * 0.5) sy = math.sin(yaw * 0.5) cp = math.cos(pitch * 0.5) sp = math.sin(pitch * 0.5) cr = math.cos(roll * 0.5) sr = math.sin(roll * 0.5) q = [0] * 4 q[0] = cy * cp * cr + sy * sp * sr q[1] = cy * cp * sr - sy * sp * cr q[2] = sy * cp * sr + cy * sp * cr q[3] = sy * cp * cr - cy * sp * sr return q def _sample(self, pos_range, yaw_range): pos_x = np.random.normal(0, pos_range / 2, self.config.num_sample) pos_y = np.random.normal(0, pos_range / 2, self.config.num_sample) pos = np.hstack( [pos_x[:, np.newaxis], pos_y[:, np.newaxis]]).astype(np.float32) yaw = np.random.normal( 0, yaw_range / 2, self.config.num_sample).astype(np.float32) return pos, yaw def _transform(self, to_transform: np.ndarray, pos_offsets: np.ndarray, yaw_offsets: np.ndarray): to_transform = to_transform[np.newaxis, ...] pos_offsets = pos_offsets[:, np.newaxis, :] translated = to_transform - pos_offsets rotation_matrix = np.zeros((len(yaw_offsets), 2, 2)) yaw_cos = np.cos(yaw_offsets) yaw_sin = np.sin(yaw_offsets) rotation_matrix[:, 0, 0] = yaw_cos rotation_matrix[:, 0, 1] = -yaw_sin rotation_matrix[:, 1, 1] = yaw_cos rotation_matrix[:, 1, 0] = yaw_sin rotated = translated @ rotation_matrix return rotated def _evaluate_feature_match(self, samples: np.ndarray, features: np.ndarray): # samples: num_sample * sample_length * 2 samples = samples[np.newaxis, np.newaxis, :, :] features = features[:, :, np.newaxis, :] # num_sample * feature_length * sample_length * 2 distances = np.linalg.norm(samples-features, axis=3) where_best_distances = np.argmin(distances, axis=2) best_distances = np.squeeze(np.take_along_axis( distances, where_best_distances[..., np.newaxis], axis=-1)) valid_matches = best_distances < self.config.reject_match_beyond_m scores = np.sum(1 / best_distances, axis=1, where=valid_matches) best_sample = np.nanargmax(scores) return best_sample, scores[best_sample], where_best_distances[best_sample]
[ "hxue@ucsd.edu" ]
hxue@ucsd.edu
3c1247ee2f73642684359b613ba0052632fc7de8
9fe33427072df81a3f470048d99961283057df12
/adhoc.py
b57e99fd1f1247e76a4223f1692f2ab8c9a12cdf
[ "Apache-2.0" ]
permissive
AppAdhoc/adhoc_python_sdk
7971572b278232fe4e4a5981e00aa33758854f66
8b60b278ceb79a0106e0b40ab4181fe472d8aa90
refs/heads/master
2016-09-01T11:22:37.290977
2016-03-10T08:48:31
2016-03-10T08:48:38
48,989,487
1
0
null
null
null
null
UTF-8
Python
false
false
3,293
py
# -*- coding: utf-8 -*- import requests, json, time class AdhocTracker(object): """ Get flags and upload track data. The methods in this class will request data through network, so they maybe slow and block the whole thread. Wrap them into async calls or use thread pooling to speed things up. Attributes: app_key (str): App key from AppAdhoc website. timeout (int): Timeout for requests. exp_url (str): URL to request flags. tracker_url (str): URL to upload track data. """ def __init__(self, app_key, https = False, timeout = 10): """ Init AdhocTracker. Args: app_key (str): App key from AppAdhoc website. https (boolean): If True, use https. Use http otherwise. timeout (Optional[int]): Timeout for requests. Defaults 10 seconds. """ self.app_key = app_key self.timeout = timeout proto = "https" if https else "http" self.exp_url = "%s://experiment.appadhoc.com/get_flags" % (proto) self.tracker_url = "%s://tracker.appadhoc.com/tracker" % (proto) def get_flags(self, client_id, custom = {}): """ Get flags for a client. Args: client_id (str): Unique identification for a client. Could be user ID or something like that. custom (optional[dict]): Custom tags for the client. For example, you may tag the client's gender like this: custom = {"gender":"male"}. Defaults empty dict. """ payload = { "app_key": self.app_key, "client_id": client_id, "custom": custom, "summary": {}, } r = requests.post(self.exp_url, json = payload, timeout = self.timeout) return r.json() def inc_stat(self, client_id, stat_key, stat_value = 1.0, custom = {}, timestamp = int(time.time())): """ Increase a stat by some value. Args: client_id (str): Unique identification for a client. Could be user ID or something like that. stat_key (str): The name of stat you want to increase. stat_value (optional[double]): The value you want to increase. Defaults to 1.0. custom (optional[dict]): Custom tags for the client. For example, you may tag the client's gender like this: custom = {"gender":"male"}. Defaults empty dict. timestamp (optional[long]): When the increasment is happenning? Unix timestamp by senond. It cannot be some time in the future. Defaults the current time. """ payload = { "app_key": self.app_key, "client_id": client_id, "summary": {}, "custom": custom, "stats": [{ "key": stat_key, "value": stat_value, "timestamp": timestamp }] } r = requests.post(self.tracker_url, json = payload, timeout = self.timeout) json = r.json() if json.get("status") != "ok": raise Exception("status error: " + str(json)) return json
[ "wbin00@gmail.com" ]
wbin00@gmail.com
983ef5482bd7ce1f6da619f472bcfa3272f462b7
f2aa05d301d021ea29ed921352678c3410b1d0ba
/util/dvsim/Scheduler.py
ad880ec8f189f7c6b0bb4d07cd8aa241b2f9328d
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
olofk/opentitan
87ae932fd8c715e06e05966b0ff1cab1af0294ba
a6f0f3a4c6b80ccfea7bc8462d0797267bef5d22
refs/heads/master
2022-05-02T02:46:58.336088
2022-03-09T21:19:22
2022-03-10T06:38:48
220,017,720
3
1
Apache-2.0
2019-11-06T14:37:15
2019-11-06T14:37:14
null
UTF-8
Python
false
false
20,103
py
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import logging as log import threading from signal import SIGINT, signal from Launcher import LauncherError from StatusPrinter import get_status_printer from Timer import Timer from utils import VERBOSE # Sum of lenghts of all lists in the given dict. def sum_dict_lists(d): '''Given a dict whose key values are lists, return sum of lengths of thoese lists.''' return sum([len(d[k]) for k in d]) def get_next_item(arr, index): '''Perpetually get an item from a list. Returns the next item on the list by advancing the index by 1. If the index is already the last item on the list, it loops back to the start, thus implementing a circular list. arr is a subscriptable list. index is the index of the last item returned. Returns (item, index) if successful. Raises IndexError if arr is empty. ''' index += 1 try: item = arr[index] except IndexError: index = 0 try: item = arr[index] except IndexError: raise IndexError("List is empty!") return item, index class Scheduler: '''An object that runs one or more Deploy items''' def __init__(self, items, launcher_cls): self.items = items # 'scheduled[target][cfg]' is a list of Deploy objects for the chosen # target and cfg. As items in _scheduled are ready to be run (once # their dependencies pass), they are moved to the _queued list, where # they wait until slots are available for them to be dispatched. # When all items (in all cfgs) of a target are done, it is removed from # this dictionary. self._scheduled = {} self.add_to_scheduled(items) # Print status periodically using an external status printer. self.status_printer = get_status_printer() self.status_printer.print_header( msg="Q: queued, D: dispatched, P: passed, F: failed, K: killed, " "T: total") # Sets of items, split up by their current state. The sets are # disjoint and their union equals the keys of self.item_to_status. # _queued is a list so that we dispatch things in order (relevant # for things like tests where we have ordered things cleverly to # try to see failures early). They are maintained for each target. # The list of available targets and the list of running items in each # target are polled in a circular fashion, looping back to the start. # This is done to allow us to poll a smaller subset of jobs rather than # the entire regression. We keep rotating through our list of running # items, picking up where we left off on the last poll. self._targets = list(self._scheduled.keys()) self._queued = {} self._running = {} self._passed = {} self._failed = {} self._killed = {} self._total = {} self.last_target_polled_idx = -1 self.last_item_polled_idx = {} for target in self._scheduled: self._queued[target] = [] self._running[target] = [] self._passed[target] = set() self._failed[target] = set() self._killed[target] = set() self._total[target] = sum_dict_lists(self._scheduled[target]) self.last_item_polled_idx[target] = -1 # Stuff for printing the status. width = len(str(self._total[target])) field_fmt = '{{:0{}d}}'.format(width) self.msg_fmt = 'Q: {0}, D: {0}, P: {0}, F: {0}, K: {0}, T: {0}'.format( field_fmt) msg = self.msg_fmt.format(0, 0, 0, 0, 0, self._total[target]) self.status_printer.init_target(target=target, msg=msg) # A map from the Deploy objects tracked by this class to their # current status. This status is 'Q', 'D', 'P', 'F' or 'K', # corresponding to membership in the dicts above. This is not # per-target. self.item_to_status = {} # Create the launcher instance for all items. for item in self.items: item.create_launcher() # The chosen launcher class. This allows us to access launcher # variant-specific settings such as max parallel jobs & poll rate. self.launcher_cls = launcher_cls def run(self): '''Run all scheduled jobs and return the results. Returns the results (status) of all items dispatched for all targets and cfgs. ''' timer = Timer() # Catch one SIGINT and tell the runner to quit. On a second, die. stop_now = threading.Event() old_handler = None def on_sigint(signal_received, frame): log.info('Received SIGINT. Exiting gracefully. ' 'Send another to force immediate quit ' '(but you may need to manually kill child processes)') # Restore old handler to catch any second signal assert old_handler is not None signal(SIGINT, old_handler) stop_now.set() old_handler = signal(SIGINT, on_sigint) # Enqueue all items of the first target. self._enqueue_successors(None) try: while True: if stop_now.is_set(): # We've had an interrupt. Kill any jobs that are running. self._kill() hms = timer.hms() changed = self._poll(hms) or timer.check_time() self._dispatch(hms) if changed: if self._check_if_done(hms): break # This is essentially sleep(1) to wait a second between each # polling loop. But we do it with a bounded wait on stop_now so # that we jump back to the polling loop immediately on a # signal. stop_now.wait(timeout=self.launcher_cls.poll_freq) finally: signal(SIGINT, old_handler) # Cleaup the status printer. self.status_printer.exit() # We got to the end without anything exploding. Return the results. return self.item_to_status def add_to_scheduled(self, items): '''Add items to the list of _scheduled. 'items' is a list of Deploy objects. ''' for item in items: target_dict = self._scheduled.setdefault(item.target, {}) cfg_list = target_dict.setdefault(item.sim_cfg, []) if item not in cfg_list: cfg_list.append(item) def _remove_from_scheduled(self, item): '''Removes the item from _scheduled[target][cfg] list. When all items in _scheduled[target][cfg] are finally removed, the cfg key is deleted. ''' target_dict = self._scheduled[item.target] cfg_list = target_dict.get(item.sim_cfg) if cfg_list is not None: try: cfg_list.remove(item) except ValueError: pass if not cfg_list: del target_dict[item.sim_cfg] def _get_next_target(self, curr_target): '''Returns the target that succeeds the current one. curr_target is the target of the job that just completed (example - build). If it is None, then the first target in _scheduled is returned. ''' if curr_target is None: return next(iter(self._scheduled)) assert curr_target in self._scheduled target_iterator = iter(self._scheduled) target = next(target_iterator) found = False while not found: if target == curr_target: found = True try: target = next(target_iterator) except StopIteration: return None return target def _enqueue_successors(self, item=None): '''Move an item's successors from _scheduled to _queued. 'item' is the recently run job that has completed. If None, then we move all available items in all available cfgs in _scheduled's first target. If 'item' is specified, then we find its successors and move them to _queued. ''' for next_item in self._get_successors(item): assert next_item not in self.item_to_status assert next_item not in self._queued[next_item.target] self.item_to_status[next_item] = 'Q' self._queued[next_item.target].append(next_item) self._remove_from_scheduled(next_item) def _cancel_successors(self, item): '''Cancel an item's successors recursively by moving them from _scheduled or _queued to _killed.''' items = self._get_successors(item) while items: next_item = items.pop() self._cancel_item(next_item, cancel_successors=False) items.extend(self._get_successors(next_item)) def _get_successors(self, item=None): '''Find immediate successors of an item. 'item' is a job that has completed. We choose the target that follows the 'item''s current target and find the list of successors whose dependency list contains 'item'. If 'item' is None, we pick successors from all cfgs, else we pick successors only from the cfg to which the item belongs. Returns the list of item's successors, or an empty list if there are none. ''' if item is None: target = self._get_next_target(None) cfgs = set(self._scheduled[target]) else: target = self._get_next_target(item.target) cfgs = {item.sim_cfg} if target is None: return [] # Find item's successors that can be enqueued. We assume here that # only the immediately succeeding target can be enqueued at this # time. successors = [] for cfg in cfgs: for next_item in self._scheduled[target][cfg]: if item is not None: # Something is terribly wrong if item exists but the # next_item's dependency list is empty. assert next_item.dependencies if item not in next_item.dependencies: continue if self._ok_to_enqueue(next_item): successors.append(next_item) return successors def _ok_to_enqueue(self, item): '''Returns true if ALL dependencies of item are complete.''' for dep in item.dependencies: # Ignore dependencies that were not scheduled to run. if dep not in self.items: continue # Has the dep even been enqueued? if dep not in self.item_to_status: return False # Has the dep completed? if self.item_to_status[dep] not in ["P", "F", "K"]: return False return True def _ok_to_run(self, item): '''Returns true if the required dependencies have passed. The item's needs_all_dependencies_passing setting is used to figure out whether we can run this item or not, based on its dependent jobs' statuses. ''' # 'item' can run only if its dependencies have passed (their results # should already show up in the item to status map). for dep in item.dependencies: # Ignore dependencies that were not scheduled to run. if dep not in self.items: continue dep_status = self.item_to_status[dep] assert dep_status in ['P', 'F', 'K'] if item.needs_all_dependencies_passing: if dep_status in ['F', 'K']: return False else: if dep_status in ['P']: return True return item.needs_all_dependencies_passing def _poll(self, hms): '''Check for running items that have finished Returns True if something changed. ''' max_poll = min(self.launcher_cls.max_poll, sum_dict_lists(self._running)) # If there are no jobs running, we are likely done (possibly because # of a SIGINT). Since poll() was called anyway, signal that something # has indeed changed. if not max_poll: return True changed = False while max_poll: target, self.last_target_polled_idx = get_next_item( self._targets, self.last_target_polled_idx) while self._running[target] and max_poll: max_poll -= 1 item, self.last_item_polled_idx[target] = get_next_item( self._running[target], self.last_item_polled_idx[target]) status = item.launcher.poll() level = VERBOSE assert status in ['D', 'P', 'F', 'K'] if status == 'D': continue elif status == 'P': self._passed[target].add(item) elif status == 'F': self._failed[target].add(item) level = log.ERROR else: self._killed[target].add(item) level = log.ERROR self._running[target].pop(self.last_item_polled_idx[target]) self.last_item_polled_idx[target] -= 1 self.item_to_status[item] = status log.log(level, "[%s]: [%s]: [status] [%s: %s]", hms, target, item.full_name, status) # Enqueue item's successors regardless of its status. # # It may be possible that a failed item's successor may not # need all of its dependents to pass (if it has other dependent # jobs). Hence we enqueue all successors rather than canceling # them right here. We leave it to _dispatch() to figure out # whether an enqueued item can be run or not. self._enqueue_successors(item) changed = True return changed def _dispatch(self, hms): '''Dispatch some queued items if possible.''' slots = self.launcher_cls.max_parallel - sum_dict_lists(self._running) if slots <= 0: return # Compute how many slots to allocate to each target based on their # weights. sum_weight = 0 slots_filled = 0 total_weight = sum(self._queued[t][0].weight for t in self._queued if self._queued[t]) for target in self._scheduled: if not self._queued[target]: continue # N slots are allocated to M targets each with W(m) weights with # the formula: # # N(m) = N * W(m) / T, where, # T is the sum total of all weights. # # This is however, problematic due to fractions. Even after # rounding off to the nearest digit, slots may not be fully # utilized (one extra left). An alternate approach that avoids this # problem is as follows: # # N(m) = (N * S(W(m)) / T) - F(m), where, # S(W(m)) is the running sum of weights upto current target m. # F(m) is the running total of slots filled. # # The computed slots per target is nearly identical to the first # solution, except that it prioritizes the slot allocation to # targets that are earlier in the list such that in the end, all # slots are fully consumed. sum_weight += self._queued[target][0].weight target_slots = round( (slots * sum_weight) / total_weight) - slots_filled if target_slots <= 0: continue slots_filled += target_slots to_dispatch = [] while self._queued[target] and target_slots > 0: next_item = self._queued[target].pop(0) if not self._ok_to_run(next_item): self._cancel_item(next_item, cancel_successors=False) self._enqueue_successors(next_item) continue to_dispatch.append(next_item) target_slots -= 1 if not to_dispatch: continue log.log(VERBOSE, "[%s]: [%s]: [dispatch]:\n%s", hms, target, ", ".join(item.full_name for item in to_dispatch)) for item in to_dispatch: self._running[target].append(item) self.item_to_status[item] = 'D' try: item.launcher.launch() except LauncherError as err: log.error('{}'.format(err)) self._kill_item(item) def _kill(self): '''Kill any running items and cancel any that are waiting''' # Cancel any waiting items. We take a copy of self._queued to avoid # iterating over the set as we modify it. for target in self._queued: for item in [item for item in self._queued[target]]: self._cancel_item(item) # Kill any running items. Again, take a copy of the set to avoid # modifying it while iterating over it. for target in self._running: for item in [item for item in self._running[target]]: self._kill_item(item) def _check_if_done(self, hms): '''Check if we are done executing all jobs. Also, prints the status of currently running jobs. ''' done = True for target in self._scheduled: done_cnt = sum([ len(self._passed[target]), len(self._failed[target]), len(self._killed[target]) ]) done = done and (done_cnt == self._total[target]) # Skip if a target has not even begun executing. if not (self._queued[target] or self._running[target] or done_cnt > 0): continue perc = done_cnt / self._total[target] * 100 msg = self.msg_fmt.format(len(self._queued[target]), len(self._running[target]), len(self._passed[target]), len(self._failed[target]), len(self._killed[target]), self._total[target]) self.status_printer.update_target(target=target, msg=msg, hms=hms, perc=perc) return done def _cancel_item(self, item, cancel_successors=True): '''Cancel an item and optionally all of its successors. Supplied item may be in _scheduled list or the _queued list. From either, we move it straight to _killed. ''' self.item_to_status[item] = 'K' self._killed[item.target].add(item) if item in self._queued[item.target]: self._queued[item.target].remove(item) else: self._remove_from_scheduled(item) if cancel_successors: self._cancel_successors(item) def _kill_item(self, item): '''Kill a running item and cancel all of its successors.''' item.launcher.kill() self.item_to_status[item] = 'K' self._killed[item.target].add(item) self._running[item.target].remove(item) self._cancel_successors(item)
[ "46467186+sriyerg@users.noreply.github.com" ]
46467186+sriyerg@users.noreply.github.com
aa42aae2bc21964479baba6496dd8235bea5ce9a
a468f99d707e8dbe418ea516def55ffb008c84cb
/Tester.py
acadd8537246bbffd5c0225b21b471b484c2fee3
[]
no_license
LightingTom/DynamicRecSys
e5305edd3bf4d4dfdcccbcf50eabd1a23301efd0
b6ccb11eb2ab325e0a3f647fb3bf561f02fd0644
refs/heads/master
2023-04-17T14:06:12.919667
2021-05-06T07:50:51
2021-05-06T07:50:51
363,075,614
0
0
null
null
null
null
UTF-8
Python
false
false
7,476
py
import pickle class Tester: def __init__(self, path): # Top K self.k = [5, 10, 20] self.session_length = 20 - 1 self.pickle_path = path self.min_time = 1.0 self.i_count = [0] * self.session_length self.recall = [[0] * len(self.k) for _ in range(self.session_length)] self.mrr = [[0] * len(self.k) for _ in range(self.session_length)] # 特殊对待第一项预测(因为第一项是根据inter_rnn给出的hidden state作为输入) self.first_recall = [0] * len(self.k) self.first_mrr = [0] * len(self.k) self.first_count = 0 # 用于记录不同的范围的time gap结果的精确度 self.time_buckets = [self.min_time, 2, 12, 36, 60, 84, 108, 132, 156, 180, 204, 228, 252, 276, 300, 348, 396, 444, 500, 501] self.time_count = [0] * len(self.time_buckets) self.mae = [0] * len(self.time_buckets) self.time_percent_mae = [0] * len(self.time_buckets) def reinitialize(self): self.i_count = [0] * self.session_length self.recall = [[0] * len(self.k) for _ in range(self.session_length)] self.mrr = [[0] * len(self.k) for _ in range(self.session_length)] self.first_recall = [0] * len(self.k) self.first_mrr = [0] * len(self.k) self.first_count = 0 self.time_buckets = [self.min_time, 2, 12, 36, 60, 84, 108, 132, 156, 180, 204, 228, 252, 276, 300, 348, 396, 444, 500, 501] self.time_count = [0] * len(self.time_buckets) self.mae = [0] * len(self.time_buckets) self.time_percent_mae = [0] * len(self.time_buckets) @staticmethod def get_rank(target, prediction): for i in range(len(prediction)): if target == prediction[i]: return i + 1 return -1 def evaluate_sequence(self, predicted_sequence, target_sequence, seq_len): for i in range(seq_len): target = target_sequence[i] prediction = predicted_sequence[i] for j in range(len(self.k)): if target in prediction.data[:self.k[j]]: self.recall[i][j] += 1 self.mrr[i][j] += 1.0 / self.get_rank(target, prediction.data[:self.k[j]]) self.i_count[i] += 1 def evaluate_first_item(self, predictions, target): for i in range(len(self.k)): if target in predictions.data[: self.k[i]]: self.first_recall[i] += 1 self.first_mrr[i] += 1.0 / self.get_rank(target, predictions.data[: self.k[i]]) self.first_count += 1 def evaluate_batch(self, predictions, targets, seq_len, first_predictions, first_targets): for index in range(predictions): self.evaluate_sequence(predictions[index], targets[index], seq_len[index]) self.evaluate_first_item(first_predictions[index], first_targets[index]) def evaluate_time(self, time_prediction, time_target): for i in range(len(self.time_buckets)): if time_target < self.time_buckets[i] or i == len(self.time_buckets) - 1: self.time_count[i] += 1 self.mae[i] += abs(time_prediction - time_target) # 忽略那些半小时以内的time gap(可近似的认为是同一session的操作) if time_target >= 0.5: self.time_percent_mae[i] += 100 * (self.mae[i] / time_target) break def evaluate_batch_time(self, time_predictions, time_targets): for i in range(len(time_targets)): self.evaluate_time(time_predictions.data[i].item(), time_targets[i]) def get_recall_mrr_result(self): res = "Cumulative\n" res += "Recall@5\tRecall@10\tRecall@20\tMRR@5\tMRR@10\tMRR@20\n" # 特殊对待每个session的第一个预测 res += "First Item\n" recall_info = "" mrr_info = "" for i in range(len(self.k)): recall_num = self.first_recall[i] / self.first_count mrr_num = self.first_mrr[i] / self.first_count recall_info += str(round(recall_num, 4)) + '\t' mrr_info += str(round(mrr_num, 4)) + '\t' res += recall_info + mrr_info + '\n' recall = [0] * len(self.k) mrr = [0] * len(self.k) count = 0 for i in range(self.session_length): recall_info = "" mrr_info = "" res += "i <= " + str(i + 1) + "\n" # 考虑前面所有i个位置的效果,取其平均 count += self.i_count[i] for j in range(len(self.k)): recall[j] += self.recall[i][j] mrr[j] += self.mrr[i][j] recall_info += str(round(recall[j] / count, 4)) + "\t" mrr_info += str(round(mrr[j] / count, 4)) + "\t" res += recall_info + mrr_info + "\n" return res def get_individual_recall_mrr_result(self): res = "Individual\n" res += "Recall@5\tRecall@10\tRecall@20\tMRR@5\tMRR@10\tMRR@20\n" for i in range(self.session_length): recall_info = "" mrr_info = "" res += "i <= " + str(i + 1) + "\n" for j in range(len(self.k)): recall_info += str(round(self.recall[i][j] / self.i_count[i], 4)) + "\t" mrr_info += str(round(self.mrr[i][j] / self.i_count[i], 4)) + "\t" res += recall_info + mrr_info + "\n" return res def get_time_result(self): res = "MAE\tPercent" total_count = 0 total_mae = 0 total_percent_mae = 0 for i in range(len(self.time_buckets)): total_count += max(self.time_count[i], 1) total_mae += self.mae[i] total_percent_mae += self.time_percent_mae[i] res += "days<=" + self.time_buckets[i] + "\n" res += str(round(self.mae[i] / max(self.time_count[i], 1), 4)) + "\t" res += str(round(self.time_percent_mae[i] / max(self.time_count[i], 1), 4)) + "\n" res += "Total:\n" res += str(round(total_mae / max(total_count, 1), 4)) + "\t" res += str(round(total_percent_mae / max(total_count, 1), 4)) + "\n" return res def get_result(self, if_get_time=True): cumulate_recall_mrr_res = self.get_recall_mrr_result() individual_recall_mrr_res = self.get_individual_recall_mrr_result() time_res = "" if if_get_time: time_res = self.get_time_result() return cumulate_recall_mrr_res, time_res, individual_recall_mrr_res def store_result(self): mrr_recall_res = {"i_count": self.i_count, "k": self.k, "session_length": self.session_length, "mrr": self.mrr, "recall": self.recall, "first_count": self.first_count, "first_mrr": self.first_mrr, "first_recall": self.first_recall} time_res = {"mae": self.mae, "count": self.time_count, "time_buckets": self.time_buckets, "time_percent_mae": self.time_percent_mae} res = {"mrr_recall_res": mrr_recall_res, "time_res": time_res} pickle.dump(res, open(self.pickle_path + ".pickle", "wb")) def get_result_and_reset(self, store=True): res = self.get_result() if store: self.store_result() self.reinitialize() return res
[ "1437711608@qq.com" ]
1437711608@qq.com
064c5b01507ed697d177131614a7dceb43b5d02c
dd53e24e5b8cebd27b5e97f08f8c23996e23ab17
/globalkitchn/globalkitchn/wsgi.py
d3817838af83be8d8a00bef5a7919690342e9eaf
[]
no_license
kenners2082/DjangoBoards
e4c7a5a7adc2b5663b86dd1a36be4c26e4910d39
a5bcf7aeba0810ce91dc2608818d44f2f15504be
refs/heads/main
2023-08-15T20:52:25.580620
2021-09-15T02:15:35
2021-09-15T02:15:35
329,095,140
0
0
null
2021-09-15T02:15:36
2021-01-12T19:47:52
Python
UTF-8
Python
false
false
401
py
""" WSGI config for globalkitchn project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'globalkitchn.settings') application = get_wsgi_application()
[ "noreply@github.com" ]
kenners2082.noreply@github.com
d4799c7ea3cf1a34e14ddd2e356a54159e586832
ef9f72be8896231f0f4b778ea46c45da9c965792
/python/6/6.3/user.py
c1eb4aa9da70cf7c08a848ac390279360256f0ca
[]
no_license
maxfactory/pythontest
886c7e95fc16c72c715457d9315b7774a20f4147
ef2bce720854878b7daabe424833828f51ffbad2
refs/heads/master
2021-07-15T08:48:31.225699
2020-10-16T09:48:53
2020-10-16T09:48:53
217,454,529
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
user_0 = { 'username':'efermi', 'first':'enrico', 'last':'fermi', } for key,value in user_0.items(): print("\nKey:" + key) print("Value:" + value)
[ "caoqianguse@163.com" ]
caoqianguse@163.com
eb8d213f2b9d729cce8e123798b376f8e774e05c
9db6ba55baecdb817a6c6cc6a3a7bffa216b1547
/vulcan.py
1a814d460463ed340cfe867a74d543852e40e850
[]
no_license
someonecallsdu/git-try
ec6c1847e9f0e05f84089f993b6dc573f777a0d8
5b93d0ddcfe65c8ca6218ed8cc9bc7b2a9d20a8a
refs/heads/master
2021-08-08T11:45:24.334523
2017-11-10T08:27:18
2017-11-10T08:27:18
110,114,495
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
print ('checkout dev')
[ "someonecallsdu@hotmail.com" ]
someonecallsdu@hotmail.com
d2361a506abd73f1fe23e5ea78b143068b11e033
31e02058caaf18935d11f851f242a4d23d22ef5e
/HackerRank/Tutorials/10 Days of Statistics/day0-s10-weighted-mean.py
05f68de4c50087d926288b18faf27ed5ae6a8263
[ "MIT" ]
permissive
neiesc/Problem-solving
f140c61912b2274c8a1e3ef2a01cfda92a86c9bf
d3bce7a3b9801e6049e2c135418b31cba47b0964
refs/heads/main
2022-11-10T06:58:23.674592
2021-01-03T19:14:20
2021-01-03T19:14:20
16,239,265
1
0
MIT
2022-10-27T00:55:02
2014-01-25T20:31:23
Python
UTF-8
Python
false
false
610
py
#!/bin/python3 # Day 0: Weighted Mean # https://www.hackerrank.com/challenges/s10-weighted-mean/ def weighted_mean(elements_x, elements_w): multi_x_w = 0 for idx, x in enumerate(elements_x): multi_x_w += x * elements_w[idx] return multi_x_w / sum(elements_w) def solve(elements_x, elements_w): return (weighted_mean(elements_x, elements_w)) if __name__ == "__main__": number_of_elements = int(input()) elements_x = list(map(int, input().rstrip().split())) elements_w = list(map(int, input().rstrip().split())) print('{:.1f}'.format(solve(elements_x, elements_w)))
[ "edinei.esc@gmail.com" ]
edinei.esc@gmail.com
e11336b93b4a4e7350464463be5234b2c2f4375d
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-3534.py
ef2c389031466ff5b8e438a9faa4c72827520dcd
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
13,355
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str, s2: str, s3: str, s4: str, s5: str) -> int: return len(s) class bar(object): p: bool = True def baz(self:"bar", xx: [int]) -> str: global count x:int = 0 y:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" class bar2(object): p: bool = True p2: bool = True def baz(self:"bar2", xx: [int]) -> str: global count x:int = 0 y:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz2(self:"bar2", xx: [int], xx2: [int]) -> str: global count x:int = 0 x2:int = 0 y:int = 1 y2:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" class bar3(object): p: bool = True p2: bool = True p3: bool = True def baz(self:"bar3", xx: [int]) -> str: global count x:int = 0 y:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz2(self:"bar3", xx: [int], xx2: [int]) -> str: global count x:int = 0 x2:int = 0 y:int = 1 y2:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz3(self:"bar3", xx: [int], xx2: [int], xx3: [int]) -> str: global count x:int = 0 x2:int = 0 x3:int = 0 y:int = 1 y2:int = 1 y3:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 def qux3(y: int, y2: int, y3: int) -> object: nonlocal x nonlocal x2 nonlocal x3 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" class bar4(object): p: bool = True p2: bool = True p3: bool = True p4: bool = True def baz(self:"bar4", xx: [int]) -> str: global count x:int = 0 y:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz2(self:"bar4", xx: [int], xx2: [int]) -> str: global count x:int = 0 x2:int = 0 y:int = 1 y2:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz3(self:"bar4", xx: [int], xx2: [int], xx3: [int]) -> str: global count x:int = 0 x2:int = 0 x3:int = 0 y:int = 1 y2:int = 1 y3:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 def qux3(y: int, y2: int, y3: int) -> object: nonlocal x nonlocal x2 nonlocal x3 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz4(self:"bar4", xx: [int], xx2: [int], xx3: [int], xx4: [int]) -> str: global count x:int = 0 x2:int = 0 x3:int = 0 x4:int = 0 y:int = 1 y2:int = 1 y3:int = 1 y4:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 def qux3(y: int, y2: int, y3: int) -> object: nonlocal x nonlocal x2 nonlocal x3 if x > y: x = -1 def qux4(y: int, y2: int, y3: int, y4: int) -> object: nonlocal x nonlocal x2 nonlocal x3 nonlocal x4 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" class bar5(object): p: bool = True p2: bool = True p3: bool = True p4: bool = True p5: bool = True def baz(self:"bar5", xx: [int]) -> str: global count x:int = 0 y:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz2(self:"bar5", xx: [int], xx2: [int]) -> str: global count x:int = 0 x2:int = $Literal y:int = 1 y2:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz3(self:"bar5", xx: [int], xx2: [int], xx3: [int]) -> str: global count x:int = 0 x2:int = 0 x3:int = 0 y:int = 1 y2:int = 1 y3:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 def qux3(y: int, y2: int, y3: int) -> object: nonlocal x nonlocal x2 nonlocal x3 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz4(self:"bar5", xx: [int], xx2: [int], xx3: [int], xx4: [int]) -> str: global count x:int = 0 x2:int = 0 x3:int = 0 x4:int = 0 y:int = 1 y2:int = 1 y3:int = 1 y4:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 def qux3(y: int, y2: int, y3: int) -> object: nonlocal x nonlocal x2 nonlocal x3 if x > y: x = -1 def qux4(y: int, y2: int, y3: int, y4: int) -> object: nonlocal x nonlocal x2 nonlocal x3 nonlocal x4 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" def baz5(self:"bar5", xx: [int], xx2: [int], xx3: [int], xx4: [int], xx5: [int]) -> str: global count x:int = 0 x2:int = 0 x3:int = 0 x4:int = 0 x5:int = 0 y:int = 1 y2:int = 1 y3:int = 1 y4:int = 1 y5:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 def qux2(y: int, y2: int) -> object: nonlocal x nonlocal x2 if x > y: x = -1 def qux3(y: int, y2: int, y3: int) -> object: nonlocal x nonlocal x2 nonlocal x3 if x > y: x = -1 def qux4(y: int, y2: int, y3: int, y4: int) -> object: nonlocal x nonlocal x2 nonlocal x3 nonlocal x4 if x > y: x = -1 def qux5(y: int, y2: int, y3: int, y4: int, y5: int) -> object: nonlocal x nonlocal x2 nonlocal x3 nonlocal x4 nonlocal x5 if x > y: x = -1 for x in xx: self.p = x == 2 qux(0) # Yay! ChocoPy count = count + 1 while x <= 0: if self.p: xx[0] = xx[1] self.p = not self.p x = x + 1 elif foo("Long"[0]) == 1: self.p = self is None return "Nope" print(bar().baz([1,2]))
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
1f54eb40326f098e80f4e1b57a7b2e475748d232
f8981c67954828e4a1a0249fbdcb36d099090cd9
/Module3/wildcards_characters.py
537298da4b72aa56027a6645dfbcd28d4fb029b2
[]
no_license
shreyakapadia10/Using-Python-to-Interact-with-the-Operating-System
fc67a82bc0950c0d9b2faa39f33c25459f72b505
57aef8af9137f6df5bdff76f4d138e527b5b6cbf
refs/heads/master
2022-12-27T18:39:37.837440
2020-10-03T07:04:54
2020-10-03T07:04:54
300,818,093
0
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
import re print("To print string that contain python either uppercase or lowercase 'p': ") print(re.search(r'[Pp]ython', 'Python')) print("To search for a string preceeded by any letter: ") print(re.search(r'[a-z]way', 'The end of the highway')) print('What if we put " way" in matching string?') print(re.search(r'[a-z]way', 'This is wrong way')) print("Defining range for upper/lower letters and digits: ") print(re.search(r'cloud[a-zA-Z0-9]',"cloudy")) print(re.search(r'cloud[a-zA-Z0-9]',"cloud9")) print("To match characters that aren't in given pattern(using circumflex inside square brackets[^]): ") print(re.search(r'[^a-zA-Z0-9]', "This sentence will match to space.")) print(re.search(r'[^a-zA-Z0-9 ]', "This sentence will match to dot.")) print("To match either one or other expression: ") print(re.search(r'cat|dog', "I like cats.")) print(re.search(r'cat|dog', "I don't like dogs.")) print(re.search(r'cat|dog', "I like both dogs and cats.")) print("To match both of the expression use findall: ") print(re.findall(r'cat|dog', "I like both cats and dogs."))
[ "shreyakapadia8@gmail.com" ]
shreyakapadia8@gmail.com
960b02d93113a8478a13df07a8b43fa798d4637f
42fd619da18995209ec1e82aacc3b7bf5d7ed4c7
/function-ex2.py
846d62d95d8835bb5091687f473e705cedede63d
[]
no_license
deepanshu102/python
88e73f14931224bdf4f143146c2e10c4bc07d409
a4e92207a9e6917e685870c1a80afe31e51b544f
refs/heads/master
2018-10-06T09:18:29.121893
2018-06-28T17:46:36
2018-06-28T17:46:36
135,988,061
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
from fun import * mylist=[10,20,30]; chn(mylist); print(mylist,' Id of funtion-ex2 file variable',id(mylist));
[ "noreply@github.com" ]
deepanshu102.noreply@github.com
49ad24df495042a2ae0d28f1c7f0ef4b2b30b31a
b82b620b031c23803da64fe1080ec599a44cb486
/hello.py
4dbab427f50697c8f953efdf3ebd5210c6bceed0
[]
no_license
JayakrishnanGnair/hello
e9cf5c2f4740af82ebede305f6b4419f2f8fbe73
eee1bf9bfe6b4b1407721e1184121dda0a650d1f
refs/heads/master
2021-01-23T12:54:49.664621
2017-06-02T23:54:45
2017-06-02T23:54:45
93,211,916
0
0
null
2017-06-02T23:52:23
2017-06-02T23:52:23
null
UTF-8
Python
false
false
45
py
print "Hello, World!" print "This is a test"
[ "noreply@github.com" ]
JayakrishnanGnair.noreply@github.com
6e51a0e035259ae12749b91bcec3a581c30c4439
d8ee60f857a5465ffac606e720b6823ce47ffa67
/Reddit/scrape_pubs.py
976111d764545071ddcf71eacdacac01a6af9b73
[]
no_license
Toruitas/msc-notebooks
5af26e3343680eb5c4839bab2815b56bc39c648c
b2d8703e098c7277ea1d282e86f0f03e243072be
refs/heads/main
2023-01-18T19:58:00.136916
2020-11-25T20:34:40
2020-11-25T20:34:40
314,353,131
0
0
null
null
null
null
UTF-8
Python
false
false
1,522
py
import requests import pandas as pd from bs4 import BeautifulSoup from time import sleep import sys sys.setrecursionlimit(10000) df = pd.read_csv('top_and_controversial_lg_wpub.csv') data = [] for idx, row in df.iterrows(): print(f"{idx}/{df.shape[0]}") url = row.url if data: if row.publisher == data[-1].publisher: sleep(1) try: page = requests.get(url, timeout=5) soup = BeautifulSoup(page.text, 'html.parser') except Exception as e: print(e) print(row) continue # print(page.status_code) if page.status_code == 200: try: # row["soup"] = soup # so I can stop scraping the damn thing row["p"] = soup.find('p').getText() if row.title in soup.title.text: # print("match title", soup.title.text) row["titles_match"] = True elif row.title in soup.h1: # print(soup.h1.string) # check the h1 tag row["titles_match"] = True else: # print(f"no match. Row title: {row.title} \nSoup title: {soup.title.text} \nH1: {soup.h1}") row["titles_match"] = False data.append(row) except Exception as e: print(e) # print("######") new_df = pd.DataFrame(data, columns=list(df.columns).extend(["soup","p","titles_match"])) new_df.to_pickle('top_and_controversial.pkl')
[ "Toruitas@gmail.com" ]
Toruitas@gmail.com
dd7b5f4a5fa3c054402f25acd7d6bf342a0a7fe7
5d47ca14816697546bdf739e0fbd9b3dce7b661e
/program_3.py
94bf5e7c1014ec52d038b0402a482a96ffa680d4
[]
no_license
julywaltz/crossin_execrise
16d7a9d269df100378f7dd5a6c1699f0376c9c0b
5d4db61117ec9642e952fd486fb494605728bd8d
refs/heads/master
2021-06-20T07:08:52.588565
2019-07-13T17:12:14
2019-07-13T17:12:14
141,291,616
0
0
null
null
null
null
UTF-8
Python
false
false
6,287
py
# -*- coding: utf-8 -*- import time import os #记录流水账单 def keep_account(): print('\n记账模式') deals = input("交易对象:") income = input("收入/万元:") expenses = input("支出/万元:") acc_rec = input("应收账款/万元:") acc_pay = input("应付账款/万元:") t = time.localtime() date = time.strftime("%Y-%m-%d", t) cash = [deals,income,expenses,acc_rec,acc_pay,date] cash = ' '.join(cash) cash_0 =['交易对象','收入','支出','应收账款','应付账款','交易时间'] cash_0 = ' '.join(cash_0) file_list = os.listdir(os.getcwd()) if 'cash_flow_statements.txt' in file_list: with open('cash_flow_statements.txt','a',encoding='UTF-8') as f_cash: f_cash.writelines(cash+'\n') else: with open('cash_flow_statements.txt','a',encoding='UTF-8') as f_cash: f_cash.writelines(cash_0 + '\n'+cash+'\n') def cash_read(): with open('cash_flow_statements.txt','r',encoding="UTF-8") as f_cash: cash = [] lines = f_cash.read().splitlines() for x in lines[1:]: items = [] x = x.split() for y in x[1:-1]: y = int(y) items.append(y) cash.append(items) return cash #资产负债表文件初始化 def balance_sheet(): file_list = os.listdir(os.getcwd()) balance_0 = ['结算日期','资产/万元','负债/万元','净资产/万元'] balance_0 = ' '.join(balance_0) if 'balance_sheet.txt' not in file_list: t = time.localtime() date = time.strftime("%Y-%m-%d", t) balance_1 = [date, '0', '0', '0'] balance_1 = ' '.join(balance_1) with open('balance_sheet.txt', 'a', encoding='UTF-8') as f_balance: f_balance.writelines(balance_0+'\n'+balance_1+'\n') # 资产负载表读取 def balance_read(): with open('balance_sheet.txt', 'r', encoding='UTF-8') as f_balance: balance = [] lines = f_balance.read().splitlines() for line in lines[1:]: line = line.split() items = [] for x in line[1:]: x = int(x) items.append(x) balance.append(items) return balance #资产负债表写入 def balance_write(new_assets,new_debt,new_net_assets): t = time.localtime() date = time.strftime("%Y-%m-%d", t) new_balance = [date, str(new_assets),str(new_debt),str(new_net_assets)] new_balance = ' '.join(new_balance) with open('balance_sheet.txt', 'a', encoding='UTF-8') as f_balance: f_balance.writelines(new_balance + '\n') # 查询最近十笔交易 def query_a(): with open('cash_flow_statements.txt', 'r', encoding="UTF-8") as f_cash: lines = f_cash.read().splitlines() title = lines[0].split() if len(lines) >= 11: print('{} {} {} {} {} {}'.format(title[0], title[1],title[2],title[3],title[4],title[5])) for i in range(1,10): x = [] for y in lines[-i].split(): x.append(y) print('{} {}万 {}万 {}万 {}万 {}'.format(x[0],x[1],x[2],x[3],x[4],x[5])) else: print('{} {} {} {} {} {}'.format(title[0], title[1], title[2], title[3], title[4], title[5])) for i in range(1,len(lines)): x = [] for y in lines[-i].split(): x.append(y) print('{} {}万 {}万 {}万 {}万 {}'.format(x[0],x[1],x[2],x[3],x[4],x[5])) #查询单一对象交易流水 def query_b(): query_object = input('请输入公司名:') with open('cash_flow_statements.txt', 'r', encoding="UTF-8") as f_cash: lines = f_cash.read().splitlines() num = [] for line in lines: if query_object in line: report = line.split() num.append(line) print('\n与{}公司共有{}笔交易'.format(query_object, len(num))) print('交易时间:{}\n收入:{}\n支出:{}\n应收账款:{}\n应付账款:{}\n'.format(report[-1], report[1], report[2], report[3], report[4])) # 主程序 def main_program(): print('1.查账;2.记账') choice = input('请选择服务:') if choice == '1': file_list = os.listdir(os.getcwd()) with open('cash_flow_statements.txt', 'r', encoding="UTF-8") as f_cash: lines = f_cash.read().splitlines() if 'cash_flow_statements.txt' in file_list and len(lines)> 1: print('\n查询模式 \n1.查询最近十笔交易记录 \n2.查询与某公司交易往来 \n3.查询最近资产负债状况' ) choice_1 = input('请选择服务:') if choice_1 == '1': query_a() main_program() elif choice_1 == '2': query_b() main_program() elif choice_1 == '3': with open('balance_sheet.txt', 'r', encoding='UTF-8') as f_balance: lines = f_balance.read().splitlines() report = lines[-1].split() print('\n最新资产:{}\n最新负债:{}\n最新净资产:{}\n最后更新时间:{}'.format(report[1],report[2], report[3],report[0])) main_program() else: print('无记录') main_program() elif choice == '2': keep_account() cash = cash_read() balance_sheet() balance = balance_read() new_assets = balance[-1][0] + cash[-1][0] - cash[-1][1] new_debt = balance[-1][1] + cash[-1][3] - cash[-1][2] new_net_assets = new_assets - new_debt print('\n交易已记录\n当前资产状况') print('最新资产:{}万 \n最新负债:{}万 \n最新净资产:{}万'.format(new_assets, new_debt, new_net_assets)) balance_write(new_assets,new_debt,new_net_assets) main_program() main_program()
[ "julywaltz77@hotmail.com" ]
julywaltz77@hotmail.com
811776c6ebde801e155c4b02771b5ab57c065e12
4f214b677e04ca11ac88e326a5a1482853fe74eb
/histreader.py
18b1f478ce3ce2afabca3af1f938a2c221caf89d
[]
no_license
yschen5812/TradingReminder
694272a1e48ca169a072e7145944367dafe0527c
d71628d973f7bba57ffa0bc04a391d59012179cc
refs/heads/master
2021-08-22T15:16:08.874551
2017-11-30T14:19:32
2017-11-30T14:19:32
103,205,695
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
from datetime import datetime def readHistoryFile(filename, **kw): # Read in history.txt and insert into a list lines = [line.rstrip('\n') for line in open(filename)] # Remove title line title = [line.strip() for line in lines.pop(0).split("|")] # Transform to tuples def transform(lineStr): d = {} l = [line.strip() for line in lineStr.split("|")] for idx, item in enumerate(l): colName = title[idx] if "plaintext" in kw: d[title[idx]] = item else: d[title[idx]] = datetime.strptime(item, "%m/%d/%Y").date() if colName == "Date" else item return d objs = list(map(transform, lines)) return objs; if __name__ == "__main__": print(readHistoryFile("history.txt"))
[ "herbert5812@gmail.com" ]
herbert5812@gmail.com
dddd62e1a2a5ee26880e2c9dead2db8f0857be2f
afed1c51431bd391a49de24aa23a83b6f982be34
/scoreboard.py
9f468b101a9ee11aaed5dae19e01184f132dc0ff
[]
no_license
nambosaa/Turtle-Crossing-Game
95a528747a15b6b521f76f57d4085eda1271fd5d
de2e87c7a2f4795fb9b596e44beeb6b0bd2e9ade
refs/heads/main
2023-02-19T17:13:52.939700
2021-01-21T13:11:11
2021-01-21T13:11:11
331,631,615
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
from turtle import Turtle FONT = ("Courier", 24, "normal") class Scoreboard(Turtle): def __init__(self): super().__init__() self.penup() self.color("black") self.hideturtle() self.goto(0, 250) self.score = 0 self._write(f"Your score is: {self.score}.", align="center", font=FONT) def update_score(self): self.clear() self.score += 1 self._write(f"Your score is: {self.score}.", align="center", font=FONT) def game_over(self): self.goto(0, 0) self.write("Game Over", align="center", font=FONT)
[ "noreply@github.com" ]
nambosaa.noreply@github.com
f7ab510cb1c97f5fec5a121805cf1cd8526106b8
0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a
/python3/16_Web_Services/d_web_scraping/find_emails_on_a_web_page.py
c0bac65552602fe95aae23397f5a00bb0f1d26c7
[]
no_license
udhayprakash/PythonMaterial
3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156
e72f44e147141ebc9bf9ec126b70a5fcdbfbd076
refs/heads/develop
2023-07-08T21:07:33.154577
2023-07-03T10:53:25
2023-07-03T10:53:25
73,196,374
8
5
null
2023-05-26T09:59:17
2016-11-08T14:55:51
Jupyter Notebook
UTF-8
Python
false
false
172
py
from webscraping import download D = download.Download() emails = D.get_emails( "http://buklijas.info/", max_depth=2, max_urls=None, max_emails=None ) print(emails)
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
37568095d43af822eddaf9b4f8b2bd33835e8c3f
0b92d488745f2115e7e209a59796fc4ee4abcd9d
/Python/arphack.py
4d5c86e6d290e1a17f3bd7755ed0ff6e991b11dc
[]
no_license
alvaromerinog/Proyectos_ASIR
3d04e7d595bad6aea0da1a44523e31f47cca9954
5e7400f93841b20324e6730ed2e1cb9109a88079
refs/heads/main
2023-03-18T18:09:34.897665
2021-03-09T20:28:48
2021-03-09T20:28:48
331,705,003
0
0
null
null
null
null
UTF-8
Python
false
false
5,186
py
import sys from scapy.all import ARP, Ether, ICMP, IP, sendp, sniff def par(arpPac): print("Esta es la funcion parametros") print(arpPac[0].show()) return arpPac ''' def tv(arpPac): print("Esta es la funcion tiempo de vida") del (arpPac.ttl) arpPac.ttl = 257 while arpPac.ttl < 0 or arpPac.ttl > 255: arpPac.ttl = int(input("Escribe el tiempo de vida del paquete: ")) if arpPac.ttl < 0 or arpPac.ttl > 255: print("El valor del tiempo de vida debe estar comprendido entre 0 y 255, ambos inclusive") print("El tiempo de vida del paquete es ", arpPac.ttl) return arpPac ''' def ms(arpPac): print("Esta es la funcion mac spoofeada") compr = False while compr == False: mo = input("Escriba la direccion MAC spoofeada: ") n = mo.split(":") if len(n) == 6: for i in range(6): n[i] = int(n[i],16) if n[0] >= 0 and n[0] <= 255: if n[1] >= 0 and n[1] <= 255: if n[2] >= 0 and n[2] <= 255: if n[3] >= 0 and n[3] <= 255: if n[4] >= 0 and n[4] <= 255: if n[5] >= 0 and n[5] <= 255: compr = True else: print("La dirección MAC debe de tener 6 bytes") if compr == True: arpPac[Ether].src = mo arpPac[ARP].hwsrc = mo return arpPac def ips(arpPac): print("Esta es la funcion ip spoofeada") compr = False while compr == False: ips = input("Escriba la direccion IPv4 spoofeada: ") n = ips.split(".") if len(n) == 4: for i in range(4): n[i] = int(n[i]) print(n[i]) if n[0] >= 0 and n[0] <= 255: if n[1] >= 0 and n[1] <= 255: if n[2] >= 0 and n[2] <= 255: if n[3] >= 0 and n[3] <= 255: compr = True else: print("La dirección IP debe de tener 4 bytes") if compr == True: arpPac[ARP].psrc = ips return arpPac def md(arpPac): print("Esta es la funcion mac de destino") compr = False while compr == False: md = input("Escriba la direccion MAC de destino: ") n = md.split(":") if len(n) == 6: for i in range(6): n[i] = int(n[i], 16) if n[0] >= 0 and n[0] <= 255: if n[1] >= 0 and n[1] <= 255: if n[2] >= 0 and n[2] <= 255: if n[3] >= 0 and n[3] <= 255: if n[4] >= 0 and n[4] <= 255: if n[5] >= 0 and n[5] <= 255: compr = True else: print("La dirección MAC debe de tener 6 bytes") if compr == True: arpPac[Ether].dst = md arpPac[ARP].hwdst = md return arpPac def ipd(arpPac): print("Esta es la funcion ip de destino") compr = False while compr == False: ipd = input("Escriba la direccion IPv4 de destino: ") n = ipd.split(".") if len(n) == 4: for i in range(4): n[i] = int(n[i]) if n[0] >= 0 and n[0] <= 255: if n[1] >= 0 and n[1] <= 255: if n[2] >= 0 and n[2] <= 255: if n[3] >= 0 and n[3] <= 255: compr = True else: print("La dirección IP debe de tener 4 bytes") if compr == True: arpPac[ARP].pdst = ipd return arpPac def sarp(): print("Esta es la funcion escaneo arp") log = sniff(filter="arp") print(log.summary()) def sicmp(arpPac): print("Esta es la funcion escaneo icmp") return arpPac # Funcion MAIN print("Esto es el programa de envenenamiento de ARP de PAR") arpPac = Ether() / ARP(op=2) print("Se ha generado un paquete de respuesta ARP") opcion = 1 while opcion != 0: opcion = int(input( "Indique la opción que desee realizar\n1: Consulta de parametros\n2: Establecer el tiempo de vida del paquete\n3: Dirección MAC a spoofear\n4: Direccion IP a spoofear\n5: Direccion MAC de destino\n6: Direccion IP de destino\n7: Mandar el paquete\n8: Escaneo de ARP\n9: Escaneo de ICMP\n0: Finalizar programa\nOpcion: ")) if opcion == 1: arpPac = par(arpPac) elif opcion == 2: print("No hay tiempo de vida en los paquetes ARP") # arpPac = tv(arpPac) elif opcion == 3: arpPac = ms(arpPac) elif opcion == 4: arpPac = ips(arpPac) elif opcion == 5: arpPac = md(arpPac) elif opcion == 6: arpPac = ipd(arpPac) elif opcion == 7: while True: sendp(arpPac) #print(arpPac[0].show()) print("El paquete ARP ha sido enviado") elif opcion == 8: sarp() elif opcion == 9: arpPac = sicmp(arpPac) elif opcion == 0: print("El programa ha finalizado") else: print("La opcion elegida no es correcta")
[ "amerino.informatica@gmail.com" ]
amerino.informatica@gmail.com
b8fa55f03aa0e5bbe18f7d43d5e158413fa2f361
ffe80f74fc1e36485371ddabde1ad778445acafd
/yolo_object_detection.py
5aadac5f340b54e7ecebf1553de9fa16807384f9
[]
no_license
bimap98/how-train-yolov3
364e376bc42419faa2a1870908787b60efd095ba
b220afd183564955a89ccd2ec5b987fddd63f5d8
refs/heads/main
2023-06-04T17:11:24.465199
2021-06-22T03:04:17
2021-06-22T03:04:17
378,720,808
0
0
null
null
null
null
UTF-8
Python
false
false
2,277
py
import cv2 import numpy as np import glob import random # Load Yolo net = cv2.dnn.readNet("yolov3_training_last.weights", "yolov3_testing.cfg") # Name custom object classes = ["hand"] # Images path images_path = glob.glob(r"E:\Medium\*.jpg") layer_names = net.getLayerNames() output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()] colors = np.random.uniform(0, 255, size=(len(classes), 3)) # Insert here the path of your images random.shuffle(images_path) # loop through all the images for img_path in images_path: # Loading image img = cv2.imread(img_path) img = cv2.resize(img, None, fx=0.4, fy=0.4) height, width, channels = img.shape # Detecting objects blob = cv2.dnn.blobFromImage(img, 0.00392, (416, 416), (0, 0, 0), True, crop=False) net.setInput(blob) outs = net.forward(output_layers) # Showing informations on the screen class_ids = [] confidences = [] boxes = [] for out in outs: for detection in out: scores = detection[5:] class_id = np.argmax(scores) confidence = scores[class_id] if confidence > 0.3: # Object detected print(class_id) center_x = int(detection[0] * width) center_y = int(detection[1] * height) w = int(detection[2] * width) h = int(detection[3] * height) # Rectangle coordinates x = int(center_x - w / 2) y = int(center_y - h / 2) boxes.append([x, y, w, h]) confidences.append(float(confidence)) class_ids.append(class_id) indexes = cv2.dnn.NMSBoxes(boxes, confidences, 0.5, 0.4) print(indexes) font = cv2.FONT_HERSHEY_PLAIN for i in range(len(boxes)): if i in indexes: x, y, w, h = boxes[i] label = str(classes[class_ids[i]]) color = colors[class_ids[i]] cv2.rectangle(img, (x, y), (x + w, y + h), color, 2) cv2.putText(img, label, (x, y + 30), font, 3, color, 2) cv2.imshow("Image", img) key = cv2.waitKey(0) cv2.destroyAllWindows()
[ "noreply@github.com" ]
bimap98.noreply@github.com
261823b9c0ad5dc32c2dc9390ea4af1c71c7e081
3fde7eae5391795834b28dced75d607ec00302d1
/tests/test_cylinder.py
a6afb1bbcc094cfacf554e3faca3473e8415a69e
[ "MIT" ]
permissive
nlaurance/pyscad
047c16aa7e57f3e883b886b29d7f96a6dff66efa
3530285011c757fbfbbb36201b8e40ce4cf16c49
refs/heads/master
2021-05-30T18:42:48.377218
2016-02-25T18:58:33
2016-02-25T18:58:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
from boiler import * class TestCylinder(unittest.TestCase): def test_sphere_creation(self): c = Cylinder(h=10, r=20) self.assertEquals(c.h, 10) self.assertEquals(c.r, 20) self.assertEquals(c.d1, 40) def test_sphere_scad(self): c = Cylinder(h=10, r=20) answer = "cylinder(r=20.0, h=10.0, center=false);" code_compare(c.render_scad(), answer)
[ "giles@polymerase.org" ]
giles@polymerase.org
1168b82b3ae78c45bf4e91cb4ad53489337f34fc
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_toggle.py
2e93442914303f7614638d7c20575bce2970232a
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
#calss header class _TOGGLE(): def __init__(self,): self.name = "TOGGLE" self.definitions = [u'a small bar of wood or plastic that is used to fasten something by being put through a hole or loop', u'a key or button on a computer that is pressed to turn a feature on and then off: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
bb89aeb87de475ad868eff3b12cbb88825dcf736
5769295f4a4928ba824c18ead4b35da86899791d
/core/net_normalization_functions.py
e4ad8f10a373b7a6c672e48552dd55866a741391
[ "MIT" ]
permissive
nikon-petr/kohonen
0f3e696a5aec33598162b641ca99c52dc3938b35
c23ae3032c58681040fe023bfa395d1ff9989876
refs/heads/master
2021-06-27T12:12:34.882684
2020-10-05T19:51:46
2020-10-05T19:51:46
137,534,735
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from math import sqrt import numpy as np normalization_functions = { 'normalization_1': lambda x: x / sqrt(np.sum(x ** 2)), 'normalization_2': lambda x: x / np.abs(x) }
[ "p.nikwv@gmail.com" ]
p.nikwv@gmail.com
7bb0b23b8bfa4d7c290e5c7bbfbf8ee918fc4df2
c6f9e3ed414835ece850cf1b4fdc434ce954087a
/teapot/tests.py
acc5cf6eb39cf1f6c11e0f2acac6b973de581d90
[ "MIT" ]
permissive
freelan-developers/teapot
f1f3fe45e451cbd517277a4e17bbaf31727d9b4e
3f0c1a1a336eb6ef3f8d7e4519ba43ee0d8fc3bc
refs/heads/master
2021-01-10T20:51:38.711780
2017-08-10T00:27:19
2017-08-10T00:27:19
12,052,464
1
2
null
2017-08-10T00:27:20
2013-08-12T09:30:16
Python
UTF-8
Python
false
false
10,219
py
""" teapot unit tests. """ import os import sys try: import unittest2 as unittest except ImportError: import unittest from teapot import * from teapot.memoized import Memoized from teapot.extensions import parse_extension from teapot.error import TeapotError class TestTeapot(unittest.TestCase): """ Tests the different teapot components. """ def setUp(self): """ Clears all memoized instances. """ Memoized.clear_all_instances() def test_environments(self): """ Test the environments. """ os.environ['DUMMY'] = 'DUMMY1' os.environ['FOO'] = 'FOO1' os.environ['HELLO'] = 'HELLO1' # We test the variables before we enable the environment self.assertEqual(os.environ.get('DUMMY'), 'DUMMY1') self.assertEqual(os.environ.get('FOO'), 'FOO1') self.assertEqual(os.environ.get('BAR'), None) self.assertEqual(os.environ.get('HELLO'), 'HELLO1') # The different environments to test. empty_environment = Environment('empty') system_environment = Environment('system', variables=os.environ.copy()) # We test that no variable are propagated inside the empty environment. with empty_environment.enable(): self.assertEqual(os.environ.get('DUMMY'), None) self.assertEqual(os.environ.get('FOO'), None) self.assertEqual(os.environ.get('BAR'), None) self.assertEqual(os.environ.get('HELLO'), None) # We test that variables within the system environment are the same # than before. with system_environment.enable(): self.assertEqual(os.environ.get('DUMMY'), 'DUMMY1') self.assertEqual(os.environ.get('FOO'), 'FOO1') self.assertEqual(os.environ.get('BAR'), None) self.assertEqual(os.environ.get('HELLO'), 'HELLO1') self.assertEqual(system_environment.shell, None) environment = Environment( name='test_environment', variables={ 'FOO': 'FOO2', 'BAR': 'BAR1', 'HELLO': None, 'FOO_EXTENDED': '$FOO-$FOO-$NON_EXISTING_VAR-$FOO_EXTENDED', 'FOO_EXTENDED_PLATFORM': '[%HELLO%]', 'NON_EXISTING': None, }, parent=system_environment, shell=['my shell'], ) # We test the variables before we enable the environment self.assertEqual(os.environ.get('DUMMY'), 'DUMMY1') self.assertEqual(os.environ.get('FOO'), 'FOO1') self.assertEqual(os.environ.get('BAR'), None) self.assertEqual(os.environ.get('HELLO'), 'HELLO1') self.assertEqual(os.environ.get('FOO_EXTENDED'), None) self.assertTrue('NON_EXISTING' not in os.environ) # We apply the environment and test those again with environment.enable(): self.assertEqual(os.environ.get('DUMMY'), 'DUMMY1') self.assertEqual(os.environ.get('FOO'), 'FOO2') self.assertEqual(os.environ.get('BAR'), 'BAR1') self.assertEqual(os.environ.get('HELLO'), None) self.assertEqual(os.environ.get('FOO_EXTENDED'), 'FOO1-FOO1--') self.assertTrue('NON_EXISTING' not in os.environ) if sys.platform.startswith('win32'): self.assertEqual(os.environ.get('FOO_EXTENDED_PLATFORM'), '[HELLO1]') else: self.assertEqual(os.environ.get('FOO_EXTENDED_PLATFORM'), '[%HELLO%]') self.assertEqual(environment.shell, ['my shell']) sub_environment = Environment( name='test_environment_sub', parent=environment, shell=True, ) self.assertEqual(sub_environment.shell, ['my shell']) orphan_environment = Environment( name='orphan_environment', variables={ 'FOO': 'FOO3', 'BAR': 'BAR1', 'HELLO': None, 'NON_EXISTING': None, }, parent=None, ) # We test the variables before we enable the environment self.assertEqual(os.environ.get('DUMMY'), 'DUMMY1') self.assertEqual(os.environ.get('FOO'), 'FOO1') self.assertEqual(os.environ.get('BAR'), None) self.assertEqual(os.environ.get('HELLO'), 'HELLO1') self.assertTrue('NON_EXISTING' not in os.environ) # We apply the environment and test those again with orphan_environment.enable(): self.assertEqual(os.environ.get('DUMMY'), None) self.assertEqual(os.environ.get('FOO'), 'FOO3') self.assertEqual(os.environ.get('BAR'), 'BAR1') self.assertEqual(os.environ.get('HELLO'), 'HELLO1') self.assertTrue('NON_EXISTING' not in os.environ) self.assertEqual(orphan_environment.shell, None) shell_environment = Environment( name='shell_environment', variables={ 'FOO': 'FOO3', }, parent=system_environment, shell=['$FOO'], ) self.assertEqual(shell_environment.shell, ['FOO1']) orphan_shell_environment = Environment( name='orphan_shell_environment', variables={ 'FOO': 'FOO3', }, shell=['$FOO'], ) self.assertEqual(orphan_shell_environment.shell, ['']) # Test signatures changes signature = environment.signature sub_signature = sub_environment.signature environment.variables['NEWVARIABLE'] = 'bar' self.assertNotEqual(signature, environment.signature) self.assertNotEqual(sub_environment, sub_environment.signature) signature = environment.signature sub_signature = sub_environment.signature environment.shell = ['foo', 'goo'] self.assertNotEqual(signature, environment.signature) self.assertNotEqual(sub_environment, sub_environment.signature) signature = environment.signature sub_signature = sub_environment.signature sub_environment.variables['NEWVARIABLE'] = 'bar' self.assertEqual(signature, environment.signature) self.assertNotEqual(sub_environment, sub_environment.signature) signature = environment.signature sub_signature = sub_environment.signature sub_environment.shell = ['foo', 'goo', 'boo'] self.assertEqual(signature, environment.signature) self.assertNotEqual(sub_environment, sub_environment.signature) def test_filters(self): """ Test the filters. """ f('true', condition=True) f('false', condition=False) self.assertTrue(f('true')) self.assertFalse(f('false')) FUNCTION_RESULT = True def function(): return FUNCTION_RESULT f('function', condition=function) self.assertTrue(f('function')) FUNCTION_RESULT = False self.assertFalse(f('function')) self.assertTrue(f('true') | f('false')) self.assertFalse(f('true') & f('false')) self.assertFalse(~f('true')) self.assertTrue(f('true') ^ f('false')) self.assertFalse(f('true') ^ f('true')) self.assertFalse(f('false') ^ f('false')) def test_attendees(self): """ Test the attendees. """ a = Attendee('a') b = Attendee('b') c = Attendee('c') d = Attendee('d') self.assertEqual(a, Attendee('a')) a.depends_on('b', c) c.depends_on('d') self.assertEqual(a.parents, {b, c}) self.assertEqual(b.parents, set()) self.assertEqual(c.parents, {d}) self.assertEqual(d.parents, set()) self.assertEqual(a.children, set()) self.assertEqual(b.children, {a}) self.assertEqual(c.children, {a}) self.assertEqual(d.children, {c}) self.assertEqual( Attendee.get_dependent_instances(), [b, d, c, a], ) self.assertEqual( Attendee.get_dependent_instances(['c']), [d, c], ) # Create a circular dependency. d.depends_on(a) self.assertRaises(Attendee.DependencyCycleError, Attendee.get_dependent_instances) # Add a source. a.add_source('http://some.fake.address') self.assertIsNotNone(a.get_source('http://some.fake.address')) # Add a build. attendee_test_environment = Environment('attendee_test_environment') a.add_build('foo', environment='attendee_test_environment') self.assertIsNotNone(a.get_build('foo')) self.assertEqual(a.get_build('foo').environment, attendee_test_environment) def test_extensions(self): """ Test the extensions. """ simple_call = 'foo' function_call = 'foo()' param_call = 'foo(1, 2, 3)' named_param_call = 'foo(a =1,c= 3,b = 2)' mixed_call = 'foo ( 1 , c=3, b = "test" )' missing_call = 'bar(5, 6, 7)' @register_extension('foo') def foo(a=None, b=None, c=None): return [a, b, c] extension, args, kwargs = parse_extension(simple_call) self.assertEqual(args, tuple()) self.assertEqual(kwargs, {}) extension, args, kwargs = parse_extension(function_call) self.assertEqual(args, tuple()) self.assertEqual(kwargs, {}) extension, args, kwargs = parse_extension(param_call) self.assertEqual(args, (1, 2, 3)) self.assertEqual(kwargs, {}) extension, args, kwargs = parse_extension(named_param_call) self.assertEqual(args, tuple()) self.assertEqual(kwargs, {'a': 1, 'b': 2, 'c': 3}) extension, args, kwargs = parse_extension(mixed_call) self.assertEqual(args, (1,)) self.assertEqual(kwargs, {'b': 'test', 'c': 3}) # Make sure unregistered extensions don't parse successfully. self.assertRaises(TeapotError, parse_extension, missing_call) if __name__ == '__main__': unittest.main()
[ "julien.kauffmann@freelan.org" ]
julien.kauffmann@freelan.org
1bcdcc4b3f1ab33491a62eaaa77a02bb8fcf6d60
87dd0571c3c5f422900e108bc693d4803f2443b8
/Shana/RemoveData/Install/comtypes/gen/_5E1F7BC3_67C5_4AEE_8EC6_C4B73AAC42ED_0_10_2.py
cb926ae4a0ccff7ed37db128825b1ec258741364
[]
no_license
nohe427/MyAddins
08e42c2dd24501c858f179d2ff134625de71d76d
8fdb0a0925617ea33a1d8cf24b7805c1c3b1a712
refs/heads/master
2021-01-01T20:41:14.652161
2015-09-02T22:49:47
2015-09-02T22:49:47
20,631,776
1
0
null
null
null
null
UTF-8
Python
false
false
529,668
py
# -*- coding: mbcs -*- typelib_path = u'C:\\Program Files (x86)\\ArcGIS\\Engine10.2\\com\\esriSystem.olb' _lcid = 0 # change this if required from ctypes import * from comtypes import GUID from comtypes import CoClass import comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0 from comtypes.automation import VARIANT from ctypes import HRESULT from comtypes import BSTR from comtypes import helpstring from comtypes import COMMETHOD from comtypes import dispid from ctypes import Array from ctypes.wintypes import VARIANT_BOOL from comtypes import IUnknown from comtypes.automation import _midlSAFEARRAY from ctypes.wintypes import _LARGE_INTEGER from comtypes import IPersist from ctypes.wintypes import _ULARGE_INTEGER from ctypes.wintypes import _ULARGE_INTEGER OLE_COLOR = c_int OLE_HANDLE = c_int from ctypes.wintypes import _FILETIME WSTRING = c_wchar_p from ctypes.wintypes import tagRECT from ctypes.wintypes import tagRECT class _WKSEnvelope(Structure): pass _WKSEnvelope._fields_ = [ ('XMin', c_double), ('YMin', c_double), ('XMax', c_double), ('YMax', c_double), ] assert sizeof(_WKSEnvelope) == 32, sizeof(_WKSEnvelope) assert alignment(_WKSEnvelope) == 8, alignment(_WKSEnvelope) class InputDeviceManager(CoClass): u'Input Device Manager - a singleton.' _reg_clsid_ = GUID('{71D66954-D2BF-4FDD-86C6-68B062402780}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IInputDeviceManager(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that give life to Input Devices.' _iid_ = GUID('{52620D38-E275-4725-A976-65BCDD2C93FD}') _idlflags_ = ['oleautomation'] InputDeviceManager._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IInputDeviceManager] class IClassify(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the classification methods.' _iid_ = GUID('{D5C7A525-DFB8-11D1-AAAD-00C04FA334B3}') _idlflags_ = ['oleautomation'] class IUID(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IDispatch): _case_insensitive_ = True u'Provides access to members that work with globally unique identifier objects.' _iid_ = GUID('{1714D59B-FB22-11D1-94A2-080009EEBECB}') _idlflags_ = ['dual', 'oleautomation', 'hidden'] IClassify._methods_ = [ COMMETHOD([helpstring(u'Adds data in form of a histogram (array of values (doubles) and a paired array of frequencies (longs)) to the classification.')], HRESULT, 'SetHistogramData', ( ['in'], VARIANT, 'doubleArrayValues' ), ( ['in'], VARIANT, 'longArrayFrequencies' )), COMMETHOD([helpstring(u'Classifies data into the specified number of classes.')], HRESULT, 'Classify', ( ['in', 'out'], POINTER(c_int), 'numClasses' )), COMMETHOD(['propget', helpstring(u'The array of class breaks (double). ClassBreaks(0) is the minimum value in the dataset, and subsequent breaks represent the upper limit of each class.')], HRESULT, 'ClassBreaks', ( ['retval', 'out'], POINTER(VARIANT), 'doubleArrayBreaks' )), COMMETHOD(['propget', helpstring(u'The name of the classification method (based on choice of classification object).')], HRESULT, 'MethodName', ( ['retval', 'out'], POINTER(BSTR), 'txt' )), COMMETHOD(['propget', helpstring(u'The CLSID for the classification object.')], HRESULT, 'ClassID', ( ['retval', 'out'], POINTER(POINTER(IUID)), 'clsid' )), ] ################################################################ ## code template for IClassify implementation ##class IClassify_Impl(object): ## @property ## def ClassID(self): ## u'The CLSID for the classification object.' ## #return clsid ## ## @property ## def MethodName(self): ## u'The name of the classification method (based on choice of classification object).' ## #return txt ## ## def Classify(self): ## u'Classifies data into the specified number of classes.' ## #return numClasses ## ## def SetHistogramData(self, doubleArrayValues, longArrayFrequencies): ## u'Adds data in form of a histogram (array of values (doubles) and a paired array of frequencies (longs)) to the classification.' ## #return ## ## @property ## def ClassBreaks(self): ## u'The array of class breaks (double). ClassBreaks(0) is the minimum value in the dataset, and subsequent breaks represent the upper limit of each class.' ## #return doubleArrayBreaks ## class _WKSEnvelopeZ(Structure): pass WKSEnvelopeZ = _WKSEnvelopeZ class IJobFilter(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods of job filter.' _iid_ = GUID('{2C2D291A-51FD-4BFD-99A5-DB889FCEE9F2}') _idlflags_ = ['oleautomation'] class ILongArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control long arrays.' _iid_ = GUID('{54F9FFB6-E91F-11D2-9F81-00C04F8ECE27}') _idlflags_ = ['oleautomation'] IJobFilter._methods_ = [ COMMETHOD(['propget', helpstring(u'statuses of the jobs to search')], HRESULT, 'JobStatuses', ( ['retval', 'out'], POINTER(POINTER(ILongArray)), 'ppStatusArray' )), COMMETHOD(['propputref', helpstring(u'statuses of the jobs to search')], HRESULT, 'JobStatuses', ( ['in'], POINTER(ILongArray), 'ppStatusArray' )), ] ################################################################ ## code template for IJobFilter implementation ##class IJobFilter_Impl(object): ## def JobStatuses(self, ppStatusArray): ## u'statuses of the jobs to search' ## #return ## class Set(CoClass): u'Generic set of objects.' _reg_clsid_ = GUID('{33848E03-983B-11D1-8463-0000F875B9C6}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class ISet(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control a simple set of objects.' _iid_ = GUID('{33848E02-983B-11D1-8463-0000F875B9C6}') _idlflags_ = ['oleautomation'] Set._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ISet] class _esriPointAttributesEx(Structure): pass esriPointAttributesEx = _esriPointAttributesEx class ITimeDuration(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Time Duration.' _iid_ = GUID('{953DC994-AA0D-4193-9C1F-469B60D61711}') _idlflags_ = ['oleautomation'] class _WKSTimeDuration(Structure): pass WKSTimeDuration = _WKSTimeDuration ITimeDuration._methods_ = [ COMMETHOD(['propget', helpstring(u'The time duration days component.')], HRESULT, 'Days', ( ['retval', 'out'], POINTER(c_int), 'Days' )), COMMETHOD(['propput', helpstring(u'The time duration days component.')], HRESULT, 'Days', ( ['in'], c_int, 'Days' )), COMMETHOD(['propget', helpstring(u'The time duration hours component.')], HRESULT, 'Hours', ( ['retval', 'out'], POINTER(c_int), 'Hours' )), COMMETHOD(['propput', helpstring(u'The time duration hours component.')], HRESULT, 'Hours', ( ['in'], c_int, 'Hours' )), COMMETHOD(['propget', helpstring(u'The time duration minutes component.')], HRESULT, 'Minutes', ( ['retval', 'out'], POINTER(c_int), 'Minutes' )), COMMETHOD(['propput', helpstring(u'The time duration minutes component.')], HRESULT, 'Minutes', ( ['in'], c_int, 'Minutes' )), COMMETHOD(['propget', helpstring(u'The time duration seconds component.')], HRESULT, 'Seconds', ( ['retval', 'out'], POINTER(c_int), 'Seconds' )), COMMETHOD(['propput', helpstring(u'The time duration seconds component.')], HRESULT, 'Seconds', ( ['in'], c_int, 'Seconds' )), COMMETHOD(['propget', helpstring(u'The time duration nanoseconds component.')], HRESULT, 'Nanoseconds', ( ['retval', 'out'], POINTER(c_int), 'Nanoseconds' )), COMMETHOD(['propput', helpstring(u'The time duration nanoseconds component.')], HRESULT, 'Nanoseconds', ( ['in'], c_int, 'Nanoseconds' )), COMMETHOD(['propget', helpstring(u'Indicates whether the time duration value is positive or negative.')], HRESULT, 'Positive', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Positive' )), COMMETHOD(['propput', helpstring(u'Indicates whether the time duration value is positive or negative.')], HRESULT, 'Positive', ( ['in'], VARIANT_BOOL, 'Positive' )), COMMETHOD([helpstring(u'Obtains time as a WKSTimeDuration.')], HRESULT, 'QueryWKSTimeDuration', ( ['retval', 'out'], POINTER(WKSTimeDuration), 'TimeDuration' )), COMMETHOD([helpstring(u'Writes the time from a given WKSTimeDuration value.')], HRESULT, 'SetFromWKSTimeDuration', ( ['in'], POINTER(WKSTimeDuration), 'TimeDuration' )), COMMETHOD([helpstring(u'Obtains the time duration as an XML time duration string.')], HRESULT, 'QueryXMLTimeDurationString', ( ['retval', 'out'], POINTER(BSTR), 'xmlTimeDurationString' )), COMMETHOD([helpstring(u'Writes the time duration from an XML time duration string.')], HRESULT, 'SetFromXMLTimeDurationString', ( ['in'], BSTR, 'xmlTimeDurationString' )), COMMETHOD([helpstring(u'Adds the input amount of weeks to the time duration.')], HRESULT, 'AddWeeks', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of days to the time duration.')], HRESULT, 'AddDays', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of hours to the time duration.')], HRESULT, 'AddHours', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of minutes to the time duration.')], HRESULT, 'AddMinutes', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of seconds to the time duration.')], HRESULT, 'AddSeconds', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of milliseconds to the time duration.')], HRESULT, 'AddMilliseconds', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of nanoseconds to the time duration.')], HRESULT, 'AddNanoseconds', ( ['in'], c_longlong, 'Value' )), COMMETHOD([helpstring(u'Obtains the time duration as total days floating point value.')], HRESULT, 'QueryTotalDays', ( ['retval', 'out'], POINTER(c_double), 'totalDays' )), COMMETHOD([helpstring(u'Obtains the time duration as total hours floating point value.')], HRESULT, 'QueryTotalHours', ( ['retval', 'out'], POINTER(c_double), 'totalHours' )), COMMETHOD([helpstring(u'Obtains the time duration as total minutes floating point value.')], HRESULT, 'QueryTotalMinutes', ( ['retval', 'out'], POINTER(c_double), 'totalMinutes' )), COMMETHOD([helpstring(u'Obtains the time duration as total seconds floating point value.')], HRESULT, 'QueryTotalSeconds', ( ['retval', 'out'], POINTER(c_double), 'totalSeconds' )), COMMETHOD([helpstring(u'The time duration day fraction portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.')], HRESULT, 'QueryDayFraction', ( ['retval', 'out'], POINTER(c_double), 'dayFraction' )), COMMETHOD([helpstring(u'The time duration day fraction portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.')], HRESULT, 'SetDayFraction', ( ['in'], c_double, 'dayFraction' )), COMMETHOD([helpstring(u'The time duration day fraction portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.')], HRESULT, 'QueryDayFractionNanoseconds', ( ['retval', 'out'], POINTER(c_longlong), 'dayFractionNanoseconds' )), COMMETHOD([helpstring(u'The time duration day fraction portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.')], HRESULT, 'SetDayFractionNanoseconds', ( ['in'], c_longlong, 'dayFractionNanoseconds' )), COMMETHOD([helpstring(u'Obtains the time duration as the number of ticks.')], HRESULT, 'QueryTicks', ( ['retval', 'out'], POINTER(c_longlong), 'ticks' )), COMMETHOD([helpstring(u'Writes the time duration from a given number of ticks.')], HRESULT, 'SetFromTicks', ( ['in'], c_longlong, 'ticks' )), COMMETHOD([helpstring(u'Reset the time duration to zero.')], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Scales the time duration by a scale factor.')], HRESULT, 'Scale', ( ['in'], c_double, 'scaleFactor' )), COMMETHOD([helpstring(u'Adds a time duration.')], HRESULT, 'AddDuration', ( ['in'], POINTER(ITimeDuration), 'TimeDuration' )), COMMETHOD([helpstring(u'Subtracts a time duration.')], HRESULT, 'SubtractDuration', ( ['in'], POINTER(ITimeDuration), 'TimeDuration' )), COMMETHOD([helpstring(u"Indicates whether the time duration's value is zero.")], HRESULT, 'IsZero', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsZero' )), COMMETHOD([helpstring(u"Compares this time duration to the other time duration. Returns -1 if this time duration's value is less, 1 if greater, and 0 otherwise.")], HRESULT, 'Compare', ( ['in'], POINTER(ITimeDuration), 'otherDuration' ), ( ['retval', 'out'], POINTER(c_int), 'Result' )), ] ################################################################ ## code template for ITimeDuration implementation ##class ITimeDuration_Impl(object): ## def AddSeconds(self, Value): ## u'Adds the input amount of seconds to the time duration.' ## #return ## ## def Scale(self, scaleFactor): ## u'Scales the time duration by a scale factor.' ## #return ## ## def AddHours(self, Value): ## u'Adds the input amount of hours to the time duration.' ## #return ## ## def _get(self): ## u'Indicates whether the time duration value is positive or negative.' ## #return Positive ## def _set(self, Positive): ## u'Indicates whether the time duration value is positive or negative.' ## Positive = property(_get, _set, doc = _set.__doc__) ## ## def QueryTicks(self): ## u'Obtains the time duration as the number of ticks.' ## #return ticks ## ## def QueryWKSTimeDuration(self): ## u'Obtains time as a WKSTimeDuration.' ## #return TimeDuration ## ## def AddNanoseconds(self, Value): ## u'Adds the input amount of nanoseconds to the time duration.' ## #return ## ## def QueryTotalSeconds(self): ## u'Obtains the time duration as total seconds floating point value.' ## #return totalSeconds ## ## def _get(self): ## u'The time duration hours component.' ## #return Hours ## def _set(self, Hours): ## u'The time duration hours component.' ## Hours = property(_get, _set, doc = _set.__doc__) ## ## def QueryXMLTimeDurationString(self): ## u'Obtains the time duration as an XML time duration string.' ## #return xmlTimeDurationString ## ## def QueryDayFractionNanoseconds(self): ## u'The time duration day fraction portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.' ## #return dayFractionNanoseconds ## ## def _get(self): ## u'The time duration seconds component.' ## #return Seconds ## def _set(self, Seconds): ## u'The time duration seconds component.' ## Seconds = property(_get, _set, doc = _set.__doc__) ## ## def QueryTotalMinutes(self): ## u'Obtains the time duration as total minutes floating point value.' ## #return totalMinutes ## ## def SetDayFractionNanoseconds(self, dayFractionNanoseconds): ## u'The time duration day fraction portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.' ## #return ## ## def QueryDayFraction(self): ## u'The time duration day fraction portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.' ## #return dayFraction ## ## def Reset(self): ## u'Reset the time duration to zero.' ## #return ## ## def AddWeeks(self, Value): ## u'Adds the input amount of weeks to the time duration.' ## #return ## ## def SetFromWKSTimeDuration(self, TimeDuration): ## u'Writes the time from a given WKSTimeDuration value.' ## #return ## ## def _get(self): ## u'The time duration days component.' ## #return Days ## def _set(self, Days): ## u'The time duration days component.' ## Days = property(_get, _set, doc = _set.__doc__) ## ## def SetDayFraction(self, dayFraction): ## u'The time duration day fraction portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.' ## #return ## ## def AddDuration(self, TimeDuration): ## u'Adds a time duration.' ## #return ## ## def IsZero(self): ## u"Indicates whether the time duration's value is zero." ## #return IsZero ## ## def _get(self): ## u'The time duration minutes component.' ## #return Minutes ## def _set(self, Minutes): ## u'The time duration minutes component.' ## Minutes = property(_get, _set, doc = _set.__doc__) ## ## def SetFromTicks(self, ticks): ## u'Writes the time duration from a given number of ticks.' ## #return ## ## def AddMinutes(self, Value): ## u'Adds the input amount of minutes to the time duration.' ## #return ## ## def QueryTotalDays(self): ## u'Obtains the time duration as total days floating point value.' ## #return totalDays ## ## def _get(self): ## u'The time duration nanoseconds component.' ## #return Nanoseconds ## def _set(self, Nanoseconds): ## u'The time duration nanoseconds component.' ## Nanoseconds = property(_get, _set, doc = _set.__doc__) ## ## def AddDays(self, Value): ## u'Adds the input amount of days to the time duration.' ## #return ## ## def SetFromXMLTimeDurationString(self, xmlTimeDurationString): ## u'Writes the time duration from an XML time duration string.' ## #return ## ## def AddMilliseconds(self, Value): ## u'Adds the input amount of milliseconds to the time duration.' ## #return ## ## def QueryTotalHours(self): ## u'Obtains the time duration as total hours floating point value.' ## #return totalHours ## ## def SubtractDuration(self, TimeDuration): ## u'Subtracts a time duration.' ## #return ## ## def Compare(self, otherDuration): ## u"Compares this time duration to the other time duration. Returns -1 if this time duration's value is less, 1 if greater, and 0 otherwise." ## #return Result ## class _esriPointAttributes(Structure): pass _esriPointAttributes._fields_ = [ ('pointZ', c_double), ('pointM', c_double), ('pointID', c_int), ('awarenessInfo', c_char), ] assert sizeof(_esriPointAttributes) == 24, sizeof(_esriPointAttributes) assert alignment(_esriPointAttributes) == 8, alignment(_esriPointAttributes) _esriPointAttributesEx._fields_ = [ ('awarenessInfo', c_int), ('arraySize', c_int), ('attributeArray', POINTER(c_ubyte)), ] assert sizeof(_esriPointAttributesEx) == 12, sizeof(_esriPointAttributesEx) assert alignment(_esriPointAttributesEx) == 4, alignment(_esriPointAttributesEx) class IXMLPersistedObject(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members to set or retrieve an object to be serialized to XML. The object must support IPersistStream or IPersistVariant.' _iid_ = GUID('{E2015546-27B9-4AC4-BB8B-64B429513D44}') _idlflags_ = ['oleautomation'] IXMLPersistedObject._methods_ = [ COMMETHOD(['propget', helpstring(u'The object to be serialized to or deserialized from XML.')], HRESULT, 'Object', ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'ppObject' )), COMMETHOD(['propputref', helpstring(u'The object to be serialized to or deserialized from XML.')], HRESULT, 'Object', ( ['in'], POINTER(IUnknown), 'ppObject' )), ] ################################################################ ## code template for IXMLPersistedObject implementation ##class IXMLPersistedObject_Impl(object): ## def Object(self, ppObject): ## u'The object to be serialized to or deserialized from XML.' ## #return ## class IGlobeCompression(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to compress and uncompress JPEG data used by ArcGlobe.' _iid_ = GUID('{650FC137-7869-4414-A511-F7E176D3301E}') _idlflags_ = [] IGlobeCompression._methods_ = [ COMMETHOD([helpstring(u'Initialize for the compression of Globe JPEG data.')], HRESULT, 'InitGlobeCompression'), COMMETHOD([helpstring(u'End the compression of Globe JPEG data.')], HRESULT, 'EndGlobeCompression'), COMMETHOD([helpstring(u'Compress rgba data to Globe JPEG format.')], HRESULT, 'GlobeToJPEG', ( ['in'], c_int, 'inputSize' ), ( ['in'], POINTER(c_ubyte), 'pSrcData' ), ( ['in'], c_int, 'quality' ), ( ['out'], POINTER(c_int), 'pOutputSize' ), ( ['out'], POINTER(c_ubyte), 'pDestData' )), COMMETHOD([helpstring(u'UnCompress the Globe JPEG format to rgba data.')], HRESULT, 'GlobeFromJPEG', ( ['in'], c_int, 'inputSize' ), ( ['in'], POINTER(c_ubyte), 'pSrcData' ), ( ['in'], VARIANT_BOOL, 'use5551' ), ( ['out'], POINTER(c_int), 'pOutputSize' ), ( ['out'], POINTER(c_ubyte), 'pDestData' )), ] ################################################################ ## code template for IGlobeCompression implementation ##class IGlobeCompression_Impl(object): ## def InitGlobeCompression(self): ## u'Initialize for the compression of Globe JPEG data.' ## #return ## ## def GlobeFromJPEG(self, inputSize, pSrcData, use5551): ## u'UnCompress the Globe JPEG format to rgba data.' ## #return pOutputSize, pDestData ## ## def GlobeToJPEG(self, inputSize, pSrcData, quality): ## u'Compress rgba data to Globe JPEG format.' ## #return pOutputSize, pDestData ## ## def EndGlobeCompression(self): ## u'End the compression of Globe JPEG data.' ## #return ## class ObjectStream(CoClass): u'Specialized kind of IStream for objects.' _reg_clsid_ = GUID('{043731D0-A7CF-11D1-8BD1-080009EE4E41}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class ISequentialStream(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True _iid_ = GUID('{0C733A30-2A1C-11CE-ADE5-00AA0044773D}') _idlflags_ = [] class IStream(ISequentialStream): _case_insensitive_ = True _iid_ = GUID('{0000000C-0000-0000-C000-000000000046}') _idlflags_ = [] class IObjectStream(IStream): _case_insensitive_ = True u'Provides access to members used to make objects and object references persistant. Use of this interface allows multiple references to the same object to be stored properly.' _iid_ = GUID('{18A45BA7-1266-11D1-86AD-0000F8751720}') _idlflags_ = [] class IDocumentVersion(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the document version.' _iid_ = GUID('{ECC43C55-0148-4EC1-BF87-B9A183C5DC98}') _idlflags_ = [] ObjectStream._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IObjectStream, IDocumentVersion] class IESRIScriptEngine(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the ESRIScriptEngine.' _iid_ = GUID('{52B13A57-AA06-49BE-A4D0-3CDDAC943EBE}') _idlflags_ = ['oleautomation'] IESRIScriptEngine._methods_ = [ COMMETHOD(['propget', helpstring(u'The Script Language.')], HRESULT, 'Language', ( ['retval', 'out'], POINTER(BSTR), 'pLanguage' )), COMMETHOD(['propput', helpstring(u'The Script Language.')], HRESULT, 'Language', ( ['in'], BSTR, 'pLanguage' )), COMMETHOD(['propget', helpstring(u'The AllowUI method.')], HRESULT, 'AllowUI', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pAllowUI' )), COMMETHOD(['propput', helpstring(u'The AllowUI method.')], HRESULT, 'AllowUI', ( ['in'], VARIANT_BOOL, 'pAllowUI' )), COMMETHOD([helpstring(u'The AddCode method.')], HRESULT, 'AddCode', ( ['in'], BSTR, 'scriptCode' )), COMMETHOD([helpstring(u'The Run method.')], HRESULT, 'Run', ( ['in'], BSTR, 'procedureName' ), ( ['in'], POINTER(_midlSAFEARRAY(POINTER(BSTR))), 'pParameters' ), ( ['retval', 'out'], POINTER(VARIANT), 'pResult' )), COMMETHOD(['propget', helpstring(u'The Error method.')], HRESULT, 'Error', ( ['in'], POINTER(c_int), 'pLineNumber' ), ( ['in'], POINTER(c_int), 'pCharacterPosition' ), ( ['in'], POINTER(BSTR), 'pErrorSourceCode' ), ( ['in'], POINTER(BSTR), 'pErrorDescription' )), ] ################################################################ ## code template for IESRIScriptEngine implementation ##class IESRIScriptEngine_Impl(object): ## def AddCode(self, scriptCode): ## u'The AddCode method.' ## #return ## ## def _get(self): ## u'The AllowUI method.' ## #return pAllowUI ## def _set(self, pAllowUI): ## u'The AllowUI method.' ## AllowUI = property(_get, _set, doc = _set.__doc__) ## ## def Run(self, procedureName, pParameters): ## u'The Run method.' ## #return pResult ## ## def _get(self): ## u'The Script Language.' ## #return pLanguage ## def _set(self, pLanguage): ## u'The Script Language.' ## Language = property(_get, _set, doc = _set.__doc__) ## ## @property ## def Error(self, pLineNumber, pCharacterPosition, pErrorSourceCode, pErrorDescription): ## u'The Error method.' ## #return ## class _esriSegmentModifier(Structure): pass esriSegmentModifier = _esriSegmentModifier class IXMLSerialize(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that XML serialize and deserialize an object to/from XML.' _iid_ = GUID('{C8545045-6615-48E3-AF27-52A0E5FC35E2}') _idlflags_ = ['oleautomation'] class IXMLSerializeData(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that serialize and deserialize data from XML.' _iid_ = GUID('{5BB4A18D-43BC-41C5-987A-2206FD15488F}') _idlflags_ = ['oleautomation'] IXMLSerialize._methods_ = [ COMMETHOD([helpstring(u'Serializes an object to XML.')], HRESULT, 'Serialize', ( ['in'], POINTER(IXMLSerializeData), 'data' )), COMMETHOD([helpstring(u'Deserializes an object from XML.')], HRESULT, 'Deserialize', ( ['in'], POINTER(IXMLSerializeData), 'data' )), ] ################################################################ ## code template for IXMLSerialize implementation ##class IXMLSerialize_Impl(object): ## def Serialize(self, data): ## u'Serializes an object to XML.' ## #return ## ## def Deserialize(self, data): ## u'Deserializes an object from XML.' ## #return ## class IJobDefinition(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to properties of job definition.' _iid_ = GUID('{C24F654B-B929-443B-9FA1-A2A83BBCE14B}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriAGSInternetMessageFormat' esriAGSInternetMessageFormatSoap = 1 esriAGSInternetMessageFormatBin = 2 esriAGSInternetMessageFormat = c_int # enum IJobDefinition._methods_ = [ COMMETHOD(['propget', helpstring(u'Format of request.')], HRESULT, 'RequestFormat', ( ['retval', 'out'], POINTER(esriAGSInternetMessageFormat), 'pVal' )), COMMETHOD(['propget', helpstring(u'Request message in SOAP format.')], HRESULT, 'StringRequest', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD(['propput', helpstring(u'Request message in SOAP format.')], HRESULT, 'StringRequest', ( ['in'], BSTR, 'pVal' )), COMMETHOD(['propget', helpstring(u'Request message in binary format.')], HRESULT, 'BinaryRequest', ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'ppVal' )), COMMETHOD(['propput', helpstring(u'Request message in binary format.')], HRESULT, 'BinaryRequest', ( ['in'], _midlSAFEARRAY(c_ubyte), 'ppVal' )), COMMETHOD(['propget', helpstring(u'Required capabilities of job processor.')], HRESULT, 'Capabilities', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD(['propput', helpstring(u'Required capabilities of job processor.')], HRESULT, 'Capabilities', ( ['in'], BSTR, 'pVal' )), COMMETHOD(['propget', helpstring(u'REST Format of request.')], HRESULT, 'IsRESTFormat', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Request message in REST format.')], HRESULT, 'GetRESTRequest', ( ['out'], POINTER(BSTR), 'pResourceName' ), ( ['out'], POINTER(BSTR), 'pRperationName' ), ( ['out'], POINTER(BSTR), 'pRperationInput' ), ( ['out'], POINTER(BSTR), 'pOutputFormat' ), ( ['out'], POINTER(BSTR), 'pRequestProperties' )), COMMETHOD([helpstring(u'Request message in REST format.')], HRESULT, 'SetRESTRequest', ( ['in'], BSTR, 'resourceName' ), ( ['in'], BSTR, 'operationName' ), ( ['in'], BSTR, 'operationInput' ), ( ['in'], BSTR, 'outputFormat' ), ( ['in'], BSTR, 'requestProperties' )), ] ################################################################ ## code template for IJobDefinition implementation ##class IJobDefinition_Impl(object): ## def _get(self): ## u'Request message in SOAP format.' ## #return pVal ## def _set(self, pVal): ## u'Request message in SOAP format.' ## StringRequest = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Request message in binary format.' ## #return ppVal ## def _set(self, ppVal): ## u'Request message in binary format.' ## BinaryRequest = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Required capabilities of job processor.' ## #return pVal ## def _set(self, pVal): ## u'Required capabilities of job processor.' ## Capabilities = property(_get, _set, doc = _set.__doc__) ## ## @property ## def RequestFormat(self): ## u'Format of request.' ## #return pVal ## ## def GetRESTRequest(self): ## u'Request message in REST format.' ## #return pResourceName, pRperationName, pRperationInput, pOutputFormat, pRequestProperties ## ## @property ## def IsRESTFormat(self): ## u'REST Format of request.' ## #return pVal ## ## def SetRESTRequest(self, resourceName, operationName, operationInput, outputFormat, requestProperties): ## u'Request message in REST format.' ## #return ## # values for enumeration 'esriArcGISVersion' esriArcGISVersion83 = 0 esriArcGISVersion90 = 1 esriArcGISVersion92 = 2 esriArcGISVersion93 = 3 esriArcGISVersion10 = 4 esriArcGISVersion101 = 5 esriArcGISVersionCurrent = 5 esriArcGISVersion = c_int # enum IDocumentVersion._methods_ = [ COMMETHOD(['propput', helpstring(u'The version of the document to save.')], HRESULT, 'DocumentVersion', ( ['in'], esriArcGISVersion, 'docVersion' )), COMMETHOD(['propget', helpstring(u'The version of the document to save.')], HRESULT, 'DocumentVersion', ( ['retval', 'out'], POINTER(esriArcGISVersion), 'docVersion' )), ] ################################################################ ## code template for IDocumentVersion implementation ##class IDocumentVersion_Impl(object): ## def _get(self): ## u'The version of the document to save.' ## #return docVersion ## def _set(self, docVersion): ## u'The version of the document to save.' ## DocumentVersion = property(_get, _set, doc = _set.__doc__) ## _esriSegmentModifier._fields_ = [ ('FromPoint', c_int), ('SegmentType', c_int), ('SegmentInfo', c_ubyte * 1), ] assert sizeof(_esriSegmentModifier) == 12, sizeof(_esriSegmentModifier) assert alignment(_esriSegmentModifier) == 4, alignment(_esriSegmentModifier) class IPropertySet(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members for managing a PropertySet.' _iid_ = GUID('{F0BA6ABC-8E9F-11D0-B4AB-0000F8037368}') _idlflags_ = ['oleautomation'] IXMLSerializeData._methods_ = [ COMMETHOD(['propget', helpstring(u'XML type of the object.')], HRESULT, 'TypeName', ( ['retval', 'out'], POINTER(BSTR), 'Name' )), COMMETHOD(['propget', helpstring(u'XML type namespace of the object.')], HRESULT, 'TypeNamespaceURI', ( ['retval', 'out'], POINTER(BSTR), 'ns' )), COMMETHOD(['propput', helpstring(u'XML type of the object.')], HRESULT, 'TypeName', ( ['in'], BSTR, 'Name' )), COMMETHOD(['propput', helpstring(u'XML type namespace of the object.')], HRESULT, 'TypeNamespaceURI', ( ['in'], BSTR, 'ns' )), COMMETHOD(['propget', helpstring(u'Properties for serialization and deserialization.')], HRESULT, 'Properties', ( ['retval', 'out'], POINTER(POINTER(IPropertySet)), 'props' )), COMMETHOD(['propputref', helpstring(u'Properties for serialization and deserialization.')], HRESULT, 'Properties', ( ['in'], POINTER(IPropertySet), 'props' )), COMMETHOD([helpstring(u'Finds an XML element by name.')], HRESULT, 'Find', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(c_int), 'index' )), COMMETHOD(['propget', helpstring(u'Number of XML elements.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD([helpstring(u'Obtains element value as a string.')], HRESULT, 'GetString', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a boolean.')], HRESULT, 'GetBoolean', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a byte.')], HRESULT, 'GetByte', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_ubyte), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a short.')], HRESULT, 'GetShort', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_short), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as an integer.')], HRESULT, 'GetInteger', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_int), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a float.')], HRESULT, 'GetFloat', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_float), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a double.')], HRESULT, 'GetDouble', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a date.')], HRESULT, 'GetDate', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as an object instance.')], HRESULT, 'GetObject', ( ['in'], c_int, 'index' ), ( ['in'], BSTR, 'typeNamespace' ), ( ['in'], BSTR, 'TypeName' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as an array of bytes.')], HRESULT, 'GetBinary', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Obtains element value as a variant.')], HRESULT, 'GetVariant', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(VARIANT), 'Value' )), COMMETHOD([helpstring(u'Adds element value as a string.')], HRESULT, 'AddString', ( ['in'], BSTR, 'Name' ), ( ['in'], BSTR, 'Value' )), COMMETHOD([helpstring(u'Adds element value as a boolean.')], HRESULT, 'AddBoolean', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Adds element value as a byte.')], HRESULT, 'AddByte', ( ['in'], BSTR, 'Name' ), ( ['in'], c_ubyte, 'Value' )), COMMETHOD([helpstring(u'Adds element value as a short.')], HRESULT, 'AddShort', ( ['in'], BSTR, 'Name' ), ( ['in'], c_short, 'Value' )), COMMETHOD([helpstring(u'Adds element value as an integer.')], HRESULT, 'AddInteger', ( ['in'], BSTR, 'Name' ), ( ['in'], c_int, 'Value' )), COMMETHOD([helpstring(u'Adds element value as a float.')], HRESULT, 'AddFloat', ( ['in'], BSTR, 'Name' ), ( ['in'], c_float, 'Value' )), COMMETHOD([helpstring(u'Adds element value as a double.')], HRESULT, 'AddDouble', ( ['in'], BSTR, 'Name' ), ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds element value as a date.')], HRESULT, 'AddDate', ( ['in'], BSTR, 'Name' ), ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds element value as an object.')], HRESULT, 'AddObject', ( ['in'], BSTR, 'Name' ), ( ['in'], POINTER(IUnknown), 'Value' )), COMMETHOD([helpstring(u'Adds element value as an array of bytes.')], HRESULT, 'AddBinary', ( ['in'], BSTR, 'Name' ), ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Adds element value as a variant.')], HRESULT, 'AddVariant', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT, 'Value' )), COMMETHOD([helpstring(u'Writes the value for a serialization flag.')], HRESULT, 'SetFlag', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT_BOOL, 'FlagValue' )), COMMETHOD([helpstring(u'Obtains the value for a serialization flag.')], HRESULT, 'GetFlag', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'FlagValue' )), ] ################################################################ ## code template for IXMLSerializeData implementation ##class IXMLSerializeData_Impl(object): ## def GetFloat(self, index): ## u'Obtains element value as a float.' ## #return Value ## ## def AddVariant(self, Name, Value): ## u'Adds element value as a variant.' ## #return ## ## def GetInteger(self, index): ## u'Obtains element value as an integer.' ## #return Value ## ## def AddDate(self, Name, Value): ## u'Adds element value as a date.' ## #return ## ## def GetDouble(self, index): ## u'Obtains element value as a double.' ## #return Value ## ## def _get(self): ## u'XML type namespace of the object.' ## #return ns ## def _set(self, ns): ## u'XML type namespace of the object.' ## TypeNamespaceURI = property(_get, _set, doc = _set.__doc__) ## ## def AddBoolean(self, Name, Value): ## u'Adds element value as a boolean.' ## #return ## ## def GetBoolean(self, index): ## u'Obtains element value as a boolean.' ## #return Value ## ## def AddDouble(self, Name, Value): ## u'Adds element value as a double.' ## #return ## ## def GetFlag(self, Name): ## u'Obtains the value for a serialization flag.' ## #return FlagValue ## ## def GetString(self, index): ## u'Obtains element value as a string.' ## #return Value ## ## def GetObject(self, index, typeNamespace, TypeName): ## u'Obtains element value as an object instance.' ## #return Value ## ## def _get(self): ## u'XML type of the object.' ## #return Name ## def _set(self, Name): ## u'XML type of the object.' ## TypeName = property(_get, _set, doc = _set.__doc__) ## ## def GetVariant(self, index): ## u'Obtains element value as a variant.' ## #return Value ## ## def AddShort(self, Name, Value): ## u'Adds element value as a short.' ## #return ## ## def GetBinary(self, index): ## u'Obtains element value as an array of bytes.' ## #return Value ## ## def AddInteger(self, Name, Value): ## u'Adds element value as an integer.' ## #return ## ## def Properties(self, props): ## u'Properties for serialization and deserialization.' ## #return ## ## @property ## def Count(self): ## u'Number of XML elements.' ## #return Count ## ## def AddBinary(self, Name, Value): ## u'Adds element value as an array of bytes.' ## #return ## ## def SetFlag(self, Name, FlagValue): ## u'Writes the value for a serialization flag.' ## #return ## ## def AddString(self, Name, Value): ## u'Adds element value as a string.' ## #return ## ## def GetShort(self, index): ## u'Obtains element value as a short.' ## #return Value ## ## def GetDate(self, index): ## u'Obtains element value as a date.' ## #return Value ## ## def AddObject(self, Name, Value): ## u'Adds element value as an object.' ## #return ## ## def GetByte(self, index): ## u'Obtains element value as a byte.' ## #return Value ## ## def AddFloat(self, Name, Value): ## u'Adds element value as a float.' ## #return ## ## def AddByte(self, Name, Value): ## u'Adds element value as a byte.' ## #return ## ## def Find(self, Name): ## u'Finds an XML element by name.' ## #return index ## class IClassID(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods identifying class ID.' _iid_ = GUID('{9F9650F1-5F49-4041-BA0F-D10BAFF1D7BC}') _idlflags_ = [] IClassID._methods_ = [ COMMETHOD([helpstring(u'Identify class ID for an object.')], HRESULT, 'GetCLSID', ( ['retval', 'out'], POINTER(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.GUID), 'pCLSID' )), COMMETHOD([helpstring(u'Identify ProgID for an object.')], HRESULT, 'GetProgID', ( ['retval', 'out'], POINTER(BSTR), 'pProgID' )), ] ################################################################ ## code template for IClassID implementation ##class IClassID_Impl(object): ## def GetProgID(self): ## u'Identify ProgID for an object.' ## #return pProgID ## ## def GetCLSID(self): ## u'Identify class ID for an object.' ## #return pCLSID ## _WKSTimeDuration._fields_ = [ ('Positive', VARIANT_BOOL), ('Days', c_int), ('Hours', c_int), ('Minutes', c_int), ('Seconds', c_int), ('Nanoseconds', c_int), ] assert sizeof(_WKSTimeDuration) == 24, sizeof(_WKSTimeDuration) assert alignment(_WKSTimeDuration) == 4, alignment(_WKSTimeDuration) class NameFactory(CoClass): u'Name Object Factory.' _reg_clsid_ = GUID('{DB1ECCC0-C6C6-11D2-9F24-00C04F6BC69E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class INameFactory(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that work with the Name factory.' _iid_ = GUID('{51AD0A33-C607-11D2-9F23-00C04F6BC69E}') _idlflags_ = ['oleautomation'] NameFactory._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INameFactory] class _WKSPoint(Structure): pass WKSPoint = _WKSPoint class IJobResults(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to properties of job results.' _iid_ = GUID('{4D919E2D-F6C1-47BA-BA1F-6F2C29A86E22}') _idlflags_ = ['oleautomation'] IJobResults._methods_ = [ COMMETHOD(['propget', helpstring(u'Format of job results.')], HRESULT, 'ResultsFormat', ( ['retval', 'out'], POINTER(esriAGSInternetMessageFormat), 'pVal' )), COMMETHOD(['propget', helpstring(u'Job results in SOAP format.')], HRESULT, 'StringResults', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD(['propput', helpstring(u'Job results in SOAP format.')], HRESULT, 'StringResults', ( ['in'], BSTR, 'pVal' )), COMMETHOD(['propget', helpstring(u'Job results in binary format.')], HRESULT, 'BinaryResults', ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'ppVal' )), COMMETHOD(['propput', helpstring(u'Job results in binary format.')], HRESULT, 'BinaryResults', ( ['in'], _midlSAFEARRAY(c_ubyte), 'ppVal' )), COMMETHOD(['propget', helpstring(u'REST Format of job results.')], HRESULT, 'IsRESTFormat', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Job results in REST format.')], HRESULT, 'GetRESTResults', ( ['out'], POINTER(BSTR), 'pVal' ), ( ['out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'ppVal' )), COMMETHOD([helpstring(u'Job results in REST format.')], HRESULT, 'SetRESTResults', ( ['in'], BSTR, 'Val' ), ( ['in'], _midlSAFEARRAY(c_ubyte), 'pVal' )), ] ################################################################ ## code template for IJobResults implementation ##class IJobResults_Impl(object): ## @property ## def ResultsFormat(self): ## u'Format of job results.' ## #return pVal ## ## def SetRESTResults(self, Val, pVal): ## u'Job results in REST format.' ## #return ## ## def _get(self): ## u'Job results in SOAP format.' ## #return pVal ## def _set(self, pVal): ## u'Job results in SOAP format.' ## StringResults = property(_get, _set, doc = _set.__doc__) ## ## @property ## def IsRESTFormat(self): ## u'REST Format of job results.' ## #return pVal ## ## def _get(self): ## u'Job results in binary format.' ## #return ppVal ## def _set(self, ppVal): ## u'Job results in binary format.' ## BinaryResults = property(_get, _set, doc = _set.__doc__) ## ## def GetRESTResults(self): ## u'Job results in REST format.' ## #return pVal, ppVal ## class IExtensionConfig(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that describe an extension.' _iid_ = GUID('{12A4C258-CC9D-4CA7-9F29-79DED88DD45F}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriExtensionState' esriESEnabled = 1 esriESDisabled = 2 esriESUnavailable = 4 esriExtensionState = c_int # enum IExtensionConfig._methods_ = [ COMMETHOD(['propget', helpstring(u'Name of the extension.')], HRESULT, 'ProductName', ( ['retval', 'out'], POINTER(BSTR), 'Name' )), COMMETHOD(['propget', helpstring(u'Detailed description of the extension.')], HRESULT, 'Description', ( ['retval', 'out'], POINTER(BSTR), 'Description' )), COMMETHOD(['propget', helpstring(u'The state of the extension.')], HRESULT, 'State', ( ['retval', 'out'], POINTER(esriExtensionState), 'State' )), COMMETHOD(['propput', helpstring(u'The state of the extension.')], HRESULT, 'State', ( ['in'], esriExtensionState, 'State' )), ] ################################################################ ## code template for IExtensionConfig implementation ##class IExtensionConfig_Impl(object): ## def _get(self): ## u'The state of the extension.' ## #return State ## def _set(self, State): ## u'The state of the extension.' ## State = property(_get, _set, doc = _set.__doc__) ## ## @property ## def Description(self): ## u'Detailed description of the extension.' ## #return Description ## ## @property ## def ProductName(self): ## u'Name of the extension.' ## #return Name ## # values for enumeration 'scriptEngineError' SCRIPTENGINE_E_CANNOT_COCREATE_VBSCRIPT_CONTROL = -2147219711 SCRIPTENGINE_E_CANNOT_COCREATE_JSCRIPT_CONTROL = -2147219710 scriptEngineError = c_int # enum class ESRIScriptEngine(CoClass): u'An object that creates ESRIScriptEngine instances.' _reg_clsid_ = GUID('{8C82D73F-A962-43F7-A377-26557C3143DF}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) ESRIScriptEngine._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IESRIScriptEngine] class ILocaleInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the locale information.' _iid_ = GUID('{53325BDA-65FA-4DE0-901E-2B23FFFB8764}') _idlflags_ = ['oleautomation'] ILocaleInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Obtains locale unique identifier.')], HRESULT, 'LocaleID', ( ['retval', 'out'], POINTER(c_int), 'LocaleID' )), COMMETHOD(['propput', helpstring(u'Obtains locale unique identifier.')], HRESULT, 'LocaleID', ( ['in'], c_int, 'LocaleID' )), COMMETHOD(['propget', helpstring(u'Obtains language identifier.')], HRESULT, 'LanguageID', ( ['retval', 'out'], POINTER(c_int), 'LanguageID' )), COMMETHOD(['propput', helpstring(u'Obtains language identifier.')], HRESULT, 'LanguageID', ( ['in'], c_int, 'LanguageID' )), COMMETHOD(['propget', helpstring(u'Obtains country identifier.')], HRESULT, 'CountryID', ( ['retval', 'out'], POINTER(c_int), 'CountryID' )), COMMETHOD(['propput', helpstring(u'Obtains country identifier.')], HRESULT, 'CountryID', ( ['in'], c_int, 'CountryID' )), COMMETHOD(['propget', helpstring(u'English name of language.')], HRESULT, 'LanguageName', ( ['retval', 'out'], POINTER(BSTR), 'Language' )), COMMETHOD(['propput', helpstring(u'English name of language.')], HRESULT, 'LanguageName', ( ['in'], BSTR, 'Language' )), COMMETHOD(['propget', helpstring(u'English name of country.')], HRESULT, 'CountryName', ( ['retval', 'out'], POINTER(BSTR), 'country' )), COMMETHOD(['propput', helpstring(u'English name of country.')], HRESULT, 'CountryName', ( ['in'], BSTR, 'country' )), COMMETHOD(['propget', helpstring(u'English display name of the locale.')], HRESULT, 'DisplayName', ( ['retval', 'out'], POINTER(BSTR), 'DisplayName' )), COMMETHOD(['propput', helpstring(u'English display name of the locale.')], HRESULT, 'DisplayName', ( ['in'], BSTR, 'DisplayName' )), COMMETHOD(['propget', helpstring(u'Localized name of language.')], HRESULT, 'LocalizedLanguageName', ( ['retval', 'out'], POINTER(BSTR), 'Language' )), COMMETHOD(['propput', helpstring(u'Localized name of language.')], HRESULT, 'LocalizedLanguageName', ( ['in'], BSTR, 'Language' )), COMMETHOD(['propget', helpstring(u'Localized name of country.')], HRESULT, 'LocalizedCountryName', ( ['retval', 'out'], POINTER(BSTR), 'country' )), COMMETHOD(['propput', helpstring(u'Localized name of country.')], HRESULT, 'LocalizedCountryName', ( ['in'], BSTR, 'country' )), COMMETHOD(['propget', helpstring(u'Localized display name of the locale.')], HRESULT, 'LocalizedDisplayName', ( ['retval', 'out'], POINTER(BSTR), 'DisplayName' )), COMMETHOD(['propput', helpstring(u'Localized display name of the locale.')], HRESULT, 'LocalizedDisplayName', ( ['in'], BSTR, 'DisplayName' )), COMMETHOD(['propget', helpstring(u'Native name of language.')], HRESULT, 'NativeLanguageName', ( ['retval', 'out'], POINTER(BSTR), 'Language' )), COMMETHOD(['propput', helpstring(u'Native name of language.')], HRESULT, 'NativeLanguageName', ( ['in'], BSTR, 'Language' )), COMMETHOD(['propget', helpstring(u'Native name of country.')], HRESULT, 'NativeCountryName', ( ['retval', 'out'], POINTER(BSTR), 'country' )), COMMETHOD(['propput', helpstring(u'Native name of country.')], HRESULT, 'NativeCountryName', ( ['in'], BSTR, 'country' )), ] ################################################################ ## code template for ILocaleInfo implementation ##class ILocaleInfo_Impl(object): ## def _get(self): ## u'English display name of the locale.' ## #return DisplayName ## def _set(self, DisplayName): ## u'English display name of the locale.' ## DisplayName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Obtains locale unique identifier.' ## #return LocaleID ## def _set(self, LocaleID): ## u'Obtains locale unique identifier.' ## LocaleID = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Obtains language identifier.' ## #return LanguageID ## def _set(self, LanguageID): ## u'Obtains language identifier.' ## LanguageID = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'English name of country.' ## #return country ## def _set(self, country): ## u'English name of country.' ## CountryName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Native name of country.' ## #return country ## def _set(self, country): ## u'Native name of country.' ## NativeCountryName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Localized name of language.' ## #return Language ## def _set(self, Language): ## u'Localized name of language.' ## LocalizedLanguageName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Localized display name of the locale.' ## #return DisplayName ## def _set(self, DisplayName): ## u'Localized display name of the locale.' ## LocalizedDisplayName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'English name of language.' ## #return Language ## def _set(self, Language): ## u'English name of language.' ## LanguageName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Native name of language.' ## #return Language ## def _set(self, Language): ## u'Native name of language.' ## NativeLanguageName = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Obtains country identifier.' ## #return CountryID ## def _set(self, CountryID): ## u'Obtains country identifier.' ## CountryID = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Localized name of country.' ## #return country ## def _set(self, country): ## u'Localized name of country.' ## LocalizedCountryName = property(_get, _set, doc = _set.__doc__) ## class IXMLTypeMapper(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that convert to and from XML to native types.' _iid_ = GUID('{A9A5DE92-E3C9-4940-B0F4-6D93CDF2602B}') _idlflags_ = ['oleautomation'] class IXMLTypeMapper2(IXMLTypeMapper): _case_insensitive_ = True u'Provides access to members that convert to and from XML to native types.' _iid_ = GUID('{39FDB45D-2B8E-4E07-A24C-55D722BC4BAC}') _idlflags_ = ['oleautomation'] IXMLTypeMapper._methods_ = [ COMMETHOD([helpstring(u'Creates an object based on XML type information.')], HRESULT, 'ToObject', ( ['in'], BSTR, 'NamespaceURI' ), ( ['in'], BSTR, 'TypeName' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'Value' )), COMMETHOD([helpstring(u'Converts an XML integer to a long.')], HRESULT, 'ToInteger', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_int), 'Value' )), COMMETHOD([helpstring(u'Converts an XML boolean to a boolean.')], HRESULT, 'ToBoolean', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD([helpstring(u'Converts an XML short to a short.')], HRESULT, 'ToShort', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_short), 'Value' )), COMMETHOD([helpstring(u'Converts an XML byte to a byte.')], HRESULT, 'ToByte', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_ubyte), 'Value' )), COMMETHOD([helpstring(u'Converts an XML float to a float.')], HRESULT, 'ToFloat', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_float), 'Value' )), COMMETHOD([helpstring(u'Converts an XML double to a double.')], HRESULT, 'ToDouble', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD([helpstring(u'Converts an XML date to a date.')], HRESULT, 'ToDate', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD([helpstring(u'Converts an XML byte array to a byte array.')], HRESULT, 'ToBinary', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Converts a long to an XML integer.')], HRESULT, 'FromInteger', ( ['in'], c_int, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a boolean to an XML boolean.')], HRESULT, 'FromBoolean', ( ['in'], VARIANT_BOOL, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a short to an XML short.')], HRESULT, 'FromShort', ( ['in'], c_short, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a byte to an XML byte.')], HRESULT, 'FromByte', ( ['in'], c_ubyte, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a float to an XML float.')], HRESULT, 'FromFloat', ( ['in'], c_float, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a double to an XML double.')], HRESULT, 'FromDouble', ( ['in'], c_double, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a date to an XML date.')], HRESULT, 'FromDate', ( ['in'], c_double, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts a byte array to an XML byte array.')], HRESULT, 'FromBinary', ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), ] ################################################################ ## code template for IXMLTypeMapper implementation ##class IXMLTypeMapper_Impl(object): ## def ToDate(self, Text): ## u'Converts an XML date to a date.' ## #return Value ## ## def FromDouble(self, Value): ## u'Converts a double to an XML double.' ## #return Text ## ## def ToByte(self, Text): ## u'Converts an XML byte to a byte.' ## #return Value ## ## def ToShort(self, Text): ## u'Converts an XML short to a short.' ## #return Value ## ## def ToObject(self, NamespaceURI, TypeName): ## u'Creates an object based on XML type information.' ## #return Value ## ## def FromFloat(self, Value): ## u'Converts a float to an XML float.' ## #return Text ## ## def ToFloat(self, Text): ## u'Converts an XML float to a float.' ## #return Value ## ## def FromBinary(self, Value): ## u'Converts a byte array to an XML byte array.' ## #return Text ## ## def FromShort(self, Value): ## u'Converts a short to an XML short.' ## #return Text ## ## def ToBinary(self, Text): ## u'Converts an XML byte array to a byte array.' ## #return Value ## ## def ToDouble(self, Text): ## u'Converts an XML double to a double.' ## #return Value ## ## def FromInteger(self, Value): ## u'Converts a long to an XML integer.' ## #return Text ## ## def FromByte(self, Value): ## u'Converts a byte to an XML byte.' ## #return Text ## ## def ToBoolean(self, Text): ## u'Converts an XML boolean to a boolean.' ## #return Value ## ## def FromDate(self, Value): ## u'Converts a date to an XML date.' ## #return Text ## ## def ToInteger(self, Text): ## u'Converts an XML integer to a long.' ## #return Value ## ## def FromBoolean(self, Value): ## u'Converts a boolean to an XML boolean.' ## #return Text ## IXMLTypeMapper2._methods_ = [ COMMETHOD([helpstring(u'Converts an int64 to an XML integer.')], HRESULT, 'FromInt64', ( ['in'], c_longlong, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD([helpstring(u'Converts an XML integer to an int64.')], HRESULT, 'ToInt64', ( ['in'], BSTR, 'Text' ), ( ['retval', 'out'], POINTER(c_longlong), 'Value' )), ] ################################################################ ## code template for IXMLTypeMapper2 implementation ##class IXMLTypeMapper2_Impl(object): ## def FromInt64(self, Value): ## u'Converts an int64 to an XML integer.' ## #return Text ## ## def ToInt64(self, Text): ## u'Converts an XML integer to an int64.' ## #return Value ## class IClassifyMinMax(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the classification methods that require only a minimum and maximum value to classify.' _iid_ = GUID('{AC6C5899-241B-11D3-9F50-00C04F6BC709}') _idlflags_ = ['oleautomation'] IClassifyMinMax._methods_ = [ COMMETHOD(['propput', helpstring(u'The minimum value.')], HRESULT, 'Minimum', ( ['in'], c_double, 'rhs' )), COMMETHOD(['propput', helpstring(u'The maximum value.')], HRESULT, 'Maximum', ( ['in'], c_double, 'rhs' )), ] ################################################################ ## code template for IClassifyMinMax implementation ##class IClassifyMinMax_Impl(object): ## def _set(self, rhs): ## u'The minimum value.' ## Minimum = property(fset = _set, doc = _set.__doc__) ## ## def _set(self, rhs): ## u'The maximum value.' ## Maximum = property(fset = _set, doc = _set.__doc__) ## class IClassifyMinMax2(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the classification methods that require a data range only.' _iid_ = GUID('{B42E7156-F8A5-415B-ABB4-230CA421F4B2}') _idlflags_ = ['oleautomation'] IClassifyMinMax2._methods_ = [ COMMETHOD([helpstring(u'Classifies a data range defined by a minimum and maximum value into the specified number of classes.')], HRESULT, 'ClassifyMinMax', ( ['in'], c_double, 'min' ), ( ['in'], c_double, 'max' ), ( ['in', 'out'], POINTER(c_int), 'numClasses' )), ] ################################################################ ## code template for IClassifyMinMax2 implementation ##class IClassifyMinMax2_Impl(object): ## def ClassifyMinMax(self, min, max): ## u'Classifies a data range defined by a minimum and maximum value into the specified number of classes.' ## #return numClasses ## class IIntervalRange(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control classifications that need an interval range.' _iid_ = GUID('{62144BE6-E05E-11D1-AAAE-00C04FA334B3}') _idlflags_ = ['oleautomation'] IIntervalRange._methods_ = [ COMMETHOD(['propput', helpstring(u'The Interval Range. Call before Classify.')], HRESULT, 'IntervalRange', ( ['in'], c_double, 'rhs' )), COMMETHOD(['propget', helpstring(u'The Default Range for the data. Data must be added before calling.')], HRESULT, 'Default', ( ['retval', 'out'], POINTER(c_double), 'range' )), ] ################################################################ ## code template for IIntervalRange implementation ##class IIntervalRange_Impl(object): ## @property ## def Default(self): ## u'The Default Range for the data. Data must be added before calling.' ## #return range ## ## def _set(self, rhs): ## u'The Interval Range. Call before Classify.' ## IntervalRange = property(fset = _set, doc = _set.__doc__) ## class IJobMessages(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods that control an array of job messages.' _iid_ = GUID('{08125E66-7BF8-4618-87F2-77D9E364F35A}') _idlflags_ = ['oleautomation'] class IJobMessage(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to properties of the job message.' _iid_ = GUID('{B611D33A-01A3-47E3-AE7D-44076C727ABC}') _idlflags_ = ['oleautomation'] IJobMessages._methods_ = [ COMMETHOD(['propget', helpstring(u'Number of messages.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'Method to return job message at given index.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IJobMessage)), 'ppMsg' )), COMMETHOD([helpstring(u'Adds job message to the end of the array.')], HRESULT, 'Add', ( ['in'], POINTER(IJobMessage), 'pMsg' )), COMMETHOD([helpstring(u'Inserts job message at the given index.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], POINTER(IJobMessage), 'pMsg' )), COMMETHOD([helpstring(u'Removes job message at the given index.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all job messages from the array.')], HRESULT, 'RemoveAll'), ] ################################################################ ## code template for IJobMessages implementation ##class IJobMessages_Impl(object): ## @property ## def Count(self): ## u'Number of messages.' ## #return Count ## ## def Insert(self, index, pMsg): ## u'Inserts job message at the given index.' ## #return ## ## def Remove(self, index): ## u'Removes job message at the given index.' ## #return ## ## @property ## def Element(self, index): ## u'Method to return job message at given index.' ## #return ppMsg ## ## def RemoveAll(self): ## u'Removes all job messages from the array.' ## #return ## ## def Add(self, pMsg): ## u'Adds job message to the end of the array.' ## #return ## class IIntervalRange2(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control classifications that need an interval range.' _iid_ = GUID('{29697055-D00B-45AB-91BF-1543D4438086}') _idlflags_ = ['oleautomation'] IIntervalRange2._methods_ = [ COMMETHOD(['propput', helpstring(u'The Interval Range. Call before Classify.')], HRESULT, 'IntervalRange', ( ['in'], c_double, 'rhs' )), COMMETHOD(['propget', helpstring(u'The Default Range for the data.')], HRESULT, 'Default', ( [], VARIANT, 'values' ), ( [], VARIANT, 'frequencies' ), ( ['retval', 'out'], POINTER(c_double), 'range' )), ] ################################################################ ## code template for IIntervalRange2 implementation ##class IIntervalRange2_Impl(object): ## @property ## def Default(self, values, frequencies): ## u'The Default Range for the data.' ## #return range ## ## def _set(self, rhs): ## u'The Interval Range. Call before Classify.' ## IntervalRange = property(fset = _set, doc = _set.__doc__) ## # values for enumeration 'esriTimeStringFormat' esriTSFYearThruSubSecondWithSlash = 0 esriTSFYearThruSecondWithSlash = 1 esriTSFYearThruMinuteWithSlash = 2 esriTSFYearThruHourWithSlash = 3 esriTSFYearThruDayWithSlash = 4 esriTSFYearThruMonthWithSlash = 5 esriTSFYearThruSubSecondWithDash = 6 esriTSFYearThruSecondWithDash = 7 esriTSFYearThruMinuteWithDash = 8 esriTSFYearThruHourWithDash = 9 esriTSFYearThruDayWithDash = 10 esriTSFYearThruMonthWithDash = 11 esriTSFYearThruSubSecond = 12 esriTSFYearThruSecond = 13 esriTSFYearThruMinute = 14 esriTSFYearThruHour = 15 esriTSFYearThruDay = 16 esriTSFYearThruMonth = 17 esriTSFYearOnly = 18 esriTimeStringFormat = c_int # enum class ByteSwapStreamIO(CoClass): u'Helper object that performs byte swapping of data read and written to stream.' _reg_clsid_ = GUID('{74D3B3A0-E54F-46D2-B9E8-4167A0B21F87}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IByteSwapStreamIO(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that support the Byte Swap Helper object.' _iid_ = GUID('{E718734D-D494-4E44-92C8-E2212B4A2F8D}') _idlflags_ = ['oleautomation'] ByteSwapStreamIO._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IByteSwapStreamIO] class IDirectionFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format directions.' _iid_ = GUID('{11D7B4C8-DBDF-4B98-AC6D-8C419EFD2C24}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriDirectionUnits' esriDURadians = 9101 esriDUDecimalDegrees = 2 esriDUDegreesMinutesSeconds = 3 esriDUGradians = 9105 esriDUGons = 9106 esriDirectionUnits = c_int # enum # values for enumeration 'esriDirectionType' esriDTNorthAzimuth = 1 esriDTSouthAzimuth = 2 esriDTPolar = 3 esriDTQuadrantBearing = 4 esriDirectionType = c_int # enum # values for enumeration 'esriDirectionFormatEnum' esriDFDegreesMinutesSeconds = 0 esriDFQuadrantBearing = 1 esriDirectionFormatEnum = c_int # enum IDirectionFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'Indicates Direction Unit for the ValueToString argument.')], HRESULT, 'DirectionUnits', ( ['in'], esriDirectionUnits, 'unit' )), COMMETHOD(['propget', helpstring(u'Indicates Direction Unit for the ValueToString argument.')], HRESULT, 'DirectionUnits', ( ['retval', 'out'], POINTER(esriDirectionUnits), 'unit' )), COMMETHOD(['propput', helpstring(u'Indicates the direction of the argument in ValueToString.')], HRESULT, 'DirectionType', ( ['in'], esriDirectionType, 'direction' )), COMMETHOD(['propget', helpstring(u'Indicates the direction of the argument in ValueToString.')], HRESULT, 'DirectionType', ( ['retval', 'out'], POINTER(esriDirectionType), 'direction' )), COMMETHOD(['propput', helpstring(u'Indicates how to display the direction value.')], HRESULT, 'DisplayFormat', ( ['in'], esriDirectionFormatEnum, 'DirectionFormat' )), COMMETHOD(['propget', helpstring(u'Indicates how to display the direction value.')], HRESULT, 'DisplayFormat', ( ['retval', 'out'], POINTER(esriDirectionFormatEnum), 'DirectionFormat' )), COMMETHOD(['propput', helpstring(u'The number of decimal digits in a seconds part of the formatted number.')], HRESULT, 'DecimalPlaces', ( ['in'], c_int, 'num' )), COMMETHOD(['propget', helpstring(u'The number of decimal digits in a seconds part of the formatted number.')], HRESULT, 'DecimalPlaces', ( ['retval', 'out'], POINTER(c_int), 'num' )), ] ################################################################ ## code template for IDirectionFormat implementation ##class IDirectionFormat_Impl(object): ## def _get(self): ## u'The number of decimal digits in a seconds part of the formatted number.' ## #return num ## def _set(self, num): ## u'The number of decimal digits in a seconds part of the formatted number.' ## DecimalPlaces = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates how to display the direction value.' ## #return DirectionFormat ## def _set(self, DirectionFormat): ## u'Indicates how to display the direction value.' ## DisplayFormat = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates the direction of the argument in ValueToString.' ## #return direction ## def _set(self, direction): ## u'Indicates the direction of the argument in ValueToString.' ## DirectionType = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates Direction Unit for the ValueToString argument.' ## #return unit ## def _set(self, unit): ## u'Indicates Direction Unit for the ValueToString argument.' ## DirectionUnits = property(_get, _set, doc = _set.__doc__) ## class IDeviationInterval(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the classification methods that require a standard deviation based range.' _iid_ = GUID('{62144BE7-E05E-11D1-AAAE-00C04FA334B3}') _idlflags_ = ['oleautomation'] IDeviationInterval._methods_ = [ COMMETHOD(['propput', helpstring(u'The deviation interval (1/4 <= value <= 1).')], HRESULT, 'DeviationInterval', ( ['in'], c_double, 'Value' )), COMMETHOD(['propget', helpstring(u'The deviation interval (1/4 <= value <= 1).')], HRESULT, 'DeviationInterval', ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD(['propput', helpstring(u'The mean value.')], HRESULT, 'Mean', ( ['in'], c_double, 'rhs' )), COMMETHOD(['propput', helpstring(u'The standard deviation.')], HRESULT, 'StandardDev', ( ['in'], c_double, 'rhs' )), ] ################################################################ ## code template for IDeviationInterval implementation ##class IDeviationInterval_Impl(object): ## def _set(self, rhs): ## u'The standard deviation.' ## StandardDev = property(fset = _set, doc = _set.__doc__) ## ## def _set(self, rhs): ## u'The mean value.' ## Mean = property(fset = _set, doc = _set.__doc__) ## ## def _get(self): ## u'The deviation interval (1/4 <= value <= 1).' ## #return Value ## def _set(self, Value): ## u'The deviation interval (1/4 <= value <= 1).' ## DeviationInterval = property(_get, _set, doc = _set.__doc__) ## class XMLSerializer(CoClass): u'An XML serializer and deserializer of objects.' _reg_clsid_ = GUID('{4FE5C28E-35E6-403F-8431-E16B1F99AE4E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IXMLSerializer(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the XML serialization and deserialization of objects.' _iid_ = GUID('{DEA199D0-371C-4955-844C-B67705E1EDB2}') _idlflags_ = ['oleautomation'] class ISupportErrorInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True _iid_ = GUID('{DF0B3D60-548F-101B-8E65-08002B2BD119}') _idlflags_ = [] XMLSerializer._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLSerializer, ISupportErrorInfo] class Library(object): u'Esri System Object Library 10.2' name = u'esriSystem' _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class XMLFlags(CoClass): u'A collection of XML flags.' _reg_clsid_ = GUID('{23D488E6-6C77-47E8-948B-CCEEE3589CA2}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IXMLFlags(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control XML flags.' _iid_ = GUID('{647F4C09-3699-4868-A74C-108122A968DC}') _idlflags_ = ['oleautomation'] XMLFlags._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLFlags] class IESRILicenseInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that check software licenses.' _iid_ = GUID('{FCF1E388-5C7E-4BF3-AF4B-155D93F8297F}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriProductCode' esriProductCodeReader = 90 esriProductCodeReaderPro = 91 esriProductCodeBasic = 100 esriProductCodeStandard = 200 esriProductCodeAdvanced = 300 esriProductCodeArcPress = 4 esriProductCodeTIFFLZW = 5 esriProductCodeGeoStats = 6 esriProductCodeMrSID = 7 esriProductCodeNetwork = 8 esriProductCodeTIN = 9 esriProductCodeGrid = 10 esriProductCodeStreetMap = 12 esriProductCodeCOGO = 13 esriProductCodeMLE = 14 esriProductCodePublisher = 15 esriProductCodeAllEurope = 16 esriProductCodeAustria = 17 esriProductCodeBelgium = 18 esriProductCodeDenmark = 19 esriProductCodeFrance = 20 esriProductCodeGermany = 21 esriProductCodeItaly = 22 esriProductCodeLuxembourg = 23 esriProductCodeNetherlands = 24 esriProductCodePortugal = 25 esriProductCodeSpain = 26 esriProductCodeSweden = 27 esriProductCodeSwitzerland = 28 esriProductCodeUnitedKingdom = 29 esriProductPostCodesMajorRoads = 30 esriProductCodeArcMapServer = 31 esriProductCodeTracking = 32 esriProductCodeBusinessStandard = 33 esriProductCodeArcScan = 34 esriProductCodeBusiness = 35 esriProductCodeSchematics = 36 esriProductCodeSchematicsSDK = 37 esriProductCodeVirtualEarthEng = 38 esriProductCodeVBAExtension = 39 esriProductCodeWorkflowManager = 40 esriProductCodeDesigner = 43 esriProductCodeVector = 44 esriProductCodeDataInteroperability = 45 esriProductCodeProductionMapping = 46 esriProductCodeDataReViewer = 47 esriProductCodeMPSAtlas = 48 esriProductCodeDefense = 49 esriProductCodeNautical = 50 esriProductCodeIntelAgency = 51 esriProductCodeMappingAgency = 52 esriProductCodeAeronautical = 53 esriProductCodeVirtualEarth = 54 esriProductCodeServerStandardEdition = 55 esriProductCodeServerAdvancedEdition = 56 esriProductCodeServerEnterprise = 57 esriProductCodeImageExt = 58 esriProductCodeBingMaps = 59 esriProductCodeBingMapsEng = 60 esriProductCodeDefenseUS = 61 esriProductCodeDefenseINTL = 62 esriProductCodeAGINSPIRE = 63 esriProductCodeRuntimeBasic = 64 esriProductCodeRuntimeStandard = 65 esriProductCodeRuntimeAdvanced = 66 esriProductCodeHighways = 67 esriProductCodeVideo = 68 esriProductCodeBathymetry = 69 esriProductCodeAirports = 70 esriProductCode = c_int # enum IESRILicenseInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Indicates the product code that will be used on the current machine.')], HRESULT, 'DefaultProduct', ( ['retval', 'out'], POINTER(esriProductCode), 'ProductCode' )), COMMETHOD([helpstring(u'Indicates if the specified product is licensed.')], HRESULT, 'IsLicensed', ( ['in'], esriProductCode, 'ProductCode' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'licensed' )), ] ################################################################ ## code template for IESRILicenseInfo implementation ##class IESRILicenseInfo_Impl(object): ## @property ## def DefaultProduct(self): ## u'Indicates the product code that will be used on the current machine.' ## #return ProductCode ## ## def IsLicensed(self, ProductCode): ## u'Indicates if the specified product is licensed.' ## #return licensed ## class XMLSerializerAlt(CoClass): u'XML serializer of objects.' _reg_clsid_ = GUID('{364EEF73-3C3C-493C-B99A-76DBE62F6FC6}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IXMLSerializerAlt(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to load an object from an XML string.' _iid_ = GUID('{4DEB2C9D-2162-4443-908E-25B6CB7FB6DF}') _idlflags_ = ['oleautomation'] XMLSerializerAlt._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLSerializerAlt, ISupportErrorInfo] class JSONObject(CoClass): u'Simplified JSON API coclass' _reg_clsid_ = GUID('{DB25E387-8D9F-4D79-B1DF-8F65694465F0}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IJSONObject(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides simplified DOM-like JSON serialization and de-serialization API.' _iid_ = GUID('{EEA70515-FA6B-4DEE-AB79-D7935BF3A838}') _idlflags_ = ['oleautomation'] JSONObject._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IJSONObject, ISupportErrorInfo] class IJSONWriter(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the sequential writing of JSON.' _iid_ = GUID('{408CD30C-B7A6-4793-A07C-4181035C66E7}') _idlflags_ = ['oleautomation'] IJSONWriter._methods_ = [ COMMETHOD([helpstring(u'Specifies output JSON stream.')], HRESULT, 'WriteTo', ( ['in'], POINTER(IStream), 'outputStream' )), COMMETHOD([helpstring(u'Redirects writing to internal string buffer.')], HRESULT, 'WriteToString'), COMMETHOD([helpstring(u'Obtains copy of string buffer. Encoding is UTF8.')], HRESULT, 'GetStringBuffer', ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'buf' )), COMMETHOD(['propget', helpstring(u'Obtains underlying stream. If WriteTo() is not called yet, will return NULL. Also will return NULL if WriteToString() was called.')], HRESULT, 'Stream', ( ['retval', 'out'], POINTER(POINTER(IStream)), 'ppStream' )), COMMETHOD([helpstring(u"Writes 'pretty' formatting on or off.")], HRESULT, 'SetFormatted', ( [], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u"Writes indent for 'pretty' formatting. Default is 2.")], HRESULT, 'SetIndent', ( [], c_int, 'Value' )), COMMETHOD([helpstring(u'Starts writing an object.')], HRESULT, 'StartObject', ( [], BSTR, 'Name' )), COMMETHOD([helpstring(u'Ends writing of an object.')], HRESULT, 'EndObject'), COMMETHOD([helpstring(u'Starts an array.')], HRESULT, 'StartArray', ( [], BSTR, 'Name' )), COMMETHOD([helpstring(u'Ends an array.')], HRESULT, 'EndArray'), COMMETHOD([helpstring(u'Writes a variant valued property.')], HRESULT, 'WriteVariant', ( [], BSTR, 'Name' ), ( [], VARIANT, 'Value' )), COMMETHOD([helpstring(u'Writes a string property.')], HRESULT, 'WriteString', ( [], BSTR, 'Name' ), ( [], BSTR, 'Value' )), COMMETHOD([helpstring(u'Writes a boolean.')], HRESULT, 'WriteBoolean', ( [], BSTR, 'Name' ), ( [], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Writes a byte.')], HRESULT, 'WriteByte', ( [], BSTR, 'Name' ), ( [], c_ubyte, 'Value' )), COMMETHOD([helpstring(u'Writes a short.')], HRESULT, 'WriteShort', ( [], BSTR, 'Name' ), ( [], c_short, 'Value' )), COMMETHOD([helpstring(u'Writes an integer.')], HRESULT, 'WriteInteger', ( [], BSTR, 'Name' ), ( [], c_int, 'Value' )), COMMETHOD([helpstring(u'Writes a float.')], HRESULT, 'WriteFloat', ( [], BSTR, 'Name' ), ( [], c_float, 'Value' )), COMMETHOD([helpstring(u'Writes a double.')], HRESULT, 'WriteDouble', ( [], BSTR, 'Name' ), ( [], c_double, 'Value' )), COMMETHOD([helpstring(u'Writes a date.')], HRESULT, 'WriteDate', ( [], BSTR, 'Name' ), ( [], c_double, 'Value' ), ( [], VARIANT_BOOL, 'asString' )), COMMETHOD([helpstring(u'Writes a byte array.')], HRESULT, 'WriteBinary', ( ['in'], BSTR, 'Name' ), ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Writes null property.')], HRESULT, 'WriteNull', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u'Writes a variant in array.')], HRESULT, 'WriteVariantVal', ( [], VARIANT, 'Value' )), COMMETHOD([helpstring(u'Writes a string in array.')], HRESULT, 'WriteStringVal', ( [], BSTR, 'Value' )), COMMETHOD([helpstring(u'Writes a boolean in array.')], HRESULT, 'WriteBooleanVal', ( [], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Writes a byte in array.')], HRESULT, 'WriteByteVal', ( [], c_ubyte, 'Value' )), COMMETHOD([helpstring(u'Writes a short int in array.')], HRESULT, 'WriteShortVal', ( [], c_short, 'Value' )), COMMETHOD([helpstring(u'Writes an integer in array.')], HRESULT, 'WriteIntegerVal', ( [], c_int, 'Value' )), COMMETHOD([helpstring(u'Writes a float in array.')], HRESULT, 'WriteFloatVal', ( [], c_float, 'Value' )), COMMETHOD([helpstring(u'Writes a double in array.')], HRESULT, 'WriteDoubleVal', ( [], c_double, 'Value' )), COMMETHOD([helpstring(u'Writes a date in array.')], HRESULT, 'WriteDateVal', ( [], c_double, 'Value' ), ( [], VARIANT_BOOL, 'asString' )), COMMETHOD([helpstring(u'Writes a byte array.')], HRESULT, 'WriteBinaryVal', ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Writes null value in array.')], HRESULT, 'WriteNullVal'), ] ################################################################ ## code template for IJSONWriter implementation ##class IJSONWriter_Impl(object): ## def WriteFloatVal(self, Value): ## u'Writes a float in array.' ## #return ## ## def WriteIntegerVal(self, Value): ## u'Writes an integer in array.' ## #return ## ## def WriteNullVal(self): ## u'Writes null value in array.' ## #return ## ## def WriteVariantVal(self, Value): ## u'Writes a variant in array.' ## #return ## ## def WriteDate(self, Name, Value, asString): ## u'Writes a date.' ## #return ## ## def WriteString(self, Name, Value): ## u'Writes a string property.' ## #return ## ## def WriteShort(self, Name, Value): ## u'Writes a short.' ## #return ## ## def SetFormatted(self, Value): ## u"Writes 'pretty' formatting on or off." ## #return ## ## def WriteTo(self, outputStream): ## u'Specifies output JSON stream.' ## #return ## ## def WriteNull(self, Name): ## u'Writes null property.' ## #return ## ## def WriteByteVal(self, Value): ## u'Writes a byte in array.' ## #return ## ## def StartObject(self, Name): ## u'Starts writing an object.' ## #return ## ## def EndArray(self): ## u'Ends an array.' ## #return ## ## def WriteToString(self): ## u'Redirects writing to internal string buffer.' ## #return ## ## def WriteDouble(self, Name, Value): ## u'Writes a double.' ## #return ## ## def WriteDateVal(self, Value, asString): ## u'Writes a date in array.' ## #return ## ## def WriteFloat(self, Name, Value): ## u'Writes a float.' ## #return ## ## def WriteBinaryVal(self, Value): ## u'Writes a byte array.' ## #return ## ## def WriteShortVal(self, Value): ## u'Writes a short int in array.' ## #return ## ## def WriteVariant(self, Name, Value): ## u'Writes a variant valued property.' ## #return ## ## def GetStringBuffer(self): ## u'Obtains copy of string buffer. Encoding is UTF8.' ## #return buf ## ## def WriteBoolean(self, Name, Value): ## u'Writes a boolean.' ## #return ## ## def WriteDoubleVal(self, Value): ## u'Writes a double in array.' ## #return ## ## @property ## def Stream(self): ## u'Obtains underlying stream. If WriteTo() is not called yet, will return NULL. Also will return NULL if WriteToString() was called.' ## #return ppStream ## ## def SetIndent(self, Value): ## u"Writes indent for 'pretty' formatting. Default is 2." ## #return ## ## def WriteStringVal(self, Value): ## u'Writes a string in array.' ## #return ## ## def StartArray(self, Name): ## u'Starts an array.' ## #return ## ## def WriteBooleanVal(self, Value): ## u'Writes a boolean in array.' ## #return ## ## def WriteByte(self, Name, Value): ## u'Writes a byte.' ## #return ## ## def EndObject(self): ## u'Ends writing of an object.' ## #return ## ## def WriteInteger(self, Name, Value): ## u'Writes an integer.' ## #return ## ## def WriteBinary(self, Name, Value): ## u'Writes a byte array.' ## #return ## # values for enumeration 'esriTimeLocaleFormat' esriTLFDefaultDateTime = 0 esriTLFLongDate = 1 esriTLFShortDate = 2 esriTLFLongTime = 3 esriTLFShortTime = 4 esriTimeLocaleFormat = c_int # enum class ILicenseInformation(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to retrieve the name for license product code.' _iid_ = GUID('{EBE6BD5B-2F03-48F0-B68B-6DE8C4BDEF32}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriLicenseProductCode' esriLicenseProductCodeEngine = 10 esriLicenseProductCodeEngineGeoDB = 20 esriLicenseProductCodeArcServer = 30 esriLicenseProductCodeBasic = 40 esriLicenseProductCodeStandard = 50 esriLicenseProductCodeAdvanced = 60 esriLicenseProductCode = c_int # enum # values for enumeration 'esriLicenseExtensionCode' esriLicenseExtensionCodeArcPress = 4 esriLicenseExtensionCodeTIFFLZW = 5 esriLicenseExtensionCodeGeoStats = 6 esriLicenseExtensionCodeMrSID = 7 esriLicenseExtensionCodeNetwork = 8 esriLicenseExtensionCode3DAnalyst = 9 esriLicenseExtensionCodeSpatialAnalyst = 10 esriLicenseExtensionCodeStreetMap = 12 esriLicenseExtensionCodeCOGO = 13 esriLicenseExtensionCodeMLE = 14 esriLicenseExtensionCodePublisher = 15 esriLicenseExtensionCodeArcMapServer = 31 esriLicenseExtensionCodeTracking = 32 esriLicenseExtensionCodeBusinessStandard = 33 esriLicenseExtensionCodeArcScan = 34 esriLicenseExtensionCodeBusiness = 35 esriLicenseExtensionCodeSchematics = 36 esriLicenseExtensionCodeSchematicsSDK = 37 esriLicenseExtensionCodeVirtualEarthEng = 38 esriLicenseExtensionCodeVBAExtension = 39 esriLicenseExtensionCodeWorkflowManager = 40 esriLicenseExtensionCodeDesigner = 43 esriLicenseExtensionCodeVector = 44 esriLicenseExtensionCodeDataInteroperability = 45 esriLicenseExtensionCodeProductionMapping = 46 esriLicenseExtensionCodeDataReViewer = 47 esriLicenseExtensionCodeMPSAtlas = 48 esriLicenseExtensionCodeDefense = 49 esriLicenseExtensionCodeNautical = 50 esriLicenseExtensionCodeIntelAgency = 51 esriLicenseExtensionCodeMappingAgency = 52 esriLicenseExtensionCodeAeronautical = 53 esriLicenseExtensionCodeVirtualEarth = 54 esriLicenseExtensionCodeServerStandardEdition = 55 esriLicenseExtensionCodeServerAdvancedEdition = 56 esriLicenseExtensionCodeServerEnterprise = 57 esriLicenseExtensionCodeImageExt = 58 esriLicenseExtensionCodeBingMaps = 59 esriLicenseExtensionCodeBingMapsEng = 60 esriLicenseExtensionCodeDefenseUS = 61 esriLicenseExtensionCodeDefenseINTL = 62 esriLicenseExtensionCodeAGINSPIRE = 63 esriLicenseExtensionCodeRuntimeBasic = 64 esriLicenseExtensionCodeRuntimeStandard = 65 esriLicenseExtensionCodeRuntimeAdvanced = 66 esriLicenseExtensionCodeHighways = 67 esriLicenseExtensionCodeVideo = 68 esriLicenseExtensionCodeBathymetry = 69 esriLicenseExtensionCodeAirports = 70 esriLicenseExtensionCode = c_int # enum class ILicenseInfoEnum(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to retrieve the extension code.' _iid_ = GUID('{A681B61D-D891-474C-9E45-9B24C6677DB6}') _idlflags_ = ['oleautomation'] ILicenseInformation._methods_ = [ COMMETHOD([helpstring(u'Retrieve the name license product code.')], HRESULT, 'GetLicenseProductName', ( ['in'], esriLicenseProductCode, 'ProductCode' ), ( ['retval', 'out'], POINTER(BSTR), 'ProductName' )), COMMETHOD([helpstring(u'Retrieve the name license extension code.')], HRESULT, 'GetLicenseExtensionName', ( ['in'], esriLicenseExtensionCode, 'extensionCode' ), ( ['retval', 'out'], POINTER(BSTR), 'extensionName' )), COMMETHOD([helpstring(u'Enumerate the extensions supported the product.')], HRESULT, 'GetProductExtensions', ( ['in'], esriLicenseProductCode, 'ProductCode' ), ( ['retval', 'out'], POINTER(POINTER(ILicenseInfoEnum)), 'extensionName' )), ] ################################################################ ## code template for ILicenseInformation implementation ##class ILicenseInformation_Impl(object): ## def GetLicenseProductName(self, ProductCode): ## u'Retrieve the name license product code.' ## #return ProductName ## ## def GetProductExtensions(self, ProductCode): ## u'Enumerate the extensions supported the product.' ## #return extensionName ## ## def GetLicenseExtensionName(self, extensionCode): ## u'Retrieve the name license extension code.' ## #return extensionName ## class IParseNameString(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that parse Name strings.' _iid_ = GUID('{DB1ECCBF-C6C6-11D2-9F24-00C04F6BC69E}') _idlflags_ = ['oleautomation'] class IName(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that work with Name objects.' _iid_ = GUID('{4BA33331-D55F-11D1-8882-0000F877762D}') _idlflags_ = ['oleautomation'] IParseNameString._methods_ = [ COMMETHOD([helpstring(u'Indicates if the given name string can be parsed by this parser.')], HRESULT, 'CanParse', ( ['in'], BSTR, 'NameString' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'CanParse' )), COMMETHOD([helpstring(u'Parses the name string and returns a new Name object.')], HRESULT, 'Parse', ( ['in'], BSTR, 'NameString' ), ( ['retval', 'out'], POINTER(POINTER(IName)), 'Name' )), ] ################################################################ ## code template for IParseNameString implementation ##class IParseNameString_Impl(object): ## def Parse(self, NameString): ## u'Parses the name string and returns a new Name object.' ## #return Name ## ## def CanParse(self, NameString): ## u'Indicates if the given name string can be parsed by this parser.' ## #return CanParse ## class IVariantStream(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that store values to and retrieve values from a stream.' _iid_ = GUID('{67A4D650-69E0-11D2-8500-0000F875B9C6}') _idlflags_ = ['oleautomation'] IVariantStream._methods_ = [ COMMETHOD([helpstring(u'Reads a value from a stream.')], HRESULT, 'Read', ( ['retval', 'out'], POINTER(VARIANT), 'Value' )), COMMETHOD([helpstring(u'Writes a value to a stream.')], HRESULT, 'Write', ( ['in'], VARIANT, 'Value' )), ] ################################################################ ## code template for IVariantStream implementation ##class IVariantStream_Impl(object): ## def Read(self): ## u'Reads a value from a stream.' ## #return Value ## ## def Write(self, Value): ## u'Writes a value to a stream.' ## #return ## class IJSONWriter2(IJSONWriter): _case_insensitive_ = True _iid_ = GUID('{677FCBB1-C272-4616-B476-2CA3DCE8D292}') _idlflags_ = ['oleautomation'] IJSONWriter2._methods_ = [ COMMETHOD([helpstring(u"Resets IJSONWriter's internal state.")], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Writes a raw property without any processing. Use to insert JSON sub-object or sub-array strings only.')], HRESULT, 'WriteRawString', ( [], BSTR, 'Name' ), ( [], BSTR, 'Value' )), COMMETHOD([helpstring(u'Writes a raw value without any processing. Use to insert JSON sub-object or sub-array strings only.')], HRESULT, 'WriteRawStringVal', ( [], BSTR, 'Value' )), COMMETHOD([helpstring(u'Writes a double in array with specified number of digits after decimal point.')], HRESULT, 'WriteDoubleValEx', ( [], c_double, 'Value' ), ( [], c_int, 'precision' )), COMMETHOD([helpstring(u'Writes a double with specified number of digits after decimal point.')], HRESULT, 'WriteDoubleEx', ( [], BSTR, 'Name' ), ( [], c_double, 'Value' ), ( [], c_int, 'precision' )), ] ################################################################ ## code template for IJSONWriter2 implementation ##class IJSONWriter2_Impl(object): ## def Reset(self): ## u"Resets IJSONWriter's internal state." ## #return ## ## def WriteRawString(self, Name, Value): ## u'Writes a raw property without any processing. Use to insert JSON sub-object or sub-array strings only.' ## #return ## ## def WriteRawStringVal(self, Value): ## u'Writes a raw value without any processing. Use to insert JSON sub-object or sub-array strings only.' ## #return ## ## def WriteDoubleValEx(self, Value, precision): ## u'Writes a double in array with specified number of digits after decimal point.' ## #return ## ## def WriteDoubleEx(self, Name, Value, precision): ## u'Writes a double with specified number of digits after decimal point.' ## #return ## class IVariantStreamIO(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that support the VariantStream Helper object.' _iid_ = GUID('{76BE2722-B1F7-4FE4-B358-BFD2198CDA62}') _idlflags_ = ['oleautomation'] IVariantStreamIO._methods_ = [ COMMETHOD(['propputref', helpstring(u'The stream to perform variant stream reads and writes to.')], HRESULT, 'Stream', ( ['in'], POINTER(IStream), 'rhs' )), ] ################################################################ ## code template for IVariantStreamIO implementation ##class IVariantStreamIO_Impl(object): ## def Stream(self, rhs): ## u'The stream to perform variant stream reads and writes to.' ## #return ## # values for enumeration 'esriDrawPhase' esriDPGeography = 1 esriDPAnnotation = 2 esriDPSelection = 4 esriDrawPhase = c_int # enum class IDocumentVersionSupportGEN(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to extend the IObjectStream interface with methods to hande saving objects that did not exist in previous versions of the software.' _iid_ = GUID('{BB75DA81-8DFE-4122-A9C2-86F07C539AD5}') _idlflags_ = ['oleautomation'] IDocumentVersionSupportGEN._methods_ = [ COMMETHOD([helpstring(u'Is this object valid at the given document version.')], HRESULT, 'IsSupportedAtVersion', ( ['in'], esriArcGISVersion, 'docVersion' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'supported' )), COMMETHOD([helpstring(u'Convert the object to another object that is supported.')], HRESULT, 'ConvertToSupportedObject', ( ['in'], esriArcGISVersion, 'docVersion' ), ( ['retval', 'out'], POINTER(VARIANT), 'convertedObject' )), ] ################################################################ ## code template for IDocumentVersionSupportGEN implementation ##class IDocumentVersionSupportGEN_Impl(object): ## def IsSupportedAtVersion(self, docVersion): ## u'Is this object valid at the given document version.' ## #return supported ## ## def ConvertToSupportedObject(self, docVersion): ## u'Convert the object to another object that is supported.' ## #return convertedObject ## class IJSONReader(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to Sequential JSON Reader.' _iid_ = GUID('{48105A80-E0DC-4D69-BB61-3DF74CAFA52C}') _idlflags_ = ['oleautomation'] class IJSONReader2(IJSONReader): _case_insensitive_ = True _iid_ = GUID('{2C573605-C449-47E3-A483-F441192840FA}') _idlflags_ = ['oleautomation'] # values for enumeration 'JSONTokenType' JSONUndefined = -1 JSONString = 1 JSONNumber = 2 JSONBoolean = 3 JSONNull = 4 JSONStartOfObject = 5 JSONEndOfObject = 6 JSONStartOfArray = 7 JSONEndOfArray = 8 JSONPropertyValueDelimiter = 9 JSONValueDelimiter = 10 JSONTokenType = c_int # enum class IStringArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control string arrays.' _iid_ = GUID('{206216C9-7253-4A4D-92DD-60329FD9D792}') _idlflags_ = ['oleautomation'] IJSONReader._methods_ = [ COMMETHOD([helpstring(u'Specifies input stream.')], HRESULT, 'ReadFrom', ( ['in'], POINTER(IStream), 'inputStream' )), COMMETHOD([helpstring(u'Specifies input as string.')], HRESULT, 'ReadFromString', ( ['in'], BSTR, 'Text' )), COMMETHOD(['propget', helpstring(u'Obtains underlying stream.')], HRESULT, 'Stream', ( ['retval', 'out'], POINTER(POINTER(IStream)), 'ppStream' )), COMMETHOD([helpstring(u'Reads next JSON token.')], HRESULT, 'Read'), COMMETHOD(['propget', helpstring(u'Obtains type of current token.')], HRESULT, 'CurrentTokenType', ( ['retval', 'out'], POINTER(JSONTokenType), 'pVal' )), COMMETHOD([helpstring(u"Indicates true if current token is '{'.")], HRESULT, 'IsStartOfObject', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u"Indicates true if current token is '}'.")], HRESULT, 'IsEndOfObject', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u"Indicates true if current token is '['.")], HRESULT, 'IsStartOfArray', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u"Indicates true if current token is ']'.")], HRESULT, 'IsEndOfArray', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Indicates true if current token is a property value or array value of type string.')], HRESULT, 'IsString', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Indicates true if current token is a property value or array value of numeric type.')], HRESULT, 'IsNumber', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Indicates true if current token is a property value or array value of boolean type.')], HRESULT, 'IsBoolean', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Indicates true if current token is a property value or array value and equals to null.')], HRESULT, 'IsNull', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Obtains array or property value as Variant. Advances to the next token.')], HRESULT, 'ReadValue', ( ['retval', 'out'], POINTER(VARIANT), 'pVal' )), COMMETHOD([helpstring(u'Obtains property name. Advances to the next token.')], HRESULT, 'ReadPropertyName', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD([helpstring(u'Obtains property or array value as string. Advances to the next token. If property value cannot be coerced to string, returns E_FAIL.')], HRESULT, 'ReadValueAsString', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD([helpstring(u'Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to long, returns E_FAIL.')], HRESULT, 'ReadValueAsLong', ( ['retval', 'out'], POINTER(c_int), 'pVal' )), COMMETHOD([helpstring(u'Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to double, returns E_FAIL.')], HRESULT, 'ReadValueAsDouble', ( ['retval', 'out'], POINTER(c_double), 'pVal' )), COMMETHOD([helpstring(u'Obtains array or property value as boolean. Advances to the next token. If property value cannot be coerced to boolean, returns E_FAIL.')], HRESULT, 'ReadValueAsBoolean', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD([helpstring(u'Obtains property or array value as date. Advances to the next token. If property value cannot be coerced to datetime, returns E_FAIL.')], HRESULT, 'ReadValueAsDate', ( ['retval', 'out'], POINTER(c_double), 'pVal' )), COMMETHOD([helpstring(u'Reads current object until property name matches or object ends. Case is ignored.')], HRESULT, 'FindProperty', ( ['in'], BSTR, 'propname' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'found' )), COMMETHOD([helpstring(u'Reads current object until one of property names matches. Case is ignored. Return value is an index of property name that matched, otherwise -1.')], HRESULT, 'FindProperties', ( ['in'], POINTER(IStringArray), 'propnames' ), ( ['retval', 'out'], POINTER(c_int), 'index' )), COMMETHOD([helpstring(u'Skips the rest of the current object, including closing bracket.')], HRESULT, 'SkipUntilObjectEnds'), COMMETHOD([helpstring(u'Skips the rest of the current object, including closing bracket.')], HRESULT, 'SkipUntilArrayEnds'), ] ################################################################ ## code template for IJSONReader implementation ##class IJSONReader_Impl(object): ## def IsString(self): ## u'Indicates true if current token is a property value or array value of type string.' ## #return pVal ## ## def ReadFromString(self, Text): ## u'Specifies input as string.' ## #return ## ## def ReadPropertyName(self): ## u'Obtains property name. Advances to the next token.' ## #return pVal ## ## def IsEndOfArray(self): ## u"Indicates true if current token is ']'." ## #return pVal ## ## def FindProperties(self, propnames): ## u'Reads current object until one of property names matches. Case is ignored. Return value is an index of property name that matched, otherwise -1.' ## #return index ## ## def ReadValue(self): ## u'Obtains array or property value as Variant. Advances to the next token.' ## #return pVal ## ## def SkipUntilArrayEnds(self): ## u'Skips the rest of the current object, including closing bracket.' ## #return ## ## def Read(self): ## u'Reads next JSON token.' ## #return ## ## def SkipUntilObjectEnds(self): ## u'Skips the rest of the current object, including closing bracket.' ## #return ## ## def ReadValueAsString(self): ## u'Obtains property or array value as string. Advances to the next token. If property value cannot be coerced to string, returns E_FAIL.' ## #return pVal ## ## def IsEndOfObject(self): ## u"Indicates true if current token is '}'." ## #return pVal ## ## def IsBoolean(self): ## u'Indicates true if current token is a property value or array value of boolean type.' ## #return pVal ## ## @property ## def CurrentTokenType(self): ## u'Obtains type of current token.' ## #return pVal ## ## def IsStartOfArray(self): ## u"Indicates true if current token is '['." ## #return pVal ## ## def ReadValueAsBoolean(self): ## u'Obtains array or property value as boolean. Advances to the next token. If property value cannot be coerced to boolean, returns E_FAIL.' ## #return pVal ## ## def FindProperty(self, propname): ## u'Reads current object until property name matches or object ends. Case is ignored.' ## #return found ## ## def ReadValueAsDate(self): ## u'Obtains property or array value as date. Advances to the next token. If property value cannot be coerced to datetime, returns E_FAIL.' ## #return pVal ## ## def ReadValueAsLong(self): ## u'Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to long, returns E_FAIL.' ## #return pVal ## ## @property ## def Stream(self): ## u'Obtains underlying stream.' ## #return ppStream ## ## def IsNull(self): ## u'Indicates true if current token is a property value or array value and equals to null.' ## #return pVal ## ## def ReadValueAsDouble(self): ## u'Obtains property or array value as number. Advances to the next token. If property value cannot be coerced to double, returns E_FAIL.' ## #return pVal ## ## def IsStartOfObject(self): ## u"Indicates true if current token is '{'." ## #return pVal ## ## def IsNumber(self): ## u'Indicates true if current token is a property value or array value of numeric type.' ## #return pVal ## ## def ReadFrom(self, inputStream): ## u'Specifies input stream.' ## #return ## IJSONReader2._methods_ = [ COMMETHOD([helpstring(u"Parses JSON string into memory. Returns either IJSONObject or IJSONArray in a 'root' parameter. Doesn't change state of existing IJSONReader2 instance.")], HRESULT, 'ParseJSONString', ( ['in'], BSTR, 'json' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'root' )), COMMETHOD([helpstring(u'Creates a bookmark on the current token and assigns it a name. Only works if you use ReadFromString(), otherwise returns E_FAIL.')], HRESULT, 'SetBookmark', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u'Moves the reader back to a token that has a bookmark with the given name.')], HRESULT, 'ReturnToBookmark', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u'Moves the reader back to a token that has a bookmark with the given name.')], HRESULT, 'RemoveBookmark', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u'Removes all bookmarks.')], HRESULT, 'RemoveAllBookmarks'), COMMETHOD([helpstring(u'Obtains array or property value as Variant along with precision if it is a double. Advances to the next token.')], HRESULT, 'ReadValueEx', ( ['out'], POINTER(VARIANT), 'pVal' ), ( ['out'], POINTER(c_int), 'precision' )), ] ################################################################ ## code template for IJSONReader2 implementation ##class IJSONReader2_Impl(object): ## def SetBookmark(self, Name): ## u'Creates a bookmark on the current token and assigns it a name. Only works if you use ReadFromString(), otherwise returns E_FAIL.' ## #return ## ## def RemoveAllBookmarks(self): ## u'Removes all bookmarks.' ## #return ## ## def ReadValueEx(self): ## u'Obtains array or property value as Variant along with precision if it is a double. Advances to the next token.' ## #return pVal, precision ## ## def ParseJSONString(self, json): ## u"Parses JSON string into memory. Returns either IJSONObject or IJSONArray in a 'root' parameter. Doesn't change state of existing IJSONReader2 instance." ## #return root ## ## def RemoveBookmark(self, Name): ## u'Moves the reader back to a token that has a bookmark with the given name.' ## #return ## ## def ReturnToBookmark(self, Name): ## u'Moves the reader back to a token that has a bookmark with the given name.' ## #return ## class IPersistVariant(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members used for storage of an object through VARIANTs.' _iid_ = GUID('{67A4D651-69E0-11D2-8500-0000F875B9C6}') _idlflags_ = ['oleautomation'] IPersistVariant._methods_ = [ COMMETHOD(['propget', helpstring(u'The ID of the object.')], HRESULT, 'ID', ( ['retval', 'out'], POINTER(POINTER(IUID)), 'objectID' )), COMMETHOD([helpstring(u'Loads the object properties from the stream.')], HRESULT, 'Load', ( ['in'], POINTER(IVariantStream), 'Stream' )), COMMETHOD([helpstring(u'Saves the object properties to the stream.')], HRESULT, 'Save', ( ['in'], POINTER(IVariantStream), 'Stream' )), ] ################################################################ ## code template for IPersistVariant implementation ##class IPersistVariant_Impl(object): ## def Load(self, Stream): ## u'Loads the object properties from the stream.' ## #return ## ## def Save(self, Stream): ## u'Saves the object properties to the stream.' ## #return ## ## @property ## def ID(self): ## u'The ID of the object.' ## #return objectID ## class JSONArray(CoClass): u'Simplified JSON API coclass' _reg_clsid_ = GUID('{7F763998-814E-45BD-9EBD-28CDA2A10FC6}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IJSONArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides simplified DOM-like JSON serialization and de-serialization API.' _iid_ = GUID('{4ABE3BC0-6D3C-4FBA-9C55-C9AC7C32D9B1}') _idlflags_ = ['oleautomation'] JSONArray._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IJSONArray, ISupportErrorInfo] class IJobCatalog(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods that control a catalog of jobs.' _iid_ = GUID('{5C395AAC-EBBC-4FFD-BB1E-C99858E168E0}') _idlflags_ = ['oleautomation'] class IJobRegistry(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods that control a Jobs Registry.' _iid_ = GUID('{E65C015E-E176-4419-96BF-4C0E45B3DB7D}') _idlflags_ = ['oleautomation'] class IJob(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to properties of job.' _iid_ = GUID('{72AD9072-FACE-4EC8-A7FD-23B41E58E2B7}') _idlflags_ = ['oleautomation'] class IEnumBSTR(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that enumerate over a set of strings.' _iid_ = GUID('{18A45BA8-1266-11D1-86AD-0000F8751720}') _idlflags_ = ['oleautomation'] IJobCatalog._methods_ = [ COMMETHOD([helpstring(u'Initializes the job catalog.')], HRESULT, 'Init', ( ['in'], BSTR, 'root' ), ( ['in'], BSTR, 'JobProcessorName' ), ( ['in'], BSTR, 'JobProcessorType' )), COMMETHOD(['propput', helpstring(u'Job Registry.')], HRESULT, 'JobRegistry', ( ['in'], POINTER(IJobRegistry), 'rhs' )), COMMETHOD([helpstring(u'Creates a job and adds it to the catalog.')], HRESULT, 'CreateJob', ( ['retval', 'out'], POINTER(POINTER(IJob)), 'ppJob' )), COMMETHOD([helpstring(u'Creates a filter used for searching jobs.')], HRESULT, 'CreateJobFilter', ( ['retval', 'out'], POINTER(POINTER(IJobFilter)), 'ppFilter' )), COMMETHOD([helpstring(u'Retrieves job with given id from the catalog.')], HRESULT, 'GetJob', ( ['in'], BSTR, 'JobID' ), ( ['in'], VARIANT_BOOL, 'bLock' ), ( ['retval', 'out'], POINTER(POINTER(IJob)), 'ppJob' )), COMMETHOD([helpstring(u'Removes job with given id from the catalog.')], HRESULT, 'RemoveJob', ( ['in'], BSTR, 'JobID' )), COMMETHOD([helpstring(u'Returns ids of all jobs in the catalog that match specified filter.')], HRESULT, 'GetJobIDs', ( ['in'], POINTER(IJobFilter), 'pFilter' ), ( ['retval', 'out'], POINTER(POINTER(IEnumBSTR)), 'ppJobIDs' )), ] ################################################################ ## code template for IJobCatalog implementation ##class IJobCatalog_Impl(object): ## def RemoveJob(self, JobID): ## u'Removes job with given id from the catalog.' ## #return ## ## def CreateJob(self): ## u'Creates a job and adds it to the catalog.' ## #return ppJob ## ## def _set(self, rhs): ## u'Job Registry.' ## JobRegistry = property(fset = _set, doc = _set.__doc__) ## ## def GetJobIDs(self, pFilter): ## u'Returns ids of all jobs in the catalog that match specified filter.' ## #return ppJobIDs ## ## def Init(self, root, JobProcessorName, JobProcessorType): ## u'Initializes the job catalog.' ## #return ## ## def GetJob(self, JobID, bLock): ## u'Retrieves job with given id from the catalog.' ## #return ppJob ## ## def CreateJobFilter(self): ## u'Creates a filter used for searching jobs.' ## #return ppFilter ## # values for enumeration 'esriJobStatus' esriJobNew = 0 esriJobSubmitted = 1 esriJobWaiting = 2 esriJobExecuting = 3 esriJobSucceeded = 4 esriJobFailed = 5 esriJobTimedOut = 6 esriJobCancelling = 7 esriJobCancelled = 8 esriJobDeleting = 9 esriJobDeleted = 10 esriJobStatus = c_int # enum class JSONWriter(CoClass): u'A sequential JSON Writer.' _reg_clsid_ = GUID('{BEC303DC-37AE-4EB3-92F5-397E5B6E7509}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) JSONWriter._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IJSONWriter, IJSONWriter2, ISupportErrorInfo] class IExternalSerializer(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to high-level JSON serialization methods.' _iid_ = GUID('{E760E960-F144-4B30-930B-5F8056E4E305}') _idlflags_ = ['oleautomation'] IExternalSerializer._methods_ = [ COMMETHOD([helpstring(u'Serializes an object.')], HRESULT, 'WriteObject', ( ['in'], POINTER(IUnknown), 'pUnk' ), ( ['in'], POINTER(IPropertySet), 'pProps' )), ] ################################################################ ## code template for IExternalSerializer implementation ##class IExternalSerializer_Impl(object): ## def WriteObject(self, pUnk, pProps): ## u'Serializes an object.' ## #return ## class ILogSupport(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for initializing an object for logging.' _iid_ = GUID('{4F6EE3E2-25D7-4957-B008-3A5E9CE28180}') _idlflags_ = ['oleautomation'] class ILog(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for accessing a log.' _iid_ = GUID('{6F39C621-470B-4E6D-9033-A8598E286CAB}') _idlflags_ = ['oleautomation'] ILogSupport._methods_ = [ COMMETHOD([helpstring(u'Initializes an object with a log.')], HRESULT, 'InitLogging', ( ['in'], POINTER(ILog), 'Log' )), ] ################################################################ ## code template for ILogSupport implementation ##class ILogSupport_Impl(object): ## def InitLogging(self, Log): ## u'Initializes an object with a log.' ## #return ## class AMFWriter(CoClass): u'A sequential AMF Writer.' _reg_clsid_ = GUID('{E312A49E-4A72-4766-9E5B-4B3FE8CA2EEC}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IAMFWriter(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the sequential writing of AMF.' _iid_ = GUID('{3EB8C519-D125-48D4-AEB6-608074316AD4}') _idlflags_ = ['oleautomation'] AMFWriter._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IAMFWriter, ISupportErrorInfo] class IExternalDeserializer(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to high-level JSON serialization methods.' _iid_ = GUID('{09134DE8-4147-4564-82BD-6CC18414C389}') _idlflags_ = ['oleautomation'] IExternalDeserializer._methods_ = [ COMMETHOD([helpstring(u'Deserialize an object. riid references an interface to use. If interface is not supported, E_NOTIMPL is returned.')], HRESULT, 'ReadObject', ( ['in'], comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.GUID, 'riid' ), ( ['in'], POINTER(IPropertySet), 'pProps' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'ppUnk' )), ] ################################################################ ## code template for IExternalDeserializer implementation ##class IExternalDeserializer_Impl(object): ## def ReadObject(self, riid, pProps): ## u'Deserialize an object. riid references an interface to use. If interface is not supported, E_NOTIMPL is returned.' ## #return ppUnk ## class ITime(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Time.' _iid_ = GUID('{66810D21-8DE0-44EE-B26E-465AC09F161F}') _idlflags_ = ['oleautomation'] class ITime2(ITime): _case_insensitive_ = True u'Provides access to members that control the Time.' _iid_ = GUID('{30EAE8E1-26B2-4E57-A3F2-8AE7C7DB2455}') _idlflags_ = ['oleautomation'] class ITimeReference(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Time Reference.' _iid_ = GUID('{F6CBA4A3-BC48-47BC-9F15-2A561B9E6C71}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriIntegerTimeFormat' esriITFYearThruSecond = 0 esriITFYearThruMinute = 1 esriITFYearThruHour = 2 esriITFYearThruDay = 3 esriITFYearThruMonth = 4 esriITFYearOnly = 5 esriIntegerTimeFormat = c_int # enum class _WKSDateTime(Structure): pass WKSDateTime = _WKSDateTime ITime._methods_ = [ COMMETHOD(['propget', helpstring(u"The time's gregorian year.")], HRESULT, 'Year', ( ['retval', 'out'], POINTER(c_short), 'Year' )), COMMETHOD(['propput', helpstring(u"The time's gregorian year.")], HRESULT, 'Year', ( ['in'], c_short, 'Year' )), COMMETHOD(['propget', helpstring(u"The time's gregorian month.")], HRESULT, 'Month', ( ['retval', 'out'], POINTER(c_short), 'Month' )), COMMETHOD(['propput', helpstring(u"The time's gregorian month.")], HRESULT, 'Month', ( ['in'], c_short, 'Month' )), COMMETHOD(['propget', helpstring(u"The time's gregorian day.")], HRESULT, 'Day', ( ['retval', 'out'], POINTER(c_short), 'Day' )), COMMETHOD(['propput', helpstring(u"The time's gregorian day.")], HRESULT, 'Day', ( ['in'], c_short, 'Day' )), COMMETHOD(['propget', helpstring(u"The time's hour.")], HRESULT, 'Hour', ( ['retval', 'out'], POINTER(c_short), 'Hour' )), COMMETHOD(['propput', helpstring(u"The time's hour.")], HRESULT, 'Hour', ( ['in'], c_short, 'Hour' )), COMMETHOD(['propget', helpstring(u"The time's minute.")], HRESULT, 'Minute', ( ['retval', 'out'], POINTER(c_short), 'Minute' )), COMMETHOD(['propput', helpstring(u"The time's minute.")], HRESULT, 'Minute', ( ['in'], c_short, 'Minute' )), COMMETHOD(['propget', helpstring(u"The time's second.")], HRESULT, 'Second', ( ['retval', 'out'], POINTER(c_short), 'Second' )), COMMETHOD(['propput', helpstring(u"The time's second.")], HRESULT, 'Second', ( ['in'], c_short, 'Second' )), COMMETHOD(['propget', helpstring(u"The time's nanoseconds.")], HRESULT, 'Nanoseconds', ( ['retval', 'out'], POINTER(c_int), 'Nanoseconds' )), COMMETHOD(['propput', helpstring(u"The time's nanoseconds.")], HRESULT, 'Nanoseconds', ( ['in'], c_int, 'Nanoseconds' )), COMMETHOD([helpstring(u"The Time's date portion as a julian (Julius Scaliger) day number. Corresponds to the Year, Month, and Day properties.")], HRESULT, 'QueryJulianDayNumber', ( ['retval', 'out'], POINTER(c_int), 'julianDayNumber' )), COMMETHOD([helpstring(u"The Time's date portion as a julian (Julius Scaliger) day number. Corresponds to the Year, Month, and Day properties.")], HRESULT, 'SetJulianDayNumber', ( ['in'], c_int, 'julianDayNumber' )), COMMETHOD([helpstring(u"The time's time portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.")], HRESULT, 'QueryDayFraction', ( ['retval', 'out'], POINTER(c_double), 'dayFraction' )), COMMETHOD([helpstring(u"The time's time portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.")], HRESULT, 'SetDayFraction', ( ['in'], c_double, 'dayFraction' )), COMMETHOD([helpstring(u"The time's time portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.")], HRESULT, 'QueryNanosecondsSinceMidnight', ( ['retval', 'out'], POINTER(c_longlong), 'nanosecondsSinceMidnight' )), COMMETHOD([helpstring(u"The time's time portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties.")], HRESULT, 'SetNanosecondsSinceMidnight', ( ['in'], c_longlong, 'nanosecondsSinceMidnight' )), COMMETHOD([helpstring(u'Subtracts a given time, and returns the time duration result.')], HRESULT, 'SubtractTime', ( ['in'], POINTER(ITime), 'Time' ), ( ['retval', 'out'], POINTER(POINTER(ITimeDuration)), 'TimeDuration' )), COMMETHOD([helpstring(u'Adjust the day value, to the last day in the current month and year.')], HRESULT, 'SnapToEndOfMonth'), COMMETHOD([helpstring(u'Converts the time from local (to this machine) time value to Coordinated Universal Time (UTC).')], HRESULT, 'ToUTC'), COMMETHOD([helpstring(u'Converts the time from Coordinated Universal Time (UTC) value to local (to this machine) time.')], HRESULT, 'ToLocal'), COMMETHOD([helpstring(u'Obtains the time as a string, based on the given time string format.')], HRESULT, 'QueryTimeString', ( ['in'], esriTimeStringFormat, 'timeStringFormat' ), ( ['retval', 'out'], POINTER(BSTR), 'timeString' )), COMMETHOD([helpstring(u'Writes the time from a string, based on the given time string format.')], HRESULT, 'SetFromTimeString', ( ['in'], esriTimeStringFormat, 'timeStringFormat' ), ( ['in'], BSTR, 'timeString' )), COMMETHOD([helpstring(u'Obtains the time as a string, based on the current locale.')], HRESULT, 'QueryTimeStringCurrentLocale', ( ['in'], esriTimeLocaleFormat, 'timeLocaleFormat' ), ( ['retval', 'out'], POINTER(BSTR), 'timeString' )), COMMETHOD([helpstring(u'Obtains the time from a string, based on the current locale.')], HRESULT, 'SetFromTimeStringCurrentLocale', ( ['in'], esriTimeLocaleFormat, 'timeLocaleFormat' ), ( ['in'], BSTR, 'timeString' )), COMMETHOD([helpstring(u'Obtains the time as a string, based on the given custom time string format, and locale properties.')], HRESULT, 'QueryTimeStringCustom', ( ['in'], BSTR, 'timeStringFormat' ), ( ['in'], c_int, 'LocaleID' ), ( ['in'], BSTR, 'amSymbol' ), ( ['in'], BSTR, 'pmSymbol' ), ( ['retval', 'out'], POINTER(BSTR), 'timeString' )), COMMETHOD([helpstring(u'Writes the time from a string, based on the given custom time string formats, and locale properties.')], HRESULT, 'SetFromTimeStringCustom', ( ['in'], BSTR, 'timeStringFormat' ), ( ['in'], c_int, 'LocaleID' ), ( ['in'], BSTR, 'amSymbol' ), ( ['in'], BSTR, 'pmSymbol' ), ( ['in'], BSTR, 'timeString' )), COMMETHOD([helpstring(u'Obtains the time as an XML time string.')], HRESULT, 'QueryXMLTimeString', ( ['in'], POINTER(ITimeReference), 'TimeReference' ), ( ['retval', 'out'], POINTER(BSTR), 'xmlTimeString' )), COMMETHOD([helpstring(u'Writes the time from an XML time string.')], HRESULT, 'SetFromXMLTimeString', ( ['in'], BSTR, 'xmlTimeString' ), ( ['retval', 'out'], POINTER(c_int), 'timeZoneBiasFromUTC' )), COMMETHOD([helpstring(u'Obtains the time as an integer time.')], HRESULT, 'QueryIntegerTime', ( ['in'], esriIntegerTimeFormat, 'integerTimeFormat' ), ( ['retval', 'out'], POINTER(c_longlong), 'integerTime' )), COMMETHOD([helpstring(u'Writes the time from an integer time.')], HRESULT, 'SetFromIntegerTime', ( ['in'], esriIntegerTimeFormat, 'integerTimeFormat' ), ( ['in'], c_longlong, 'integerTime' )), COMMETHOD([helpstring(u'Writes the time from a variant object.')], HRESULT, 'SetFromObject', ( ['in'], VARIANT, 'Object' )), COMMETHOD([helpstring(u'Obtains the time as an OLE automation date object.')], HRESULT, 'QueryOleTime', ( ['retval', 'out'], POINTER(c_double), 'oleTime' )), COMMETHOD([helpstring(u'Writes the time from an OLE automation date object.')], HRESULT, 'SetFromOleTime', ( ['in'], c_double, 'oleTime' )), COMMETHOD([helpstring(u'Obtains the time as a gregorian date and time.')], HRESULT, 'QueryGregorianTime', ( ['retval', 'out'], POINTER(WKSDateTime), 'gregorianTime' )), COMMETHOD([helpstring(u'Obtains the time from a given gregorian date and time value.')], HRESULT, 'SetFromGregorianTime', ( ['in'], POINTER(WKSDateTime), 'gregorianTime' )), COMMETHOD([helpstring(u'Obtains the time as the number of ticks since January 1, 0001 AD (Anno Domini).')], HRESULT, 'QueryTicks', ( ['retval', 'out'], POINTER(c_longlong), 'ticks' )), COMMETHOD([helpstring(u'Writes the time from a given number of ticks since January 1, 0001 AD (Anno Domini) value.')], HRESULT, 'SetFromTicks', ( ['in'], c_longlong, 'ticks' )), COMMETHOD([helpstring(u'Writes the time to the current date and time on this machine, expressed as the local time.')], HRESULT, 'SetFromCurrentLocalTime'), COMMETHOD([helpstring(u'Writes the time to the current date and time on this machine, expressed as the Coordinated Universal Time (UTC).')], HRESULT, 'SetFromCurrentUtcTime'), COMMETHOD([helpstring(u"Compares this time to the other time. Returns -1 if this time's value is less, 1 if greater, and 0 otherwise.")], HRESULT, 'Compare', ( ['in'], POINTER(ITime), 'otherTime' ), ( ['retval', 'out'], POINTER(c_int), 'Result' )), ] ################################################################ ## code template for ITime implementation ##class ITime_Impl(object): ## def SetFromObject(self, Object): ## u'Writes the time from a variant object.' ## #return ## ## def ToLocal(self): ## u'Converts the time from Coordinated Universal Time (UTC) value to local (to this machine) time.' ## #return ## ## def QueryGregorianTime(self): ## u'Obtains the time as a gregorian date and time.' ## #return gregorianTime ## ## def SnapToEndOfMonth(self): ## u'Adjust the day value, to the last day in the current month and year.' ## #return ## ## def QueryIntegerTime(self, integerTimeFormat): ## u'Obtains the time as an integer time.' ## #return integerTime ## ## def QueryTimeStringCustom(self, timeStringFormat, LocaleID, amSymbol, pmSymbol): ## u'Obtains the time as a string, based on the given custom time string format, and locale properties.' ## #return timeString ## ## def QueryTimeString(self, timeStringFormat): ## u'Obtains the time as a string, based on the given time string format.' ## #return timeString ## ## def SetFromTimeString(self, timeStringFormat, timeString): ## u'Writes the time from a string, based on the given time string format.' ## #return ## ## def QueryJulianDayNumber(self): ## u"The Time's date portion as a julian (Julius Scaliger) day number. Corresponds to the Year, Month, and Day properties." ## #return julianDayNumber ## ## def SetFromTimeStringCustom(self, timeStringFormat, LocaleID, amSymbol, pmSymbol, timeString): ## u'Writes the time from a string, based on the given custom time string formats, and locale properties.' ## #return ## ## def SetFromGregorianTime(self, gregorianTime): ## u'Obtains the time from a given gregorian date and time value.' ## #return ## ## def ToUTC(self): ## u'Converts the time from local (to this machine) time value to Coordinated Universal Time (UTC).' ## #return ## ## def QueryDayFraction(self): ## u"The time's time portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties." ## #return dayFraction ## ## def _get(self): ## u"The time's gregorian day." ## #return Day ## def _set(self, Day): ## u"The time's gregorian day." ## Day = property(_get, _set, doc = _set.__doc__) ## ## def SetNanosecondsSinceMidnight(self, nanosecondsSinceMidnight): ## u"The time's time portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties." ## #return ## ## def SetJulianDayNumber(self, julianDayNumber): ## u"The Time's date portion as a julian (Julius Scaliger) day number. Corresponds to the Year, Month, and Day properties." ## #return ## ## def QueryXMLTimeString(self, TimeReference): ## u'Obtains the time as an XML time string.' ## #return xmlTimeString ## ## def _get(self): ## u"The time's hour." ## #return Hour ## def _set(self, Hour): ## u"The time's hour." ## Hour = property(_get, _set, doc = _set.__doc__) ## ## def QueryOleTime(self): ## u'Obtains the time as an OLE automation date object.' ## #return oleTime ## ## def SetFromXMLTimeString(self, xmlTimeString): ## u'Writes the time from an XML time string.' ## #return timeZoneBiasFromUTC ## ## def QueryNanosecondsSinceMidnight(self): ## u"The time's time portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties." ## #return nanosecondsSinceMidnight ## ## def Compare(self, otherTime): ## u"Compares this time to the other time. Returns -1 if this time's value is less, 1 if greater, and 0 otherwise." ## #return Result ## ## def SetDayFraction(self, dayFraction): ## u"The time's time portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties." ## #return ## ## def SubtractTime(self, Time): ## u'Subtracts a given time, and returns the time duration result.' ## #return TimeDuration ## ## def SetFromIntegerTime(self, integerTimeFormat, integerTime): ## u'Writes the time from an integer time.' ## #return ## ## def SetFromTimeStringCurrentLocale(self, timeLocaleFormat, timeString): ## u'Obtains the time from a string, based on the current locale.' ## #return ## ## def SetFromTicks(self, ticks): ## u'Writes the time from a given number of ticks since January 1, 0001 AD (Anno Domini) value.' ## #return ## ## def QueryTimeStringCurrentLocale(self, timeLocaleFormat): ## u'Obtains the time as a string, based on the current locale.' ## #return timeString ## ## def _get(self): ## u"The time's nanoseconds." ## #return Nanoseconds ## def _set(self, Nanoseconds): ## u"The time's nanoseconds." ## Nanoseconds = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The time's gregorian month." ## #return Month ## def _set(self, Month): ## u"The time's gregorian month." ## Month = property(_get, _set, doc = _set.__doc__) ## ## def QueryTicks(self): ## u'Obtains the time as the number of ticks since January 1, 0001 AD (Anno Domini).' ## #return ticks ## ## def SetFromCurrentUtcTime(self): ## u'Writes the time to the current date and time on this machine, expressed as the Coordinated Universal Time (UTC).' ## #return ## ## def _get(self): ## u"The time's second." ## #return Second ## def _set(self, Second): ## u"The time's second." ## Second = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The time's minute." ## #return Minute ## def _set(self, Minute): ## u"The time's minute." ## Minute = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The time's gregorian year." ## #return Year ## def _set(self, Year): ## u"The time's gregorian year." ## Year = property(_get, _set, doc = _set.__doc__) ## ## def SetFromCurrentLocalTime(self): ## u'Writes the time to the current date and time on this machine, expressed as the local time.' ## #return ## ## def SetFromOleTime(self, oleTime): ## u'Writes the time from an OLE automation date object.' ## #return ## ITime2._methods_ = [ COMMETHOD(['propget', helpstring(u'The day number of the week, starting with 1 for Sunday.')], HRESULT, 'DayOfWeek', ( ['retval', 'out'], POINTER(c_short), 'dayNumber' )), COMMETHOD(['propget', helpstring(u'The day number of the year, starting with 1 for the first day of the year.')], HRESULT, 'DayOfYear', ( ['retval', 'out'], POINTER(c_short), 'dayNumber' )), COMMETHOD(['propget', helpstring(u'The week number of the month, starting with 1 for the first week of the month. Use startDayOfWeek = 1 to specify that weeks start on Sunday, and 2 on Monday.')], HRESULT, 'WeekOfMonth', ( ['in'], c_short, 'startDayOfWeek' ), ( ['retval', 'out'], POINTER(c_short), 'weekNumber' )), COMMETHOD(['propget', helpstring(u'The week number of the year, starting with 1 for first week of the year. Use startDayOfWeek = 1 to specify that weeks start on Sunday, and 2 on Monday.')], HRESULT, 'WeekOfYear', ( ['in'], c_short, 'startDayOfWeek' ), ( ['retval', 'out'], POINTER(c_short), 'weekNumber' )), ] ################################################################ ## code template for ITime2 implementation ##class ITime2_Impl(object): ## @property ## def DayOfWeek(self): ## u'The day number of the week, starting with 1 for Sunday.' ## #return dayNumber ## ## @property ## def DayOfYear(self): ## u'The day number of the year, starting with 1 for the first day of the year.' ## #return dayNumber ## ## @property ## def WeekOfMonth(self, startDayOfWeek): ## u'The week number of the month, starting with 1 for the first week of the month. Use startDayOfWeek = 1 to specify that weeks start on Sunday, and 2 on Monday.' ## #return weekNumber ## ## @property ## def WeekOfYear(self, startDayOfWeek): ## u'The week number of the year, starting with 1 for first week of the year. Use startDayOfWeek = 1 to specify that weeks start on Sunday, and 2 on Monday.' ## #return weekNumber ## class IArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control a simple array of objects.' _iid_ = GUID('{AAFB54D9-AAF8-11D2-87F3-0000F8751720}') _idlflags_ = ['oleautomation'] IArray._methods_ = [ COMMETHOD(['propget', helpstring(u'The element count of the array.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'Searches for the object in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'unk' )), COMMETHOD([helpstring(u'Adds an object to the array.')], HRESULT, 'Add', ( ['in'], POINTER(IUnknown), 'unk' )), COMMETHOD([helpstring(u'Adds an object to the array at the specified index.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], POINTER(IUnknown), 'unk' )), COMMETHOD([helpstring(u'Removes an object from the array.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all objects from the array.')], HRESULT, 'RemoveAll'), ] ################################################################ ## code template for IArray implementation ##class IArray_Impl(object): ## @property ## def Count(self): ## u'The element count of the array.' ## #return Count ## ## def Insert(self, index, unk): ## u'Adds an object to the array at the specified index.' ## #return ## ## def Remove(self, index): ## u'Removes an object from the array.' ## #return ## ## @property ## def Element(self, index): ## u'Searches for the object in the array.' ## #return unk ## ## def RemoveAll(self): ## u'Removes all objects from the array.' ## #return ## ## def Add(self, unk): ## u'Adds an object to the array.' ## #return ## class IDoubleArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control double arrays.' _iid_ = GUID('{60C06CA6-E09E-11D2-9F7B-00C04F8ECE27}') _idlflags_ = ['oleautomation'] IDoubleArray._methods_ = [ COMMETHOD(['propget', helpstring(u'The number of elements in the array.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'pCount' )), COMMETHOD([helpstring(u'Removes an element from the array.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all elements from the array.')], HRESULT, 'RemoveAll'), COMMETHOD(['propget', helpstring(u'An element from the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_double), 'pElement' )), COMMETHOD(['propput', helpstring(u'An element from the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['in'], c_double, 'pElement' )), COMMETHOD([helpstring(u'Adds an element to the array.')], HRESULT, 'Add', ( ['in'], c_double, 'Element' )), COMMETHOD([helpstring(u'Inserts an element to the array.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], c_double, 'Element' )), ] ################################################################ ## code template for IDoubleArray implementation ##class IDoubleArray_Impl(object): ## @property ## def Count(self): ## u'The number of elements in the array.' ## #return pCount ## ## def Insert(self, index, Element): ## u'Inserts an element to the array.' ## #return ## ## def Remove(self, index): ## u'Removes an element from the array.' ## #return ## ## def _get(self, index): ## u'An element from the array.' ## #return pElement ## def _set(self, index, pElement): ## u'An element from the array.' ## Element = property(_get, _set, doc = _set.__doc__) ## ## def RemoveAll(self): ## u'Removes all elements from the array.' ## #return ## ## def Add(self, Element): ## u'Adds an element to the array.' ## #return ## class JobMessage(CoClass): u'The JobMessage object which defines properties and behaviour og job messages.' _reg_clsid_ = GUID('{512E6A8A-3C50-4DEC-B681-7254FEDE4109}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IPersistStream(IPersist): _case_insensitive_ = True _iid_ = GUID('{00000109-0000-0000-C000-000000000046}') _idlflags_ = [] JobMessage._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IJobMessage, IXMLSerialize, IPersistStream] class ITimeZoneInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the time zone information.' _iid_ = GUID('{0F8FD6AB-CE6D-4BB2-A5EF-2F6035E304C5}') _idlflags_ = ['oleautomation'] ITimeReference._methods_ = [ COMMETHOD(['propget', helpstring(u'The time zone information associated with the time reference.')], HRESULT, 'TimeZoneInfo', ( ['retval', 'out'], POINTER(POINTER(ITimeZoneInfo)), 'timeZone' )), COMMETHOD(['propputref', helpstring(u'The time zone information associated with the time reference.')], HRESULT, 'TimeZoneInfo', ( ['in'], POINTER(ITimeZoneInfo), 'timeZone' )), COMMETHOD(['propget', helpstring(u'Indicates whether the time reference respects daylight saving time.')], HRESULT, 'RespectsDaylightSavingTime', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'RespectsDaylightSavingTime' )), COMMETHOD(['propput', helpstring(u'Indicates whether the time reference respects daylight saving time.')], HRESULT, 'RespectsDaylightSavingTime', ( ['in'], VARIANT_BOOL, 'RespectsDaylightSavingTime' )), COMMETHOD(['propget', helpstring(u'Indicates whether the time reference respects dynamic adjustment rules.')], HRESULT, 'RespectsDynamicAdjustmentRules', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'RespectsDynamicAdjustmentRules' )), COMMETHOD(['propput', helpstring(u'Indicates whether the time reference respects dynamic adjustment rules.')], HRESULT, 'RespectsDynamicAdjustmentRules', ( ['in'], VARIANT_BOOL, 'RespectsDynamicAdjustmentRules' )), COMMETHOD([helpstring(u'Projects a given time, from this time reference, to a given time reference.')], HRESULT, 'Project', ( ['in'], POINTER(ITime), 'Time' ), ( ['in'], POINTER(ITimeReference), 'otherTimeReference' )), COMMETHOD([helpstring(u'Projects a given time, from this time reference, to UTC.')], HRESULT, 'ProjectToUTC', ( ['in'], POINTER(ITime), 'Time' )), COMMETHOD([helpstring(u'Projects a given time, from UTC to this time reference.')], HRESULT, 'ProjectFromUTC', ( ['in'], POINTER(ITime), 'Time' )), ] ################################################################ ## code template for ITimeReference implementation ##class ITimeReference_Impl(object): ## def _get(self): ## u'Indicates whether the time reference respects dynamic adjustment rules.' ## #return RespectsDynamicAdjustmentRules ## def _set(self, RespectsDynamicAdjustmentRules): ## u'Indicates whether the time reference respects dynamic adjustment rules.' ## RespectsDynamicAdjustmentRules = property(_get, _set, doc = _set.__doc__) ## ## def ProjectFromUTC(self, Time): ## u'Projects a given time, from UTC to this time reference.' ## #return ## ## def ProjectToUTC(self, Time): ## u'Projects a given time, from this time reference, to UTC.' ## #return ## ## def Project(self, Time, otherTimeReference): ## u'Projects a given time, from this time reference, to a given time reference.' ## #return ## ## def TimeZoneInfo(self, timeZone): ## u'The time zone information associated with the time reference.' ## #return ## ## def _get(self): ## u'Indicates whether the time reference respects daylight saving time.' ## #return RespectsDaylightSavingTime ## def _set(self, RespectsDaylightSavingTime): ## u'Indicates whether the time reference respects daylight saving time.' ## RespectsDaylightSavingTime = property(_get, _set, doc = _set.__doc__) ## IAMFWriter._methods_ = [ COMMETHOD([helpstring(u'Specifies output AMF stream.')], HRESULT, 'WriteTo', ( ['in'], POINTER(IStream), 'outputStream' )), COMMETHOD(['propget', helpstring(u'Obtains underlying stream.')], HRESULT, 'Stream', ( ['retval', 'out'], POINTER(POINTER(IStream)), 'ppStream' )), COMMETHOD([helpstring(u'Writes undefined value.')], HRESULT, 'WriteAMF3Undefined'), COMMETHOD([helpstring(u'Writes null value.')], HRESULT, 'WriteAMF3Null'), COMMETHOD([helpstring(u'Writes boolean value.')], HRESULT, 'WriteAMF3Bool', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Writes integer (32-bit) value.')], HRESULT, 'WriteAMF3Int', ( ['in'], c_int, 'Value' )), COMMETHOD([helpstring(u'Writes double (64-bit) value.')], HRESULT, 'WriteAMF3Double', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Writes string value. Returns string reference index.')], HRESULT, 'WriteAMF3String', ( ['in'], BSTR, 'Value' ), ( ['out'], POINTER(c_int), 'string_ref' )), COMMETHOD([helpstring(u'Writes string value by reference.')], HRESULT, 'WriteAMF3StringRef', ( ['in'], c_int, 'string_ref' )), COMMETHOD([helpstring(u'Writes XML document. Returns object reference index.')], HRESULT, 'WriteAMF3XmlDoc', ( ['in'], BSTR, 'Value' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Writes XML document by reference.')], HRESULT, 'WriteAMF3XmlDocRef', ( ['in'], c_int, 'obj_ref' )), COMMETHOD([helpstring(u'Writes XML. Returns object reference index.')], HRESULT, 'WriteAMF3Xml', ( ['in'], BSTR, 'Value' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Writes XML by reference.')], HRESULT, 'WriteAMF3XmlRef', ( ['in'], c_int, 'obj_ref' )), COMMETHOD([helpstring(u'Writes date. Returns object reference index.')], HRESULT, 'WriteAMF3Date', ( ['in'], c_double, 'Value' ), ( ['in'], VARIANT_BOOL, 'asJsonNumber' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Writes date by reference. Important: do not use this method if you send dates as JSON numbers, references will be incorrect.')], HRESULT, 'WriteAMF3DateRef', ( ['in'], c_int, 'obj_ref' )), COMMETHOD([helpstring(u'Writes byte array. Returns object reference index. Note that this is not an AMF3 array but another type - AMF3 byte array.')], HRESULT, 'WriteAMF3ByteArray', ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'ppArray' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Writes byte array by reference. Note that this is not an AMF3 array but another type - AMF3 byte array.')], HRESULT, 'WriteAMF3ByteArrayRef', ( ['in'], c_int, 'obj_ref' )), COMMETHOD([helpstring(u'Writes value types (excluding array and object), may return string or object reference index. If reference is not applicable, value_ref is set to -1.')], HRESULT, 'WriteAMF3Variant', ( ['in'], VARIANT, 'Value' ), ( ['out'], POINTER(c_int), 'value_ref' )), COMMETHOD([helpstring(u'Starts writing of array. Returns object reference index.')], HRESULT, 'StartAMF3Array', ( ['in'], c_int, 'denseCount' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Switches from writing of associative portion of an array to dense portion.')], HRESULT, 'WriteAMF3ArrayDenseMarker'), COMMETHOD([helpstring(u'Finishes writing an array.')], HRESULT, 'EndAMF3Array'), COMMETHOD([helpstring(u'Writes an array by reference.')], HRESULT, 'WriteAMF3ArrayRef', ( ['in'], c_int, 'obj_ref' )), COMMETHOD([helpstring(u'Starst writing a custom object. Contents of this kind of objects are user-defined.')], HRESULT, 'StartAMF3CustomObject', ( ['in'], BSTR, 'classname' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Starts writing an object, sends traits by reference. Returns object reference index.')], HRESULT, 'StartAMF3Object', ( ['in'], c_int, 'traits_ref' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Start writing an object with traits. Returns trait reference index end object reference index.')], HRESULT, 'StartAMF3ObjectWithTraits', ( ['in'], BSTR, 'classname' ), ( ['in'], c_int, 'MemberCount' ), ( ['in'], VARIANT_BOOL, 'dynamic' ), ( ['out'], POINTER(c_int), 'traits_ref' ), ( ['out'], POINTER(c_int), 'obj_ref' )), COMMETHOD([helpstring(u'Call this method to finish writing object traits and switch to writing members.')], HRESULT, 'EndAMF3ObjectTraits'), COMMETHOD([helpstring(u'Finishes writing object.')], HRESULT, 'EndAMF3Object'), COMMETHOD([helpstring(u'Writes object by reference.')], HRESULT, 'WriteAMF3ObjectRef', ( ['in'], c_int, 'obj_ref' )), COMMETHOD([helpstring(u'This method is required if you want to write member names in traits.')], HRESULT, 'WriteAMF3_UTF8', ( ['in'], BSTR, 'Value' ), ( ['out'], POINTER(c_int), 'string_ref' )), COMMETHOD([helpstring(u'This method is required if you want to write member names in traits by reference.')], HRESULT, 'WriteAMF3_UTF8Ref', ( ['in'], c_int, 'string_ref' )), COMMETHOD([helpstring(u"Writes a byte. AMF0 format only. Don't use this method for AMF3 objects.")], HRESULT, 'WriteU8', ( ['in'], c_ubyte, 'b' )), COMMETHOD([helpstring(u"Writes short integer. AMF0 format only. Don't use this method for AMF3 objects.")], HRESULT, 'WriteU16', ( ['in'], c_short, 'b' )), COMMETHOD([helpstring(u"Writes an integer. AMF0 format only. Don't use this method for AMF3 objects.")], HRESULT, 'WriteU32', ( ['in'], c_int, 'b' )), COMMETHOD([helpstring(u"This method is used to write AMF0 strings. AMF0 format only. Don't use this method for AMF3 objects.")], HRESULT, 'WriteUTF8', ( ['in'], BSTR, 'Value' )), COMMETHOD([helpstring(u'Clones IAMFWriter. Useful when you want to preserve traits and object, string and trait references.')], HRESULT, 'GetCopy', ( ['out'], POINTER(POINTER(IAMFWriter)), 'ppOutWriter' )), ] ################################################################ ## code template for IAMFWriter implementation ##class IAMFWriter_Impl(object): ## def WriteU8(self, b): ## u"Writes a byte. AMF0 format only. Don't use this method for AMF3 objects." ## #return ## ## def StartAMF3ObjectWithTraits(self, classname, MemberCount, dynamic): ## u'Start writing an object with traits. Returns trait reference index end object reference index.' ## #return traits_ref, obj_ref ## ## def WriteU16(self, b): ## u"Writes short integer. AMF0 format only. Don't use this method for AMF3 objects." ## #return ## ## def WriteUTF8(self, Value): ## u"This method is used to write AMF0 strings. AMF0 format only. Don't use this method for AMF3 objects." ## #return ## ## def WriteU32(self, b): ## u"Writes an integer. AMF0 format only. Don't use this method for AMF3 objects." ## #return ## ## def StartAMF3CustomObject(self, classname): ## u'Starst writing a custom object. Contents of this kind of objects are user-defined.' ## #return obj_ref ## ## def WriteAMF3DateRef(self, obj_ref): ## u'Writes date by reference. Important: do not use this method if you send dates as JSON numbers, references will be incorrect.' ## #return ## ## def WriteTo(self, outputStream): ## u'Specifies output AMF stream.' ## #return ## ## def WriteAMF3Undefined(self): ## u'Writes undefined value.' ## #return ## ## def EndAMF3ObjectTraits(self): ## u'Call this method to finish writing object traits and switch to writing members.' ## #return ## ## def WriteAMF3Date(self, Value, asJsonNumber): ## u'Writes date. Returns object reference index.' ## #return obj_ref ## ## def WriteAMF3Null(self): ## u'Writes null value.' ## #return ## ## def WriteAMF3String(self, Value): ## u'Writes string value. Returns string reference index.' ## #return string_ref ## ## def WriteAMF3ByteArrayRef(self, obj_ref): ## u'Writes byte array by reference. Note that this is not an AMF3 array but another type - AMF3 byte array.' ## #return ## ## def GetCopy(self): ## u'Clones IAMFWriter. Useful when you want to preserve traits and object, string and trait references.' ## #return ppOutWriter ## ## def WriteAMF3ByteArray(self, ppArray): ## u'Writes byte array. Returns object reference index. Note that this is not an AMF3 array but another type - AMF3 byte array.' ## #return obj_ref ## ## def WriteAMF3Bool(self, Value): ## u'Writes boolean value.' ## #return ## ## def WriteAMF3Variant(self, Value): ## u'Writes value types (excluding array and object), may return string or object reference index. If reference is not applicable, value_ref is set to -1.' ## #return value_ref ## ## def WriteAMF3Int(self, Value): ## u'Writes integer (32-bit) value.' ## #return ## ## def WriteAMF3XmlRef(self, obj_ref): ## u'Writes XML by reference.' ## #return ## ## def WriteAMF3ArrayDenseMarker(self): ## u'Switches from writing of associative portion of an array to dense portion.' ## #return ## ## def WriteAMF3_UTF8Ref(self, string_ref): ## u'This method is required if you want to write member names in traits by reference.' ## #return ## ## def EndAMF3Array(self): ## u'Finishes writing an array.' ## #return ## ## def WriteAMF3XmlDoc(self, Value): ## u'Writes XML document. Returns object reference index.' ## #return obj_ref ## ## @property ## def Stream(self): ## u'Obtains underlying stream.' ## #return ppStream ## ## def WriteAMF3ArrayRef(self, obj_ref): ## u'Writes an array by reference.' ## #return ## ## def EndAMF3Object(self): ## u'Finishes writing object.' ## #return ## ## def WriteAMF3Xml(self, Value): ## u'Writes XML. Returns object reference index.' ## #return obj_ref ## ## def WriteAMF3ObjectRef(self, obj_ref): ## u'Writes object by reference.' ## #return ## ## def StartAMF3Array(self, denseCount): ## u'Starts writing of array. Returns object reference index.' ## #return obj_ref ## ## def WriteAMF3StringRef(self, string_ref): ## u'Writes string value by reference.' ## #return ## ## def StartAMF3Object(self, traits_ref): ## u'Starts writing an object, sends traits by reference. Returns object reference index.' ## #return obj_ref ## ## def WriteAMF3XmlDocRef(self, obj_ref): ## u'Writes XML document by reference.' ## #return ## ## def WriteAMF3_UTF8(self, Value): ## u'This method is required if you want to write member names in traits.' ## #return string_ref ## ## def WriteAMF3Double(self, Value): ## u'Writes double (64-bit) value.' ## #return ## # values for enumeration 'xmlSerializeError' XML_SERIALIZE_E_UNKNOWN = -2147209115 XML_SERIALIZE_E_INVALIDENUMVALUE = -2147209114 XML_SERIALIZE_E_CONVFAILED = -2147209113 XML_SERIALIZE_E_CANT_MAP_XMLTYPE_TO_CLASS = -2147209112 xmlSerializeError = c_int # enum class _TimeZoneTransitionTime(Structure): pass TimeZoneTransitionTime = _TimeZoneTransitionTime class ITimeValue(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Time Value.' _iid_ = GUID('{4CE86E17-E819-4C72-BD98-E55AE59B0317}') _idlflags_ = ['oleautomation'] ITimeValue._methods_ = [ COMMETHOD(['propget', helpstring(u'The time reference associated with the time value.')], HRESULT, 'TimeReference', ( ['retval', 'out'], POINTER(POINTER(ITimeReference)), 'TimeReference' )), COMMETHOD(['propputref', helpstring(u'The time reference associated with the time value.')], HRESULT, 'TimeReference', ( ['in'], POINTER(ITimeReference), 'TimeReference' )), COMMETHOD([helpstring(u'Projects this time value from its time reference, to a given time reference.')], HRESULT, 'Project', ( ['in'], POINTER(ITimeReference), 'TimeReference' )), COMMETHOD([helpstring(u'Projects this time value from its time reference, to UTC.')], HRESULT, 'ProjectToUTC'), COMMETHOD([helpstring(u'Projects this time value from UTC, to its time reference.')], HRESULT, 'ProjectFromUTC'), ] ################################################################ ## code template for ITimeValue implementation ##class ITimeValue_Impl(object): ## def Project(self, TimeReference): ## u'Projects this time value from its time reference, to a given time reference.' ## #return ## ## def ProjectFromUTC(self): ## u'Projects this time value from UTC, to its time reference.' ## #return ## ## def ProjectToUTC(self): ## u'Projects this time value from its time reference, to UTC.' ## #return ## ## def TimeReference(self, TimeReference): ## u'The time reference associated with the time value.' ## #return ## class IEnumRESTOperation(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'REST operation enumerator.' _iid_ = GUID('{DAF01FBE-A62E-4924-86B3-E257006A92ED}') _idlflags_ = ['oleautomation'] class IRESTOperation(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'REST operation metadata object.' _iid_ = GUID('{2853CA57-AE88-4B5D-ADA3-4CF6F938A0E0}') _idlflags_ = ['oleautomation'] IEnumRESTOperation._methods_ = [ COMMETHOD([helpstring(u'Resets the enumerator')], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Gets next item.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(POINTER(IRESTOperation)), 'ppOp' )), ] ################################################################ ## code template for IEnumRESTOperation implementation ##class IEnumRESTOperation_Impl(object): ## def Reset(self): ## u'Resets the enumerator' ## #return ## ## def Next(self): ## u'Gets next item.' ## #return ppOp ## class IFileNames2(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to retrieve subsets based on extension.' _iid_ = GUID('{1F1197E3-B3BB-4D9C-B530-923E39EFCE11}') _idlflags_ = ['oleautomation'] class IFileNames(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control an array of filenames.' _iid_ = GUID('{F6ED3377-94F5-11D1-9AB0-080009EC734B}') _idlflags_ = ['oleautomation'] IFileNames2._methods_ = [ COMMETHOD([helpstring(u'Loads the collection with files from the specified path.')], HRESULT, 'LoadFromPath', ( ['in'], BSTR, 'Path' )), COMMETHOD([helpstring(u'Obtains a subset based on a delimited set of extensions.')], HRESULT, 'GetSubset', ( ['in'], BSTR, 'extSet' ), ( ['retval', 'out'], POINTER(POINTER(IFileNames)), 'ppFileNames' )), COMMETHOD([helpstring(u'Obtains a delimited set of extensions contained within the collection.')], HRESULT, 'GetContainedExtensions', ( ['retval', 'out'], POINTER(BSTR), 'extSet' )), COMMETHOD([helpstring(u'Advances the current postion to the specified file if it exists.')], HRESULT, 'Find', ( ['in'], BSTR, 'FileName' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pFound' )), ] ################################################################ ## code template for IFileNames2 implementation ##class IFileNames2_Impl(object): ## def Find(self, FileName): ## u'Advances the current postion to the specified file if it exists.' ## #return pFound ## ## def GetSubset(self, extSet): ## u'Obtains a subset based on a delimited set of extensions.' ## #return ppFileNames ## ## def LoadFromPath(self, Path): ## u'Loads the collection with files from the specified path.' ## #return ## ## def GetContainedExtensions(self): ## u'Obtains a delimited set of extensions contained within the collection.' ## #return extSet ## class IProgressor(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that report progress.' _iid_ = GUID('{3141F2F1-38E2-11D1-8809-080009EC732A}') _idlflags_ = ['oleautomation'] class IStepProgressor(IProgressor): _case_insensitive_ = True u'Provides access to members that report progress in stepped increments.' _iid_ = GUID('{CCDAD2C7-8EBC-11D1-8732-0000F8751720}') _idlflags_ = ['oleautomation'] class ICheckProgressor(IStepProgressor): _case_insensitive_ = True u'Provides access to members that report progress in stepped increments with checkmarks.' _iid_ = GUID('{BDE22C32-1113-11D2-A272-080009B6F22B}') _idlflags_ = ['oleautomation'] IProgressor._methods_ = [ COMMETHOD(['propput', helpstring(u'The message displayed by the progressor.')], HRESULT, 'Message', ( ['in'], BSTR, 'Message' )), COMMETHOD(['propget', helpstring(u'The message displayed by the progressor.')], HRESULT, 'Message', ( ['retval', 'out'], POINTER(BSTR), 'Message' )), COMMETHOD([helpstring(u'Shows the progressor.')], HRESULT, 'Show'), COMMETHOD([helpstring(u'Animates or steps the progressor.')], HRESULT, 'Step'), COMMETHOD([helpstring(u'Hides the progressor.')], HRESULT, 'Hide'), ] ################################################################ ## code template for IProgressor implementation ##class IProgressor_Impl(object): ## def _get(self): ## u'The message displayed by the progressor.' ## #return Message ## def _set(self, Message): ## u'The message displayed by the progressor.' ## Message = property(_get, _set, doc = _set.__doc__) ## ## def Hide(self): ## u'Hides the progressor.' ## #return ## ## def Step(self): ## u'Animates or steps the progressor.' ## #return ## ## def Show(self): ## u'Shows the progressor.' ## #return ## IStepProgressor._methods_ = [ COMMETHOD(['propput', helpstring(u'The minimum range of the progression.')], HRESULT, 'MinRange', ( ['in'], c_int, 'MinRange' )), COMMETHOD(['propget', helpstring(u'The minimum range of the progression.')], HRESULT, 'MinRange', ( ['retval', 'out'], POINTER(c_int), 'MinRange' )), COMMETHOD(['propput', helpstring(u'The maximum range of the progression.')], HRESULT, 'MaxRange', ( ['in'], c_int, 'MaxRange' )), COMMETHOD(['propget', helpstring(u'The maximum range of the progression.')], HRESULT, 'MaxRange', ( ['retval', 'out'], POINTER(c_int), 'MaxRange' )), COMMETHOD(['propput', helpstring(u'The step increment of the progression.')], HRESULT, 'StepValue', ( ['in'], c_int, 'Step' )), COMMETHOD(['propget', helpstring(u'The step increment of the progression.')], HRESULT, 'StepValue', ( ['retval', 'out'], POINTER(c_int), 'Step' )), COMMETHOD(['propput', helpstring(u'The current position of the progression.')], HRESULT, 'Position', ( ['in'], c_int, 'Position' )), COMMETHOD(['propget', helpstring(u'The current position of the progression.')], HRESULT, 'Position', ( ['retval', 'out'], POINTER(c_int), 'Position' )), COMMETHOD([helpstring(u'Offsets the position of the progression.')], HRESULT, 'OffsetPosition', ( ['in'], c_int, 'offsetValue' ), ( ['retval', 'out'], POINTER(c_int), 'prevPos' )), ] ################################################################ ## code template for IStepProgressor implementation ##class IStepProgressor_Impl(object): ## def _get(self): ## u'The step increment of the progression.' ## #return Step ## def _set(self, Step): ## u'The step increment of the progression.' ## StepValue = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The maximum range of the progression.' ## #return MaxRange ## def _set(self, MaxRange): ## u'The maximum range of the progression.' ## MaxRange = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The minimum range of the progression.' ## #return MinRange ## def _set(self, MinRange): ## u'The minimum range of the progression.' ## MinRange = property(_get, _set, doc = _set.__doc__) ## ## def OffsetPosition(self, offsetValue): ## u'Offsets the position of the progression.' ## #return prevPos ## ## def _get(self): ## u'The current position of the progression.' ## #return Position ## def _set(self, Position): ## u'The current position of the progression.' ## Position = property(_get, _set, doc = _set.__doc__) ## ICheckProgressor._methods_ = [ COMMETHOD([helpstring(u'Adds a field that a checkmark can be added to.')], HRESULT, 'AddCheck', ( ['in'], c_int, 'index' ), ( ['in'], BSTR, 'msg' )), COMMETHOD([helpstring(u'Displays the checkmark.')], HRESULT, 'ShowCheck', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Hides the checkmark.')], HRESULT, 'HideCheck', ( ['in'], c_int, 'index' )), ] ################################################################ ## code template for ICheckProgressor implementation ##class ICheckProgressor_Impl(object): ## def ShowCheck(self, index): ## u'Displays the checkmark.' ## #return ## ## def HideCheck(self, index): ## u'Hides the checkmark.' ## #return ## ## def AddCheck(self, index, msg): ## u'Adds a field that a checkmark can be added to.' ## #return ## class ITimeZoneRule(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Time Zone Rule.' _iid_ = GUID('{2CBFDCB1-C991-4F68-B5B1-919B1B1E6A25}') _idlflags_ = ['oleautomation'] ITimeZoneInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Time zone Windows ID name.')], HRESULT, 'WindowsID', ( ['retval', 'out'], POINTER(BSTR), 'WindowsID' )), COMMETHOD(['propput', helpstring(u'Time zone Windows ID name.')], HRESULT, 'WindowsID', ( ['in'], BSTR, 'WindowsID' )), COMMETHOD(['propget', helpstring(u'Descriptive display name of the time zone.')], HRESULT, 'DisplayName', ( ['retval', 'out'], POINTER(BSTR), 'DisplayName' )), COMMETHOD(['propput', helpstring(u'Descriptive display name of the time zone.')], HRESULT, 'DisplayName', ( ['in'], BSTR, 'DisplayName' )), COMMETHOD(['propget', helpstring(u'Custom description for the time zone.')], HRESULT, 'CustomDescription', ( ['retval', 'out'], POINTER(BSTR), 'DisplayName' )), COMMETHOD(['propput', helpstring(u'Custom description for the time zone.')], HRESULT, 'CustomDescription', ( ['in'], BSTR, 'DisplayName' )), COMMETHOD(['propget', helpstring(u'The time zone name during daylight time.')], HRESULT, 'DaylightTimeName', ( ['retval', 'out'], POINTER(BSTR), 'DaylightTimeName' )), COMMETHOD(['propput', helpstring(u'The time zone name during daylight time.')], HRESULT, 'DaylightTimeName', ( ['in'], BSTR, 'DaylightTimeName' )), COMMETHOD(['propget', helpstring(u'The time zone name during standard time.')], HRESULT, 'StandardTimeName', ( ['retval', 'out'], POINTER(BSTR), 'StandardTimeName' )), COMMETHOD(['propput', helpstring(u'The time zone name during standard time.')], HRESULT, 'StandardTimeName', ( ['in'], BSTR, 'StandardTimeName' )), COMMETHOD(['propget', helpstring(u'The default time zone adjustment rule.')], HRESULT, 'DefaultRule', ( ['retval', 'out'], POINTER(POINTER(ITimeZoneRule)), 'defaultTimeZoneRule' )), COMMETHOD(['propput', helpstring(u'The default time zone adjustment rule.')], HRESULT, 'DefaultRule', ( ['in'], POINTER(ITimeZoneRule), 'defaultTimeZoneRule' )), COMMETHOD(['propget', helpstring(u'Number of dynamic adjustment rules for the time zone.')], HRESULT, 'DynamicRulesCount', ( ['retval', 'out'], POINTER(c_int), 'DynamicRulesCount' )), COMMETHOD(['propget', helpstring(u'The first dynamic adjustment rule year.')], HRESULT, 'FirstDynamicRuleYear', ( ['retval', 'out'], POINTER(c_int), 'FirstDynamicRuleYear' )), COMMETHOD(['propget', helpstring(u'The last dynamic adjustment rule year.')], HRESULT, 'LastDynamicRuleYear', ( ['retval', 'out'], POINTER(c_int), 'LastDynamicRuleYear' )), COMMETHOD(['propget', helpstring(u'The next dynamic adjustment rule year that cyclicly proceeds the given dynamic adjustment rule year.')], HRESULT, 'NextDynamicRuleYear', ( ['in'], c_int, 'currentDynamicRuleYear' ), ( ['retval', 'out'], POINTER(c_int), 'NextDynamicRuleYear' )), COMMETHOD(['propget', helpstring(u'The dynamic adjustment rule for a specific year.')], HRESULT, 'DynamicRule', ( ['in'], c_int, 'Year' ), ( ['retval', 'out'], POINTER(POINTER(ITimeZoneRule)), 'DynamicRule' )), COMMETHOD([helpstring(u'Adds a dynamic adjustment to the time zone.')], HRESULT, 'AddDynamicRule', ( ['in'], POINTER(ITimeZoneRule), 'DynamicRule' )), ] ################################################################ ## code template for ITimeZoneInfo implementation ##class ITimeZoneInfo_Impl(object): ## @property ## def DynamicRulesCount(self): ## u'Number of dynamic adjustment rules for the time zone.' ## #return DynamicRulesCount ## ## def _get(self): ## u'Time zone Windows ID name.' ## #return WindowsID ## def _set(self, WindowsID): ## u'Time zone Windows ID name.' ## WindowsID = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Descriptive display name of the time zone.' ## #return DisplayName ## def _set(self, DisplayName): ## u'Descriptive display name of the time zone.' ## DisplayName = property(_get, _set, doc = _set.__doc__) ## ## @property ## def LastDynamicRuleYear(self): ## u'The last dynamic adjustment rule year.' ## #return LastDynamicRuleYear ## ## @property ## def NextDynamicRuleYear(self, currentDynamicRuleYear): ## u'The next dynamic adjustment rule year that cyclicly proceeds the given dynamic adjustment rule year.' ## #return NextDynamicRuleYear ## ## @property ## def FirstDynamicRuleYear(self): ## u'The first dynamic adjustment rule year.' ## #return FirstDynamicRuleYear ## ## def AddDynamicRule(self, DynamicRule): ## u'Adds a dynamic adjustment to the time zone.' ## #return ## ## def _get(self): ## u'The default time zone adjustment rule.' ## #return defaultTimeZoneRule ## def _set(self, defaultTimeZoneRule): ## u'The default time zone adjustment rule.' ## DefaultRule = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Custom description for the time zone.' ## #return DisplayName ## def _set(self, DisplayName): ## u'Custom description for the time zone.' ## CustomDescription = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The time zone name during standard time.' ## #return StandardTimeName ## def _set(self, StandardTimeName): ## u'The time zone name during standard time.' ## StandardTimeName = property(_get, _set, doc = _set.__doc__) ## ## @property ## def DynamicRule(self, Year): ## u'The dynamic adjustment rule for a specific year.' ## #return DynamicRule ## ## def _get(self): ## u'The time zone name during daylight time.' ## #return DaylightTimeName ## def _set(self, DaylightTimeName): ## u'The time zone name during daylight time.' ## DaylightTimeName = property(_get, _set, doc = _set.__doc__) ## class IEnumNameEdit(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that create of an enumeration of Name objects.' _iid_ = GUID('{FDAFAD91-67FE-11D4-8155-00C04F686238}') _idlflags_ = ['oleautomation'] IEnumNameEdit._methods_ = [ COMMETHOD([helpstring(u'Adds a Name in the list.')], HRESULT, 'Add', ( ['in'], POINTER(IName), 'Name' )), COMMETHOD([helpstring(u'Removes a Name from the list.')], HRESULT, 'Remove', ( ['in'], POINTER(IName), 'Name' )), COMMETHOD([helpstring(u'Removes current name from the list (when enumerating).')], HRESULT, 'RemoveCurrent'), ] ################################################################ ## code template for IEnumNameEdit implementation ##class IEnumNameEdit_Impl(object): ## def Add(self, Name): ## u'Adds a Name in the list.' ## #return ## ## def RemoveCurrent(self): ## u'Removes current name from the list (when enumerating).' ## #return ## ## def Remove(self, Name): ## u'Removes a Name from the list.' ## #return ## class DefinedInterval(CoClass): u'Defines a defined interval classification method.' _reg_clsid_ = GUID('{62144BE8-E05E-11D1-AAAE-00C04FA334B3}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IClassifyGEN(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control classification.' _iid_ = GUID('{CBA26148-CD2C-44AC-BBF5-B228B55A198D}') _idlflags_ = ['oleautomation'] DefinedInterval._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IClassifyGEN, IClassify, IClassifyMinMax, IClassifyMinMax2, IIntervalRange, IIntervalRange2] class EqualInterval(CoClass): u'Defines an equal interval classification method.' _reg_clsid_ = GUID('{62144BE1-E05E-11D1-AAAE-00C04FA334B3}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) EqualInterval._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IClassifyGEN, IClassify, IClassifyMinMax, IClassifyMinMax2] class Quantile(CoClass): u'Defines a quantile classification method.' _reg_clsid_ = GUID('{62144BE9-E05E-11D1-AAAE-00C04FA334B3}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) Quantile._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IClassifyGEN, IClassify] class GeometricalInterval(CoClass): u'Defines a geometrical interval classification method.' _reg_clsid_ = GUID('{C79EB120-E98E-4AF9-903D-70273E0C140E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) GeometricalInterval._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IClassifyGEN, IClassify] class NaturalBreaks(CoClass): u'Defines a natural breaks classification method.' _reg_clsid_ = GUID('{62144BEA-E05E-11D1-AAAE-00C04FA334B3}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) NaturalBreaks._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IClassifyGEN, IClassify] class IXMLWriter(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the sequential writing of XML.' _iid_ = GUID('{5F50E520-1278-4C7A-937C-AE5874548431}') _idlflags_ = ['oleautomation'] class IXMLReader(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the sequential reading of XML.' _iid_ = GUID('{D405F844-8057-4DF4-B2DA-DF25DEDEBF4C}') _idlflags_ = ['oleautomation'] IXMLSerializer._methods_ = [ COMMETHOD([helpstring(u'Writes an object as XML.')], HRESULT, 'WriteObject', ( ['in'], POINTER(IXMLWriter), 'pWriter' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' ), ( ['in'], BSTR, 'elementName' ), ( ['in'], BSTR, 'elementNamespaceURI' ), ( ['in'], POINTER(IUnknown), 'obj' )), COMMETHOD([helpstring(u'Reads an object from XML.')], HRESULT, 'ReadObject', ( ['in'], POINTER(IXMLReader), 'pReader' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'obj' )), COMMETHOD([helpstring(u'Loads an object from an XML string.')], HRESULT, 'LoadFromString', ( ['in'], BSTR, 'XML' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'obj' )), COMMETHOD([helpstring(u'Saves an object to an XML string.')], HRESULT, 'SaveToString', ( ['in'], POINTER(IUnknown), 'obj' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' ), ( ['retval', 'out'], POINTER(BSTR), 'XML' )), COMMETHOD([helpstring(u'Reads an object from XML given an XML type.')], HRESULT, 'ReadObjectByType', ( ['in'], POINTER(IXMLReader), 'pReader' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' ), ( ['in'], BSTR, 'typeNamespace' ), ( ['in'], BSTR, 'TypeName' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'obj' )), ] ################################################################ ## code template for IXMLSerializer implementation ##class IXMLSerializer_Impl(object): ## def SaveToString(self, obj, environment, flags): ## u'Saves an object to an XML string.' ## #return XML ## ## def LoadFromString(self, XML, environment, flags): ## u'Loads an object from an XML string.' ## #return obj ## ## def ReadObjectByType(self, pReader, environment, flags, typeNamespace, TypeName): ## u'Reads an object from XML given an XML type.' ## #return obj ## ## def ReadObject(self, pReader, environment, flags): ## u'Reads an object from XML.' ## #return obj ## ## def WriteObject(self, pWriter, environment, flags, elementName, elementNamespaceURI, obj): ## u'Writes an object as XML.' ## #return ## class StandardDeviation(CoClass): u'Defines a standard deviation classification method.' _reg_clsid_ = GUID('{DC6D8015-49C2-11D2-AAFF-00C04FA334B3}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) StandardDeviation._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IClassifyGEN, IClassify, IDeviationInterval] IEnumBSTR._methods_ = [ COMMETHOD([helpstring(u'Obtains the next string in the list.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(BSTR), 'pBSTR' )), COMMETHOD([helpstring(u'Resets the string so the next returned string is the first.')], HRESULT, 'Reset'), ] ################################################################ ## code template for IEnumBSTR implementation ##class IEnumBSTR_Impl(object): ## def Reset(self): ## u'Resets the string so the next returned string is the first.' ## #return ## ## def Next(self): ## u'Obtains the next string in the list.' ## #return pBSTR ## class ICustomNumberFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format numbers in a customizable way.' _iid_ = GUID('{7E4F4718-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] ICustomNumberFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'A user-defined format expression.')], HRESULT, 'FormatString', ( ['in'], BSTR, 'str' )), COMMETHOD(['propget', helpstring(u'A user-defined format expression.')], HRESULT, 'FormatString', ( ['retval', 'out'], POINTER(BSTR), 'str' )), ] ################################################################ ## code template for ICustomNumberFormat implementation ##class ICustomNumberFormat_Impl(object): ## def _get(self): ## u'A user-defined format expression.' ## #return str ## def _set(self, str): ## u'A user-defined format expression.' ## FormatString = property(_get, _set, doc = _set.__doc__) ## # values for enumeration 'esriLicenseServerEdition' esriLicenseServerEditionBasic = 100 esriLicenseServerEditionStandard = 200 esriLicenseServerEditionAdvanced = 300 esriLicenseServerEdition = c_int # enum IXMLSerializerAlt._methods_ = [ COMMETHOD([helpstring(u'Loads an object from an XML string.')], HRESULT, 'LoadFromString', ( ['in'], BSTR, 'XML' ), ( ['in'], BSTR, 'TypeName' ), ( ['in'], BSTR, 'TypeNamespaceURI' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'obj' )), ] ################################################################ ## code template for IXMLSerializerAlt implementation ##class IXMLSerializerAlt_Impl(object): ## def LoadFromString(self, XML, TypeName, TypeNamespaceURI): ## u'Loads an object from an XML string.' ## #return obj ## class XMLReader(CoClass): u'An XML sequential document reader.' _reg_clsid_ = GUID('{B853965E-FD52-4ED2-80C2-F0E27A2C6E8A}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IXMLReader2(IXMLReader): _case_insensitive_ = True u'Provides access to members that control the sequential reading of XML.' _iid_ = GUID('{93C1AC3B-4520-450D-B005-95FD01B50C4A}') _idlflags_ = ['oleautomation'] XMLReader._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLReader, IXMLReader2, ISupportErrorInfo] class IEnumVariantSimple(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that enumerate over a set of VARIANTs.' _iid_ = GUID('{0F0A3D86-8690-4D41-9DF7-EFEFE99C4EC5}') _idlflags_ = ['oleautomation'] IEnumVariantSimple._methods_ = [ COMMETHOD([helpstring(u'Obtains the next VARIANT in the set.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(VARIANT), 'nextVariant' )), COMMETHOD([helpstring(u'Resets the internal cursor back to the beginning of the set.')], HRESULT, 'Reset'), ] ################################################################ ## code template for IEnumVariantSimple implementation ##class IEnumVariantSimple_Impl(object): ## def Reset(self): ## u'Resets the internal cursor back to the beginning of the set.' ## #return ## ## def Next(self): ## u'Obtains the next VARIANT in the set.' ## #return nextVariant ## # values for enumeration 'esriRoundingOptionEnum' esriRoundNumberOfDecimals = 0 esriRoundNumberOfSignificantDigits = 1 esriRoundingOptionEnum = c_int # enum # values for enumeration 'esriNumericAlignmentEnum' esriAlignRight = 0 esriAlignLeft = 1 esriNumericAlignmentEnum = c_int # enum class INumericFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format numbers.' _iid_ = GUID('{7E4F4710-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] INumericFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'The rounding option applied to the ValueToString method.')], HRESULT, 'RoundingOption', ( ['in'], esriRoundingOptionEnum, 'pption' )), COMMETHOD(['propget', helpstring(u'The rounding option applied to the ValueToString method.')], HRESULT, 'RoundingOption', ( ['retval', 'out'], POINTER(esriRoundingOptionEnum), 'pption' )), COMMETHOD(['propput', helpstring(u'The rounding value, whose meaning depends on the rounding option.')], HRESULT, 'RoundingValue', ( ['in'], c_int, 'Value' )), COMMETHOD(['propget', helpstring(u'The rounding value, whose meaning depends on the rounding option.')], HRESULT, 'RoundingValue', ( ['retval', 'out'], POINTER(c_int), 'Value' )), COMMETHOD(['propput', helpstring(u'The alignment option applied to the ValueToString method.')], HRESULT, 'AlignmentOption', ( ['in'], esriNumericAlignmentEnum, 'option' )), COMMETHOD(['propget', helpstring(u'The alignment option applied to the ValueToString method.')], HRESULT, 'AlignmentOption', ( ['retval', 'out'], POINTER(esriNumericAlignmentEnum), 'option' )), COMMETHOD(['propput', helpstring(u'The alignment width applied to the ValueToString method.')], HRESULT, 'AlignmentWidth', ( ['in'], c_int, 'width' )), COMMETHOD(['propget', helpstring(u'The alignment width applied to the ValueToString method.')], HRESULT, 'AlignmentWidth', ( ['retval', 'out'], POINTER(c_int), 'width' )), COMMETHOD(['propput', helpstring(u'Indicates if formatted numbers contain digit grouping symbols.')], HRESULT, 'UseSeparator', ( ['in'], VARIANT_BOOL, 'sep' )), COMMETHOD(['propget', helpstring(u'Indicates if formatted numbers contain digit grouping symbols.')], HRESULT, 'UseSeparator', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'sep' )), COMMETHOD(['propput', helpstring(u'Indicates if formatted numbers contain padded zeros to the right of the decimal.')], HRESULT, 'ZeroPad', ( ['in'], VARIANT_BOOL, 'pad' )), COMMETHOD(['propget', helpstring(u'Indicates if formatted numbers contain padded zeros to the right of the decimal.')], HRESULT, 'ZeroPad', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pad' )), COMMETHOD(['propput', helpstring(u'Indicates if formatted numbers contain a plus sign for positive numbers.')], HRESULT, 'ShowPlusSign', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if formatted numbers contain a plus sign for positive numbers.')], HRESULT, 'ShowPlusSign', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), ] ################################################################ ## code template for INumericFormat implementation ##class INumericFormat_Impl(object): ## def _get(self): ## u'The alignment option applied to the ValueToString method.' ## #return option ## def _set(self, option): ## u'The alignment option applied to the ValueToString method.' ## AlignmentOption = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if formatted numbers contain a plus sign for positive numbers.' ## #return Show ## def _set(self, Show): ## u'Indicates if formatted numbers contain a plus sign for positive numbers.' ## ShowPlusSign = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The rounding value, whose meaning depends on the rounding option.' ## #return Value ## def _set(self, Value): ## u'The rounding value, whose meaning depends on the rounding option.' ## RoundingValue = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if formatted numbers contain padded zeros to the right of the decimal.' ## #return pad ## def _set(self, pad): ## u'Indicates if formatted numbers contain padded zeros to the right of the decimal.' ## ZeroPad = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The rounding option applied to the ValueToString method.' ## #return pption ## def _set(self, pption): ## u'The rounding option applied to the ValueToString method.' ## RoundingOption = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if formatted numbers contain digit grouping symbols.' ## #return sep ## def _set(self, sep): ## u'Indicates if formatted numbers contain digit grouping symbols.' ## UseSeparator = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The alignment width applied to the ValueToString method.' ## #return width ## def _set(self, width): ## u'The alignment width applied to the ValueToString method.' ## AlignmentWidth = property(_get, _set, doc = _set.__doc__) ## class IPercentageFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format percentages.' _iid_ = GUID('{7E4F4711-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] IPercentageFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'Indicates if ValueToString agument is treated as a fraction or a percentage.')], HRESULT, 'AdjustPercentage', ( ['in'], VARIANT_BOOL, 'adjust' )), COMMETHOD(['propget', helpstring(u'Indicates if ValueToString agument is treated as a fraction or a percentage.')], HRESULT, 'AdjustPercentage', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'adjust' )), ] ################################################################ ## code template for IPercentageFormat implementation ##class IPercentageFormat_Impl(object): ## def _get(self): ## u'Indicates if ValueToString agument is treated as a fraction or a percentage.' ## #return adjust ## def _set(self, adjust): ## u'Indicates if ValueToString agument is treated as a fraction or a percentage.' ## AdjustPercentage = property(_get, _set, doc = _set.__doc__) ## # values for enumeration 'messageSupportError' MESSAGESUPPORT_E_BAD_REQUEST = -2147220991 MESSAGESUPPORT_E_UNAUTHORIZED = -2147220990 MESSAGESUPPORT_E_FORBIDDEN = -2147220989 MESSAGESUPPORT_E_NOT_FOUND = -2147220988 MESSAGESUPPORT_E_METHOD_NOT_ALLOWED = -2147220987 MESSAGESUPPORT_E_PROXY_AUTHENTICATION_REQUIRED = -2147220986 MESSAGESUPPORT_E_REQUEST_TIMEOUT = -2147220985 MESSAGESUPPORT_E_INTERNAL_SERVER_ERROR = -2147220984 MESSAGESUPPORT_E_NOT_IMPLEMENTED = -2147220983 MESSAGESUPPORT_E_BAD_GATEWAY = -2147220982 MESSAGESUPPORT_E_SERVICE_NOT_AVAILABLE = -2147220981 MESSAGESUPPORT_E_UNSUPPORTED_PROTOCOL = -2147220980 MESSAGESUPPORT_E_URL_MALFORMAT = -2147220979 MESSAGESUPPORT_E_COULDNT_RESOLVE_PROXY = -2147220978 MESSAGESUPPORT_E_COULDNT_RESOLVE_HOST = -2147220977 MESSAGESUPPORT_E_COULDNT_CONNECT = -2147220976 MESSAGESUPPORT_E_REQUEST_TOLARGE = -2147220975 MESSAGESUPPORT_E_NO_CONTENT = -2147220974 MESSAGESUPPORT_E_SSL_CACERT = -2147220973 MESSAGESUPPORT_E_SSL_CONNECT_ERROR = -2147220972 MESSAGESUPPORT_E_SSL_PEER_CERTIFICATE = -2147220971 MESSAGESUPPORT_E_INVALID_GET_FILE = -2147220970 MESSAGESUPPORT_E_OPERATION_TIMEDOUT = -2147220969 MESSAGESUPPORT_E_MEM_ALLOC_FAILED = -2147220968 MESSAGESUPPORT_E_AUTH_TOKEN_FAILURE = -2147220967 MESSAGESUPPORT_E_AUTH_TOKEN_REQUIRED = -2147220966 MESSAGESUPPORT_E_GET_TOKEN_FAILED = -2147220965 MESSAGESUPPORT_E_PROXY_GATEWAY_ERROR = -2147220964 MESSAGESUPPORT_E_NOT_ACCEPTABLE = -2147220963 messageSupportError = c_int # enum _WKSDateTime._fields_ = [ ('Year', c_short), ('Month', c_short), ('Day', c_short), ('Hour', c_short), ('Minute', c_short), ('Second', c_short), ('Nanoseconds', c_int), ] assert sizeof(_WKSDateTime) == 16, sizeof(_WKSDateTime) assert alignment(_WKSDateTime) == 4, alignment(_WKSDateTime) class IXMLObjectElement(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control writing objects to XML.' _iid_ = GUID('{77D57DDA-E1E3-459A-91D1-192126BC344A}') _idlflags_ = ['oleautomation'] IXMLObjectElement._methods_ = [ COMMETHOD([helpstring(u'Writes the object to XML.')], HRESULT, 'WriteXML', ( ['in'], POINTER(IXMLWriter), 'pWriter' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' ), ( ['in'], BSTR, 'elementName' ), ( ['in'], BSTR, 'elementNamespaceURI' )), COMMETHOD([helpstring(u'Reads the object from XML.')], HRESULT, 'ReadXML', ( ['in'], POINTER(IXMLReader), 'pReader' ), ( ['in'], POINTER(IPropertySet), 'environment' ), ( ['in'], POINTER(IXMLFlags), 'flags' )), ] ################################################################ ## code template for IXMLObjectElement implementation ##class IXMLObjectElement_Impl(object): ## def ReadXML(self, pReader, environment, flags): ## u'Reads the object from XML.' ## #return ## ## def WriteXML(self, pWriter, environment, flags, elementName, elementNamespaceURI): ## u'Writes the object to XML.' ## #return ## class JSONReader(CoClass): u'A sequential JSON Reader.' _reg_clsid_ = GUID('{B4578901-05DE-4BDA-AAEB-849EC52102B1}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) JSONReader._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IJSONReader, IJSONReader2, ISupportErrorInfo] class IErrorCollection(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control an Error Collection.' _iid_ = GUID('{66353C17-DF5D-11D3-9FA0-00C04F6BDF0C}') _idlflags_ = ['oleautomation'] IErrorCollection._methods_ = [ COMMETHOD(['propget', helpstring(u'The count of error records.')], HRESULT, 'ErrorCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The description of the specified error record.')], HRESULT, 'ErrorDescription', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Description' )), ] ################################################################ ## code template for IErrorCollection implementation ##class IErrorCollection_Impl(object): ## @property ## def ErrorDescription(self, index): ## u'The description of the specified error record.' ## #return Description ## ## @property ## def ErrorCount(self): ## u'The count of error records.' ## #return Count ## ISet._methods_ = [ COMMETHOD([helpstring(u'Adds an object to the set.')], HRESULT, 'Add', ( ['in'], POINTER(IUnknown), 'unk' )), COMMETHOD([helpstring(u'Removes the object from the set.')], HRESULT, 'Remove', ( ['in'], POINTER(IUnknown), 'unk' )), COMMETHOD([helpstring(u'Removes all objects from the set.')], HRESULT, 'RemoveAll'), COMMETHOD([helpstring(u'Searches for the object in the set.')], HRESULT, 'Find', ( ['in'], POINTER(IUnknown), 'unk' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'found' )), COMMETHOD([helpstring(u'Obtains the next object in the set.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'unk' )), COMMETHOD([helpstring(u'Resets the set for enumerating through the objects with Next.')], HRESULT, 'Reset'), COMMETHOD(['propget', helpstring(u'The element count of the set.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), ] ################################################################ ## code template for ISet implementation ##class ISet_Impl(object): ## def Reset(self): ## u'Resets the set for enumerating through the objects with Next.' ## #return ## ## @property ## def Count(self): ## u'The element count of the set.' ## #return Count ## ## def Remove(self, unk): ## u'Removes the object from the set.' ## #return ## ## def Next(self): ## u'Obtains the next object in the set.' ## #return unk ## ## def RemoveAll(self): ## u'Removes all objects from the set.' ## #return ## ## def Add(self, unk): ## u'Adds an object to the set.' ## #return ## ## def Find(self, unk): ## u'Searches for the object in the set.' ## #return found ## class IAnimationProgressor(IProgressor): _case_insensitive_ = True u'Provides access to members that report progress using an animation.' _iid_ = GUID('{80CB7E35-85E4-11D1-872C-0000F8751720}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriAnimations' esriAnimationDrawing = 0 esriAnimationPrinting = 1 esriAnimationOther = 2 esriAnimationLast = 3 esriAnimations = c_int # enum IAnimationProgressor._methods_ = [ COMMETHOD(['propput', helpstring(u'The animation displayed by the progressor as one of the esriAnimation constants. (Not implemented).')], HRESULT, 'Animation', ( ['in'], esriAnimations, 'Animation' )), COMMETHOD(['propget', helpstring(u'The animation displayed by the progressor as one of the esriAnimation constants. (Not implemented).')], HRESULT, 'Animation', ( ['retval', 'out'], POINTER(esriAnimations), 'Animation' )), COMMETHOD([helpstring(u'Opens the AVI file specified in the path and displays its first frame. The AVI file specified must not contain audio.')], HRESULT, 'OpenPath', ( ['in'], BSTR, 'animationPath' )), COMMETHOD([helpstring(u'Plays the animation.')], HRESULT, 'Play', ( ['in', 'optional'], c_int, 'frameFrom', 0 ), ( ['in', 'optional'], c_int, 'frameTo', -1 ), ( ['in', 'optional'], c_int, 'repeat', -1 )), COMMETHOD([helpstring(u'Moves to the specified frame of the animation. The animation starts at this frame the next time it is played.')], HRESULT, 'Seek', ( ['in'], c_int, 'frameTo' )), COMMETHOD([helpstring(u'Stops the animation.')], HRESULT, 'Stop'), ] ################################################################ ## code template for IAnimationProgressor implementation ##class IAnimationProgressor_Impl(object): ## def Stop(self): ## u'Stops the animation.' ## #return ## ## def Play(self, frameFrom, frameTo, repeat): ## u'Plays the animation.' ## #return ## ## def _get(self): ## u'The animation displayed by the progressor as one of the esriAnimation constants. (Not implemented).' ## #return Animation ## def _set(self, Animation): ## u'The animation displayed by the progressor as one of the esriAnimation constants. (Not implemented).' ## Animation = property(_get, _set, doc = _set.__doc__) ## ## def Seek(self, frameTo): ## u'Moves to the specified frame of the animation. The animation starts at this frame the next time it is played.' ## #return ## ## def OpenPath(self, animationPath): ## u'Opens the AVI file specified in the path and displays its first frame. The AVI file specified must not contain audio.' ## #return ## # values for enumeration 'esriTimeUnits' esriTimeUnitsUnknown = 0 esriTimeUnitsMilliseconds = 1 esriTimeUnitsSeconds = 2 esriTimeUnitsMinutes = 3 esriTimeUnitsHours = 4 esriTimeUnitsDays = 5 esriTimeUnitsWeeks = 6 esriTimeUnitsMonths = 7 esriTimeUnitsYears = 8 esriTimeUnitsDecades = 9 esriTimeUnitsCenturies = 10 esriTimeUnits = c_int # enum class IXMLStream(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control an in-memory XML stream.' _iid_ = GUID('{498A5F91-65D1-4A25-AD2B-462E7DF8B358}') _idlflags_ = ['oleautomation'] IXMLStream._methods_ = [ COMMETHOD([helpstring(u'Loads from a string.')], HRESULT, 'LoadFromString', ( ['in'], BSTR, 'XML' )), COMMETHOD([helpstring(u'Loads from a file path.')], HRESULT, 'LoadFromFile', ( ['in'], BSTR, 'filePath' )), COMMETHOD([helpstring(u'Loads from a UTF-8 byte array.')], HRESULT, 'LoadFromBytes', ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'bytes' )), COMMETHOD([helpstring(u'Saves to a string.')], HRESULT, 'SaveToString', ( ['retval', 'out'], POINTER(BSTR), 'XML' )), COMMETHOD([helpstring(u'Saves to a file path.')], HRESULT, 'SaveToFile', ( ['in'], BSTR, 'filePath' )), COMMETHOD([helpstring(u'Saves to a UTF-8 byte array.')], HRESULT, 'SaveToBytes', ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'bytes' )), COMMETHOD([helpstring(u'Resets the stream to the beginning.')], HRESULT, 'Reset'), ] ################################################################ ## code template for IXMLStream implementation ##class IXMLStream_Impl(object): ## def Reset(self): ## u'Resets the stream to the beginning.' ## #return ## ## def SaveToFile(self, filePath): ## u'Saves to a file path.' ## #return ## ## def LoadFromFile(self, filePath): ## u'Loads from a file path.' ## #return ## ## def SaveToBytes(self): ## u'Saves to a UTF-8 byte array.' ## #return bytes ## ## def LoadFromBytes(self, bytes): ## u'Loads from a UTF-8 byte array.' ## #return ## ## def SaveToString(self): ## u'Saves to a string.' ## #return XML ## ## def LoadFromString(self, XML): ## u'Loads from a string.' ## #return ## class IEnumName(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that enumerate over a set of name objects.' _iid_ = GUID('{EF237A51-CB69-11D2-9F26-00C04F6BC69E}') _idlflags_ = ['oleautomation'] IEnumName._methods_ = [ COMMETHOD([helpstring(u'Obtains the next Name in the list.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(POINTER(IName)), 'Name' )), COMMETHOD([helpstring(u'Resets the current position to the beginning.')], HRESULT, 'Reset'), ] ################################################################ ## code template for IEnumName implementation ##class IEnumName_Impl(object): ## def Reset(self): ## u'Resets the current position to the beginning.' ## #return ## ## def Next(self): ## u'Obtains the next Name in the list.' ## #return Name ## class IFractionFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format fractions.' _iid_ = GUID('{7E4F4713-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] # values for enumeration 'esriFractionOptionEnum' esriSpecifyFractionDigits = 0 esriSpecifyFractionDenominator = 1 esriFractionOptionEnum = c_int # enum IFractionFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'The fraction option determines how the numerator and denominator of the fraction are treated.')], HRESULT, 'FractionOption', ( ['in'], esriFractionOptionEnum, 'option' )), COMMETHOD(['propget', helpstring(u'The fraction option determines how the numerator and denominator of the fraction are treated.')], HRESULT, 'FractionOption', ( ['retval', 'out'], POINTER(esriFractionOptionEnum), 'option' )), COMMETHOD(['propput', helpstring(u'The maximum number of digits for the numerator or denominator, or the denominator of the formatted fraction.')], HRESULT, 'FractionFactor', ( ['in'], c_int, 'factor' )), COMMETHOD(['propget', helpstring(u'The maximum number of digits for the numerator or denominator, or the denominator of the formatted fraction.')], HRESULT, 'FractionFactor', ( ['retval', 'out'], POINTER(c_int), 'factor' )), ] ################################################################ ## code template for IFractionFormat implementation ##class IFractionFormat_Impl(object): ## def _get(self): ## u'The maximum number of digits for the numerator or denominator, or the denominator of the formatted fraction.' ## #return factor ## def _set(self, factor): ## u'The maximum number of digits for the numerator or denominator, or the denominator of the formatted fraction.' ## FractionFactor = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The fraction option determines how the numerator and denominator of the fraction are treated.' ## #return option ## def _set(self, option): ## u'The fraction option determines how the numerator and denominator of the fraction are treated.' ## FractionOption = property(_get, _set, doc = _set.__doc__) ## class IStatusBar(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that define the application statusbar.' _iid_ = GUID('{828100C1-CC80-11D0-8380-080009B996CC}') _idlflags_ = ['oleautomation'] IStatusBar._methods_ = [ COMMETHOD(['propput', helpstring(u'The message displayed by one of the status bar panes.')], HRESULT, 'Message', ( ['in'], c_int, 'pane' ), ( ['in'], BSTR, 'Message' )), COMMETHOD(['propget', helpstring(u'The message displayed by one of the status bar panes.')], HRESULT, 'Message', ( ['in'], c_int, 'pane' ), ( ['retval', 'out'], POINTER(BSTR), 'Message' )), COMMETHOD(['propput', helpstring(u'Indicates which standard panes are shown by the status bar. Use a combination of esriStatusBarPanes constants.')], HRESULT, 'Panes', ( ['in'], c_int, 'Panes' )), COMMETHOD(['propget', helpstring(u'Indicates which standard panes are shown by the status bar. Use a combination of esriStatusBarPanes constants.')], HRESULT, 'Panes', ( ['retval', 'out'], POINTER(c_int), 'Panes' )), COMMETHOD(['propget', helpstring(u'The progress bar object on the statusbar.')], HRESULT, 'ProgressBar', ( ['retval', 'out'], POINTER(POINTER(IStepProgressor)), 'ProgressBar' )), COMMETHOD(['propget', helpstring(u'The progress animation object on the statusbar.')], HRESULT, 'ProgressAnimation', ( ['retval', 'out'], POINTER(POINTER(IAnimationProgressor)), 'ProgressAnimation' )), COMMETHOD(['propget', helpstring(u'Indicates if the statusbar is visible.')], HRESULT, 'Visible', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Visible' )), COMMETHOD(['propput', helpstring(u'Indicates if the statusbar is visible.')], HRESULT, 'Visible', ( ['in'], VARIANT_BOOL, 'Visible' )), COMMETHOD([helpstring(u'Makes the progress bar visible.')], HRESULT, 'ShowProgressBar', ( ['in'], BSTR, 'Message' ), ( ['in'], c_int, 'min' ), ( ['in'], c_int, 'max' ), ( ['in'], c_int, 'Step' ), ( ['in'], VARIANT_BOOL, 'onePanel' )), COMMETHOD([helpstring(u'Steps the progress bar to the next position.')], HRESULT, 'StepProgressBar'), COMMETHOD([helpstring(u'Hides the progress bar.')], HRESULT, 'HideProgressBar'), COMMETHOD([helpstring(u'Makes the progress animation visible.')], HRESULT, 'ShowProgressAnimation', ( ['in'], BSTR, 'Message' ), ( ['in'], BSTR, 'animationPath' )), COMMETHOD([helpstring(u'Plays the progress animation if the parameter is true; otherwise stops it.')], HRESULT, 'PlayProgressAnimation', ( ['in'], VARIANT_BOOL, 'playAnim' )), COMMETHOD([helpstring(u'Hides the progress animation.')], HRESULT, 'HideProgressAnimation'), ] ################################################################ ## code template for IStatusBar implementation ##class IStatusBar_Impl(object): ## def _get(self): ## u'Indicates which standard panes are shown by the status bar. Use a combination of esriStatusBarPanes constants.' ## #return Panes ## def _set(self, Panes): ## u'Indicates which standard panes are shown by the status bar. Use a combination of esriStatusBarPanes constants.' ## Panes = property(_get, _set, doc = _set.__doc__) ## ## def HideProgressBar(self): ## u'Hides the progress bar.' ## #return ## ## def ShowProgressBar(self, Message, min, max, Step, onePanel): ## u'Makes the progress bar visible.' ## #return ## ## @property ## def ProgressBar(self): ## u'The progress bar object on the statusbar.' ## #return ProgressBar ## ## def _get(self): ## u'Indicates if the statusbar is visible.' ## #return Visible ## def _set(self, Visible): ## u'Indicates if the statusbar is visible.' ## Visible = property(_get, _set, doc = _set.__doc__) ## ## def PlayProgressAnimation(self, playAnim): ## u'Plays the progress animation if the parameter is true; otherwise stops it.' ## #return ## ## def ShowProgressAnimation(self, Message, animationPath): ## u'Makes the progress animation visible.' ## #return ## ## @property ## def ProgressAnimation(self): ## u'The progress animation object on the statusbar.' ## #return ProgressAnimation ## ## def StepProgressBar(self): ## u'Steps the progress bar to the next position.' ## #return ## ## def _get(self, pane): ## u'The message displayed by one of the status bar panes.' ## #return Message ## def _set(self, pane, Message): ## u'The message displayed by one of the status bar panes.' ## Message = property(_get, _set, doc = _set.__doc__) ## ## def HideProgressAnimation(self): ## u'Hides the progress animation.' ## #return ## class IXMLAttributes(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control XML attributes.' _iid_ = GUID('{3E23A49E-9F66-42D5-9982-5E3E5C0821E0}') _idlflags_ = ['oleautomation'] IXMLAttributes._methods_ = [ COMMETHOD([helpstring(u'Adds an attribute to the element.')], HRESULT, 'AddAttribute', ( ['in'], BSTR, 'LocalName' ), ( ['in'], BSTR, 'NamespaceURI' ), ( ['in'], BSTR, 'Value' )), COMMETHOD([helpstring(u'Deletes an attribute from the element.')], HRESULT, 'DeleteAttribute', ( ['in'], BSTR, 'LocalName' ), ( ['in'], BSTR, 'NamespaceURI' )), COMMETHOD([helpstring(u'Finds an attribute by name and namespace.')], HRESULT, 'FindAttribute', ( ['in'], BSTR, 'LocalName' ), ( ['in'], BSTR, 'NamespaceURI' ), ( ['retval', 'out'], POINTER(c_int), 'index' )), COMMETHOD(['propget', helpstring(u'Number of attributes.')], HRESULT, 'AttributeCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'Name of the attribute.')], HRESULT, 'LocalName', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Name' )), COMMETHOD(['propget', helpstring(u'Namespace of the attribute.')], HRESULT, 'NamespaceURI', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'uri' )), COMMETHOD(['propget', helpstring(u'Value of the attribute.')], HRESULT, 'Value', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Value' )), ] ################################################################ ## code template for IXMLAttributes implementation ##class IXMLAttributes_Impl(object): ## def DeleteAttribute(self, LocalName, NamespaceURI): ## u'Deletes an attribute from the element.' ## #return ## ## def FindAttribute(self, LocalName, NamespaceURI): ## u'Finds an attribute by name and namespace.' ## #return index ## ## @property ## def AttributeCount(self): ## u'Number of attributes.' ## #return Count ## ## @property ## def Value(self, index): ## u'Value of the attribute.' ## #return Value ## ## def AddAttribute(self, LocalName, NamespaceURI, Value): ## u'Adds an attribute to the element.' ## #return ## ## @property ## def NamespaceURI(self, index): ## u'Namespace of the attribute.' ## #return uri ## ## @property ## def LocalName(self, index): ## u'Name of the attribute.' ## #return Name ## class XMLStream(CoClass): u'An in-memory XML stream.' _reg_clsid_ = GUID('{DB2CDE6F-A264-4129-A4CE-99F9A47F1830}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) XMLStream._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLStream, IStream] IPropertySet._methods_ = [ COMMETHOD(['propget', helpstring(u'The number of properties contained in the property set.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD([helpstring(u'The value of the specified property.')], HRESULT, 'GetProperty', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(VARIANT), 'Value' )), COMMETHOD([helpstring(u'The values of the specified properties.')], HRESULT, 'GetProperties', ( ['in'], VARIANT, 'names' ), ( ['out'], POINTER(VARIANT), 'values' )), COMMETHOD([helpstring(u'The name and value of all the properties in the property set.')], HRESULT, 'GetAllProperties', ( ['out'], POINTER(VARIANT), 'names' ), ( ['out'], POINTER(VARIANT), 'values' )), COMMETHOD([helpstring(u'The value of the specified property.')], HRESULT, 'SetProperty', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT, 'Value' )), COMMETHOD([helpstring(u'The values of the specified properties.')], HRESULT, 'SetProperties', ( ['in'], VARIANT, 'names' ), ( ['in'], VARIANT, 'values' )), COMMETHOD([helpstring(u'True if the property set is the same as the input property set.')], HRESULT, 'IsEqual', ( ['in'], POINTER(IPropertySet), 'PropertySet' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsEqual' )), COMMETHOD([helpstring(u'Removes a property from the set.')], HRESULT, 'RemoveProperty', ( ['in'], BSTR, 'Name' )), ] ################################################################ ## code template for IPropertySet implementation ##class IPropertySet_Impl(object): ## @property ## def Count(self): ## u'The number of properties contained in the property set.' ## #return Count ## ## def GetProperty(self, Name): ## u'The value of the specified property.' ## #return Value ## ## def RemoveProperty(self, Name): ## u'Removes a property from the set.' ## #return ## ## def GetProperties(self, names): ## u'The values of the specified properties.' ## #return values ## ## def IsEqual(self, PropertySet): ## u'True if the property set is the same as the input property set.' ## #return IsEqual ## ## def SetProperty(self, Name, Value): ## u'The value of the specified property.' ## #return ## ## def GetAllProperties(self): ## u'The name and value of all the properties in the property set.' ## #return names, values ## ## def SetProperties(self, names, values): ## u'The values of the specified properties.' ## #return ## INameFactory._methods_ = [ COMMETHOD([helpstring(u'Finds the correct name-string parser for the given name string, and uses it to create a new Name object.')], HRESULT, 'Create', ( ['in'], BSTR, 'NameString' ), ( ['retval', 'out'], POINTER(POINTER(IName)), 'Name' )), COMMETHOD([helpstring(u'Packages the set of names into a VARIANT (typically for initiating a drag operation).')], HRESULT, 'PackageNames', ( ['in'], POINTER(IEnumName), 'names' ), ( ['retval', 'out'], POINTER(VARIANT), 'bytesArray' )), COMMETHOD([helpstring(u'Unpackages the given VARIANT into a set of Name objects (typically for responding to a drop operation).')], HRESULT, 'UnpackageNames', ( ['in'], POINTER(VARIANT), 'bytesArray' ), ( ['retval', 'out'], POINTER(POINTER(IEnumName)), 'names' )), ] ################################################################ ## code template for INameFactory implementation ##class INameFactory_Impl(object): ## def Create(self, NameString): ## u'Finds the correct name-string parser for the given name string, and uses it to create a new Name object.' ## #return Name ## ## def PackageNames(self, names): ## u'Packages the set of names into a VARIANT (typically for initiating a drag operation).' ## #return bytesArray ## ## def UnpackageNames(self, bytesArray): ## u'Unpackages the given VARIANT into a set of Name objects (typically for responding to a drop operation).' ## #return names ## class XMLWriter(CoClass): u'An XML sequential document writer.' _reg_clsid_ = GUID('{105A5345-85F8-4B27-A1D2-5D2262C6D27E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IXMLWriter2(IXMLWriter): _case_insensitive_ = True u'Provides access to members that control the sequential writing of XML.' _iid_ = GUID('{034900A2-4DB4-4074-8A7B-3A0885B844A2}') _idlflags_ = ['oleautomation'] XMLWriter._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLWriter, IXMLWriter2, ISupportErrorInfo] class IRequestHandler(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control handing of request messages.' _iid_ = GUID('{46A0E2EA-3B64-4A46-BD78-88A1660F35BB}') _idlflags_ = ['oleautomation'] IRequestHandler._methods_ = [ COMMETHOD([helpstring(u'Handles a binary request.')], HRESULT, 'HandleBinaryRequest', ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'request' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'response' )), COMMETHOD([helpstring(u'Handles a SOAP string request.')], HRESULT, 'HandleStringRequest', ( ['in'], BSTR, 'Capabilities' ), ( ['in'], BSTR, 'request' ), ( ['retval', 'out'], POINTER(BSTR), 'response' )), ] ################################################################ ## code template for IRequestHandler implementation ##class IRequestHandler_Impl(object): ## def HandleBinaryRequest(self, request): ## u'Handles a binary request.' ## #return response ## ## def HandleStringRequest(self, Capabilities, request): ## u'Handles a SOAP string request.' ## #return response ## class XMLAttributes(CoClass): u'A collection of XML element attributes.' _reg_clsid_ = GUID('{176EDC78-13AD-474C-9F42-083D86FFBA33}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) XMLAttributes._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLAttributes] class XMLNamespaces(CoClass): u'A collection of XML namespace declarations.' _reg_clsid_ = GUID('{95547DD2-8871-498B-918B-CF10EAF50F63}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IXMLNamespaces(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control XML namespaces.' _iid_ = GUID('{032B72DC-E0FB-4BB1-8626-1797E25A72A0}') _idlflags_ = ['oleautomation'] XMLNamespaces._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLNamespaces] class ILatLonFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format Latitudes and Longitudes.' _iid_ = GUID('{7E4F4714-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] ILatLonFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.')], HRESULT, 'ShowDirections', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.')], HRESULT, 'ShowDirections', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), COMMETHOD(['propput', helpstring(u'Indicates if a formatted number is a latitude or not.')], HRESULT, 'IsLatitude', ( ['in'], VARIANT_BOOL, 'rhs' )), COMMETHOD([helpstring(u'Obtains the degrees, minutes, and seconds for a lat/lon number.')], HRESULT, 'GetDMS', ( ['in'], c_double, 'Value' ), ( ['out'], POINTER(c_int), 'degrees' ), ( ['out'], POINTER(c_int), 'Minutes' ), ( ['out'], POINTER(c_double), 'Seconds' )), COMMETHOD(['propput', helpstring(u'Indicates if zero minutes are included in formatted output.')], HRESULT, 'ShowZeroMinutes', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if zero minutes are included in formatted output.')], HRESULT, 'ShowZeroMinutes', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), COMMETHOD(['propput', helpstring(u'Indicates if zero seconds are included in formatted output.')], HRESULT, 'ShowZeroSeconds', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if zero seconds are included in formatted output.')], HRESULT, 'ShowZeroSeconds', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), ] ################################################################ ## code template for ILatLonFormat implementation ##class ILatLonFormat_Impl(object): ## def _set(self, rhs): ## u'Indicates if a formatted number is a latitude or not.' ## IsLatitude = property(fset = _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.' ## #return Show ## def _set(self, Show): ## u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.' ## ShowDirections = property(_get, _set, doc = _set.__doc__) ## ## def GetDMS(self, Value): ## u'Obtains the degrees, minutes, and seconds for a lat/lon number.' ## #return degrees, Minutes, Seconds ## ## def _get(self): ## u'Indicates if zero seconds are included in formatted output.' ## #return Show ## def _set(self, Show): ## u'Indicates if zero seconds are included in formatted output.' ## ShowZeroSeconds = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if zero minutes are included in formatted output.' ## #return Show ## def _set(self, Show): ## u'Indicates if zero minutes are included in formatted output.' ## ShowZeroMinutes = property(_get, _set, doc = _set.__doc__) ## class XMLTypeMapper(CoClass): u'A type converter for XML and native types.' _reg_clsid_ = GUID('{DCB0F748-2D17-40B5-90C2-7D0B39660405}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) XMLTypeMapper._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLTypeMapper, IXMLTypeMapper2, ISupportErrorInfo] class IObjectValidate(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for validating an object.' _iid_ = GUID('{55446BEB-10CA-40A4-9F40-261CA4A7F35A}') _idlflags_ = ['oleautomation'] IObjectValidate._methods_ = [ COMMETHOD([helpstring(u'Validates an object.')], HRESULT, 'Validate', ( ['in'], POINTER(IPropertySet), 'props' )), ] ################################################################ ## code template for IObjectValidate implementation ##class IObjectValidate_Impl(object): ## def Validate(self, props): ## u'Validates an object.' ## #return ## IXMLReader._methods_ = [ COMMETHOD([helpstring(u'Specifies the input XML stream.')], HRESULT, 'ReadFrom', ( ['in'], POINTER(IStream), 'inputStream' )), COMMETHOD(['propget', helpstring(u'Local name of current element.')], HRESULT, 'LocalName', ( ['retval', 'out'], POINTER(BSTR), 'LocalName' )), COMMETHOD(['propget', helpstring(u'Namespace URI of current element.')], HRESULT, 'NamespaceURI', ( ['retval', 'out'], POINTER(BSTR), 'uri' )), COMMETHOD(['propget', helpstring(u'Namespace prefix of current element.')], HRESULT, 'NamespacePrefix', ( ['retval', 'out'], POINTER(BSTR), 'Prefix' )), COMMETHOD(['propget', helpstring(u'Namespace declarations of current element.')], HRESULT, 'NamespaceDeclarations', ( ['retval', 'out'], POINTER(POINTER(IXMLNamespaces)), 'namespaces' )), COMMETHOD(['propget', helpstring(u'Attributes of current element.')], HRESULT, 'Attributes', ( ['retval', 'out'], POINTER(POINTER(IXMLAttributes)), 'Attributes' )), COMMETHOD(['propget', helpstring(u'Text value of current element.')], HRESULT, 'Text', ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD(['propget', helpstring(u'Indicates whether the current element has child elements.')], HRESULT, 'HasElementChildren', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'hasChildren' )), COMMETHOD(['propget', helpstring(u'Indicates whether the current element is the last child element of its parent.')], HRESULT, 'IsLastChild', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'isLast' )), COMMETHOD([helpstring(u'Moves position to next element.')], HRESULT, 'NextElement'), COMMETHOD([helpstring(u'Moves position to first child element.')], HRESULT, 'OpenElement'), COMMETHOD([helpstring(u'Moves position to parent element.')], HRESULT, 'CloseElement'), COMMETHOD([helpstring(u'Obtains the prefix for a declared URI.')], HRESULT, 'LookupPrefix', ( ['in'], BSTR, 'Prefix' ), ( ['retval', 'out'], POINTER(BSTR), 'uri' )), COMMETHOD([helpstring(u'Reads the current element value as a boolean.')], HRESULT, 'ReadBoolean', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a byte.')], HRESULT, 'ReadByte', ( ['retval', 'out'], POINTER(c_ubyte), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a short.')], HRESULT, 'ReadShort', ( ['retval', 'out'], POINTER(c_short), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a long.')], HRESULT, 'ReadInteger', ( ['retval', 'out'], POINTER(c_int), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a float.')], HRESULT, 'ReadFloat', ( ['retval', 'out'], POINTER(c_float), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a double.')], HRESULT, 'ReadDouble', ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a date.')], HRESULT, 'ReadDate', ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a binary array.')], HRESULT, 'ReadBinary', ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as a variant.')], HRESULT, 'ReadVariant', ( ['retval', 'out'], POINTER(VARIANT), 'Value' )), ] ################################################################ ## code template for IXMLReader implementation ##class IXMLReader_Impl(object): ## @property ## def NamespaceURI(self): ## u'Namespace URI of current element.' ## #return uri ## ## @property ## def Attributes(self): ## u'Attributes of current element.' ## #return Attributes ## ## @property ## def IsLastChild(self): ## u'Indicates whether the current element is the last child element of its parent.' ## #return isLast ## ## def LookupPrefix(self, Prefix): ## u'Obtains the prefix for a declared URI.' ## #return uri ## ## def ReadDate(self): ## u'Reads the current element value as a date.' ## #return Value ## ## def NextElement(self): ## u'Moves position to next element.' ## #return ## ## def OpenElement(self): ## u'Moves position to first child element.' ## #return ## ## @property ## def NamespaceDeclarations(self): ## u'Namespace declarations of current element.' ## #return namespaces ## ## def ReadByte(self): ## u'Reads the current element value as a byte.' ## #return Value ## ## def ReadFloat(self): ## u'Reads the current element value as a float.' ## #return Value ## ## def ReadBoolean(self): ## u'Reads the current element value as a boolean.' ## #return Value ## ## def ReadInteger(self): ## u'Reads the current element value as a long.' ## #return Value ## ## @property ## def LocalName(self): ## u'Local name of current element.' ## #return LocalName ## ## def ReadVariant(self): ## u'Reads the current element value as a variant.' ## #return Value ## ## def ReadBinary(self): ## u'Reads the current element value as a binary array.' ## #return Value ## ## def ReadShort(self): ## u'Reads the current element value as a short.' ## #return Value ## ## @property ## def HasElementChildren(self): ## u'Indicates whether the current element has child elements.' ## #return hasChildren ## ## def CloseElement(self): ## u'Moves position to parent element.' ## #return ## ## @property ## def Text(self): ## u'Text value of current element.' ## #return Text ## ## @property ## def NamespacePrefix(self): ## u'Namespace prefix of current element.' ## #return Prefix ## ## def ReadDouble(self): ## u'Reads the current element value as a double.' ## #return Value ## ## def ReadFrom(self, inputStream): ## u'Specifies the input XML stream.' ## #return ## class IProxyServerInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control proxy server configuration.' _iid_ = GUID('{FC221FF0-1240-43A0-8D76-3E917D029CE6}') _idlflags_ = ['oleautomation'] class IProxyServerInfo2(IProxyServerInfo): _case_insensitive_ = True u'Provides access to additional ProxyServerInfo methods.' _iid_ = GUID('{E724E8B4-F2FB-40EA-BF7E-EB296DB6ACDA}') _idlflags_ = ['oleautomation'] IProxyServerInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Proxy server user name.')], HRESULT, 'UserName', ( ['retval', 'out'], POINTER(BSTR), 'UserName' )), COMMETHOD(['propput', helpstring(u'Proxy server user name.')], HRESULT, 'UserName', ( ['in'], BSTR, 'UserName' )), COMMETHOD(['propget', helpstring(u'Proxy server user password.')], HRESULT, 'Password', ( ['retval', 'out'], POINTER(BSTR), 'Password' )), COMMETHOD(['propput', helpstring(u'Proxy server user password.')], HRESULT, 'Password', ( ['in'], BSTR, 'Password' )), COMMETHOD(['propget', helpstring(u'Proxy server address.')], HRESULT, 'ProxyServer', ( ['retval', 'out'], POINTER(BSTR), 'ProxyServer' )), COMMETHOD(['propput', helpstring(u'Proxy server address.')], HRESULT, 'ProxyServer', ( ['in'], BSTR, 'ProxyServer' )), COMMETHOD(['propget', helpstring(u'Indicates whether a proxy server is required.')], HRESULT, 'Enabled', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Enabled' )), COMMETHOD(['propput', helpstring(u'Indicates whether a proxy server is required.')], HRESULT, 'Enabled', ( ['in'], VARIANT_BOOL, 'Enabled' )), COMMETHOD([helpstring(u'Read proxy server configuration from the registry.')], HRESULT, 'ReadProxyServerInfo'), COMMETHOD([helpstring(u'Write proxy server configuration to the registry.')], HRESULT, 'WriteProxyServerInfo'), ] ################################################################ ## code template for IProxyServerInfo implementation ##class IProxyServerInfo_Impl(object): ## def _get(self): ## u'Proxy server user name.' ## #return UserName ## def _set(self, UserName): ## u'Proxy server user name.' ## UserName = property(_get, _set, doc = _set.__doc__) ## ## def ReadProxyServerInfo(self): ## u'Read proxy server configuration from the registry.' ## #return ## ## def _get(self): ## u'Indicates whether a proxy server is required.' ## #return Enabled ## def _set(self, Enabled): ## u'Indicates whether a proxy server is required.' ## Enabled = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Proxy server address.' ## #return ProxyServer ## def _set(self, ProxyServer): ## u'Proxy server address.' ## ProxyServer = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Proxy server user password.' ## #return Password ## def _set(self, Password): ## u'Proxy server user password.' ## Password = property(_get, _set, doc = _set.__doc__) ## ## def WriteProxyServerInfo(self): ## u'Write proxy server configuration to the registry.' ## #return ## IProxyServerInfo2._methods_ = [ COMMETHOD(['propget', helpstring(u'Indicates credentials cancel state.')], HRESULT, 'CredentialsCancelled', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD(['propput', helpstring(u'Indicates credentials cancel state.')], HRESULT, 'CredentialsCancelled', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Cache proxy credentials.')], HRESULT, 'CacheProxyCredentials'), ] ################################################################ ## code template for IProxyServerInfo2 implementation ##class IProxyServerInfo2_Impl(object): ## def CacheProxyCredentials(self): ## u'Cache proxy credentials.' ## #return ## ## def _get(self): ## u'Indicates credentials cancel state.' ## #return Value ## def _set(self, Value): ## u'Indicates credentials cancel state.' ## CredentialsCancelled = property(_get, _set, doc = _set.__doc__) ## class FileNames(CoClass): u'FileNames object maintains an array of file paths.' _reg_clsid_ = GUID('{A3DCEA3A-EBD5-11D4-A656-0008C711C8C1}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) FileNames._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IFileNames, IFileNames2] class LongArray(CoClass): u'An object for holding a Long array.' _reg_clsid_ = GUID('{98BFB808-E91F-11D2-9F81-00C04F8ECE27}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) LongArray._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ILongArray, IXMLSerialize, IPersist, IPersistStream] class PropertySet(CoClass): u'Esri Property Set object.' _reg_clsid_ = GUID('{588E5A11-D09B-11D1-AA7C-00C04FA33A15}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IPropertySet2(IPropertySet): _case_insensitive_ = True u'Provides access to members for managing a PropertySet.' _iid_ = GUID('{613C41D5-3325-11D4-8141-00C04F686238}') _idlflags_ = ['oleautomation'] class IClone(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control cloning of objects.' _iid_ = GUID('{9BFF8AEB-E415-11D0-943C-080009EEBECB}') _idlflags_ = ['oleautomation'] PropertySet._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IPropertySet, IPropertySet2, IXMLSerialize, IPersist, IPersistStream, IClone] class SSLInfo(CoClass): u'A utility class for setting SSL configuration information.' _reg_clsid_ = GUID('{D5853DC9-D6A6-467A-9577-3357CCCD786A}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class ISSLInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control HTTPS configuration.' _iid_ = GUID('{0DBCFAFE-4724-416C-A4CD-C0EED8CA7D87}') _idlflags_ = ['oleautomation'] SSLInfo._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ISSLInfo] class EnvironmentManager(CoClass): u'Singleton object that manages different environments (collections of configuration information).' _reg_clsid_ = GUID('{8A626D49-5F5E-47D9-9463-0B802E9C4167}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IEnvironmentManager(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to environments.' _iid_ = GUID('{3551EB0B-AE83-40A3-A048-02AB9FFBEE0D}') _idlflags_ = ['oleautomation'] EnvironmentManager._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IEnvironmentManager] class ComponentCategoryManager(CoClass): u'Component Category Manager Object.' _reg_clsid_ = GUID('{D9B58742-322D-11D2-A29A-080009B6F22B}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IComponentCategoryManager(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that work with the component category manager.' _iid_ = GUID('{D9B58741-322D-11D2-A29A-080009B6F22B}') _idlflags_ = ['oleautomation'] class IComponentCategoryInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that work with the component category manager.' _iid_ = GUID('{C5185FD4-557C-4E07-9A75-ABF060F2EF41}') _idlflags_ = ['oleautomation'] ComponentCategoryManager._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IComponentCategoryManager, IComponentCategoryInfo] class DoubleArray(CoClass): u'An object for holding a Double array.' _reg_clsid_ = GUID('{60C06CA7-E09E-11D2-9F7B-00C04F8ECE27}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) DoubleArray._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IDoubleArray, IXMLSerialize, IPersist, IPersistStream] class UID(CoClass): u'Unique Identifier Object.' _reg_clsid_ = GUID('{78FF7FA1-FB2F-11D1-94A2-080009EEBECB}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) UID._com_interfaces_ = [IUID, IPersist, IPersistStream, IXMLSerialize] class VariantStreamIO(CoClass): u'Helper object that performs stream IO for Variants.' _reg_clsid_ = GUID('{12DADD0E-4D96-4599-B4BA-F9246A8AD312}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) VariantStreamIO._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IVariantStreamIO, IVariantStream, IDocumentVersion] class IEnumUID(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to an enumerator over a set of component IDs.' _iid_ = GUID('{CD5F0F7D-38EE-4DE5-8EFD-41FDB542B501}') _idlflags_ = ['oleautomation'] IEnumUID._methods_ = [ COMMETHOD([helpstring(u'Obtains the next component ID in the collection.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(POINTER(IUID)), 'pComponentID' )), COMMETHOD([helpstring(u'Resets the enumerator back to the beginning of the collection.')], HRESULT, 'Reset'), ] ################################################################ ## code template for IEnumUID implementation ##class IEnumUID_Impl(object): ## def Reset(self): ## u'Resets the enumerator back to the beginning of the collection.' ## #return ## ## def Next(self): ## u'Obtains the next component ID in the collection.' ## #return pComponentID ## class StrArray(CoClass): u'An object for holding a String array.' _reg_clsid_ = GUID('{A7F92065-36CE-47B6-A463-4763DA947CC2}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) StrArray._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IStringArray, IXMLSerialize, IPersist, IPersistStream] class VarArray(CoClass): u'An object for holding a Variant array.' _reg_clsid_ = GUID('{762F0474-ECA2-475B-99F4-26678D79436E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IVariantArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control variant arrays.' _iid_ = GUID('{3A10189D-0377-4DDF-8C05-A2672AF6A403}') _idlflags_ = ['oleautomation'] VarArray._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IVariantArray, IXMLSerialize, IPersist, IPersistStream] class PropertySetArray(CoClass): u'A collection of IPropertySet objects.' _reg_clsid_ = GUID('{C94BBD8A-EC33-4921-8EC3-6AD4B33232C3}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IPropertySetArray(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to the IPropertySetArray Interface.' _iid_ = GUID('{93FC737F-8C92-4C92-B0D7-75E71FD753C9}') _idlflags_ = ['oleautomation'] class IXMLVersionSupport(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that help in serializing an object to different namespaces (versions).' _iid_ = GUID('{72CA65B9-13DE-48B7-8443-717B69B72A99}') _idlflags_ = ['oleautomation'] PropertySetArray._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IPropertySetArray, IXMLSerialize, IPersistStream, IPersist, IXMLVersionSupport] class UnitConverter(CoClass): u'Helper CoClass to convert units.' _reg_clsid_ = GUID('{2F65C2F2-701B-4E11-9157-FC4A3D0B6069}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IUnitConverter(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members used for converting units.' _iid_ = GUID('{1F3FBCA9-6611-4567-88E4-E0FA8B6FB26D}') _idlflags_ = ['oleautomation'] UnitConverter._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IUnitConverter] class AngularConverter(CoClass): u'Converts angle measurement from one unit to another.' _reg_clsid_ = GUID('{4D380153-9B16-41AC-8F9F-A23D9C2DDFE4}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IAngularConverter(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods that allow an angle to be converted from one direction unit to another.' _iid_ = GUID('{1B64B6B4-1434-4172-8666-BBF83E5C467B}') _idlflags_ = ['oleautomation'] class IAngularConverter2(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods that allow an angle to be converted from one direction unit to another.' _iid_ = GUID('{95674BA9-3CD5-429D-A5AC-9D105A099CF7}') _idlflags_ = ['oleautomation'] AngularConverter._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IAngularConverter, IAngularConverter2] IPersistStream._methods_ = [ COMMETHOD([], HRESULT, 'IsDirty'), COMMETHOD([], HRESULT, 'Load', ( ['in'], POINTER(IStream), 'pstm' )), COMMETHOD([], HRESULT, 'Save', ( ['in'], POINTER(IStream), 'pstm' ), ( ['in'], c_int, 'fClearDirty' )), COMMETHOD([], HRESULT, 'GetSizeMax', ( ['out'], POINTER(_ULARGE_INTEGER), 'pcbSize' )), ] ################################################################ ## code template for IPersistStream implementation ##class IPersistStream_Impl(object): ## def Load(self, pstm): ## '-no docstring-' ## #return ## ## def GetSizeMax(self): ## '-no docstring-' ## #return pcbSize ## ## def Save(self, pstm, fClearDirty): ## '-no docstring-' ## #return ## ## def IsDirty(self): ## '-no docstring-' ## #return ## class ScaleFormat(CoClass): u'A utility object for formatting scale.' _reg_clsid_ = GUID('{7B759B6D-DF88-4AED-ADD7-6F53105B47A4}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IScaleFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to scale formatting options.' _iid_ = GUID('{AE9EDA31-A9F0-4687-B3A5-8C061C92D3EB}') _idlflags_ = ['oleautomation'] ScaleFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IScaleFormat, IPersistStream, IPersist, IClone, IDocumentVersionSupportGEN] # values for enumeration 'esriHttpMethod' esriHttpMethodPost = 0 esriHttpMethodGet = 1 esriHttpMethodPut = 2 esriHttpMethodDelete = 3 esriHttpMethodHead = 4 esriHttpMethodTrace = 5 esriHttpMethodOptions = 6 esriHttpMethod = c_int # enum IJobRegistry._methods_ = [ COMMETHOD([helpstring(u'Initializes the jobs registry.')], HRESULT, 'Init', ( ['in'], BSTR, 'Path' )), COMMETHOD([helpstring(u'Registers job.')], HRESULT, 'RegisterJob', ( ['in'], BSTR, 'JobID' ), ( ['in'], BSTR, 'jobDir' )), COMMETHOD([helpstring(u'Unregisters job.')], HRESULT, 'UnregisterJob', ( ['in'], BSTR, 'JobID' )), COMMETHOD([helpstring(u"Returns path to job's directory.")], HRESULT, 'GetJobDirectory', ( ['in'], BSTR, 'JobID' ), ( ['retval', 'out'], POINTER(BSTR), 'Path' )), ] ################################################################ ## code template for IJobRegistry implementation ##class IJobRegistry_Impl(object): ## def Init(self, Path): ## u'Initializes the jobs registry.' ## #return ## ## def RegisterJob(self, JobID, jobDir): ## u'Registers job.' ## #return ## ## def GetJobDirectory(self, JobID): ## u"Returns path to job's directory." ## #return Path ## ## def UnregisterJob(self, JobID): ## u'Unregisters job.' ## #return ## IXMLVersionSupport._methods_ = [ COMMETHOD(['propget', helpstring(u'The minimum namespace the class can serialize to (eg the 90 namespace).')], HRESULT, 'MinNamespaceSupported', ( ['retval', 'out'], POINTER(BSTR), 'NamespaceURI' )), ] ################################################################ ## code template for IXMLVersionSupport implementation ##class IXMLVersionSupport_Impl(object): ## @property ## def MinNamespaceSupported(self): ## u'The minimum namespace the class can serialize to (eg the 90 namespace).' ## #return NamespaceURI ## class CategoryFactory(CoClass): u'Component Category Factory.' _reg_clsid_ = GUID('{A8253EB1-9381-11D2-8521-0000F875B9C6}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class ICategoryFactory(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that work with the category factory.' _iid_ = GUID('{A8253EB0-9381-11D2-8521-0000F875B9C6}') _idlflags_ = ['oleautomation'] CategoryFactory._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ICategoryFactory] class IAMFSerializer(IExternalSerializer): _case_insensitive_ = True u'Provides access to high-level AMF serialization methods.' _iid_ = GUID('{8F6F56FC-A942-44F5-AF7D-5312FDF0C0C6}') _idlflags_ = ['oleautomation'] IAMFSerializer._methods_ = [ COMMETHOD(['propget', helpstring(u'Obtains AMF Writer.')], HRESULT, 'Writer', ( ['retval', 'out'], POINTER(POINTER(IAMFWriter)), 'ppWriter' )), COMMETHOD([helpstring(u'Write serialization options.')], HRESULT, 'InitSerializer', ( ['in'], POINTER(IAMFWriter), 'pWriter' ), ( ['in'], POINTER(IPropertySet), 'pProps' )), COMMETHOD([helpstring(u'AMF message packet #1 call. Write AMF0 message version.')], HRESULT, 'WriteAMF0MessageVersion', ( ['in'], c_short, 'sVersion' )), COMMETHOD([helpstring(u'AMF message packet #2 call. Write header count. Use zero to skip headers.')], HRESULT, 'WriteAMF0HeaderCount', ( ['in'], c_short, 'headerCount' )), COMMETHOD([helpstring(u'AMF message packet #2a call. Write header(s).')], HRESULT, 'WriteAMF0Header', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT_BOOL, 'mustUnderstand' ), ( ['in'], VARIANT, 'Value' )), COMMETHOD([helpstring(u'AMF message packet #3 call. Write message count.')], HRESULT, 'WriteAMF0MessageCount', ( ['in'], c_short, 'messageCount' )), COMMETHOD([helpstring(u'AMF message packet #3a call. Write message(s). Set isAMF3content to true if you are sending AMF3 data in the message.')], HRESULT, 'WriteAMF0MessageHeader', ( ['in'], BSTR, 'targetURI' ), ( ['in'], BSTR, 'respURI' ), ( ['in'], c_int, 'length' )), ] ################################################################ ## code template for IAMFSerializer implementation ##class IAMFSerializer_Impl(object): ## @property ## def Writer(self): ## u'Obtains AMF Writer.' ## #return ppWriter ## ## def InitSerializer(self, pWriter, pProps): ## u'Write serialization options.' ## #return ## ## def WriteAMF0HeaderCount(self, headerCount): ## u'AMF message packet #2 call. Write header count. Use zero to skip headers.' ## #return ## ## def WriteAMF0Header(self, Name, mustUnderstand, Value): ## u'AMF message packet #2a call. Write header(s).' ## #return ## ## def WriteAMF0MessageCount(self, messageCount): ## u'AMF message packet #3 call. Write message count.' ## #return ## ## def WriteAMF0MessageHeader(self, targetURI, respURI, length): ## u'AMF message packet #3a call. Write message(s). Set isAMF3content to true if you are sending AMF3 data in the message.' ## #return ## ## def WriteAMF0MessageVersion(self, sVersion): ## u'AMF message packet #1 call. Write AMF0 message version.' ## #return ## class BaseStatistics(CoClass): u'Base statistics class for generating and reporting statistics.' _reg_clsid_ = GUID('{B9C4358C-78B8-11D2-AE60-080009EC732A}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IGenerateStatistics(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members used for generating statistics.' _iid_ = GUID('{B9C43589-78B8-11D2-AE60-080009EC732A}') _idlflags_ = ['oleautomation'] class IStatisticsResults(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members used for reporting statistics.' _iid_ = GUID('{B9C4358A-78B8-11D2-AE60-080009EC732A}') _idlflags_ = ['oleautomation'] class IFrequencyStatistics(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members used for reporting frequency statistics.' _iid_ = GUID('{B9C4358B-78B8-11D2-AE60-080009EC732A}') _idlflags_ = ['oleautomation'] BaseStatistics._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IGenerateStatistics, IStatisticsResults, IFrequencyStatistics] class FileStream(CoClass): u'Specialized kind of IStream for files.' _reg_clsid_ = GUID('{381D1AA1-C06F-11D2-9F82-00C04F8ED211}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IBlobStream(IStream): _case_insensitive_ = True u'Provides access to members that control a Blob Stream.' _iid_ = GUID('{BC92995E-E736-11D0-9A93-080009EC734B}') _idlflags_ = [] class IFile(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to a method that opens a file.' _iid_ = GUID('{381D1AA2-C06F-11D2-9F82-00C04F8ED211}') _idlflags_ = ['oleautomation'] FileStream._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IBlobStream, IFile, IDocumentVersion] class LicenseInfoEnum(CoClass): u'Enumerator of extension licenses supported by a product.' _reg_clsid_ = GUID('{E495E958-5244-4F9B-BF02-42C276964953}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) LicenseInfoEnum._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ILicenseInfoEnum] class AoInitialize(CoClass): u'Class initializes ArcObject components runtime environment. This class must be the first ArcObject created.' _reg_clsid_ = GUID('{E01BE902-CC85-4B13-A828-02E789E0DDA9}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IAoInitialize(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that initialize licensing for ArcGIS Desktop, Engine, and Server.' _iid_ = GUID('{9AB6A638-ACA8-4820-830C-463EA11C8722}') _idlflags_ = ['oleautomation'] AoInitialize._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IAoInitialize, ISupportErrorInfo, ILicenseInformation] IClone._methods_ = [ COMMETHOD([helpstring(u'Clones the receiver and assigns the result to *clone.')], HRESULT, 'Clone', ( ['retval', 'out'], POINTER(POINTER(IClone)), 'Clone' )), COMMETHOD([helpstring(u'Assigns the properties of src to the receiver.')], HRESULT, 'Assign', ( ['in'], POINTER(IClone), 'src' )), COMMETHOD([helpstring(u'Indicates if the receiver and other have the same properties.')], HRESULT, 'IsEqual', ( ['in'], POINTER(IClone), 'other' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'equal' )), COMMETHOD([helpstring(u'Indicates if the receiver and other are the same object.')], HRESULT, 'IsIdentical', ( ['in'], POINTER(IClone), 'other' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'identical' )), ] ################################################################ ## code template for IClone implementation ##class IClone_Impl(object): ## def Clone(self): ## u'Clones the receiver and assigns the result to *clone.' ## #return Clone ## ## def IsIdentical(self, other): ## u'Indicates if the receiver and other are the same object.' ## #return identical ## ## def Assign(self, src): ## u'Assigns the properties of src to the receiver.' ## #return ## ## def IsEqual(self, other): ## u'Indicates if the receiver and other have the same properties.' ## #return equal ## class ExtensionManager(CoClass): u'Extension Manager - a singleton.' _reg_clsid_ = GUID('{6120BC0A-3D90-4274-97CA-713C41F1FAFF}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IExtensionManager(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that query extension.' _iid_ = GUID('{05C71634-D9D5-4D6F-B68E-D7661142FA06}') _idlflags_ = ['oleautomation'] class IExtensionManagerAdmin(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that give life to the extensions.' _iid_ = GUID('{262C00F9-114D-45F8-BC9D-A0DD208DC9E1}') _idlflags_ = ['oleautomation'] class IJITExtensionManager(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to the Just In Time Extension Manager.' _iid_ = GUID('{0E3B4663-4CA5-4638-AA4A-7D89878209E5}') _idlflags_ = ['oleautomation'] ExtensionManager._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IExtensionManager, IExtensionManagerAdmin, ISupportErrorInfo, IJITExtensionManager] class MemoryBlobStream(CoClass): u'Memory blob stream object.' _reg_clsid_ = GUID('{BC929960-E736-11D0-9A93-080009EC734B}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IMemoryBlobStream(IBlobStream): _case_insensitive_ = True u'Provides access to members that control the Blob Stream.' _iid_ = GUID('{BC92995F-E736-11D0-9A93-080009EC734B}') _idlflags_ = [] class IMemoryBlobStream2(IMemoryBlobStream): _case_insensitive_ = True u'Provides access to members that control the Blob Stream.' _iid_ = GUID('{5CE09F2C-9C93-4A3B-83AD-E12FB6A67AD4}') _idlflags_ = [] class IMemoryBlobStreamVariant(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for importing and exporting variants to and from a MemoryBlobStream.' _iid_ = GUID('{68F0AB65-E2B7-40D8-AA3B-3B7764607DD3}') _idlflags_ = ['oleautomation'] MemoryBlobStream._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IMemoryBlobStream, IMemoryBlobStream2, IMemoryBlobStreamVariant, IDocumentVersion, ISupportErrorInfo] class FileName(CoClass): u'File Name Object.' _reg_clsid_ = GUID('{53DA75DF-D01A-11D2-9F27-00C04F6BC69E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IFileName(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to the pathnames of files.' _iid_ = GUID('{53DA75E0-D01A-11D2-9F27-00C04F6BC69E}') _idlflags_ = ['oleautomation'] FileName._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IName, IFileName, IPersistStream] class IJobInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to info properties of the job.' _iid_ = GUID('{4A106E7E-D1E7-420F-AECF-CBC867A7FF17}') _idlflags_ = ['oleautomation'] IJob._methods_ = [ COMMETHOD(['propget', helpstring(u'Job id.')], HRESULT, 'JobID', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD(['propget', helpstring(u'Job definition.')], HRESULT, 'JobDefinition', ( ['retval', 'out'], POINTER(POINTER(IJobDefinition)), 'ppVal' )), COMMETHOD(['propput', helpstring(u'Job definition.')], HRESULT, 'JobDefinition', ( ['in'], POINTER(IJobDefinition), 'ppVal' )), COMMETHOD(['propget', helpstring(u'Job info.')], HRESULT, 'JobInfo', ( ['retval', 'out'], POINTER(POINTER(IJobInfo)), 'ppVal' )), COMMETHOD(['propput', helpstring(u'Job info.')], HRESULT, 'JobInfo', ( ['in'], POINTER(IJobInfo), 'ppVal' )), COMMETHOD(['propget', helpstring(u'Job results.')], HRESULT, 'JobResults', ( ['retval', 'out'], POINTER(POINTER(IJobResults)), 'ppVal' )), COMMETHOD(['propput', helpstring(u'Job results.')], HRESULT, 'JobResults', ( ['in'], POINTER(IJobResults), 'ppVal' )), COMMETHOD(['propget', helpstring(u'Job messages.')], HRESULT, 'JobMessages', ( ['retval', 'out'], POINTER(POINTER(IJobMessages)), 'ppVal' )), COMMETHOD(['propput', helpstring(u'Job messages.')], HRESULT, 'JobMessages', ( ['in'], POINTER(IJobMessages), 'ppVal' )), COMMETHOD(['propget', helpstring(u'Job status.')], HRESULT, 'JobStatus', ( ['retval', 'out'], POINTER(esriJobStatus), 'pVal' )), COMMETHOD(['propput', helpstring(u'Job status.')], HRESULT, 'JobStatus', ( ['in'], esriJobStatus, 'pVal' )), COMMETHOD(['propget', helpstring(u'Job directory.')], HRESULT, 'JobDirectory', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), ] ################################################################ ## code template for IJob implementation ##class IJob_Impl(object): ## def _get(self): ## u'Job results.' ## #return ppVal ## def _set(self, ppVal): ## u'Job results.' ## JobResults = property(_get, _set, doc = _set.__doc__) ## ## @property ## def JobDirectory(self): ## u'Job directory.' ## #return pVal ## ## def _get(self): ## u'Job status.' ## #return pVal ## def _set(self, pVal): ## u'Job status.' ## JobStatus = property(_get, _set, doc = _set.__doc__) ## ## @property ## def JobID(self): ## u'Job id.' ## #return pVal ## ## def _get(self): ## u'Job messages.' ## #return ppVal ## def _set(self, ppVal): ## u'Job messages.' ## JobMessages = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Job definition.' ## #return ppVal ## def _set(self, ppVal): ## u'Job definition.' ## JobDefinition = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Job info.' ## #return ppVal ## def _set(self, ppVal): ## u'Job info.' ## JobInfo = property(_get, _set, doc = _set.__doc__) ## class AoAuthorizeLicense(CoClass): u'Class performs license authorization.' _reg_clsid_ = GUID('{6DBE8BF8-6000-4734-B1A8-C81C69651C06}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IAuthorizeLicense(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that authorize Esri licenses.' _iid_ = GUID('{46EBBB64-19B8-437A-8DF4-4378D88F6731}') _idlflags_ = ['oleautomation'] AoAuthorizeLicense._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IAuthorizeLicense] class ObjectCopy(CoClass): u'CoClass to copy objects by value.' _reg_clsid_ = GUID('{9C3673EB-BC0A-11D5-A9DF-00104BB6FC1C}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IObjectCopy(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members to copy objects by value. The object must support IPersistStream to be copied.' _iid_ = GUID('{9C3673EA-BC0A-11D5-A9DF-00104BB6FC1C}') _idlflags_ = ['oleautomation'] ObjectCopy._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IObjectCopy] class XMLPersistedObject(CoClass): u'CoClass to serialize objects to XML.' _reg_clsid_ = GUID('{C0D4AD6B-ADB3-4B98-8927-1F0EC039BB5E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) XMLPersistedObject._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IXMLPersistedObject, IXMLSerialize] ISequentialStream._methods_ = [ COMMETHOD([], HRESULT, 'RemoteRead', ( ['out'], POINTER(c_ubyte), 'pv' ), ( ['in'], c_ulong, 'cb' ), ( ['out'], POINTER(c_ulong), 'pcbRead' )), COMMETHOD([], HRESULT, 'RemoteWrite', ( ['in'], POINTER(c_ubyte), 'pv' ), ( ['in'], c_ulong, 'cb' ), ( ['out'], POINTER(c_ulong), 'pcbWritten' )), ] ################################################################ ## code template for ISequentialStream implementation ##class ISequentialStream_Impl(object): ## def RemoteRead(self, cb): ## '-no docstring-' ## #return pv, pcbRead ## ## def RemoteWrite(self, pv, cb): ## '-no docstring-' ## #return pcbWritten ## class tagSTATSTG(Structure): pass IStream._methods_ = [ COMMETHOD([], HRESULT, 'RemoteSeek', ( ['in'], _LARGE_INTEGER, 'dlibMove' ), ( ['in'], c_ulong, 'dwOrigin' ), ( ['out'], POINTER(_ULARGE_INTEGER), 'plibNewPosition' )), COMMETHOD([], HRESULT, 'SetSize', ( ['in'], _ULARGE_INTEGER, 'libNewSize' )), COMMETHOD([], HRESULT, 'RemoteCopyTo', ( ['in'], POINTER(IStream), 'pstm' ), ( ['in'], _ULARGE_INTEGER, 'cb' ), ( ['out'], POINTER(_ULARGE_INTEGER), 'pcbRead' ), ( ['out'], POINTER(_ULARGE_INTEGER), 'pcbWritten' )), COMMETHOD([], HRESULT, 'Commit', ( ['in'], c_ulong, 'grfCommitFlags' )), COMMETHOD([], HRESULT, 'Revert'), COMMETHOD([], HRESULT, 'LockRegion', ( ['in'], _ULARGE_INTEGER, 'libOffset' ), ( ['in'], _ULARGE_INTEGER, 'cb' ), ( ['in'], c_ulong, 'dwLockType' )), COMMETHOD([], HRESULT, 'UnlockRegion', ( ['in'], _ULARGE_INTEGER, 'libOffset' ), ( ['in'], _ULARGE_INTEGER, 'cb' ), ( ['in'], c_ulong, 'dwLockType' )), COMMETHOD([], HRESULT, 'Stat', ( ['out'], POINTER(tagSTATSTG), 'pstatstg' ), ( ['in'], c_ulong, 'grfStatFlag' )), COMMETHOD([], HRESULT, 'Clone', ( ['out'], POINTER(POINTER(IStream)), 'ppstm' )), ] ################################################################ ## code template for IStream implementation ##class IStream_Impl(object): ## def RemoteSeek(self, dlibMove, dwOrigin): ## '-no docstring-' ## #return plibNewPosition ## ## def Stat(self, grfStatFlag): ## '-no docstring-' ## #return pstatstg ## ## def UnlockRegion(self, libOffset, cb, dwLockType): ## '-no docstring-' ## #return ## ## def Clone(self): ## '-no docstring-' ## #return ppstm ## ## def Revert(self): ## '-no docstring-' ## #return ## ## def RemoteCopyTo(self, pstm, cb): ## '-no docstring-' ## #return pcbRead, pcbWritten ## ## def LockRegion(self, libOffset, cb, dwLockType): ## '-no docstring-' ## #return ## ## def Commit(self, grfCommitFlags): ## '-no docstring-' ## #return ## ## def SetSize(self, libNewSize): ## '-no docstring-' ## #return ## IBlobStream._methods_ = [ COMMETHOD(['propget', helpstring(u'The size of the stream.')], HRESULT, 'Size', ( ['retval', 'out'], POINTER(c_ulong), 'Size' )), COMMETHOD(['propput', helpstring(u'The size of the stream.')], HRESULT, 'Size', ( ['in'], c_ulong, 'Size' )), COMMETHOD([helpstring(u'Saves the stream to the specified file.')], HRESULT, 'SaveToFile', ( ['in'], BSTR, 'FileName' )), COMMETHOD([helpstring(u'Loads a stream from the specified file.')], HRESULT, 'LoadFromFile', ( ['in'], BSTR, 'FileName' )), ] ################################################################ ## code template for IBlobStream implementation ##class IBlobStream_Impl(object): ## def LoadFromFile(self, FileName): ## u'Loads a stream from the specified file.' ## #return ## ## def SaveToFile(self, FileName): ## u'Saves the stream to the specified file.' ## #return ## ## def _get(self): ## u'The size of the stream.' ## #return Size ## def _set(self, Size): ## u'The size of the stream.' ## Size = property(_get, _set, doc = _set.__doc__) ## IMemoryBlobStream._methods_ = [ COMMETHOD([helpstring(u'Attaches the stream to memory. If transferOwnership is true, memory must be allocated with HeapAlloc() using GetProcessHeap().')], HRESULT, 'AttachToMemory', ( ['in'], POINTER(c_ubyte), 'blobMemory' ), ( [], c_ulong, 'Size' ), ( [], c_int, 'transferOwnership' )), COMMETHOD([helpstring(u'Import using another blob.')], HRESULT, 'ImportFromMemory', ( ['in'], POINTER(c_ubyte), 'blobMemory' ), ( [], c_ulong, 'Size' )), COMMETHOD(['propget', helpstring(u'The memory of the blob stream.')], HRESULT, 'Memory', ( ['out'], POINTER(POINTER(c_ubyte)), 'blobMemory' ), ( ['out'], POINTER(c_ulong), 'Size' )), ] ################################################################ ## code template for IMemoryBlobStream implementation ##class IMemoryBlobStream_Impl(object): ## def ImportFromMemory(self, blobMemory, Size): ## u'Import using another blob.' ## #return ## ## def AttachToMemory(self, blobMemory, Size, transferOwnership): ## u'Attaches the stream to memory. If transferOwnership is true, memory must be allocated with HeapAlloc() using GetProcessHeap().' ## #return ## ## @property ## def Memory(self): ## u'The memory of the blob stream.' ## #return blobMemory, Size ## class _WKSPointZ(Structure): pass _WKSPointZ._fields_ = [ ('X', c_double), ('Y', c_double), ('Z', c_double), ] assert sizeof(_WKSPointZ) == 24, sizeof(_WKSPointZ) assert alignment(_WKSPointZ) == 8, alignment(_WKSPointZ) # values for enumeration 'esriWebResponseDataType' esriWRDTPayload = 0 esriWRDTFileToReturn = 1 esriWebResponseDataType = c_int # enum class ShortcutName(CoClass): u'GxObject that represents the shortcut Name Object.' _reg_clsid_ = GUID('{3BEB09E4-3941-4A07-9D1A-EC2B43BA7D50}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IShortcutName(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that define the target for the shortcut name.' _iid_ = GUID('{E29B3C76-E7B2-458E-8732-E929391DA234}') _idlflags_ = ['oleautomation'] ShortcutName._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IName, IFileName, IShortcutName, IPersistStream] WKSPointZ = _WKSPointZ class ArcGISLocale(CoClass): u'Class for accessing ArcGIS locale.' _reg_clsid_ = GUID('{495EC746-46D4-4A6E-BD06-3A08C38465CA}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IArcGISLocale(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members for the ArcGIS locale.' _iid_ = GUID('{69467533-F25B-4EF3-B680-229B4DC6087B}') _idlflags_ = ['oleautomation'] ArcGISLocale._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IArcGISLocale] IMemoryBlobStream2._methods_ = [ COMMETHOD(['propget', helpstring(u'The allocated size of the stream.')], HRESULT, 'AllocSize', ( ['retval', 'out'], POINTER(c_ulong), 'Size' )), COMMETHOD(['propput', helpstring(u'The allocated size of the stream.')], HRESULT, 'AllocSize', ( ['in'], c_ulong, 'Size' )), COMMETHOD(['propget', helpstring(u'The allocated size of the stream.')], HRESULT, 'PaddingSize', ( ['retval', 'out'], POINTER(c_ulong), 'Size' )), COMMETHOD(['propput', helpstring(u'The allocated size of the stream.')], HRESULT, 'PaddingSize', ( ['in'], c_ulong, 'Size' )), ] ################################################################ ## code template for IMemoryBlobStream2 implementation ##class IMemoryBlobStream2_Impl(object): ## def _get(self): ## u'The allocated size of the stream.' ## #return Size ## def _set(self, Size): ## u'The allocated size of the stream.' ## AllocSize = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The allocated size of the stream.' ## #return Size ## def _set(self, Size): ## u'The allocated size of the stream.' ## PaddingSize = property(_get, _set, doc = _set.__doc__) ## class ESRILicenseInfo(CoClass): u'Esri License Info.' _reg_clsid_ = GUID('{2CCA83E3-EFE4-4CBA-9852-6C0C7521AD8E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) ESRILicenseInfo._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IESRILicenseInfo] ISupportErrorInfo._methods_ = [ COMMETHOD([], HRESULT, 'InterfaceSupportsErrorInfo', ( ['in'], POINTER(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.GUID), 'riid' )), ] ################################################################ ## code template for ISupportErrorInfo implementation ##class ISupportErrorInfo_Impl(object): ## def InterfaceSupportsErrorInfo(self, riid): ## '-no docstring-' ## #return ## class IJSONSerializer(IExternalSerializer): _case_insensitive_ = True u'Provides access to high-level JSON serialization methods.' _iid_ = GUID('{AB718CDF-0C06-4D18-9AA4-A6C54B2BC28C}') _idlflags_ = ['oleautomation'] IJSONSerializer._methods_ = [ COMMETHOD(['propget', helpstring(u'Obtains JSON Writer.')], HRESULT, 'Writer', ( ['retval', 'out'], POINTER(POINTER(IJSONWriter)), 'ppWriter' )), COMMETHOD([helpstring(u'Writes serialization options.')], HRESULT, 'InitSerializer', ( ['in'], POINTER(IJSONWriter), 'pWriter' ), ( ['in'], POINTER(IPropertySet), 'pProps' )), ] ################################################################ ## code template for IJSONSerializer implementation ##class IJSONSerializer_Impl(object): ## @property ## def Writer(self): ## u'Obtains JSON Writer.' ## #return ppWriter ## ## def InitSerializer(self, pWriter, pProps): ## u'Writes serialization options.' ## #return ## _WKSPoint._fields_ = [ ('X', c_double), ('Y', c_double), ] assert sizeof(_WKSPoint) == 16, sizeof(_WKSPoint) assert alignment(_WKSPoint) == 8, alignment(_WKSPoint) WKSEnvelope = _WKSEnvelope class IExtension(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that define an extension.' _iid_ = GUID('{7F657EC9-DBF1-11D2-9F2F-00C04F6BC69E}') _idlflags_ = ['oleautomation'] IExtension._methods_ = [ COMMETHOD(['propget', helpstring(u'The name of the extension.')], HRESULT, 'Name', ( ['retval', 'out'], POINTER(BSTR), 'extensionName' )), COMMETHOD([helpstring(u'Starts up the extension with the given initialization data.')], HRESULT, 'Startup', ( ['in'], POINTER(VARIANT), 'initializationData' )), COMMETHOD([helpstring(u'Shuts down the extension.')], HRESULT, 'Shutdown'), ] ################################################################ ## code template for IExtension implementation ##class IExtension_Impl(object): ## def Startup(self, initializationData): ## u'Starts up the extension with the given initialization data.' ## #return ## ## @property ## def Name(self): ## u'The name of the extension.' ## #return extensionName ## ## def Shutdown(self): ## u'Shuts down the extension.' ## #return ## class IMessage(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the properties of a Message.' _iid_ = GUID('{E4E5591D-C47E-4A2D-856E-8A1847547A97}') _idlflags_ = ['oleautomation'] class IErrorInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True _iid_ = GUID('{1CF2B120-547D-101B-8E65-08002B2BD119}') _idlflags_ = [] IMessage._methods_ = [ COMMETHOD(['propget', helpstring(u'Name of the message.')], HRESULT, 'Name', ( ['retval', 'out'], POINTER(BSTR), 'messageName' )), COMMETHOD(['propput', helpstring(u'Name of the message.')], HRESULT, 'Name', ( ['in'], BSTR, 'messageName' )), COMMETHOD(['propget', helpstring(u'Namespace of the message.')], HRESULT, 'NamespaceURI', ( ['retval', 'out'], POINTER(BSTR), 'uri' )), COMMETHOD(['propput', helpstring(u'Namespace of the message.')], HRESULT, 'NamespaceURI', ( ['in'], BSTR, 'uri' )), COMMETHOD(['propget', helpstring(u'Parameters of the message.')], HRESULT, 'Parameters', ( ['retval', 'out'], POINTER(POINTER(IXMLSerializeData)), 'data' )), COMMETHOD(['propget', helpstring(u'Properties of the message.')], HRESULT, 'Properties', ( ['retval', 'out'], POINTER(POINTER(IPropertySet)), 'props' )), COMMETHOD(['propputref', helpstring(u'Properties of the message.')], HRESULT, 'Properties', ( ['in'], POINTER(IPropertySet), 'props' )), COMMETHOD(['propget', helpstring(u'HRESULT of the Message.')], HRESULT, 'Result', ( ['retval', 'out'], POINTER(c_int), 'hresult' )), COMMETHOD(['propget', helpstring(u'Valid when the message is a fault.')], HRESULT, 'ErrorInfo', ( ['retval', 'out'], POINTER(POINTER(IErrorInfo)), 'ErrorInfo' )), COMMETHOD([helpstring(u'Writes error information.')], HRESULT, 'SetError', ( ['in'], c_int, 'hresult' ), ( ['in'], POINTER(IErrorInfo), 'pErrorInfo' )), COMMETHOD([helpstring(u'Reads an XML input stream for a message.')], HRESULT, 'ReadXML', ( ['in'], POINTER(IStream), 'Stream' )), COMMETHOD([helpstring(u'Writes an XML output stream for a message.')], HRESULT, 'WriteXML', ( ['in'], POINTER(IStream), 'Stream' )), ] ################################################################ ## code template for IMessage implementation ##class IMessage_Impl(object): ## def ReadXML(self, Stream): ## u'Reads an XML input stream for a message.' ## #return ## ## def _get(self): ## u'Name of the message.' ## #return messageName ## def _set(self, messageName): ## u'Name of the message.' ## Name = property(_get, _set, doc = _set.__doc__) ## ## @property ## def Parameters(self): ## u'Parameters of the message.' ## #return data ## ## def WriteXML(self, Stream): ## u'Writes an XML output stream for a message.' ## #return ## ## def _get(self): ## u'Namespace of the message.' ## #return uri ## def _set(self, uri): ## u'Namespace of the message.' ## NamespaceURI = property(_get, _set, doc = _set.__doc__) ## ## @property ## def Result(self): ## u'HRESULT of the Message.' ## #return hresult ## ## def SetError(self, hresult, pErrorInfo): ## u'Writes error information.' ## #return ## ## @property ## def ErrorInfo(self): ## u'Valid when the message is a fault.' ## #return ErrorInfo ## ## def Properties(self, props): ## u'Properties of the message.' ## #return ## class IExtensionAccelerators(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to a method that creates extension accelerators.' _iid_ = GUID('{35D9879A-DB68-4A2F-87CC-7206F0060B71}') _idlflags_ = ['oleautomation'] IExtensionAccelerators._methods_ = [ COMMETHOD([helpstring(u'Called to create the keyboard accelerators for this extension.')], HRESULT, 'CreateAccelerators'), ] ################################################################ ## code template for IExtensionAccelerators implementation ##class IExtensionAccelerators_Impl(object): ## def CreateAccelerators(self): ## u'Called to create the keyboard accelerators for this extension.' ## #return ## class IRESTCallback(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'REST handler callback interface.' _iid_ = GUID('{5D203D0E-D444-4201-BA8F-4F60FE0E4998}') _idlflags_ = ['oleautomation'] IRESTCallback._methods_ = [ COMMETHOD([helpstring(u'Callback for REST resource handling.')], HRESULT, 'HandleResource', ( ['in'], BSTR, 'Capabilities' ), ( ['in'], BSTR, 'resourceName' ), ( ['in'], POINTER(IPropertySet), 'boundVariables' ), ( ['in'], BSTR, 'inputJSON' ), ( ['in'], BSTR, 'outputFormat' ), ( ['in'], POINTER(IJSONObject), 'requestProps' ), ( ['out'], POINTER(POINTER(IJSONObject)), 'responseProps' ), ( ['out'], POINTER(VARIANT), 'outputData' )), COMMETHOD([helpstring(u'Callback for REST operation handling.')], HRESULT, 'HandleOperation', ( ['in'], BSTR, 'Capabilities' ), ( ['in'], BSTR, 'resourceName' ), ( ['in'], BSTR, 'operationName' ), ( ['in'], POINTER(IPropertySet), 'boundVariables' ), ( ['in'], BSTR, 'inputJSON' ), ( ['in'], BSTR, 'outputFormat' ), ( ['in'], POINTER(IJSONObject), 'requestProps' ), ( ['out'], POINTER(POINTER(IJSONObject)), 'responseProps' ), ( ['out'], POINTER(VARIANT), 'outputData' )), ] ################################################################ ## code template for IRESTCallback implementation ##class IRESTCallback_Impl(object): ## def HandleResource(self, Capabilities, resourceName, boundVariables, inputJSON, outputFormat, requestProps): ## u'Callback for REST resource handling.' ## #return responseProps, outputData ## ## def HandleOperation(self, Capabilities, resourceName, operationName, boundVariables, inputJSON, outputFormat, requestProps): ## u'Callback for REST operation handling.' ## #return responseProps, outputData ## class ProxyServerInfo(CoClass): u'A utility class for setting proxy server configuration information.' _reg_clsid_ = GUID('{F36507F2-7EF4-4119-A449-81998DE36AD1}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) ProxyServerInfo._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IProxyServerInfo, IProxyServerInfo2] class ILatLonFormat2(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format Latitudes and Longitudes.' _iid_ = GUID('{127B0952-E8B4-428C-AC39-58DE4D1F17DE}') _idlflags_ = ['oleautomation'] ILatLonFormat2._methods_ = [ COMMETHOD(['propput', helpstring(u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.')], HRESULT, 'ShowDirections', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.')], HRESULT, 'ShowDirections', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), COMMETHOD(['propput', helpstring(u'Indicates if a formatted number is a latitude or not.')], HRESULT, 'IsLatitude', ( ['in'], VARIANT_BOOL, 'isLat' )), COMMETHOD([helpstring(u'Obtains the degrees, minutes, and seconds for a lat/lon number.')], HRESULT, 'GetDMS', ( ['in'], c_double, 'Value' ), ( ['out'], POINTER(c_int), 'degrees' ), ( ['out'], POINTER(c_int), 'Minutes' ), ( ['out'], POINTER(c_double), 'Seconds' )), COMMETHOD(['propput', helpstring(u'Indicates if zero minutes are included in formatted output.')], HRESULT, 'ShowZeroMinutes', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if zero minutes are included in formatted output.')], HRESULT, 'ShowZeroMinutes', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), COMMETHOD(['propput', helpstring(u'Indicates if zero seconds are included in formatted output.')], HRESULT, 'ShowZeroSeconds', ( ['in'], VARIANT_BOOL, 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if zero seconds are included in formatted output.')], HRESULT, 'ShowZeroSeconds', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Show' )), COMMETHOD(['propget', helpstring(u'Indicates if a formatted number is a latitude or not.')], HRESULT, 'IsLatitude', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'isLat' )), ] ################################################################ ## code template for ILatLonFormat2 implementation ##class ILatLonFormat2_Impl(object): ## def _get(self): ## u'Indicates if a formatted number is a latitude or not.' ## #return isLat ## def _set(self, isLat): ## u'Indicates if a formatted number is a latitude or not.' ## IsLatitude = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.' ## #return Show ## def _set(self, Show): ## u'Indicates if a directional letter (N-S-E-W) is appended to the formatted number.' ## ShowDirections = property(_get, _set, doc = _set.__doc__) ## ## def GetDMS(self, Value): ## u'Obtains the degrees, minutes, and seconds for a lat/lon number.' ## #return degrees, Minutes, Seconds ## ## def _get(self): ## u'Indicates if zero seconds are included in formatted output.' ## #return Show ## def _set(self, Show): ## u'Indicates if zero seconds are included in formatted output.' ## ShowZeroSeconds = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if zero minutes are included in formatted output.' ## #return Show ## def _set(self, Show): ## u'Indicates if zero minutes are included in formatted output.' ## ShowZeroMinutes = property(_get, _set, doc = _set.__doc__) ## class IEnumRESTResource(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'REST resource enumerator.' _iid_ = GUID('{7502C3EC-249D-4616-BABB-DA81F7B5C71E}') _idlflags_ = ['oleautomation'] class IRESTResource(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'REST resource metadata object.' _iid_ = GUID('{B5561EA3-2950-4E21-9E4F-B1003B2A1BAF}') _idlflags_ = ['oleautomation'] IEnumRESTResource._methods_ = [ COMMETHOD([helpstring(u'Resets the enumerator')], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Gets next item.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(POINTER(IRESTResource)), 'ppRes' )), ] ################################################################ ## code template for IEnumRESTResource implementation ##class IEnumRESTResource_Impl(object): ## def Reset(self): ## u'Resets the enumerator' ## #return ## ## def Next(self): ## u'Gets next item.' ## #return ppRes ## class IObjectActivate(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for activating and deactivating objects.' _iid_ = GUID('{E3B78022-143E-4E61-9099-ED319EC061E7}') _idlflags_ = ['oleautomation'] IObjectActivate._methods_ = [ COMMETHOD([helpstring(u'Activates the object.')], HRESULT, 'Activate'), COMMETHOD([helpstring(u'Deactivates the object.')], HRESULT, 'Deactivate'), ] ################################################################ ## code template for IObjectActivate implementation ##class IObjectActivate_Impl(object): ## def Deactivate(self): ## u'Deactivates the object.' ## #return ## ## def Activate(self): ## u'Activates the object.' ## #return ## class ITimeExtent(ITimeValue): _case_insensitive_ = True u'Provides access to members that control the Time Extent.' _iid_ = GUID('{BD724B95-018F-4367-9883-9560D92293A7}') _idlflags_ = ['oleautomation'] ITimeExtent._methods_ = [ COMMETHOD(['propget', helpstring(u"The time extent's start time.")], HRESULT, 'StartTime', ( ['retval', 'out'], POINTER(POINTER(ITime)), 'StartTime' )), COMMETHOD(['propput', helpstring(u"The time extent's start time.")], HRESULT, 'StartTime', ( ['in'], POINTER(ITime), 'StartTime' )), COMMETHOD(['propget', helpstring(u"The time extent's end time.")], HRESULT, 'EndTime', ( ['retval', 'out'], POINTER(POINTER(ITime)), 'EndTime' )), COMMETHOD(['propput', helpstring(u"The time extent's end time.")], HRESULT, 'EndTime', ( ['in'], POINTER(ITime), 'EndTime' )), COMMETHOD(['propget', helpstring(u'Indicates whether the time extent is empty.')], HRESULT, 'Empty', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Empty' )), COMMETHOD(['propput', helpstring(u'Indicates whether the time extent is empty.')], HRESULT, 'Empty', ( ['in'], VARIANT_BOOL, 'Empty' )), COMMETHOD([helpstring(u'Writes start and end time, with copies of the input time values.')], HRESULT, 'SetExtent', ( ['in'], POINTER(ITime), 'StartTime' ), ( ['in'], POINTER(ITime), 'EndTime' )), COMMETHOD([helpstring(u"Obtains the time extent's time duration.")], HRESULT, 'QueryTimeDuration', ( ['retval', 'out'], POINTER(POINTER(ITimeDuration)), 'TimeDuration' )), COMMETHOD([helpstring(u'Adjust to ovelap the input time value.')], HRESULT, 'Union', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' )), COMMETHOD([helpstring(u'Adjust to intersect with the input time value.')], HRESULT, 'Intersect', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' )), ] ################################################################ ## code template for ITimeExtent implementation ##class ITimeExtent_Impl(object): ## def Intersect(self, otherTimeValue): ## u'Adjust to intersect with the input time value.' ## #return ## ## def Union(self, otherTimeValue): ## u'Adjust to ovelap the input time value.' ## #return ## ## def _get(self): ## u'Indicates whether the time extent is empty.' ## #return Empty ## def _set(self, Empty): ## u'Indicates whether the time extent is empty.' ## Empty = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The time extent's start time." ## #return StartTime ## def _set(self, StartTime): ## u"The time extent's start time." ## StartTime = property(_get, _set, doc = _set.__doc__) ## ## def SetExtent(self, StartTime, EndTime): ## u'Writes start and end time, with copies of the input time values.' ## #return ## ## def _get(self): ## u"The time extent's end time." ## #return EndTime ## def _set(self, EndTime): ## u"The time extent's end time." ## EndTime = property(_get, _set, doc = _set.__doc__) ## ## def QueryTimeDuration(self): ## u"Obtains the time extent's time duration." ## #return TimeDuration ## class Message(CoClass): u'A serializable object that represents a request or response message.' _reg_clsid_ = GUID('{5FAC2741-5EF9-47D8-AFB5-5EE5E679143C}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) Message._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IMessage, ISupportErrorInfo] IErrorInfo._methods_ = [ COMMETHOD([], HRESULT, 'GetGUID', ( ['out'], POINTER(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.GUID), 'pGuid' )), COMMETHOD([], HRESULT, 'GetSource', ( ['out'], POINTER(BSTR), 'pBstrSource' )), COMMETHOD([], HRESULT, 'GetDescription', ( ['out'], POINTER(BSTR), 'pBstrDescription' )), COMMETHOD([], HRESULT, 'GetHelpFile', ( ['out'], POINTER(BSTR), 'pBstrHelpFile' )), COMMETHOD([], HRESULT, 'GetHelpContext', ( ['out'], POINTER(c_ulong), 'pdwHelpContext' )), ] ################################################################ ## code template for IErrorInfo implementation ##class IErrorInfo_Impl(object): ## def GetHelpFile(self): ## '-no docstring-' ## #return pBstrHelpFile ## ## def GetDescription(self): ## '-no docstring-' ## #return pBstrDescription ## ## def GetSource(self): ## '-no docstring-' ## #return pBstrSource ## ## def GetGUID(self): ## '-no docstring-' ## #return pGuid ## ## def GetHelpContext(self): ## '-no docstring-' ## #return pdwHelpContext ## class IRESTRequestHandler(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to REST request for SO or SOE.' _iid_ = GUID('{9D66A418-D54A-48ED-88BD-043A25FA9C83}') _idlflags_ = ['oleautomation'] class IRESTDispatcher(IRESTRequestHandler): _case_insensitive_ = True u'REST dispatcher object.' _iid_ = GUID('{1538E2DC-8192-412E-A801-2B8655492AAE}') _idlflags_ = ['oleautomation'] IRESTRequestHandler._methods_ = [ COMMETHOD([helpstring(u'Handles REST request for SO or SOE.')], HRESULT, 'HandleRESTRequest', ( ['in'], BSTR, 'Capabilities' ), ( ['in'], BSTR, 'resourceName' ), ( ['in'], BSTR, 'operationName' ), ( ['in'], BSTR, 'operationInput' ), ( ['in'], BSTR, 'outputFormat' ), ( ['in'], BSTR, 'requestProperties' ), ( ['out'], POINTER(BSTR), 'responseProperties' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'responseData' )), COMMETHOD([helpstring(u'Obtains REST request schema.')], HRESULT, 'GetSchema', ( ['retval', 'out'], POINTER(BSTR), 'schema' )), ] ################################################################ ## code template for IRESTRequestHandler implementation ##class IRESTRequestHandler_Impl(object): ## def GetSchema(self): ## u'Obtains REST request schema.' ## #return schema ## ## def HandleRESTRequest(self, Capabilities, resourceName, operationName, operationInput, outputFormat, requestProperties): ## u'Handles REST request for SO or SOE.' ## #return responseProperties, responseData ## IRESTDispatcher._methods_ = [ COMMETHOD([helpstring(u'Initialization method.')], HRESULT, 'Init', ( ['in'], POINTER(IRESTResource), 'root' ), ( [], POINTER(IRESTCallback), 'handler' )), ] ################################################################ ## code template for IRESTDispatcher implementation ##class IRESTDispatcher_Impl(object): ## def Init(self, root, handler): ## u'Initialization method.' ## #return ## class IChildExtension(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to the parent extension of this extension. Indicates that this extension has a parent extension.' _iid_ = GUID('{1D45017C-2A13-4CDF-AFC7-59F9D0C17C71}') _idlflags_ = ['oleautomation'] IChildExtension._methods_ = [ COMMETHOD(['propget', helpstring(u'The parent extension of this extension.')], HRESULT, 'Parent', ( ['retval', 'out'], POINTER(POINTER(IExtension)), 'Parent' )), ] ################################################################ ## code template for IChildExtension implementation ##class IChildExtension_Impl(object): ## @property ## def Parent(self): ## u'The parent extension of this extension.' ## #return Parent ## class DirectionFormat(CoClass): u'An object for formatting numbers in a direction format.' _reg_clsid_ = GUID('{36D7E361-B440-4FEB-B2AC-FEDE1A2FD7A7}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class INumberFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format numbers.' _iid_ = GUID('{7E4F470D-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] class INumberFormatOperations(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to common operations on formatted numbers.' _iid_ = GUID('{5EF43B7E-3BC1-4B25-A5C0-08218C75BE06}') _idlflags_ = ['oleautomation'] DirectionFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumberFormatOperations, IDirectionFormat, IClone, IPersist, IPersistStream] class IParentExtension(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to the child extensions of this extension. Indicates that this extension has child extensions.' _iid_ = GUID('{D3AE4638-5C68-4F1B-AADF-8BEC8DEB4F8B}') _idlflags_ = ['oleautomation'] IParentExtension._methods_ = [ COMMETHOD(['propget', helpstring(u'The number of child extensions.')], HRESULT, 'ChildCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The indicated child extension.')], HRESULT, 'Child', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IExtension)), 'Child' )), ] ################################################################ ## code template for IParentExtension implementation ##class IParentExtension_Impl(object): ## @property ## def ChildCount(self): ## u'The number of child extensions.' ## #return Count ## ## @property ## def Child(self, index): ## u'The indicated child extension.' ## #return Child ## class IAutoExtension(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Indicator interface that identifies an extension that automatically enables and disables as needed.' _iid_ = GUID('{A5009874-E58F-42DF-BE62-873A7661ECDF}') _idlflags_ = ['oleautomation'] IAutoExtension._methods_ = [ ] ################################################################ ## code template for IAutoExtension implementation ##class IAutoExtension_Impl(object): class IEnumNamedID(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that enumerate over a set of named IDs.' _iid_ = GUID('{51959A4B-D4A5-11D1-8771-0000F8751720}') _idlflags_ = ['oleautomation'] IEnumNamedID._methods_ = [ COMMETHOD([helpstring(u'Obtains the next name-ID pair in the set.')], HRESULT, 'Next', ( ['out'], POINTER(BSTR), 'nextName' ), ( ['retval', 'out'], POINTER(c_int), 'identifier' )), COMMETHOD([helpstring(u'Resets internal cursor so that the next call to Next returns the first pair in the set.')], HRESULT, 'Reset'), ] ################################################################ ## code template for IEnumNamedID implementation ##class IEnumNamedID_Impl(object): ## def Reset(self): ## u'Resets internal cursor so that the next call to Next returns the first pair in the set.' ## #return ## ## def Next(self): ## u'Obtains the next name-ID pair in the set.' ## #return nextName, identifier ## class IParentLicenseExtension(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u"Indicator interface that identifies that this parent extension controls the licenses of it's children." _iid_ = GUID('{8A1A05F8-1521-435C-9B0E-1F2B148E0AE4}') _idlflags_ = ['oleautomation'] IParentLicenseExtension._methods_ = [ ] ################################################################ ## code template for IParentLicenseExtension implementation ##class IParentLicenseExtension_Impl(object): class ITimeInstant(ITimeValue): _case_insensitive_ = True u'Provides access to members that control the Time Instant.' _iid_ = GUID('{81899EE9-2E12-4E6C-94F1-2BA31D3CDBC5}') _idlflags_ = ['oleautomation'] ITimeInstant._methods_ = [ COMMETHOD(['propget', helpstring(u'The time instant time value.')], HRESULT, 'Time', ( ['retval', 'out'], POINTER(POINTER(ITime)), 'Time' )), COMMETHOD(['propput', helpstring(u'The time instant time value.')], HRESULT, 'Time', ( ['in'], POINTER(ITime), 'Time' )), ] ################################################################ ## code template for ITimeInstant implementation ##class ITimeInstant_Impl(object): ## def _get(self): ## u'The time instant time value.' ## #return Time ## def _set(self, Time): ## u'The time instant time value.' ## Time = property(_get, _set, doc = _set.__doc__) ## class ITimeZoneFactory(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Time Zone Factory.' _iid_ = GUID('{1B4768DD-508E-4946-AB04-E042DFCEB29F}') _idlflags_ = ['oleautomation'] ITimeZoneFactory._methods_ = [ COMMETHOD([helpstring(u'Creates a time zone info from a windows ID.')], HRESULT, 'CreateTimeZoneInfoFromWindowsID', ( ['in'], BSTR, 'WindowsID' ), ( ['retval', 'out'], POINTER(POINTER(ITimeZoneInfo)), 'TimeZoneInfo' )), COMMETHOD([helpstring(u'Creates a time reference from a windows ID.')], HRESULT, 'CreateTimeReferenceFromWindowsID', ( ['in'], BSTR, 'WindowsID' ), ( ['retval', 'out'], POINTER(POINTER(ITimeReference)), 'TimeReference' )), COMMETHOD([helpstring(u'Returns the time zone windows ID that corresponds to the given olson time zone ID.')], HRESULT, 'QueryTimeZoneWindowsIDFromOlsonID', ( ['in'], BSTR, 'olsonID' ), ( ['retval', 'out'], POINTER(BSTR), 'WindowsID' )), COMMETHOD([helpstring(u'Obtains all the olson time zone IDs that correspond to the given time zone windows ID.')], HRESULT, 'QueryTimeZoneOlsonIDsFromWindowsID', ( ['in'], BSTR, 'WindowsID' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(BSTR)), 'olsonIDs' )), COMMETHOD([helpstring(u"Obtains the machine's current local time zone Windows ID.")], HRESULT, 'QueryLocalTimeZoneWindowsID', ( ['retval', 'out'], POINTER(BSTR), 'localTimeZoneWindowsID' )), COMMETHOD(['propget', helpstring(u'The first time zone windows ID.')], HRESULT, 'FirstTimeZoneWindowsID', ( ['retval', 'out'], POINTER(BSTR), 'FirstTimeZoneWindowsID' )), COMMETHOD(['propget', helpstring(u'The time zone windows ID that cyclicly proceeds the given time zone windows ID.')], HRESULT, 'NextTimeZoneWindowsID', ( ['in'], BSTR, 'currentTimeZoneWindowsID' ), ( ['retval', 'out'], POINTER(BSTR), 'NextTimeZoneWindowsID' )), COMMETHOD(['propget', helpstring(u'The first locale ID.')], HRESULT, 'FirstLocaleID', ( ['retval', 'out'], POINTER(c_int), 'FirstLocaleID' )), COMMETHOD(['propget', helpstring(u'The locale ID that cyclicly proceeds the given locale ID.')], HRESULT, 'NextLocaleID', ( ['in'], c_int, 'currenteLocaleID' ), ( ['retval', 'out'], POINTER(c_int), 'NextLocaleID' )), COMMETHOD([helpstring(u'Obtains the locale display name that corresponds to the given locale ID.')], HRESULT, 'CreateLocaleInfoFromLocaleID', ( ['in'], c_int, 'LocaleID' ), ( ['retval', 'out'], POINTER(POINTER(ILocaleInfo)), 'LocaleInfo' )), COMMETHOD([helpstring(u'Returns whether a given time zone windows ID is valid for creating a time zone info or a time reference.')], HRESULT, 'IsValidTimeZoneWindowsID', ( ['in'], BSTR, 'WindowsID' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'isValid' )), COMMETHOD([helpstring(u'Returns whether a given locale ID is valid for creating a locale info.')], HRESULT, 'IsValidLocaleID', ( ['in'], c_int, 'LocaleID' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'isValid' )), ] ################################################################ ## code template for ITimeZoneFactory implementation ##class ITimeZoneFactory_Impl(object): ## def IsValidTimeZoneWindowsID(self, WindowsID): ## u'Returns whether a given time zone windows ID is valid for creating a time zone info or a time reference.' ## #return isValid ## ## def QueryLocalTimeZoneWindowsID(self): ## u"Obtains the machine's current local time zone Windows ID." ## #return localTimeZoneWindowsID ## ## @property ## def NextLocaleID(self, currenteLocaleID): ## u'The locale ID that cyclicly proceeds the given locale ID.' ## #return NextLocaleID ## ## def CreateLocaleInfoFromLocaleID(self, LocaleID): ## u'Obtains the locale display name that corresponds to the given locale ID.' ## #return LocaleInfo ## ## def QueryTimeZoneWindowsIDFromOlsonID(self, olsonID): ## u'Returns the time zone windows ID that corresponds to the given olson time zone ID.' ## #return WindowsID ## ## @property ## def NextTimeZoneWindowsID(self, currentTimeZoneWindowsID): ## u'The time zone windows ID that cyclicly proceeds the given time zone windows ID.' ## #return NextTimeZoneWindowsID ## ## def QueryTimeZoneOlsonIDsFromWindowsID(self, WindowsID): ## u'Obtains all the olson time zone IDs that correspond to the given time zone windows ID.' ## #return olsonIDs ## ## @property ## def FirstLocaleID(self): ## u'The first locale ID.' ## #return FirstLocaleID ## ## def IsValidLocaleID(self, LocaleID): ## u'Returns whether a given locale ID is valid for creating a locale info.' ## #return isValid ## ## def CreateTimeReferenceFromWindowsID(self, WindowsID): ## u'Creates a time reference from a windows ID.' ## #return TimeReference ## ## @property ## def FirstTimeZoneWindowsID(self): ## u'The first time zone windows ID.' ## #return FirstTimeZoneWindowsID ## ## def CreateTimeZoneInfoFromWindowsID(self, WindowsID): ## u'Creates a time zone info from a windows ID.' ## #return TimeZoneInfo ## class IZipArchive(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods and properties to create and manage zip archives.' _iid_ = GUID('{55DF03AE-B4F8-4387-B8B5-6FB22B15DDAC}') _idlflags_ = ['oleautomation'] IZipArchive._methods_ = [ COMMETHOD([helpstring(u'Opens an existing archive.')], HRESULT, 'OpenArchive', ( ['in'], BSTR, 'archiveName' )), COMMETHOD([helpstring(u'Creates a new archive.')], HRESULT, 'CreateArchive', ( ['in'], BSTR, 'archiveName' )), COMMETHOD([helpstring(u'Closes the archive.')], HRESULT, 'CloseArchive'), COMMETHOD([helpstring(u'Compresses a file and adds it to the archive.')], HRESULT, 'AddFile', ( ['in'], BSTR, 'inputFile' )), COMMETHOD([helpstring(u'Obtains the list of files in the archive.')], HRESULT, 'GetFileNames', ( ['retval', 'out'], POINTER(POINTER(IEnumBSTR)), 'FileNames' )), COMMETHOD([helpstring(u'Extracts a file from the archive to the output directory.')], HRESULT, 'ExtractFile', ( ['in'], BSTR, 'file' ), ( ['in'], BSTR, 'outputDir' )), COMMETHOD([helpstring(u'Extracts all items in the archive to the output directory.')], HRESULT, 'Extract', ( ['in'], BSTR, 'outputDir' )), ] ################################################################ ## code template for IZipArchive implementation ##class IZipArchive_Impl(object): ## def CloseArchive(self): ## u'Closes the archive.' ## #return ## ## def AddFile(self, inputFile): ## u'Compresses a file and adds it to the archive.' ## #return ## ## def OpenArchive(self, archiveName): ## u'Opens an existing archive.' ## #return ## ## def CreateArchive(self, archiveName): ## u'Creates a new archive.' ## #return ## ## def ExtractFile(self, file, outputDir): ## u'Extracts a file from the archive to the output directory.' ## #return ## ## def Extract(self, outputDir): ## u'Extracts all items in the archive to the output directory.' ## #return ## ## def GetFileNames(self): ## u'Obtains the list of files in the archive.' ## #return FileNames ## class CoRESTResource(CoClass): u'IRESTResource coclass' _reg_clsid_ = GUID('{C5F365F0-9AC8-4872-AFD0-E9383AFF0F2E}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) CoRESTResource._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IRESTResource] IExtensionManager._methods_ = [ COMMETHOD(['propget', helpstring(u'The number of extensions loaded in the application.')], HRESULT, 'ExtensionCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The extension at the specified index.')], HRESULT, 'Extension', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IExtension)), 'Extension' )), COMMETHOD(['propget', helpstring(u'The CLSID of the extension at the specified index.')], HRESULT, 'ExtensionCLSID', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IUID)), 'ClassID' )), COMMETHOD([helpstring(u'Finds the extension by CLSID (IUID) or name (String).')], HRESULT, 'FindExtension', ( ['in'], VARIANT, 'nameOrID' ), ( ['retval', 'out'], POINTER(POINTER(IExtension)), 'Extension' )), ] ################################################################ ## code template for IExtensionManager implementation ##class IExtensionManager_Impl(object): ## def FindExtension(self, nameOrID): ## u'Finds the extension by CLSID (IUID) or name (String).' ## #return Extension ## ## @property ## def ExtensionCount(self): ## u'The number of extensions loaded in the application.' ## #return Count ## ## @property ## def ExtensionCLSID(self, index): ## u'The CLSID of the extension at the specified index.' ## #return ClassID ## ## @property ## def Extension(self, index): ## u'The extension at the specified index.' ## #return Extension ## class ITimeOffsetOperator(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to time operations.' _iid_ = GUID('{7CBBB8EA-7708-464A-A6C8-96DB06521B3A}') _idlflags_ = ['oleautomation'] ITimeOffsetOperator._methods_ = [ COMMETHOD([helpstring(u'Adds a time duration.')], HRESULT, 'AddDuration', ( ['in'], POINTER(ITimeDuration), 'TimeDuration' )), COMMETHOD([helpstring(u'Subtracts a time duration.')], HRESULT, 'SubtractDuration', ( ['in'], POINTER(ITimeDuration), 'TimeDuration' )), COMMETHOD([helpstring(u'Adds the input amount of years.')], HRESULT, 'AddYears', ( ['in'], c_double, 'Value' ), ( ['in'], VARIANT_BOOL, 'preserveEndOfMonth' ), ( ['in'], VARIANT_BOOL, 'goForwardOnInvalidDate' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'dateWasAdjusted' )), COMMETHOD([helpstring(u'Adds the input amount of months.')], HRESULT, 'AddMonths', ( ['in'], c_double, 'Value' ), ( ['in'], VARIANT_BOOL, 'preserveEndOfMonth' ), ( ['in'], VARIANT_BOOL, 'goForwardOnInvalidDate' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'dateWasAdjusted' )), COMMETHOD([helpstring(u'Adds the input amount of weeks.')], HRESULT, 'AddWeeks', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of days.')], HRESULT, 'AddDays', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of hours.')], HRESULT, 'AddHours', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of minutes.')], HRESULT, 'AddMinutes', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of seconds.')], HRESULT, 'AddSeconds', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of milliseconds.')], HRESULT, 'AddMilliseconds', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds the input amount of nanoseconds.')], HRESULT, 'AddNanoseconds', ( ['in'], c_longlong, 'Value' )), ] ################################################################ ## code template for ITimeOffsetOperator implementation ##class ITimeOffsetOperator_Impl(object): ## def AddMinutes(self, Value): ## u'Adds the input amount of minutes.' ## #return ## ## def AddHours(self, Value): ## u'Adds the input amount of hours.' ## #return ## ## def AddWeeks(self, Value): ## u'Adds the input amount of weeks.' ## #return ## ## def AddDays(self, Value): ## u'Adds the input amount of days.' ## #return ## ## def AddMonths(self, Value, preserveEndOfMonth, goForwardOnInvalidDate): ## u'Adds the input amount of months.' ## #return dateWasAdjusted ## ## def AddMilliseconds(self, Value): ## u'Adds the input amount of milliseconds.' ## #return ## ## def AddSeconds(self, Value): ## u'Adds the input amount of seconds.' ## #return ## ## def AddNanoseconds(self, Value): ## u'Adds the input amount of nanoseconds.' ## #return ## ## def AddDuration(self, TimeDuration): ## u'Adds a time duration.' ## #return ## ## def SubtractDuration(self, TimeDuration): ## u'Subtracts a time duration.' ## #return ## ## def AddYears(self, Value, preserveEndOfMonth, goForwardOnInvalidDate): ## u'Adds the input amount of years.' ## #return dateWasAdjusted ## # values for enumeration 'esriTextureCompressionType' esriTextureCompressionNever = 1 esriTextureCompressionNone = 2 esriTextureCompressionJPEG = 3 esriTextureCompressionJPEGPlus = 4 esriTextureCompressionType = c_int # enum # values for enumeration 'esriCoreErrorReturnCodes' E_NOTLICENSED = -2147221247 E_NO_PRODUCT_LICENSE = -2147221246 E_NO_EXTENSION_LICENSE = -2147221245 E_REQUIRES_SERVER_STANDARD_EDITION = -2147221244 E_REQUIRES_SERVER_ADVANCED_EDITION = -2147221243 esriCoreErrorReturnCodes = c_int # enum class CoRESTOperation(CoClass): u'IRESTOperation coclass' _reg_clsid_ = GUID('{FDA271D6-59E0-40EC-97F2-0CE6A392F12C}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) CoRESTOperation._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IRESTOperation] class ZipArchive(CoClass): u'The ZipArchive object which manages zip archives.' _reg_clsid_ = GUID('{3C1841DB-3625-464F-B216-41811A7E8A6C}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) ZipArchive._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IZipArchive] class IZipArchiveEx(IZipArchive): _case_insensitive_ = True u'Provides access to methods and properties to create and manage 7-zip archives.' _iid_ = GUID('{F088433D-0167-4866-A846-55CAB2FB76B0}') _idlflags_ = ['oleautomation'] IZipArchiveEx._methods_ = [ COMMETHOD([helpstring(u'Compresses a file and adds it to the archive preserving the sub-folder off the root folder.')], HRESULT, 'AddFileEx', ( ['in'], BSTR, 'inputFile' ), ( ['in'], BSTR, 'rootFolder' )), COMMETHOD([helpstring(u'Compress a folder and add it to the archive.')], HRESULT, 'AddFolder', ( ['in'], BSTR, 'inputFolder' ), ( ['in'], VARIANT_BOOL, 'recursive' )), ] ################################################################ ## code template for IZipArchiveEx implementation ##class IZipArchiveEx_Impl(object): ## def AddFileEx(self, inputFile, rootFolder): ## u'Compresses a file and adds it to the archive preserving the sub-folder off the root folder.' ## #return ## ## def AddFolder(self, inputFolder, recursive): ## u'Compress a folder and add it to the archive.' ## #return ## class ITimeZoneFactory2(ITimeZoneFactory): _case_insensitive_ = True u'Provides access to members that control the Time Zone Factory.' _iid_ = GUID('{4CAA06BE-7199-40B3-ADB6-78BAE35D5227}') _idlflags_ = ['oleautomation'] ITimeZoneFactory2._methods_ = [ COMMETHOD([helpstring(u"Obtains the machine's current local time reference. Set exactMatch to true to ensure exact retrieval of a customized machine's local time reference, or to false to obtain a pre-defined time reference, which is the closest match to the machine's current local tZ\xd0?\x08?&")], HRESULT, 'QueryLocalTimeReference', ( ['in'], VARIANT_BOOL, 'exactMatch' ), ( ['retval', 'out'], POINTER(POINTER(ITimeReference)), 'localTimeReference' )), COMMETHOD([helpstring(u'Reload time zones.')], HRESULT, 'ReloadTimeZones', ( ['in'], BSTR, 'FileName' )), COMMETHOD([helpstring(u'Save time zones.')], HRESULT, 'SaveTimeZones', ( ['in'], BSTR, 'FileName' )), ] ################################################################ ## code template for ITimeZoneFactory2 implementation ##class ITimeZoneFactory2_Impl(object): ## def SaveTimeZones(self, FileName): ## u'Save time zones.' ## #return ## ## def ReloadTimeZones(self, FileName): ## u'Reload time zones.' ## #return ## ## def QueryLocalTimeReference(self, exactMatch): ## u"Obtains the machine's current local time reference. Set exactMatch to true to ensure exact retrieval of a customized machine's local time reference, or to false to obtain a pre-defined time reference, which is the closest match to the machine's current local tZ\xd0?\x08?&" ## #return localTimeReference ## class CoRESTDispatcher(CoClass): u'IRESTDispatcher coclass' _reg_clsid_ = GUID('{0D52FCD9-6647-432C-B15B-B141AB0A349F}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) CoRESTDispatcher._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IRESTDispatcher] # values for enumeration 'esriUnits' esriUnknownUnits = 0 esriInches = 1 esriPoints = 2 esriFeet = 3 esriYards = 4 esriMiles = 5 esriNauticalMiles = 6 esriMillimeters = 7 esriCentimeters = 8 esriMeters = 9 esriKilometers = 10 esriDecimalDegrees = 11 esriDecimeters = 12 esriUnitsLast = 13 esriUnits = c_int # enum IExtensionManagerAdmin._methods_ = [ COMMETHOD([helpstring(u'Creates and starts the extensions for the given component category, passing initializationData to each in IExtension::Startup.')], HRESULT, 'StartupExtensions', ( ['in'], POINTER(IUID), 'componentCategory' ), ( ['in'], POINTER(IUID), 'jitCategory' ), ( ['in'], POINTER(VARIANT), 'initializationData' )), COMMETHOD([helpstring(u'Shuts down and releases the extensions that are loaded and calls IExtension::Shutdown.')], HRESULT, 'ShutdownExtensions'), COMMETHOD([helpstring(u'Creates a single extension given the CLSID, then passes initializationData to IExtension::Startup.')], HRESULT, 'AddExtension', ( ['in'], POINTER(IUID), 'ExtensionCLSID' ), ( ['in'], POINTER(VARIANT), 'initializationData' )), ] ################################################################ ## code template for IExtensionManagerAdmin implementation ##class IExtensionManagerAdmin_Impl(object): ## def AddExtension(self, ExtensionCLSID, initializationData): ## u'Creates a single extension given the CLSID, then passes initializationData to IExtension::Startup.' ## #return ## ## def ShutdownExtensions(self): ## u'Shuts down and releases the extensions that are loaded and calls IExtension::Shutdown.' ## #return ## ## def StartupExtensions(self, componentCategory, jitCategory, initializationData): ## u'Creates and starts the extensions for the given component category, passing initializationData to each in IExtension::Startup.' ## #return ## class IZlibCompression(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to compress and uncompress texture data.' _iid_ = GUID('{FEE4D81C-25D9-4389-A20C-16821EC90719}') _idlflags_ = [] IZlibCompression._methods_ = [ COMMETHOD(['propget', helpstring(u'Estimated buffer size of compress/uncompress texture data.')], HRESULT, 'BufferSize', ( ['in'], c_int, 'Size' ), ( ['retval', 'out'], POINTER(c_int), 'pSize' )), COMMETHOD([helpstring(u'Compress the current the input buffer. Uses best compression.')], HRESULT, 'Compress', ( ['in'], c_int, 'inSize' ), ( ['in'], POINTER(c_ubyte), 'pInBuff' ), ( ['in', 'out'], POINTER(c_int), 'pOutSize' ), ( ['in', 'out'], POINTER(c_ubyte), 'pOutBuff' )), COMMETHOD([helpstring(u'Compress the current the input buffer by level. If level less than 0, use default, if greater than best use best.')], HRESULT, 'CompressByLevel', ( ['in'], c_int, 'inSize' ), ( ['in'], POINTER(c_ubyte), 'pInBuff' ), ( ['in'], c_int, 'level' ), ( ['in', 'out'], POINTER(c_int), 'pOutSize' ), ( ['in', 'out'], POINTER(c_ubyte), 'pOutBuff' )), COMMETHOD([helpstring(u'UnCompress the current the input buffer.')], HRESULT, 'UnCompress', ( ['in'], c_int, 'inSize' ), ( ['in'], POINTER(c_ubyte), 'pInBuff' ), ( ['in', 'out'], POINTER(c_int), 'pOutSize' ), ( ['in', 'out'], POINTER(c_ubyte), 'pOutBuff' )), ] ################################################################ ## code template for IZlibCompression implementation ##class IZlibCompression_Impl(object): ## def CompressByLevel(self, inSize, pInBuff, level): ## u'Compress the current the input buffer by level. If level less than 0, use default, if greater than best use best.' ## #return pOutSize, pOutBuff ## ## @property ## def BufferSize(self, Size): ## u'Estimated buffer size of compress/uncompress texture data.' ## #return pSize ## ## def Compress(self, inSize, pInBuff): ## u'Compress the current the input buffer. Uses best compression.' ## #return pOutSize, pOutBuff ## ## def UnCompress(self, inSize, pInBuff): ## u'UnCompress the current the input buffer.' ## #return pOutSize, pOutBuff ## class ITextureCompression(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to compress and uncompress texture data.' _iid_ = GUID('{B5F3860A-FCE1-4E71-8F12-BC5C6BB0F280}') _idlflags_ = [] ITextureCompression._methods_ = [ COMMETHOD([helpstring(u'Compress the current the input buffer.')], HRESULT, 'CompressTexture', ( ['in'], esriTextureCompressionType, 'type' ), ( ['in'], c_int, 'width' ), ( ['in'], c_int, 'height' ), ( ['in'], c_int, 'channels' ), ( ['in'], POINTER(c_ubyte), 'pInData' ), ( ['out'], POINTER(c_int), 'pByteCount' ), ( ['out'], POINTER(POINTER(c_ubyte)), 'ppOutBuff' )), COMMETHOD([helpstring(u'UnCompress the current the input buffer.')], HRESULT, 'UnCompressTexture', ( ['in'], esriTextureCompressionType, 'type' ), ( ['in'], c_int, 'width' ), ( ['in'], c_int, 'height' ), ( ['in'], c_int, 'channels' ), ( ['in'], c_int, 'Size' ), ( ['in'], POINTER(c_ubyte), 'pInData' ), ( ['out'], POINTER(c_ubyte), 'pOutBuff' )), COMMETHOD(['propput', helpstring(u'Compression quality of texture data.')], HRESULT, 'CompressionQuality', ( ['in'], c_int, 'quality' )), COMMETHOD(['propget', helpstring(u'Compression quality of texture data.')], HRESULT, 'CompressionQuality', ( ['retval', 'out'], POINTER(c_int), 'quality' )), COMMETHOD([helpstring(u'Free the Compression buffer created in Compress texture.')], HRESULT, 'FreeCompressData', ( ['in'], POINTER(c_ubyte), 'pInData' )), COMMETHOD(['propget', helpstring(u'Indicates output should be packed in BSQ pixel interleave format.')], HRESULT, 'BSQ', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pBSQ' )), COMMETHOD(['propput', helpstring(u'Indicates output should be packed in BSQ pixel interleave format.')], HRESULT, 'BSQ', ( ['in'], VARIANT_BOOL, 'pBSQ' )), ] ################################################################ ## code template for ITextureCompression implementation ##class ITextureCompression_Impl(object): ## def CompressTexture(self, type, width, height, channels, pInData): ## u'Compress the current the input buffer.' ## #return pByteCount, ppOutBuff ## ## def UnCompressTexture(self, type, width, height, channels, Size, pInData): ## u'UnCompress the current the input buffer.' ## #return pOutBuff ## ## def _get(self): ## u'Indicates output should be packed in BSQ pixel interleave format.' ## #return pBSQ ## def _set(self, pBSQ): ## u'Indicates output should be packed in BSQ pixel interleave format.' ## BSQ = property(_get, _set, doc = _set.__doc__) ## ## def FreeCompressData(self, pInData): ## u'Free the Compression buffer created in Compress texture.' ## #return ## ## def _get(self): ## u'Compression quality of texture data.' ## #return quality ## def _set(self, quality): ## u'Compression quality of texture data.' ## CompressionQuality = property(_get, _set, doc = _set.__doc__) ## class IArray2(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to replace an object in the array.' _iid_ = GUID('{C4B2BFC5-EB46-4909-801C-C32A6EDE120D}') _idlflags_ = ['oleautomation'] IArray2._methods_ = [ COMMETHOD([helpstring(u'Replaces an object in the array.')], HRESULT, 'Replace', ( ['in'], c_int, 'index' ), ( ['in'], POINTER(IUnknown), 'unk' )), ] ################################################################ ## code template for IArray2 implementation ##class IArray2_Impl(object): ## def Replace(self, index, unk): ## u'Replaces an object in the array.' ## #return ## IMemoryBlobStreamVariant._methods_ = [ COMMETHOD([helpstring(u'Copies the memory to a variant that contains an array of bytes.')], HRESULT, 'ExportToVariant', ( ['out'], POINTER(VARIANT), 'Value' )), COMMETHOD([helpstring(u'Imports from the array of bytes in the variant.')], HRESULT, 'ImportFromVariant', ( ['in'], VARIANT, 'Value' )), ] ################################################################ ## code template for IMemoryBlobStreamVariant implementation ##class IMemoryBlobStreamVariant_Impl(object): ## def ExportToVariant(self): ## u'Copies the memory to a variant that contains an array of bytes.' ## #return Value ## ## def ImportFromVariant(self, Value): ## u'Imports from the array of bytes in the variant.' ## #return ## IJobInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Job description.')], HRESULT, 'Description', ( ['retval', 'out'], POINTER(BSTR), 'desc' )), COMMETHOD(['propput', helpstring(u'Job description.')], HRESULT, 'Description', ( ['in'], BSTR, 'desc' )), COMMETHOD(['propget', helpstring(u'Name of the user who submitted the job.')], HRESULT, 'SubmittedBy', ( ['retval', 'out'], POINTER(BSTR), 'UserName' )), COMMETHOD(['propput', helpstring(u'Name of the user who submitted the job.')], HRESULT, 'SubmittedBy', ( ['in'], BSTR, 'UserName' )), COMMETHOD(['propget', helpstring(u'Time when the job was submitted.')], HRESULT, 'SubmittingTime', ( ['retval', 'out'], POINTER(c_double), 'Time' )), COMMETHOD(['propput', helpstring(u'Time when the job was submitted.')], HRESULT, 'SubmittingTime', ( ['in'], c_double, 'Time' )), COMMETHOD(['propget', helpstring(u'Time when the job execution started.')], HRESULT, 'StartingTime', ( ['retval', 'out'], POINTER(c_double), 'Time' )), COMMETHOD(['propput', helpstring(u'Time when the job execution started.')], HRESULT, 'StartingTime', ( ['in'], c_double, 'Time' )), COMMETHOD(['propget', helpstring(u'Time when job execution ended.')], HRESULT, 'EndingTime', ( ['retval', 'out'], POINTER(c_double), 'Time' )), COMMETHOD(['propput', helpstring(u'Time when job execution ended.')], HRESULT, 'EndingTime', ( ['in'], c_double, 'Time' )), ] ################################################################ ## code template for IJobInfo implementation ##class IJobInfo_Impl(object): ## def _get(self): ## u'Time when the job was submitted.' ## #return Time ## def _set(self, Time): ## u'Time when the job was submitted.' ## SubmittingTime = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Time when the job execution started.' ## #return Time ## def _set(self, Time): ## u'Time when the job execution started.' ## StartingTime = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Time when job execution ended.' ## #return Time ## def _set(self, Time): ## u'Time when job execution ended.' ## EndingTime = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Job description.' ## #return desc ## def _set(self, desc): ## u'Job description.' ## Description = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Name of the user who submitted the job.' ## #return UserName ## def _set(self, UserName): ## u'Name of the user who submitted the job.' ## SubmittedBy = property(_get, _set, doc = _set.__doc__) ## class CurrencyFormat(CoClass): u'An object for formatting numbers in a currency format.' _reg_clsid_ = GUID('{7E4F471A-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) CurrencyFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumberFormatOperations, IClone, IPersist, IPersistStream] ISSLInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Indicates whether or not to verify the peer.')], HRESULT, 'VerifyPeer', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'bVerifyPeer' )), COMMETHOD(['propput', helpstring(u'Indicates whether or not to verify the peer.')], HRESULT, 'VerifyPeer', ( ['in'], VARIANT_BOOL, 'bVerifyPeer' )), COMMETHOD(['propget', helpstring(u'Path to certificate bundle.')], HRESULT, 'CertPath', ( ['retval', 'out'], POINTER(BSTR), 'CertPath' )), COMMETHOD(['propput', helpstring(u'Path to certificate bundle.')], HRESULT, 'CertPath', ( ['in'], BSTR, 'CertPath' )), COMMETHOD([helpstring(u'Read HTTPs configuration from the registry.')], HRESULT, 'ReadSSLInfo'), COMMETHOD([helpstring(u'Write HTTPs configuration to the registry.')], HRESULT, 'WriteSSLInfo'), ] ################################################################ ## code template for ISSLInfo implementation ##class ISSLInfo_Impl(object): ## def _get(self): ## u'Indicates whether or not to verify the peer.' ## #return bVerifyPeer ## def _set(self, bVerifyPeer): ## u'Indicates whether or not to verify the peer.' ## VerifyPeer = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Path to certificate bundle.' ## #return CertPath ## def _set(self, CertPath): ## u'Path to certificate bundle.' ## CertPath = property(_get, _set, doc = _set.__doc__) ## ## def ReadSSLInfo(self): ## u'Read HTTPs configuration from the registry.' ## #return ## ## def WriteSSLInfo(self): ## u'Write HTTPs configuration to the registry.' ## #return ## class PercentageFormat(CoClass): u'An object for formatting numbers in a percentage format.' _reg_clsid_ = GUID('{7E4F471B-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) PercentageFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumericFormat, IPercentageFormat, INumberFormatOperations, IClone, IPersist, IPersistStream] class LatLonFormat(CoClass): u'An object for formatting numbers in a lat/lon format.' _reg_clsid_ = GUID('{7E4F471D-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) LatLonFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumericFormat, INumberFormatOperations, ILatLonFormat, ILatLonFormat2, IClone, IPersist, IPersistStream] IPropertySet2._methods_ = [ COMMETHOD([helpstring(u'True if the property set is the same as the input property set.')], HRESULT, 'IsEqualNoCase', ( ['in'], POINTER(IPropertySet), 'PropertySet' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsEqual' )), ] ################################################################ ## code template for IPropertySet2 implementation ##class IPropertySet2_Impl(object): ## def IsEqualNoCase(self, PropertySet): ## u'True if the property set is the same as the input property set.' ## #return IsEqual ## IUID._methods_ = [ COMMETHOD([dispid(0), helpstring(u'The value of the UID object.'), 'propget'], HRESULT, 'Value', ( ['retval', 'out'], POINTER(VARIANT), 'guidAsString' )), COMMETHOD([dispid(0), helpstring(u'The value of the UID object.'), 'propput'], HRESULT, 'Value', ( ['in'], VARIANT, 'guidAsString' )), COMMETHOD([dispid(1), helpstring(u'Creates a new globally unique value for the UID object.')], HRESULT, 'Generate'), COMMETHOD([dispid(2), helpstring(u'The subtype of the UID object.'), 'propget'], HRESULT, 'SubType', ( ['retval', 'out'], POINTER(c_int), 'SubType' )), COMMETHOD([dispid(2), helpstring(u'The subtype of the UID object.'), 'propput'], HRESULT, 'SubType', ( ['in'], c_int, 'SubType' )), COMMETHOD([dispid(3), helpstring(u'Indicates if the two UID objects represent the same globally unique identifier.')], HRESULT, 'Compare', ( ['in'], POINTER(IUID), 'otherID' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'bEqual' )), ] ################################################################ ## code template for IUID implementation ##class IUID_Impl(object): ## def _get(self): ## u'The subtype of the UID object.' ## #return SubType ## def _set(self, SubType): ## u'The subtype of the UID object.' ## SubType = property(_get, _set, doc = _set.__doc__) ## ## def Compare(self, otherID): ## u'Indicates if the two UID objects represent the same globally unique identifier.' ## #return bEqual ## ## def Generate(self): ## u'Creates a new globally unique value for the UID object.' ## #return ## ## def _get(self): ## u'The value of the UID object.' ## #return guidAsString ## def _set(self, guidAsString): ## u'The value of the UID object.' ## Value = property(_get, _set, doc = _set.__doc__) ## class ITrackCancel(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that control the Cancel Tracker.' _iid_ = GUID('{34C20005-4D3C-11D0-92D8-00805F7C28B0}') _idlflags_ = ['oleautomation'] class ITrackCancel2(ITrackCancel): _case_insensitive_ = True u'Provides access to members that control the Cancel Tracker.' _iid_ = GUID('{73F93CBA-5D93-4D2D-B27E-30EEB4CA3B64}') _idlflags_ = ['oleautomation'] ITrackCancel._methods_ = [ COMMETHOD(['propput', helpstring(u'The interval at which the operation will be interrupted to advance progressors and process messages.')], HRESULT, 'CheckTime', ( ['in'], c_int, 'Milliseconds' )), COMMETHOD(['propget', helpstring(u'The interval at which the operation will be interrupted to advance progressors and process messages.')], HRESULT, 'CheckTime', ( ['retval', 'out'], POINTER(c_int), 'Milliseconds' )), COMMETHOD(['propput', helpstring(u'The progressor used to show progress during lengthy operations.')], HRESULT, 'Progressor', ( ['in'], POINTER(IProgressor), 'Progressor' )), COMMETHOD(['propget', helpstring(u'The progressor used to show progress during lengthy operations.')], HRESULT, 'Progressor', ( ['retval', 'out'], POINTER(POINTER(IProgressor)), 'Progressor' )), COMMETHOD([helpstring(u'Cancels the associated operation.')], HRESULT, 'Cancel'), COMMETHOD([helpstring(u'Resets the manager after the associated operation is finished.')], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Called frequently while associated operation is progressing. A return value of false indicates that the operation should stop.')], HRESULT, 'Continue', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'keepGoing' )), COMMETHOD(['propput', helpstring(u'An obsolete method.')], HRESULT, 'ProcessMessages', ( ['in'], VARIANT_BOOL, 'ProcessMessages' )), COMMETHOD(['propget', helpstring(u'An obsolete method.')], HRESULT, 'ProcessMessages', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'ProcessMessages' )), COMMETHOD([helpstring(u'An obsolete method.')], HRESULT, 'StartTimer', ( ['in'], c_int, 'hWnd' ), ( ['in'], c_int, 'Milliseconds' )), COMMETHOD(['propget', helpstring(u'An obsolete method.')], HRESULT, 'TimerFired', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'TimerFired' )), COMMETHOD([helpstring(u'An obsolete method.')], HRESULT, 'StopTimer'), COMMETHOD(['propget', helpstring(u'Indicates whether mouse clicks should cancel the operation.')], HRESULT, 'CancelOnClick', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pCancelOnClick' )), COMMETHOD(['propput', helpstring(u'Indicates whether mouse clicks should cancel the operation.')], HRESULT, 'CancelOnClick', ( ['in'], VARIANT_BOOL, 'pCancelOnClick' )), COMMETHOD(['propget', helpstring(u'Indicates whether the escape key and spacebar should cancel the operation.')], HRESULT, 'CancelOnKeyPress', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pCancelOnKeyPress' )), COMMETHOD(['propput', helpstring(u'Indicates whether the escape key and spacebar should cancel the operation.')], HRESULT, 'CancelOnKeyPress', ( ['in'], VARIANT_BOOL, 'pCancelOnKeyPress' )), ] ################################################################ ## code template for ITrackCancel implementation ##class ITrackCancel_Impl(object): ## def Reset(self): ## u'Resets the manager after the associated operation is finished.' ## #return ## ## def _get(self): ## u'An obsolete method.' ## #return ProcessMessages ## def _set(self, ProcessMessages): ## u'An obsolete method.' ## ProcessMessages = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The interval at which the operation will be interrupted to advance progressors and process messages.' ## #return Milliseconds ## def _set(self, Milliseconds): ## u'The interval at which the operation will be interrupted to advance progressors and process messages.' ## CheckTime = property(_get, _set, doc = _set.__doc__) ## ## def StartTimer(self, hWnd, Milliseconds): ## u'An obsolete method.' ## #return ## ## def StopTimer(self): ## u'An obsolete method.' ## #return ## ## @property ## def TimerFired(self): ## u'An obsolete method.' ## #return TimerFired ## ## def _get(self): ## u'The progressor used to show progress during lengthy operations.' ## #return Progressor ## def _set(self, Progressor): ## u'The progressor used to show progress during lengthy operations.' ## Progressor = property(_get, _set, doc = _set.__doc__) ## ## def Continue(self): ## u'Called frequently while associated operation is progressing. A return value of false indicates that the operation should stop.' ## #return keepGoing ## ## def _get(self): ## u'Indicates whether the escape key and spacebar should cancel the operation.' ## #return pCancelOnKeyPress ## def _set(self, pCancelOnKeyPress): ## u'Indicates whether the escape key and spacebar should cancel the operation.' ## CancelOnKeyPress = property(_get, _set, doc = _set.__doc__) ## ## def Cancel(self): ## u'Cancels the associated operation.' ## #return ## ## def _get(self): ## u'Indicates whether mouse clicks should cancel the operation.' ## #return pCancelOnClick ## def _set(self, pCancelOnClick): ## u'Indicates whether mouse clicks should cancel the operation.' ## CancelOnClick = property(_get, _set, doc = _set.__doc__) ## ITrackCancel2._methods_ = [ COMMETHOD(['propput', helpstring(u'The time out in ms interval for a lengthy operation. The negative value means no timeout.')], HRESULT, 'Timeout', ( ['in'], c_int, 'timeoutMS' )), COMMETHOD(['propget', helpstring(u'The time out in ms interval for a lengthy operation. The negative value means no timeout.')], HRESULT, 'Timeout', ( ['retval', 'out'], POINTER(c_int), 'timeoutMS' )), COMMETHOD([helpstring(u'Turns on/off tracking of mouse movements. If bYesNo is true, the cancel is triggered by the mouse move.')], HRESULT, 'TrackMouseMove', ( ['in'], VARIANT_BOOL, 'bYesNo' )), COMMETHOD([helpstring(u'Turns on/off tracking of navigation keys. If bYesNo is true, the cancel is triggered by the navigation key press.')], HRESULT, 'TrackNavigationKeys', ( ['in'], VARIANT_BOOL, 'bYesNo' )), ] ################################################################ ## code template for ITrackCancel2 implementation ##class ITrackCancel2_Impl(object): ## def TrackNavigationKeys(self, bYesNo): ## u'Turns on/off tracking of navigation keys. If bYesNo is true, the cancel is triggered by the navigation key press.' ## #return ## ## def TrackMouseMove(self, bYesNo): ## u'Turns on/off tracking of mouse movements. If bYesNo is true, the cancel is triggered by the mouse move.' ## #return ## ## def _get(self): ## u'The time out in ms interval for a lengthy operation. The negative value means no timeout.' ## #return timeoutMS ## def _set(self, timeoutMS): ## u'The time out in ms interval for a lengthy operation. The negative value means no timeout.' ## Timeout = property(_get, _set, doc = _set.__doc__) ## class ProductInstalled(CoClass): u'Class checks the installed ArcGIS products on the machine.' _reg_clsid_ = GUID('{872135D9-837D-48D6-8D25-81E874D8AE82}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IProductInstalled(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to check what ArcGIS product installed on the machine.' _iid_ = GUID('{673B47DC-3CDF-4131-BA1B-5261CD171EF7}') _idlflags_ = ['oleautomation'] ProductInstalled._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IProductInstalled] class ScientificFormat(CoClass): u'An object for formatting numbers in a scientific format.' _reg_clsid_ = GUID('{7E4F471F-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IScientificNumberFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format scientific numbers.' _iid_ = GUID('{D4F5C355-76B8-11D3-9FC3-00C04F6BC78E}') _idlflags_ = ['oleautomation'] ScientificFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumberFormatOperations, IScientificNumberFormat, IClone, IPersist, IPersistStream] class RateFormat(CoClass): u'An object for formatting numbers in a rate format.' _reg_clsid_ = GUID('{7E4F4721-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class IRateFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format rates.' _iid_ = GUID('{7E4F4717-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] RateFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumericFormat, INumberFormatOperations, IRateFormat, IClone, IPersist, IPersistStream] ILongArray._methods_ = [ COMMETHOD(['propget', helpstring(u'The number of elements in the array.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'pCount' )), COMMETHOD([helpstring(u'Removes an element from the array.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all elements from the array.')], HRESULT, 'RemoveAll'), COMMETHOD(['propget', helpstring(u'An element in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_int), 'pElement' )), COMMETHOD(['propput', helpstring(u'An element in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['in'], c_int, 'pElement' )), COMMETHOD([helpstring(u'Adds an element to the array.')], HRESULT, 'Add', ( ['in'], c_int, 'Element' )), COMMETHOD([helpstring(u'Inserts an element to the array.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], c_int, 'Element' )), ] ################################################################ ## code template for ILongArray implementation ##class ILongArray_Impl(object): ## @property ## def Count(self): ## u'The number of elements in the array.' ## #return pCount ## ## def Insert(self, index, Element): ## u'Inserts an element to the array.' ## #return ## ## def Remove(self, index): ## u'Removes an element from the array.' ## #return ## ## def _get(self, index): ## u'An element in the array.' ## #return pElement ## def _set(self, index, pElement): ## u'An element in the array.' ## Element = property(_get, _set, doc = _set.__doc__) ## ## def RemoveAll(self): ## u'Removes all elements from the array.' ## #return ## ## def Add(self, Element): ## u'Adds an element to the array.' ## #return ## class IPropertySupport(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that set a default property on an object.' _iid_ = GUID('{8A11AD55-2F4F-11D3-9FA0-00C04F6BC6A5}') _idlflags_ = ['oleautomation'] IPropertySupport._methods_ = [ COMMETHOD([helpstring(u'Indicates if the receiver can apply the given object at any given time.')], HRESULT, 'Applies', ( ['in'], POINTER(IUnknown), 'pUnk' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Applies' )), COMMETHOD([helpstring(u'Indicates if the receiver can apply the given object at that particular moment.')], HRESULT, 'CanApply', ( ['in'], POINTER(IUnknown), 'pUnk' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'CanApply' )), COMMETHOD(['propget', helpstring(u'The object currently being used.')], HRESULT, 'Current', ( ['in'], POINTER(IUnknown), 'pUnk' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'currentObject' )), COMMETHOD([helpstring(u'Applies the given property to the receiver and returns the old object.')], HRESULT, 'Apply', ( ['in'], POINTER(IUnknown), 'newObject' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'oldObject' )), ] ################################################################ ## code template for IPropertySupport implementation ##class IPropertySupport_Impl(object): ## @property ## def Current(self, pUnk): ## u'The object currently being used.' ## #return currentObject ## ## def Apply(self, newObject): ## u'Applies the given property to the receiver and returns the old object.' ## #return oldObject ## ## def CanApply(self, pUnk): ## u'Indicates if the receiver can apply the given object at that particular moment.' ## #return CanApply ## ## def Applies(self, pUnk): ## u'Indicates if the receiver can apply the given object at any given time.' ## #return Applies ## IVariantArray._methods_ = [ COMMETHOD(['propget', helpstring(u'The element count.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'An element in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(VARIANT), 'Element' )), COMMETHOD(['propput', helpstring(u'An element in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['in'], VARIANT, 'Element' )), COMMETHOD([helpstring(u'Removes element at the specified position.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all elements.')], HRESULT, 'RemoveAll'), COMMETHOD([helpstring(u'Add an element.')], HRESULT, 'Add', ( ['in'], VARIANT, 'Element' )), COMMETHOD([helpstring(u'Add an element at the specified posiiton.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], VARIANT, 'Element' )), ] ################################################################ ## code template for IVariantArray implementation ##class IVariantArray_Impl(object): ## @property ## def Count(self): ## u'The element count.' ## #return Count ## ## def Insert(self, index, Element): ## u'Add an element at the specified posiiton.' ## #return ## ## def Remove(self, index): ## u'Removes element at the specified position.' ## #return ## ## def _get(self, index): ## u'An element in the array.' ## #return Element ## def _set(self, index, Element): ## u'An element in the array.' ## Element = property(_get, _set, doc = _set.__doc__) ## ## def RemoveAll(self): ## u'Removes all elements.' ## #return ## ## def Add(self, Element): ## u'Add an element.' ## #return ## IRateFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'The rate factor applied to the ValueToSring and StringToValue methods.')], HRESULT, 'RateFactor', ( ['in'], c_double, 'factor' )), COMMETHOD(['propget', helpstring(u'The rate factor applied to the ValueToSring and StringToValue methods.')], HRESULT, 'RateFactor', ( ['retval', 'out'], POINTER(c_double), 'factor' )), COMMETHOD(['propput', helpstring(u'The label appended to the formatted rate number.')], HRESULT, 'RateString', ( ['in'], BSTR, 'str' )), COMMETHOD(['propget', helpstring(u'The label appended to the formatted rate number.')], HRESULT, 'RateString', ( ['retval', 'out'], POINTER(BSTR), 'str' )), ] ################################################################ ## code template for IRateFormat implementation ##class IRateFormat_Impl(object): ## def _get(self): ## u'The label appended to the formatted rate number.' ## #return str ## def _set(self, str): ## u'The label appended to the formatted rate number.' ## RateString = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The rate factor applied to the ValueToSring and StringToValue methods.' ## #return factor ## def _set(self, factor): ## u'The rate factor applied to the ValueToSring and StringToValue methods.' ## RateFactor = property(_get, _set, doc = _set.__doc__) ## class CustomNumberFormat(CoClass): u'An object for formatting numbers in a user-defined format.' _reg_clsid_ = GUID('{7E4F4722-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) CustomNumberFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, ICustomNumberFormat, INumberFormatOperations, IClone, IPersist, IPersistStream] class Time(CoClass): u'An object that represents a date and time value.' _reg_clsid_ = GUID('{E1721810-8210-45B1-8590-FC4C911FBA20}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) Time._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITime, ITime2, ITimeOffsetOperator, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] class IAngleFormat(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that format angles.' _iid_ = GUID('{7E4F4716-8E54-11D2-AAD8-000000000000}') _idlflags_ = ['oleautomation'] IAngleFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'Indicates if the ValueToString argument is in degrees.')], HRESULT, 'AngleInDegrees', ( ['in'], VARIANT_BOOL, 'deg' )), COMMETHOD(['propget', helpstring(u'Indicates if the ValueToString argument is in degrees.')], HRESULT, 'AngleInDegrees', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'deg' )), COMMETHOD(['propput', helpstring(u'Indicates if the formatted number is an angle in degrees.')], HRESULT, 'DisplayDegrees', ( ['in'], VARIANT_BOOL, 'deg' )), COMMETHOD(['propget', helpstring(u'Indicates if the formatted number is an angle in degrees.')], HRESULT, 'DisplayDegrees', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'deg' )), ] ################################################################ ## code template for IAngleFormat implementation ##class IAngleFormat_Impl(object): ## def _get(self): ## u'Indicates if the formatted number is an angle in degrees.' ## #return deg ## def _set(self, deg): ## u'Indicates if the formatted number is an angle in degrees.' ## DisplayDegrees = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Indicates if the ValueToString argument is in degrees.' ## #return deg ## def _set(self, deg): ## u'Indicates if the ValueToString argument is in degrees.' ## AngleInDegrees = property(_get, _set, doc = _set.__doc__) ## # values for enumeration 'esriProductInstalled' esriProductsInstalledDesktop = 10 esriProductsInstalledEngineRuntime = 20 esriProductsInstalledReader = 30 esriProductsInstalledServerNET = 40 esriProductsInstalledServerJAVA = 50 esriProductInstalled = c_int # enum IProductInstalled._methods_ = [ COMMETHOD([helpstring(u'Check if the Product is installed on the machine.')], HRESULT, 'IsProductInstalled', ( ['in'], esriProductInstalled, 'ProductInstalled' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'bInstalled' )), ] ################################################################ ## code template for IProductInstalled implementation ##class IProductInstalled_Impl(object): ## def IsProductInstalled(self, ProductInstalled): ## u'Check if the Product is installed on the machine.' ## #return bInstalled ## IObjectStream._methods_ = [ COMMETHOD(['propputref', helpstring(u'The aggregated stream object.')], HRESULT, 'Stream', ( ['in'], POINTER(IStream), 'ppStream' )), COMMETHOD(['propget', helpstring(u'The aggregated stream object.')], HRESULT, 'Stream', ( ['retval', 'out'], POINTER(POINTER(IStream)), 'ppStream' )), COMMETHOD([helpstring(u'Store an object to the specified stream. The first time the object is stored, the full object is written to the stream. When the object is subsequently stored, a reference is stored.')], HRESULT, 'SaveObject', ( ['in'], POINTER(IUnknown), 'pUnk' )), COMMETHOD([helpstring(u'Load an object from the specified stream. The first time an object is encountered, it is loaded from the stream. When subsequent references to the object are loaded, a pointer to the first object is returned.')], HRESULT, 'LoadObject', ( ['in'], POINTER(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.GUID), 'riid' ), ( ['in'], POINTER(IUnknown), 'pUnkOuter' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'ppUnk' )), COMMETHOD([helpstring(u'Replaces the current object with the object in the the specified stream.')], HRESULT, 'ReplaceObject', ( ['in'], POINTER(IUnknown), 'unknown' )), COMMETHOD(['propput', helpstring(u'The software version for the stream.')], HRESULT, 'Version', ( ['in'], BSTR, 'versionSpecifier' )), COMMETHOD(['propget', helpstring(u'The software version for the stream.')], HRESULT, 'Version', ( ['retval', 'out'], POINTER(BSTR), 'versionSpecifier' )), ] ################################################################ ## code template for IObjectStream implementation ##class IObjectStream_Impl(object): ## def ReplaceObject(self, unknown): ## u'Replaces the current object with the object in the the specified stream.' ## #return ## ## def LoadObject(self, riid, pUnkOuter): ## u'Load an object from the specified stream. The first time an object is encountered, it is loaded from the stream. When subsequent references to the object are loaded, a pointer to the first object is returned.' ## #return ppUnk ## ## def SaveObject(self, pUnk): ## u'Store an object to the specified stream. The first time the object is stored, the full object is written to the stream. When the object is subsequently stored, a reference is stored.' ## #return ## ## def _get(self): ## u'The software version for the stream.' ## #return versionSpecifier ## def _set(self, versionSpecifier): ## u'The software version for the stream.' ## Version = property(_get, _set, doc = _set.__doc__) ## ## @property ## def Stream(self, ppStream): ## u'The aggregated stream object.' ## #return ## class IXMLSerializeData2(IXMLSerializeData): _case_insensitive_ = True u'Provides access to members that serialize and deserialize data from XML.' _iid_ = GUID('{E9A0F087-F1F7-455B-9489-FF34E16B9CC7}') _idlflags_ = ['oleautomation'] IXMLSerializeData2._methods_ = [ COMMETHOD([helpstring(u'Adds element value as an int64.')], HRESULT, 'AddInt64', ( ['in'], BSTR, 'Name' ), ( ['in'], c_longlong, 'Value' )), COMMETHOD([helpstring(u'Obtains element value as an int64.')], HRESULT, 'GetInt64', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(c_longlong), 'Value' )), ] ################################################################ ## code template for IXMLSerializeData2 implementation ##class IXMLSerializeData2_Impl(object): ## def AddInt64(self, Name, Value): ## u'Adds element value as an int64.' ## #return ## ## def GetInt64(self, index): ## u'Obtains element value as an int64.' ## #return Value ## class TimeInstant(CoClass): u'An object that represents a time-referenced instant in time.' _reg_clsid_ = GUID('{06BD7287-0785-4294-BD72-F2933B7FD00D}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) class ITimeRelationalOperator(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to time operations.' _iid_ = GUID('{7CFFA76A-6552-4516-8599-98225065249E}') _idlflags_ = ['oleautomation'] TimeInstant._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeInstant, ITimeValue, ITimeRelationalOperator, ITimeOffsetOperator, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] class TimeExtent(CoClass): u'An object that represents a time-referenced time extent.' _reg_clsid_ = GUID('{5DC783DE-283A-4963-AB53-25A05C5D76CC}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) TimeExtent._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeExtent, ITimeValue, ITimeRelationalOperator, ITimeOffsetOperator, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] class TimeZoneRule(CoClass): u'An object that represents a time zone dynamic adjustments rule.' _reg_clsid_ = GUID('{1897B0EF-94DA-4037-8156-145D63CD480D}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) TimeZoneRule._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeZoneRule, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] IFileNames._methods_ = [ COMMETHOD([helpstring(u'Adds a filename to the array.')], HRESULT, 'Add', ( ['in'], BSTR, 'FileName' )), COMMETHOD([helpstring(u'Removes the current filename from the array.')], HRESULT, 'Remove'), COMMETHOD([helpstring(u'Resets the current position back to the beginning of the array.')], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Obtains the next filename in the array.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(BSTR), 'FileName' )), COMMETHOD([helpstring(u'Indicates if the current filename is a directory.')], HRESULT, 'IsDirectory', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsDirectory' )), ] ################################################################ ## code template for IFileNames implementation ##class IFileNames_Impl(object): ## def Reset(self): ## u'Resets the current position back to the beginning of the array.' ## #return ## ## def Add(self, FileName): ## u'Adds a filename to the array.' ## #return ## ## def IsDirectory(self): ## u'Indicates if the current filename is a directory.' ## #return IsDirectory ## ## def Remove(self): ## u'Removes the current filename from the array.' ## #return ## ## def Next(self): ## u'Obtains the next filename in the array.' ## #return FileName ## IAuthorizeLicense._methods_ = [ COMMETHOD(['propget', helpstring(u'Retrieves the last error message and code from an attempt to process features.')], HRESULT, 'LastError', ( ['out'], POINTER(BSTR), 'LastError' ), ( ['retval', 'out'], POINTER(c_int), 'lastErrorCode' )), COMMETHOD(['propget', helpstring(u'Retrieves the details of the new authorized features.')], HRESULT, 'FeaturesAdded', ( ['retval', 'out'], POINTER(BSTR), 'FeaturesAdded' )), COMMETHOD([helpstring(u'Authorize new feature(s).')], HRESULT, 'AuthorizeASR', ( ['in'], BSTR, 'strAsr' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Authorize new feature(s) from file.')], HRESULT, 'AuthorizeASRFromFile', ( ['in'], BSTR, 'FileName' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Deauthorize feature(s).')], HRESULT, 'DeauthorizeASR', ( ['in'], BSTR, 'strAsr' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Deauthorize feature(s) from file.')], HRESULT, 'DeauthorizeASRFromFile', ( ['in'], BSTR, 'FileName' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Repair feature(s).')], HRESULT, 'RepairASR', ( ['in'], BSTR, 'strAsr' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Repair feature(s) from file.')], HRESULT, 'RepairASRFromFile', ( ['in'], BSTR, 'FileName' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Check feature(s).')], HRESULT, 'CheckASR', ( ['in'], BSTR, 'strAsr' ), ( ['in'], BSTR, 'Password' )), COMMETHOD([helpstring(u'Check feature(s) from file.')], HRESULT, 'CheckASRFromFile', ( ['in'], BSTR, 'FileName' ), ( ['in'], BSTR, 'Password' )), ] ################################################################ ## code template for IAuthorizeLicense implementation ##class IAuthorizeLicense_Impl(object): ## def CheckASR(self, strAsr, Password): ## u'Check feature(s).' ## #return ## ## def AuthorizeASRFromFile(self, FileName, Password): ## u'Authorize new feature(s) from file.' ## #return ## ## def DeauthorizeASRFromFile(self, FileName, Password): ## u'Deauthorize feature(s) from file.' ## #return ## ## def AuthorizeASR(self, strAsr, Password): ## u'Authorize new feature(s).' ## #return ## ## @property ## def FeaturesAdded(self): ## u'Retrieves the details of the new authorized features.' ## #return FeaturesAdded ## ## def DeauthorizeASR(self, strAsr, Password): ## u'Deauthorize feature(s).' ## #return ## ## def CheckASRFromFile(self, FileName, Password): ## u'Check feature(s) from file.' ## #return ## ## def RepairASR(self, strAsr, Password): ## u'Repair feature(s).' ## #return ## ## def RepairASRFromFile(self, FileName, Password): ## u'Repair feature(s) from file.' ## #return ## ## @property ## def LastError(self): ## u'Retrieves the last error message and code from an attempt to process features.' ## #return LastError, lastErrorCode ## IStringArray._methods_ = [ COMMETHOD(['propget', helpstring(u'The element count.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'An element in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Element' )), COMMETHOD(['propput', helpstring(u'An element in the array.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['in'], BSTR, 'Element' )), COMMETHOD([helpstring(u'Removes element at the specified position.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all elements.')], HRESULT, 'RemoveAll'), COMMETHOD([helpstring(u'Add an element.')], HRESULT, 'Add', ( ['in'], BSTR, 'Element' )), COMMETHOD([helpstring(u'Add an element at the specified posiiton.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], BSTR, 'Element' )), ] ################################################################ ## code template for IStringArray implementation ##class IStringArray_Impl(object): ## @property ## def Count(self): ## u'The element count.' ## #return Count ## ## def Insert(self, index, Element): ## u'Add an element at the specified posiiton.' ## #return ## ## def Remove(self, index): ## u'Removes element at the specified position.' ## #return ## ## def _get(self, index): ## u'An element in the array.' ## #return Element ## def _set(self, index, Element): ## u'An element in the array.' ## Element = property(_get, _set, doc = _set.__doc__) ## ## def RemoveAll(self): ## u'Removes all elements.' ## #return ## ## def Add(self, Element): ## u'Add an element.' ## #return ## class TimeReference(CoClass): u'An object that represents a time reference, including a time zone.' _reg_clsid_ = GUID('{EFB2E7DB-78F4-4E24-B01F-4F9C7AB800C5}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) TimeReference._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeReference, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] class TimeZoneInfo(CoClass): u'An object that represents a time zone information.' _reg_clsid_ = GUID('{78FAD5F1-60FA-458A-8D93-630DA920448D}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) TimeZoneInfo._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeZoneInfo, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] _WKSEnvelopeZ._fields_ = [ ('XMin', c_double), ('YMin', c_double), ('ZMin', c_double), ('XMax', c_double), ('YMax', c_double), ('ZMax', c_double), ] assert sizeof(_WKSEnvelopeZ) == 48, sizeof(_WKSEnvelopeZ) assert alignment(_WKSEnvelopeZ) == 8, alignment(_WKSEnvelopeZ) # values for enumeration 'esriDrawOp' esriDrawPolyPolyline = 0 esriDrawPolyPolygon = 1 esriDrawPolyline = 2 esriDrawPolygon = 3 esriDrawBeginPath = 4 esriDrawEndPath = 5 esriDrawArcCW = 6 esriDrawArcCCW = 7 esriDrawPolyBezier = 8 esriDrawRectangle = 9 esriDrawCircle = 10 esriDrawMoveTo = 11 esriDrawMultipoint = 12 esriDrawStop = 13 esriDrawTrapezoids = 14 esriDrawPolygonNoBorder = 15 esriDrawPolyPolygonNoBorder = 16 esriDrawOp = c_int # enum # values for enumeration 'esriByteSwapDataType' esriBSDTchar = 0 esriBSDTbool = 1 esriBSDTunsignedint = 2 esriBSDTBYTE = 3 esriBSDTBOOLU = 4 esriBSDTUSHORT = 5 esriBSDTSHORT = 6 esriBSDTULONG = 7 esriBSDTLONG = 8 esriBSDTULONGLONG = 9 esriBSDTLONGLONG = 10 esriBSDTFLOAT = 11 esriBSDTDOUBLE = 12 esriBSDTGUID = 13 esriBSDTWCHAR = 14 esriByteSwapDataType = c_int # enum class LocaleInfo(CoClass): u'An object that represents a locale info.' _reg_clsid_ = GUID('{1CB5F59D-FD41-4695-9F48-FAE4675DBF3C}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) LocaleInfo._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ILocaleInfo, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] IScientificNumberFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'The number of decimal digits in a scientifically-formatted number.')], HRESULT, 'DecimalPlaces', ( ['in'], c_int, 'num' )), COMMETHOD(['propget', helpstring(u'The number of decimal digits in a scientifically-formatted number.')], HRESULT, 'DecimalPlaces', ( ['retval', 'out'], POINTER(c_int), 'num' )), ] ################################################################ ## code template for IScientificNumberFormat implementation ##class IScientificNumberFormat_Impl(object): ## def _get(self): ## u'The number of decimal digits in a scientifically-formatted number.' ## #return num ## def _set(self, num): ## u'The number of decimal digits in a scientifically-formatted number.' ## DecimalPlaces = property(_get, _set, doc = _set.__doc__) ## IPropertySetArray._methods_ = [ COMMETHOD(['propget', helpstring(u'The propertyset count.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The propertyset at the specified position.')], HRESULT, 'Element', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IPropertySet)), 'ppPropertySet' )), COMMETHOD([helpstring(u'Removes the propertyset at the specified position.')], HRESULT, 'Remove', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all propertysets.')], HRESULT, 'RemoveAll'), COMMETHOD([helpstring(u'Adds a propertyset.')], HRESULT, 'Add', ( ['in'], POINTER(IPropertySet), 'pPropertySet' )), COMMETHOD([helpstring(u'Adds a propertyset at the specified position.')], HRESULT, 'Insert', ( ['in'], c_int, 'index' ), ( ['in'], POINTER(IPropertySet), 'pPropertySet' )), ] ################################################################ ## code template for IPropertySetArray implementation ##class IPropertySetArray_Impl(object): ## @property ## def Count(self): ## u'The propertyset count.' ## #return Count ## ## def Insert(self, index, pPropertySet): ## u'Adds a propertyset at the specified position.' ## #return ## ## def Remove(self, index): ## u'Removes the propertyset at the specified position.' ## #return ## ## @property ## def Element(self, index): ## u'The propertyset at the specified position.' ## #return ppPropertySet ## ## def RemoveAll(self): ## u'Removes all propertysets.' ## #return ## ## def Add(self, pPropertySet): ## u'Adds a propertyset.' ## #return ## class TimeZoneFactory(CoClass): u'An object that creates TimeZoneInfo instances.' _reg_clsid_ = GUID('{C559680F-9FAE-4967-938A-33548BC5EBA0}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) TimeZoneFactory._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeZoneFactory, ITimeZoneFactory2] class IRequestHandler2(IRequestHandler): _case_insensitive_ = True u'Provides access to members that control handing of request messages.' _iid_ = GUID('{8319E7D0-8AD1-48ED-AA99-03F9D0C93BA8}') _idlflags_ = ['oleautomation'] IRequestHandler2._methods_ = [ COMMETHOD([helpstring(u'Handles a binary request with explicit capabilities.')], HRESULT, 'HandleBinaryRequest2', ( ['in'], BSTR, 'Capabilities' ), ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'request' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'response' )), ] ################################################################ ## code template for IRequestHandler2 implementation ##class IRequestHandler2_Impl(object): ## def HandleBinaryRequest2(self, Capabilities, request): ## u'Handles a binary request with explicit capabilities.' ## #return response ## ILog._methods_ = [ COMMETHOD([helpstring(u'Adds a message to the log.')], HRESULT, 'AddMessage', ( ['in'], c_int, 'msgType' ), ( ['in'], c_int, 'msgCode' ), ( ['in'], BSTR, 'msg' )), ] ################################################################ ## code template for ILog implementation ##class ILog_Impl(object): ## def AddMessage(self, msgType, msgCode, msg): ## u'Adds a message to the log.' ## #return ## IComponentCategoryManager._methods_ = [ COMMETHOD([helpstring(u'Creates a component category.')], HRESULT, 'Create', ( ['in'], BSTR, 'Name' ), ( ['in'], POINTER(IUID), 'category' )), COMMETHOD([helpstring(u'Installs or uninstalls the objects that match the object type into the given category.')], HRESULT, 'Setup', ( ['in'], BSTR, 'pathname' ), ( ['in'], POINTER(IUID), 'objectType' ), ( ['in'], POINTER(IUID), 'category' ), ( ['in'], VARIANT_BOOL, 'install' )), COMMETHOD([helpstring(u'Installs or uninstalls the given object into the given category.')], HRESULT, 'SetupObject', ( ['in'], BSTR, 'pathname' ), ( ['in'], POINTER(IUID), 'obj' ), ( ['in'], POINTER(IUID), 'category' ), ( ['in'], VARIANT_BOOL, 'install' )), ] ################################################################ ## code template for IComponentCategoryManager implementation ##class IComponentCategoryManager_Impl(object): ## def Create(self, Name, category): ## u'Creates a component category.' ## #return ## ## def Setup(self, pathname, objectType, category, install): ## u'Installs or uninstalls the objects that match the object type into the given category.' ## #return ## ## def SetupObject(self, pathname, obj, category, install): ## u'Installs or uninstalls the given object into the given category.' ## #return ## tagSTATSTG._fields_ = [ ('pwcsName', WSTRING), ('type', c_ulong), ('cbSize', _ULARGE_INTEGER), ('mtime', _FILETIME), ('ctime', _FILETIME), ('atime', _FILETIME), ('grfMode', c_ulong), ('grfLocksSupported', c_ulong), ('clsid', comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.GUID), ('grfStateBits', c_ulong), ('reserved', c_ulong), ] assert sizeof(tagSTATSTG) == 72, sizeof(tagSTATSTG) assert alignment(tagSTATSTG) == 8, alignment(tagSTATSTG) INumberFormatOperations._methods_ = [ COMMETHOD([helpstring(u'Increments a value according to the numbers format.')], HRESULT, 'Increment', ( ['in'], c_double, 'Value' ), ( ['retval', 'out'], POINTER(c_double), 'Result' )), ] ################################################################ ## code template for INumberFormatOperations implementation ##class INumberFormatOperations_Impl(object): ## def Increment(self, Value): ## u'Increments a value according to the numbers format.' ## #return Result ## IClassifyGEN._methods_ = [ COMMETHOD([helpstring(u'Classifies histogram data (array of values (doubles) and a paired array of frequencies (longs)) into the specified number of classes.')], HRESULT, 'Classify', ( ['in'], VARIANT, 'doubleArrayValues' ), ( ['in'], VARIANT, 'longArrayFrequencies' ), ( ['in', 'out'], POINTER(c_int), 'numClasses' )), COMMETHOD(['propget', helpstring(u'The array of class breaks (double). ClassBreaks(0) is the minimum value in the dataset, and subsequent breaks represent the upper limit of each class.')], HRESULT, 'ClassBreaks', ( ['retval', 'out'], POINTER(VARIANT), 'doubleArrayBreaks' )), COMMETHOD(['propget', helpstring(u'The name of the classification method (based on choice of classification object).')], HRESULT, 'MethodName', ( ['retval', 'out'], POINTER(BSTR), 'txt' )), COMMETHOD(['propget', helpstring(u'The CLSID for the classification object.')], HRESULT, 'ClassID', ( ['retval', 'out'], POINTER(POINTER(IUID)), 'clsid' )), ] ################################################################ ## code template for IClassifyGEN implementation ##class IClassifyGEN_Impl(object): ## @property ## def ClassID(self): ## u'The CLSID for the classification object.' ## #return clsid ## ## @property ## def MethodName(self): ## u'The name of the classification method (based on choice of classification object).' ## #return txt ## ## def Classify(self, doubleArrayValues, longArrayFrequencies): ## u'Classifies histogram data (array of values (doubles) and a paired array of frequencies (longs)) into the specified number of classes.' ## #return numClasses ## ## @property ## def ClassBreaks(self): ## u'The array of class breaks (double). ClassBreaks(0) is the minimum value in the dataset, and subsequent breaks represent the upper limit of each class.' ## #return doubleArrayBreaks ## IAngularConverter._methods_ = [ COMMETHOD([helpstring(u'Writes an angle.')], HRESULT, 'SetAngle', ( ['in'], c_double, 'angle' ), ( ['in'], esriDirectionType, 'dt' ), ( ['in'], esriDirectionUnits, 'du' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'fail' )), COMMETHOD([helpstring(u'Reads the angle.')], HRESULT, 'GetAngle', ( ['in'], esriDirectionType, 'dt' ), ( ['in'], esriDirectionUnits, 'du' ), ( ['retval', 'out'], POINTER(c_double), 'angle' )), COMMETHOD([helpstring(u'Writes an angle.')], HRESULT, 'SetString', ( ['in'], BSTR, 'angle' ), ( ['in'], esriDirectionType, 'dt' ), ( ['in'], esriDirectionUnits, 'du' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'bRet' )), COMMETHOD([helpstring(u'Reads the angle.')], HRESULT, 'GetString', ( ['in'], esriDirectionType, 'dt' ), ( ['in'], esriDirectionUnits, 'du' ), ( ['in'], c_int, 'precision' ), ( ['retval', 'out'], POINTER(BSTR), 'angle' )), ] ################################################################ ## code template for IAngularConverter implementation ##class IAngularConverter_Impl(object): ## def SetAngle(self, angle, dt, du): ## u'Writes an angle.' ## #return fail ## ## def SetString(self, angle, dt, du): ## u'Writes an angle.' ## #return bRet ## ## def GetAngle(self, dt, du): ## u'Reads the angle.' ## #return angle ## ## def GetString(self, dt, du, precision): ## u'Reads the angle.' ## #return angle ## class NumericFormat(CoClass): u'An object for formatting numbers in a variety of numeric formats.' _reg_clsid_ = GUID('{7E4F4719-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) NumericFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumericFormat, INumberFormatOperations, IClone, IPersist, IPersistStream, IXMLSerialize] IXMLFlags._methods_ = [ COMMETHOD([helpstring(u'Writes a flag value.')], HRESULT, 'SetFlag', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT_BOOL, 'FlagValue' )), COMMETHOD([helpstring(u'Indicates whether XML flag is set.')], HRESULT, 'GetFlag', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'FlagValue' )), COMMETHOD(['propget', helpstring(u'Number of flags.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'Flag name by index.')], HRESULT, 'FlagName', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Name' )), COMMETHOD(['propget', helpstring(u'Indicates whether the flag has value by index.')], HRESULT, 'FlagValue', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), ] ################################################################ ## code template for IXMLFlags implementation ##class IXMLFlags_Impl(object): ## @property ## def Count(self): ## u'Number of flags.' ## #return Count ## ## def SetFlag(self, Name, FlagValue): ## u'Writes a flag value.' ## #return ## ## @property ## def FlagName(self, index): ## u'Flag name by index.' ## #return Name ## ## def GetFlag(self, Name): ## u'Indicates whether XML flag is set.' ## #return FlagValue ## ## @property ## def FlagValue(self, index): ## u'Indicates whether the flag has value by index.' ## #return Value ## ICategoryFactory._methods_ = [ COMMETHOD(['propput', helpstring(u'The ID of the category.')], HRESULT, 'CategoryID', ( ['in'], POINTER(IUID), 'rhs' )), COMMETHOD([helpstring(u'Creates the next component in the category.')], HRESULT, 'CreateNext', ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'nextComponent' )), ] ################################################################ ## code template for ICategoryFactory implementation ##class ICategoryFactory_Impl(object): ## def _set(self, rhs): ## u'The ID of the category.' ## CategoryID = property(fset = _set, doc = _set.__doc__) ## ## def CreateNext(self): ## u'Creates the next component in the category.' ## #return nextComponent ## IEnvironmentManager._methods_ = [ COMMETHOD([helpstring(u'Retrieves an environment.')], HRESULT, 'GetEnvironment', ( ['in'], POINTER(IUID), 'pGuid' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'ppUnk' )), COMMETHOD([helpstring(u'Adds an environment.')], HRESULT, 'AddEnvironment', ( ['in'], POINTER(IUID), 'pGuid' ), ( ['in'], POINTER(IUnknown), 'pUnk' )), ] ################################################################ ## code template for IEnvironmentManager implementation ##class IEnvironmentManager_Impl(object): ## def GetEnvironment(self, pGuid): ## u'Retrieves an environment.' ## #return ppUnk ## ## def AddEnvironment(self, pGuid, pUnk): ## u'Adds an environment.' ## #return ## IComponentCategoryInfo._methods_ = [ COMMETHOD([helpstring(u'Obtains a collection of component IDs matching the specified component category ID.')], HRESULT, 'GetComponentsInCategory', ( ['in'], POINTER(IUID), 'pCategoryID' ), ( ['retval', 'out'], POINTER(POINTER(IEnumUID)), 'ppUIDs' )), ] ################################################################ ## code template for IComponentCategoryInfo implementation ##class IComponentCategoryInfo_Impl(object): ## def GetComponentsInCategory(self, pCategoryID): ## u'Obtains a collection of component IDs matching the specified component category ID.' ## #return ppUIDs ## class IObjectConstruct(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for constructing an object.' _iid_ = GUID('{30FA4757-A2F3-4D11-B944-059AAD5C3991}') _idlflags_ = ['oleautomation'] IObjectConstruct._methods_ = [ COMMETHOD([helpstring(u'Two phase object construction.')], HRESULT, 'Construct', ( ['in'], POINTER(IPropertySet), 'props' )), ] ################################################################ ## code template for IObjectConstruct implementation ##class IObjectConstruct_Impl(object): ## def Construct(self, props): ## u'Two phase object construction.' ## #return ## IJITExtensionManager._methods_ = [ COMMETHOD(['propget', helpstring(u'The number of just in time extensions registered with the application.')], HRESULT, 'JITExtensionCount', ( ['retval', 'out'], POINTER(c_int), 'pCount' )), COMMETHOD(['propget', helpstring(u'Retrieves the CLSID of the JIT Extension at index.')], HRESULT, 'JITExtensionCLSID', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IUID)), 'ppID' )), COMMETHOD([helpstring(u'Indicates whether the extension is currently loaded.')], HRESULT, 'IsLoaded', ( ['in'], POINTER(IUID), 'pID' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'bLoaded' )), COMMETHOD([helpstring(u'Removes a just in time extension from the manager.')], HRESULT, 'RemoveExtension', ( ['in'], POINTER(IExtension), 'pExtension' )), COMMETHOD([helpstring(u'Adds an extension to the manager without initialization.')], HRESULT, 'InsertExtension', ( ['in'], POINTER(IUID), 'pExtCLSID' ), ( ['in'], POINTER(IExtension), 'pExtension' )), COMMETHOD([helpstring(u'Indicates whether the extension is currently checked on.')], HRESULT, 'IsExtensionEnabled', ( ['in'], POINTER(IUID), 'pExtCLSID' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Enabled' )), ] ################################################################ ## code template for IJITExtensionManager implementation ##class IJITExtensionManager_Impl(object): ## def InsertExtension(self, pExtCLSID, pExtension): ## u'Adds an extension to the manager without initialization.' ## #return ## ## def IsExtensionEnabled(self, pExtCLSID): ## u'Indicates whether the extension is currently checked on.' ## #return Enabled ## ## def IsLoaded(self, pID): ## u'Indicates whether the extension is currently loaded.' ## #return bLoaded ## ## def RemoveExtension(self, pExtension): ## u'Removes a just in time extension from the manager.' ## #return ## ## @property ## def JITExtensionCLSID(self, index): ## u'Retrieves the CLSID of the JIT Extension at index.' ## #return ppID ## ## @property ## def JITExtensionCount(self): ## u'The number of just in time extensions registered with the application.' ## #return pCount ## # values for enumeration 'esriAreaUnits' esriUnknownAreaUnits = 0 esriSquareInches = 1 esriSquareFeet = 2 esriSquareYards = 3 esriAcres = 4 esriSquareMiles = 5 esriSquareMillimeters = 6 esriSquareCentimeters = 7 esriSquareDecimeters = 8 esriSquareMeters = 9 esriAres = 10 esriHectares = 11 esriSquareKilometers = 12 esriAreaUnitsLast = 13 esriAreaUnits = c_int # enum class FractionFormat(CoClass): u'An object for formatting numbers in a fraction format.' _reg_clsid_ = GUID('{7E4F471C-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) FractionFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumberFormatOperations, IFractionFormat, IClone, IPersist, IPersistStream] class IObjectUpdate(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods for updating an object.' _iid_ = GUID('{D641F414-1004-4E73-9386-F6EA543E2D95}') _idlflags_ = ['oleautomation'] IObjectUpdate._methods_ = [ COMMETHOD([helpstring(u"Updates object's properties.")], HRESULT, 'Update', ( ['in'], POINTER(IPropertySet), 'props' )), ] ################################################################ ## code template for IObjectUpdate implementation ##class IObjectUpdate_Impl(object): ## def Update(self, props): ## u"Updates object's properties." ## #return ## IStatisticsResults._methods_ = [ COMMETHOD(['propget', helpstring(u'The count of the values.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The minimum value.')], HRESULT, 'Minimum', ( ['retval', 'out'], POINTER(c_double), 'min' )), COMMETHOD(['propget', helpstring(u'The maximum value.')], HRESULT, 'Maximum', ( ['retval', 'out'], POINTER(c_double), 'max' )), COMMETHOD(['propget', helpstring(u'The sum of the values.')], HRESULT, 'Sum', ( ['retval', 'out'], POINTER(c_double), 'Sum' )), COMMETHOD(['propget', helpstring(u'The arithmetic mean.')], HRESULT, 'Mean', ( ['retval', 'out'], POINTER(c_double), 'Mean' )), COMMETHOD(['propget', helpstring(u'The standard deviation, based on sample flag.')], HRESULT, 'StandardDeviation', ( ['retval', 'out'], POINTER(c_double), 'stdDev' )), ] ################################################################ ## code template for IStatisticsResults implementation ##class IStatisticsResults_Impl(object): ## @property ## def Count(self): ## u'The count of the values.' ## #return Count ## ## @property ## def Sum(self): ## u'The sum of the values.' ## #return Sum ## ## @property ## def StandardDeviation(self): ## u'The standard deviation, based on sample flag.' ## #return stdDev ## ## @property ## def Maximum(self): ## u'The maximum value.' ## #return max ## ## @property ## def Minimum(self): ## u'The minimum value.' ## #return min ## ## @property ## def Mean(self): ## u'The arithmetic mean.' ## #return Mean ## class ILog2(ILog): _case_insensitive_ = True u'Provides access to methods for accessing a log.' _iid_ = GUID('{44F1FE1D-CCC4-4A5F-977A-233C25A45625}') _idlflags_ = ['oleautomation'] ILog2._methods_ = [ COMMETHOD([helpstring(u'True if the message type is allowed to be written into the log file.')], HRESULT, 'WillLog', ( ['in'], c_int, 'msgType' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'WillLog' )), COMMETHOD([helpstring(u'Adds a message to the log.')], HRESULT, 'AddMessageEx', ( ['in'], c_int, 'msgType' ), ( ['in'], BSTR, 'MethodName' ), ( ['in'], c_int, 'msgCode' ), ( ['in'], c_double, 'elapsed' ), ( ['in'], BSTR, 'msg' )), ] ################################################################ ## code template for ILog2 implementation ##class ILog2_Impl(object): ## def AddMessageEx(self, msgType, MethodName, msgCode, elapsed, msg): ## u'Adds a message to the log.' ## #return ## ## def WillLog(self, msgType): ## u'True if the message type is allowed to be written into the log file.' ## #return WillLog ## # values for enumeration 'esriCaseAppearance' esriCaseAppearanceUnchanged = 0 esriCaseAppearanceUpper = 1 esriCaseAppearanceLower = 2 esriCaseAppearance = c_int # enum IUnitConverter._methods_ = [ COMMETHOD([helpstring(u'Convert Esri units.')], HRESULT, 'ConvertUnits', ( ['in'], c_double, 'dValue' ), ( ['in'], esriUnits, 'inUnits' ), ( ['in'], esriUnits, 'outUnits' ), ( ['retval', 'out'], POINTER(c_double), 'outValue' )), COMMETHOD([helpstring(u'Convert Esri unit enumerations to strings.')], HRESULT, 'EsriUnitsAsString', ( ['in'], esriUnits, 'units' ), ( ['in'], esriCaseAppearance, 'appearance' ), ( ['in'], VARIANT_BOOL, 'bPlural' ), ( ['retval', 'out'], POINTER(BSTR), 'sUnitString' )), ] ################################################################ ## code template for IUnitConverter implementation ##class IUnitConverter_Impl(object): ## def ConvertUnits(self, dValue, inUnits, outUnits): ## u'Convert Esri units.' ## #return outValue ## ## def EsriUnitsAsString(self, units, appearance, bPlural): ## u'Convert Esri unit enumerations to strings.' ## #return sUnitString ## # values for enumeration 'esriJobMessageType' esriJobMessageTypeInformative = 0 esriJobMessageTypeWarning = 1 esriJobMessageTypeError = 2 esriJobMessageTypeEmpty = 3 esriJobMessageTypeAbort = 4 esriJobMessageTypeProcessStart = 5 esriJobMessageTypeProcessStop = 6 esriJobMessageTypeProcessDefinition = 7 esriJobMessageType = c_int # enum IJobMessage._methods_ = [ COMMETHOD(['propget', helpstring(u'Method to return message type.')], HRESULT, 'MessageType', ( ['retval', 'out'], POINTER(esriJobMessageType), 'pVal' )), COMMETHOD(['propput', helpstring(u'Method to return message type.')], HRESULT, 'MessageType', ( ['in'], esriJobMessageType, 'pVal' )), COMMETHOD(['propget', helpstring(u'Method to return message description.')], HRESULT, 'Description', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD(['propput', helpstring(u'Method to return message description.')], HRESULT, 'Description', ( ['in'], BSTR, 'pVal' )), ] ################################################################ ## code template for IJobMessage implementation ##class IJobMessage_Impl(object): ## def _get(self): ## u'Method to return message description.' ## #return pVal ## def _set(self, pVal): ## u'Method to return message description.' ## Description = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Method to return message type.' ## #return pVal ## def _set(self, pVal): ## u'Method to return message type.' ## MessageType = property(_get, _set, doc = _set.__doc__) ## IJSONArray._methods_ = [ COMMETHOD([helpstring(u'Parses JSON array from string into memory.')], HRESULT, 'ParseString', ( ['in'], BSTR, 'json' )), COMMETHOD([helpstring(u'Parses JSON array from IJSONReader into memory. Useful if you want to have random acces to just a part of a JSON.')], HRESULT, 'ParseJSON', ( ['in'], POINTER(IJSONReader), 'pReader' )), COMMETHOD(['propget', helpstring(u'Returns an array size.')], HRESULT, 'Count', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'Returns an array value at a given index. Returns E_INVALIDARG if index is out of bounds.')], HRESULT, 'Value', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(VARIANT), 'Value' )), COMMETHOD([helpstring(u'Checks if an array value at a given index is NULL.')], HRESULT, 'IsValueNull', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD([helpstring(u"Returns array value at a given index as DATE. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsDate', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(c_double), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns array value at a given index as boolean. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsBoolean', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(VARIANT_BOOL), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns array value at a given index as long. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsLong', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(c_int), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns array value at a given index as double. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsDouble', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(c_double), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns array value at a given index as string. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsString', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(BSTR), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns array value at a given index as IJSONObject. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsObject', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(POINTER(IJSONObject)), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns array value at a given index as IJSONArray. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsArray', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(POINTER(IJSONArray)), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u'Adds new variant value to the array.')], HRESULT, 'Add', ( ['in'], VARIANT, 'Value' )), COMMETHOD([helpstring(u'Adds new DATE value to the array.')], HRESULT, 'AddDate', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds new boolean value to the array.')], HRESULT, 'AddBoolean', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Adds new long value to the array.')], HRESULT, 'AddLong', ( ['in'], c_int, 'Value' )), COMMETHOD([helpstring(u'Adds new double value to the array.')], HRESULT, 'AddDouble', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds new string value to the array.')], HRESULT, 'AddString', ( ['in'], BSTR, 'Value' )), COMMETHOD([helpstring(u'Adds new null value to the array.')], HRESULT, 'AddNull'), COMMETHOD([helpstring(u'Adds new nested object to the array.')], HRESULT, 'AddJSONObject', ( ['in'], POINTER(IJSONObject), 'Value' )), COMMETHOD([helpstring(u'Adds new nested array to the array.')], HRESULT, 'AddJSONArray', ( ['in'], POINTER(IJSONArray), 'Value' )), COMMETHOD([helpstring(u'Creates and adds new member to the member collection. Returns E_FAIL if creation of the member fails.')], HRESULT, 'CreateMemberObject', ( ['out'], POINTER(POINTER(IJSONObject)), 'Value' )), COMMETHOD([helpstring(u'Creates and adds new member to the member collection. Returns E_FAIL if creation of the member fails.')], HRESULT, 'CreateMemberArray', ( ['out'], POINTER(POINTER(IJSONArray)), 'Value' )), COMMETHOD([helpstring(u"Converts IJSONArray to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL. ")], HRESULT, 'ToJSONString', ( ['in'], POINTER(IPropertySet), 'props' ), ( ['retval', 'out'], POINTER(BSTR), 'outStr' )), COMMETHOD([helpstring(u'Converts IJSONArray to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods.')], HRESULT, 'ToJSON', ( ['in'], BSTR, 'objectName' ), ( ['in'], POINTER(IJSONWriter), 'pWriter' )), COMMETHOD([helpstring(u'Remove a value from the member collection.')], HRESULT, 'RemoveValue', ( ['in'], c_int, 'index' )), COMMETHOD([helpstring(u'Removes all values.')], HRESULT, 'ClearAll'), COMMETHOD([helpstring(u'Adds new double value to the array. Stores precision for use in ToJSON and ToJSONString')], HRESULT, 'AddDoubleEx', ( ['in'], c_double, 'Value' ), ( ['in'], c_int, 'precision' )), ] ################################################################ ## code template for IJSONArray implementation ##class IJSONArray_Impl(object): ## def AddDoubleEx(self, Value, precision): ## u'Adds new double value to the array. Stores precision for use in ToJSON and ToJSONString' ## #return ## ## def TryGetValueAsArray(self, index): ## u"Returns array value at a given index as IJSONArray. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def TryGetValueAsBoolean(self, index): ## u"Returns array value at a given index as boolean. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddDate(self, Value): ## u'Adds new DATE value to the array.' ## #return ## ## def Add(self, Value): ## u'Adds new variant value to the array.' ## #return ## ## def IsValueNull(self, index): ## u'Checks if an array value at a given index is NULL.' ## #return Value ## ## def CreateMemberArray(self): ## u'Creates and adds new member to the member collection. Returns E_FAIL if creation of the member fails.' ## #return Value ## ## def RemoveValue(self, index): ## u'Remove a value from the member collection.' ## #return ## ## def ToJSONString(self, props): ## u"Converts IJSONArray to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL. " ## #return outStr ## ## def ClearAll(self): ## u'Removes all values.' ## #return ## ## def TryGetValueAsDate(self, index): ## u"Returns array value at a given index as DATE. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddBoolean(self, Value): ## u'Adds new boolean value to the array.' ## #return ## ## def TryGetValueAsLong(self, index): ## u"Returns array value at a given index as long. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def ParseJSON(self, pReader): ## u'Parses JSON array from IJSONReader into memory. Useful if you want to have random acces to just a part of a JSON.' ## #return ## ## @property ## def Count(self): ## u'Returns an array size.' ## #return Count ## ## def ParseString(self, json): ## u'Parses JSON array from string into memory.' ## #return ## ## def AddJSONObject(self, Value): ## u'Adds new nested object to the array.' ## #return ## ## def TryGetValueAsString(self, index): ## u"Returns array value at a given index as string. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## @property ## def Value(self, index): ## u'Returns an array value at a given index. Returns E_INVALIDARG if index is out of bounds.' ## #return Value ## ## def AddDouble(self, Value): ## u'Adds new double value to the array.' ## #return ## ## def TryGetValueAsDouble(self, index): ## u"Returns array value at a given index as double. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddNull(self): ## u'Adds new null value to the array.' ## #return ## ## def TryGetValueAsObject(self, index): ## u"Returns array value at a given index as IJSONObject. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddString(self, Value): ## u'Adds new string value to the array.' ## #return ## ## def AddJSONArray(self, Value): ## u'Adds new nested array to the array.' ## #return ## ## def AddLong(self, Value): ## u'Adds new long value to the array.' ## #return ## ## def CreateMemberObject(self): ## u'Creates and adds new member to the member collection. Returns E_FAIL if creation of the member fails.' ## #return Value ## ## def ToJSON(self, objectName, pWriter): ## u'Converts IJSONArray to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods.' ## #return ## class ISystemBridge(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods usable in all supported languages.' _iid_ = GUID('{848E0E84-E280-4883-BA8C-320864C3D42E}') _idlflags_ = ['oleautomation'] ISystemBridge._methods_ = [ COMMETHOD([helpstring(u'Classifies histogram data (array of values (doubles) and a paired array of frequencies (longs)) into the specified number of classes.')], HRESULT, 'Classify', ( [], POINTER(IClassifyGEN), 'pClassify' ), ( ['in'], POINTER(_midlSAFEARRAY(c_double)), 'doubleArrayValues' ), ( ['in'], POINTER(_midlSAFEARRAY(c_int)), 'longArrayFrequencies' ), ( ['in', 'out'], POINTER(c_int), 'numClasses' )), ] ################################################################ ## code template for ISystemBridge implementation ##class ISystemBridge_Impl(object): ## def Classify(self, pClassify, doubleArrayValues, longArrayFrequencies): ## u'Classifies histogram data (array of values (doubles) and a paired array of frequencies (longs)) into the specified number of classes.' ## #return numClasses ## class IServerEnvironment(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to Server configuration information.' _iid_ = GUID('{32D4C328-E473-4615-922C-63C108F55E60}') _idlflags_ = ['oleautomation'] class IJobTracker(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that track and control execution of jobs.' _iid_ = GUID('{E95E6C90-0029-47E6-B0EA-5C6AA6642968}') _idlflags_ = ['oleautomation'] IServerEnvironment._methods_ = [ COMMETHOD(['propget', helpstring(u'Retrieves an ILog interface that can be used to add logging messages.')], HRESULT, 'Log', ( ['retval', 'out'], POINTER(POINTER(ILog)), 'ppLog' )), COMMETHOD(['propget', helpstring(u'Retrieves an IProperySet interface that provides access to the server configuration information.')], HRESULT, 'Properties', ( ['retval', 'out'], POINTER(POINTER(IPropertySet)), 'ppProps' )), COMMETHOD(['propget', helpstring(u'Retrieves IJobTracker interface that provides access to members that track and control execution of jobs.')], HRESULT, 'JobTracker', ( ['retval', 'out'], POINTER(POINTER(IJobTracker)), 'ppJT' )), COMMETHOD(['propget', helpstring(u'Retrieves job directory for given job.')], HRESULT, 'JobDirectory', ( ['in'], BSTR, 'JobID' ), ( ['retval', 'out'], POINTER(BSTR), 'pDirPath' )), COMMETHOD(['propget', helpstring(u'Retrieves current job ID.')], HRESULT, 'CurrentJobID', ( ['retval', 'out'], POINTER(BSTR), 'pJobID' )), ] ################################################################ ## code template for IServerEnvironment implementation ##class IServerEnvironment_Impl(object): ## @property ## def JobDirectory(self, JobID): ## u'Retrieves job directory for given job.' ## #return pDirPath ## ## @property ## def CurrentJobID(self): ## u'Retrieves current job ID.' ## #return pJobID ## ## @property ## def Log(self): ## u'Retrieves an ILog interface that can be used to add logging messages.' ## #return ppLog ## ## @property ## def JobTracker(self): ## u'Retrieves IJobTracker interface that provides access to members that track and control execution of jobs.' ## #return ppJT ## ## @property ## def Properties(self): ## u'Retrieves an IProperySet interface that provides access to the server configuration information.' ## #return ppProps ## class SystemHelper(CoClass): u'SystemHelper object. Providing helper methods for System objects.' _reg_clsid_ = GUID('{BE49D696-3C46-4B81-960B-F67D1BBD238D}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) SystemHelper._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ISystemBridge] class ITestConnection(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to members that test connection for a preset configuration.' _iid_ = GUID('{6B61D022-CAE6-41A9-BD13-6DAC82CFFEFD}') _idlflags_ = ['oleautomation'] ITestConnection._methods_ = [ COMMETHOD([helpstring(u'Tests if the connection is successful with the current configuration.')], HRESULT, 'TestConnection', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'successful' )), ] ################################################################ ## code template for ITestConnection implementation ##class ITestConnection_Impl(object): ## def TestConnection(self): ## u'Tests if the connection is successful with the current configuration.' ## #return successful ## esriPointAttributes = _esriPointAttributes class IRectHolder(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to rectangle methods.' _iid_ = GUID('{1074568C-CC5F-48B4-9316-015CAD473359}') _idlflags_ = ['oleautomation'] IRectHolder._methods_ = [ COMMETHOD([helpstring(u'Write a rectangle.')], HRESULT, 'Rect', ( ['in'], POINTER(tagRECT), 'pRect' )), ] ################################################################ ## code template for IRectHolder implementation ##class IRectHolder_Impl(object): ## def Rect(self, pRect): ## u'Write a rectangle.' ## #return ## IJobTracker._methods_ = [ COMMETHOD(['propget', helpstring(u'Indicates whether job execution can be continued.')], HRESULT, 'CanContinue', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), COMMETHOD(['propput', helpstring(u'Must be called by job processor after it stopped job execution.')], HRESULT, 'IsStopped', ( ['in'], VARIANT_BOOL, 'rhs' )), COMMETHOD(['propput', helpstring(u'Notifies client about the job execution progress.')], HRESULT, 'Message', ( ['in'], esriJobMessageType, 'type' ), ( ['in'], BSTR, 'rhs' )), ] ################################################################ ## code template for IJobTracker implementation ##class IJobTracker_Impl(object): ## def _set(self, type, rhs): ## u'Notifies client about the job execution progress.' ## Message = property(fset = _set, doc = _set.__doc__) ## ## @property ## def CanContinue(self): ## u'Indicates whether job execution can be continued.' ## #return pVal ## ## def _set(self, rhs): ## u'Must be called by job processor after it stopped job execution.' ## IsStopped = property(fset = _set, doc = _set.__doc__) ## INumberFormat._methods_ = [ COMMETHOD([helpstring(u'Converts a numeric value to a formatted string.')], HRESULT, 'ValueToString', ( ['in'], c_double, 'Value' ), ( ['retval', 'out'], POINTER(BSTR), 'str' )), COMMETHOD([helpstring(u'Converts a formatted string to a numeric value.')], HRESULT, 'StringToValue', ( ['in'], BSTR, 'str' ), ( ['retval', 'out'], POINTER(c_double), 'Value' )), ] ################################################################ ## code template for INumberFormat implementation ##class INumberFormat_Impl(object): ## def StringToValue(self, str): ## u'Converts a formatted string to a numeric value.' ## #return Value ## ## def ValueToString(self, Value): ## u'Converts a numeric value to a formatted string.' ## #return str ## # values for enumeration 'esriLockMgrType' esriLockMgrNone = 0 esriLockMgrRead = 1 esriLockMgrWrite = 2 esriLockMgrEdit = 3 esriLockMgrSchemaRead = 4 esriLockMgrSchemaWrite = 5 esriLockMgrType = c_int # enum IShortcutName._methods_ = [ COMMETHOD(['propget', helpstring(u'The value of the TargetName property.')], HRESULT, 'TargetName', ( ['retval', 'out'], POINTER(POINTER(IName)), 'ppTargetName' )), COMMETHOD(['propputref', helpstring(u'The value of the TargetName property.')], HRESULT, 'TargetName', ( ['in'], POINTER(IName), 'ppTargetName' )), ] ################################################################ ## code template for IShortcutName implementation ##class IShortcutName_Impl(object): ## def TargetName(self, ppTargetName): ## u'The value of the TargetName property.' ## #return ## IAngularConverter2._methods_ = [ COMMETHOD(['propput', helpstring(u'Allow an angle to be converted from one direction unit to another.')], HRESULT, 'NegativeAngles', ( ['in'], VARIANT_BOOL, 'negAngles' )), COMMETHOD(['propget', helpstring(u'Allow an angle to be converted from one direction unit to another.')], HRESULT, 'NegativeAngles', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'negAngles' )), ] ################################################################ ## code template for IAngularConverter2 implementation ##class IAngularConverter2_Impl(object): ## def _get(self): ## u'Allow an angle to be converted from one direction unit to another.' ## #return negAngles ## def _set(self, negAngles): ## u'Allow an angle to be converted from one direction unit to another.' ## NegativeAngles = property(_get, _set, doc = _set.__doc__) ## class IServerUserInfo(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to the current user information.' _iid_ = GUID('{DCEE6BD6-395A-49AB-AE32-0559125C1DAF}') _idlflags_ = ['oleautomation'] IServerUserInfo._methods_ = [ COMMETHOD(['propget', helpstring(u'Obtains user name.')], HRESULT, 'Name', ( ['retval', 'out'], POINTER(BSTR), 'pVal' )), COMMETHOD(['propget', helpstring(u'Obtains user roles.')], HRESULT, 'Roles', ( ['retval', 'out'], POINTER(POINTER(IEnumBSTR)), 'ppEnum' )), ] ################################################################ ## code template for IServerUserInfo implementation ##class IServerUserInfo_Impl(object): ## @property ## def Name(self): ## u'Obtains user name.' ## #return pVal ## ## @property ## def Roles(self): ## u'Obtains user roles.' ## #return ppEnum ## IFrequencyStatistics._methods_ = [ COMMETHOD(['propget', helpstring(u'The frequency interval count.')], HRESULT, 'FrequencyIntervalCount', ( ['retval', 'out'], POINTER(c_int), 'numIntervals' )), COMMETHOD(['propput', helpstring(u'The frequency interval count.')], HRESULT, 'FrequencyIntervalCount', ( ['in'], c_int, 'numIntervals' )), COMMETHOD([helpstring(u'Computes a suitable frequency interval count for the number of values.')], HRESULT, 'ComputeAutoFrequencyIntervals'), COMMETHOD(['propget', helpstring(u'The size (range) of each frequency interval.')], HRESULT, 'FrequencyIntervalSize', ( ['retval', 'out'], POINTER(c_double), 'intervalSize' )), COMMETHOD(['propget', helpstring(u'The frequency class count at a given interval index.')], HRESULT, 'FrequencyClassCount', ( ['in'], c_int, 'intervalIndex' ), ( ['retval', 'out'], POINTER(c_int), 'Count' )), ] ################################################################ ## code template for IFrequencyStatistics implementation ##class IFrequencyStatistics_Impl(object): ## def _get(self): ## u'The frequency interval count.' ## #return numIntervals ## def _set(self, numIntervals): ## u'The frequency interval count.' ## FrequencyIntervalCount = property(_get, _set, doc = _set.__doc__) ## ## def ComputeAutoFrequencyIntervals(self): ## u'Computes a suitable frequency interval count for the number of values.' ## #return ## ## @property ## def FrequencyClassCount(self, intervalIndex): ## u'The frequency class count at a given interval index.' ## #return Count ## ## @property ## def FrequencyIntervalSize(self): ## u'The size (range) of each frequency interval.' ## #return intervalSize ## IArcGISLocale._methods_ = [ COMMETHOD(['propget', helpstring(u'The value of the language ID from the locale.')], HRESULT, 'LangID', ( ['retval', 'out'], POINTER(c_int), 'LangID' )), COMMETHOD(['propget', helpstring(u'The value of the country ID from the locale.')], HRESULT, 'CountryID', ( ['retval', 'out'], POINTER(c_int), 'CountryID' )), COMMETHOD(['propget', helpstring(u'The value of the locale.')], HRESULT, 'Locale', ( ['retval', 'out'], POINTER(c_int), 'Locale' )), COMMETHOD(['propget', helpstring(u'The value of the language ID from the UI locale.')], HRESULT, 'UILangID', ( ['retval', 'out'], POINTER(c_int), 'LangID' )), COMMETHOD(['propget', helpstring(u'The value of the country ID from the UI locale.')], HRESULT, 'UICountryID', ( ['retval', 'out'], POINTER(c_int), 'CountryID' )), COMMETHOD(['propget', helpstring(u'The value of the UI locale.')], HRESULT, 'UILocale', ( ['retval', 'out'], POINTER(c_int), 'Locale' )), COMMETHOD(['propget', helpstring(u'Indicates if the UI locale is right to left.')], HRESULT, 'RightToLeft', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsRightToLeft' )), COMMETHOD(['propget', helpstring(u'Indicates if the UI locale is right to left user interface.')], HRESULT, 'RightToLeftUI', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsRightToLeftUI' )), COMMETHOD(['propget', helpstring(u'Indicates if the UI locale is right to left table.')], HRESULT, 'RightToLeftTable', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsRightToLeftTable' )), COMMETHOD([helpstring(u'Write the ArcGIS locale for the process.')], HRESULT, 'SetLocale'), COMMETHOD([helpstring(u'Write the ArcGIS locale for the thread.')], HRESULT, 'SetThreadLocale'), COMMETHOD([helpstring(u'Write the ArcGIS UI locale for the thread.')], HRESULT, 'SetThreadUILocale'), ] ################################################################ ## code template for IArcGISLocale implementation ##class IArcGISLocale_Impl(object): ## def SetThreadLocale(self): ## u'Write the ArcGIS locale for the thread.' ## #return ## ## @property ## def CountryID(self): ## u'The value of the country ID from the locale.' ## #return CountryID ## ## def SetLocale(self): ## u'Write the ArcGIS locale for the process.' ## #return ## ## @property ## def Locale(self): ## u'The value of the locale.' ## #return Locale ## ## @property ## def UILangID(self): ## u'The value of the language ID from the UI locale.' ## #return LangID ## ## @property ## def LangID(self): ## u'The value of the language ID from the locale.' ## #return LangID ## ## @property ## def RightToLeft(self): ## u'Indicates if the UI locale is right to left.' ## #return IsRightToLeft ## ## @property ## def RightToLeftUI(self): ## u'Indicates if the UI locale is right to left user interface.' ## #return IsRightToLeftUI ## ## @property ## def RightToLeftTable(self): ## u'Indicates if the UI locale is right to left table.' ## #return IsRightToLeftTable ## ## @property ## def UILocale(self): ## u'The value of the UI locale.' ## #return Locale ## ## @property ## def UICountryID(self): ## u'The value of the country ID from the UI locale.' ## #return CountryID ## ## def SetThreadUILocale(self): ## u'Write the ArcGIS UI locale for the thread.' ## #return ## # values for enumeration 'esriScaleFormat' esriAbsoluteScale = 0 esriImperialScale = 1 esriCustomScale = 2 esriScaleFormat = c_int # enum IScaleFormat._methods_ = [ COMMETHOD(['propput', helpstring(u'Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles.')], HRESULT, 'Format', ( ['in'], esriScaleFormat, 'Format' )), COMMETHOD(['propget', helpstring(u'Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles.')], HRESULT, 'Format', ( ['retval', 'out'], POINTER(esriScaleFormat), 'Format' )), COMMETHOD(['propput', helpstring(u'Format used to display scale value, i.e., 20,000.')], HRESULT, 'NumberFormat', ( ['in'], POINTER(INumberFormat), 'Format' )), COMMETHOD(['propget', helpstring(u'Format used to display scale value, i.e., 20,000.')], HRESULT, 'NumberFormat', ( ['retval', 'out'], POINTER(POINTER(INumberFormat)), 'Format' )), COMMETHOD(['propput', helpstring(u"Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000.")], HRESULT, 'Separator', ( ['in'], BSTR, 'Separator' )), COMMETHOD(['propget', helpstring(u"Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000.")], HRESULT, 'Separator', ( ['retval', 'out'], POINTER(BSTR), 'Separator' )), COMMETHOD(['propput', helpstring(u"The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles.")], HRESULT, 'PageUnitValue', ( ['in'], c_double, 'Value' )), COMMETHOD(['propget', helpstring(u"The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles.")], HRESULT, 'PageUnitValue', ( ['retval', 'out'], POINTER(c_double), 'Value' )), COMMETHOD(['propput', helpstring(u"The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles.")], HRESULT, 'PageUnits', ( ['in'], esriUnits, 'units' )), COMMETHOD(['propget', helpstring(u"The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles.")], HRESULT, 'PageUnits', ( ['retval', 'out'], POINTER(esriUnits), 'units' )), COMMETHOD(['propput', helpstring(u"The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles.")], HRESULT, 'Equals', ( ['in'], BSTR, 'Text' )), COMMETHOD(['propget', helpstring(u"The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles.")], HRESULT, 'Equals', ( ['retval', 'out'], POINTER(BSTR), 'Text' )), COMMETHOD(['propput', helpstring(u"The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles.")], HRESULT, 'MapUnits', ( ['in'], esriUnits, 'units' )), COMMETHOD(['propget', helpstring(u"The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles.")], HRESULT, 'MapUnits', ( ['retval', 'out'], POINTER(esriUnits), 'units' )), COMMETHOD(['propput', helpstring(u'Capitolize the units in the scale string.')], HRESULT, 'CapitolizeUnits', ( ['in'], VARIANT_BOOL, 'flag' )), COMMETHOD(['propget', helpstring(u'Capitolize the units in the scale string.')], HRESULT, 'CapitolizeUnits', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'flag' )), COMMETHOD(['propput', helpstring(u'Abbreviate the units in the scale string.')], HRESULT, 'AbbreviateUnits', ( ['in'], VARIANT_BOOL, 'flag' )), COMMETHOD(['propget', helpstring(u'Abbreviate the units in the scale string.')], HRESULT, 'AbbreviateUnits', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'flag' )), COMMETHOD(['propput', helpstring(u'Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in].')], HRESULT, 'ReverseOrder', ( ['in'], VARIANT_BOOL, 'flag' )), COMMETHOD(['propget', helpstring(u'Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in].')], HRESULT, 'ReverseOrder', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'flag' )), COMMETHOD(['propput', helpstring(u"A string defining the scale format. Embed XML tokens where scale values should go, i.e., <SCA a=''Attribute''>. Possible attributes: Scale, Separator, PageUnitValue, PageUnits, EqualsText, MapUnits.")], HRESULT, 'CustomFormat', ( ['in'], BSTR, 'Format' )), COMMETHOD(['propget', helpstring(u"A string defining the scale format. Embed XML tokens where scale values should go, i.e., <SCA a=''Attribute''>. Possible attributes: Scale, Separator, PageUnitValue, PageUnits, EqualsText, MapUnits.")], HRESULT, 'CustomFormat', ( ['retval', 'out'], POINTER(BSTR), 'Format' )), COMMETHOD([helpstring(u'Calculate the number of map units corresponding to the specified page units at the given absolute scale.')], HRESULT, 'CalcMapUnitValue', ( ['in'], c_double, 'absoluteScale' ), ( ['retval', 'out'], POINTER(c_double), 'mapUnitValue' )), COMMETHOD([helpstring(u'Convert the absolute scale to a string using the current IScaleFormat attributes.')], HRESULT, 'ScaleToString', ( ['in'], c_double, 'Scale' ), ( ['retval', 'out'], POINTER(BSTR), 'scaleStr' )), COMMETHOD([helpstring(u'Convert the string to an absolute scale using the current IScaleFormat attributes.')], HRESULT, 'StringToScale', ( ['in'], BSTR, 'scaleStr' ), ( ['retval', 'out'], POINTER(c_double), 'Scale' )), COMMETHOD([helpstring(u'Store the scale format as the system default.')], HRESULT, 'SaveToRegistry'), COMMETHOD([helpstring(u'Obtain the scale format to the system default.')], HRESULT, 'LoadFromRegistry'), ] ################################################################ ## code template for IScaleFormat implementation ##class IScaleFormat_Impl(object): ## def _get(self): ## u"A string defining the scale format. Embed XML tokens where scale values should go, i.e., <SCA a=''Attribute''>. Possible attributes: Scale, Separator, PageUnitValue, PageUnits, EqualsText, MapUnits." ## #return Format ## def _set(self, Format): ## u"A string defining the scale format. Embed XML tokens where scale values should go, i.e., <SCA a=''Attribute''>. Possible attributes: Scale, Separator, PageUnitValue, PageUnits, EqualsText, MapUnits." ## CustomFormat = property(_get, _set, doc = _set.__doc__) ## ## def StringToScale(self, scaleStr): ## u'Convert the string to an absolute scale using the current IScaleFormat attributes.' ## #return Scale ## ## def ScaleToString(self, Scale): ## u'Convert the absolute scale to a string using the current IScaleFormat attributes.' ## #return scaleStr ## ## def SaveToRegistry(self): ## u'Store the scale format as the system default.' ## #return ## ## def _get(self): ## u'Format used to display scale value, i.e., 20,000.' ## #return Format ## def _set(self, Format): ## u'Format used to display scale value, i.e., 20,000.' ## NumberFormat = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles.' ## #return Format ## def _set(self, Format): ## u'Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles.' ## Format = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles." ## #return units ## def _set(self, units): ## u"The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles." ## MapUnits = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles." ## #return Text ## def _set(self, Text): ## u"The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles." ## Equals = property(_get, _set, doc = _set.__doc__) ## ## def CalcMapUnitValue(self, absoluteScale): ## u'Calculate the number of map units corresponding to the specified page units at the given absolute scale.' ## #return mapUnitValue ## ## def LoadFromRegistry(self): ## u'Obtain the scale format to the system default.' ## #return ## ## def _get(self): ## u'Capitolize the units in the scale string.' ## #return flag ## def _set(self, flag): ## u'Capitolize the units in the scale string.' ## CapitolizeUnits = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Abbreviate the units in the scale string.' ## #return flag ## def _set(self, flag): ## u'Abbreviate the units in the scale string.' ## AbbreviateUnits = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000." ## #return Separator ## def _set(self, Separator): ## u"Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000." ## Separator = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in].' ## #return flag ## def _set(self, flag): ## u'Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in].' ## ReverseOrder = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles." ## #return Value ## def _set(self, Value): ## u"The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles." ## PageUnitValue = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles." ## #return units ## def _set(self, units): ## u"The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles." ## PageUnits = property(_get, _set, doc = _set.__doc__) ## IFileName._methods_ = [ COMMETHOD(['propput', helpstring(u'Pathname to the file.')], HRESULT, 'Path', ( ['in'], BSTR, 'Path' )), COMMETHOD(['propget', helpstring(u'Pathname to the file.')], HRESULT, 'Path', ( ['retval', 'out'], POINTER(BSTR), 'Path' )), ] ################################################################ ## code template for IFileName implementation ##class IFileName_Impl(object): ## def _get(self): ## u'Pathname to the file.' ## #return Path ## def _set(self, Path): ## u'Pathname to the file.' ## Path = property(_get, _set, doc = _set.__doc__) ## # values for enumeration 'esriTransportType' esriTransportTypeEmbedded = 1 esriTransportTypeUrl = 2 esriTransportType = c_int # enum class IServerEnvironment2(IServerEnvironment): _case_insensitive_ = True u'Provides access to Server configuration information.' _iid_ = GUID('{8037EE78-6197-4B8E-8F8B-52C744E42A31}') _idlflags_ = ['oleautomation'] class IServerEnvironment3(IServerEnvironment2): _case_insensitive_ = True u'Provides access to Server configuration information.' _iid_ = GUID('{9940E0CD-D279-468A-B0EA-C546DA5C3D0C}') _idlflags_ = ['oleautomation'] IServerEnvironment2._methods_ = [ COMMETHOD(['propget', helpstring(u'Retrieves information about current user.')], HRESULT, 'UserInfo', ( ['retval', 'out'], POINTER(POINTER(IServerUserInfo)), 'ppInfo' )), ] ################################################################ ## code template for IServerEnvironment2 implementation ##class IServerEnvironment2_Impl(object): ## @property ## def UserInfo(self): ## u'Retrieves information about current user.' ## #return ppInfo ## IServerEnvironment3._methods_ = [ COMMETHOD(['propget', helpstring(u'Indicates if server configuration is running as engine.')], HRESULT, 'IsRunningAsEngine', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'pVal' )), ] ################################################################ ## code template for IServerEnvironment3 implementation ##class IServerEnvironment3_Impl(object): ## @property ## def IsRunningAsEngine(self): ## u'Indicates if server configuration is running as engine.' ## #return pVal ## # values for enumeration 'esriFilePermission' esriReadOnly = 1 esriReadWrite = 2 esriFilePermission = c_int # enum IFile._methods_ = [ COMMETHOD([helpstring(u'Opens the specified file.')], HRESULT, 'Open', ( ['in'], BSTR, 'FileName' ), ( ['in'], esriFilePermission, 'permission' )), ] ################################################################ ## code template for IFile implementation ##class IFile_Impl(object): ## def Open(self, FileName, permission): ## u'Opens the specified file.' ## #return ## class AngleFormat(CoClass): u'An object for formatting numbers in an angle format.' _reg_clsid_ = GUID('{7E4F471E-8E54-11D2-AAD8-000000000000}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) AngleFormat._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, INumberFormat, INumericFormat, INumberFormatOperations, IAngleFormat, IClone, IPersist, IPersistStream, IDocumentVersionSupportGEN] IObjectCopy._methods_ = [ COMMETHOD([helpstring(u'Obtains a new object which is a copy of the input object.')], HRESULT, 'Copy', ( ['in'], POINTER(IUnknown), 'pInObject' ), ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'pResult' )), COMMETHOD([helpstring(u'Overwrites the object with the contents of input object.')], HRESULT, 'Overwrite', ( ['in'], POINTER(IUnknown), 'pInObject' ), ( ['in', 'out'], POINTER(POINTER(IUnknown)), 'pOverwriteObject' )), ] ################################################################ ## code template for IObjectCopy implementation ##class IObjectCopy_Impl(object): ## def Copy(self, pInObject): ## u'Obtains a new object which is a copy of the input object.' ## #return pResult ## ## def Overwrite(self, pInObject): ## u'Overwrites the object with the contents of input object.' ## #return pOverwriteObject ## IName._methods_ = [ COMMETHOD(['propput', helpstring(u'The name string of the object.')], HRESULT, 'NameString', ( ['in'], BSTR, 'NameString' )), COMMETHOD(['propget', helpstring(u'The name string of the object.')], HRESULT, 'NameString', ( ['retval', 'out'], POINTER(BSTR), 'NameString' )), COMMETHOD([helpstring(u'Opens the object referred to by this name.')], HRESULT, 'Open', ( ['retval', 'out'], POINTER(POINTER(IUnknown)), 'unknown' )), ] ################################################################ ## code template for IName implementation ##class IName_Impl(object): ## def _get(self): ## u'The name string of the object.' ## #return NameString ## def _set(self, NameString): ## u'The name string of the object.' ## NameString = property(_get, _set, doc = _set.__doc__) ## ## def Open(self): ## u'Opens the object referred to by this name.' ## #return unknown ## IInputDeviceManager._methods_ = [ COMMETHOD([helpstring(u'Creates and starts the devices for Inut Device component category, passing initializationData to each in IInputDevice::Startup.')], HRESULT, 'StartupDevices', ( ['in'], POINTER(VARIANT), 'initializationData' )), COMMETHOD([helpstring(u'Shuts down and releases the extensions that are loaded and calls IExtension::Shutdown.')], HRESULT, 'ShutdownDevices'), COMMETHOD([helpstring(u'Creates a single device given the CLSID, then passes initializationData to IInputDevice::Startup.')], HRESULT, 'AddDevice', ( ['in'], POINTER(IUID), 'pDeviceCLSID' ), ( ['in'], POINTER(VARIANT), 'initializationData' )), COMMETHOD(['propget', helpstring(u'The number of input devices loaded in the application.')], HRESULT, 'DeviceCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The input device at the specified index.')], HRESULT, 'Device', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IExtension)), 'Extension' )), COMMETHOD(['propget', helpstring(u'The CLSID of the input device at the specified index.')], HRESULT, 'DeviceCLSID', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(POINTER(IUID)), 'ClassID' )), COMMETHOD([helpstring(u'Finds the input device by CLSID (IUID) or name (String).')], HRESULT, 'FindDevice', ( ['in'], VARIANT, 'nameOrID' ), ( ['retval', 'out'], POINTER(POINTER(IExtension)), 'Extension' )), ] ################################################################ ## code template for IInputDeviceManager implementation ##class IInputDeviceManager_Impl(object): ## def ShutdownDevices(self): ## u'Shuts down and releases the extensions that are loaded and calls IExtension::Shutdown.' ## #return ## ## def StartupDevices(self, initializationData): ## u'Creates and starts the devices for Inut Device component category, passing initializationData to each in IInputDevice::Startup.' ## #return ## ## def AddDevice(self, pDeviceCLSID, initializationData): ## u'Creates a single device given the CLSID, then passes initializationData to IInputDevice::Startup.' ## #return ## ## @property ## def DeviceCount(self): ## u'The number of input devices loaded in the application.' ## #return Count ## ## def FindDevice(self, nameOrID): ## u'Finds the input device by CLSID (IUID) or name (String).' ## #return Extension ## ## @property ## def Device(self, index): ## u'The input device at the specified index.' ## #return Extension ## ## @property ## def DeviceCLSID(self, index): ## u'The CLSID of the input device at the specified index.' ## #return ClassID ## # values for enumeration 'esriSystemMessageCodeEnum' esriSystemMessageCode_XMLTypeMappingFailed = 100100 esriSystemMessageCode_HTTPConnectionFailed = 100101 esriSystemMessageCode_CertFailed = 100102 esriSystemMessageCode_AuthFailed = 100103 esriSystemMessageCodeEnum = c_int # enum # values for enumeration 'esriServerMessageCodeEnum' esriSystemMessageCode_Debug = 100000 esriSystemMessageCode_StringRequestReceived = 100001 esriSystemMessageCode_StringResponseSent = 100002 esriSystemMessageCode_BinaryRequestReceived = 100003 esriSystemMessageCode_BinaryResponseSent = 100004 esriSystemMessageCode_RequestFailed = 100005 esriSystemMessageCode_ErrorLoadFromString = 100006 esriSystemMessageCode_ErrorReadXml = 100007 esriSystemMessageCode_ErrorWriteXml = 100008 esriSystemMessageCode_ErrorSaveToString = 100009 esriSystemMessageCode_ErrorImportFromMem = 100010 esriSystemMessageCode_ErrorLoadBinaryStream = 100011 esriSystemMessageCode_SetResponseStreamVersion = 100012 esriSystemMessageCode_ErrorWriteBinaryResponse = 100013 esriServerMessageCodeEnum = c_int # enum # values for enumeration 'esriLicenseStatus' esriLicenseAvailable = 10 esriLicenseNotLicensed = 20 esriLicenseUnavailable = 30 esriLicenseFailure = 40 esriLicenseAlreadyInitialized = 50 esriLicenseNotInitialized = 60 esriLicenseCheckedOut = 70 esriLicenseCheckedIn = 80 esriLicenseUntrusted = 90 esriLicenseStatus = c_int # enum class TimeDuration(CoClass): u'An object that represents a time duration value.' _reg_clsid_ = GUID('{09692C1C-21FA-4FE2-8EFA-6C4ACB59A323}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) TimeDuration._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, ITimeDuration, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN] IXMLNamespaces._methods_ = [ COMMETHOD([helpstring(u'Adds a namespace to the element.')], HRESULT, 'AddNamespace', ( ['in'], BSTR, 'Prefix' ), ( ['in'], BSTR, 'uri' )), COMMETHOD([helpstring(u'Deletes a namespace from the element.')], HRESULT, 'DeleteNamespace', ( ['in'], BSTR, 'uri' )), COMMETHOD(['propget', helpstring(u'Number of namespaces.')], HRESULT, 'NamespaceCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD(['propget', helpstring(u'The namespace prefix for a namespace.')], HRESULT, 'Prefix', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'Prefix' )), COMMETHOD(['propget', helpstring(u'The namespace URI for a namespace.')], HRESULT, 'NamespaceURI', ( ['in'], c_int, 'index' ), ( ['retval', 'out'], POINTER(BSTR), 'uri' )), ] ################################################################ ## code template for IXMLNamespaces implementation ##class IXMLNamespaces_Impl(object): ## @property ## def NamespaceURI(self, index): ## u'The namespace URI for a namespace.' ## #return uri ## ## @property ## def Prefix(self, index): ## u'The namespace prefix for a namespace.' ## #return Prefix ## ## @property ## def NamespaceCount(self): ## u'Number of namespaces.' ## #return Count ## ## def DeleteNamespace(self, uri): ## u'Deletes a namespace from the element.' ## #return ## ## def AddNamespace(self, Prefix, uri): ## u'Adds a namespace to the element.' ## #return ## class JobMessages(CoClass): u'The JobMessages object which defines properties and behaviour of an array of job messages.' _reg_clsid_ = GUID('{F3A6825C-9780-4265-89A1-AE35F7A3BB56}') _idlflags_ = [] _typelib_path_ = typelib_path _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) JobMessages._com_interfaces_ = [comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown, IJobMessages, IXMLSerialize, IPersistStream] ITimeZoneRule._methods_ = [ COMMETHOD(['propget', helpstring(u'The year this rule is in effect.')], HRESULT, 'Year', ( ['retval', 'out'], POINTER(c_int), 'Year' )), COMMETHOD(['propput', helpstring(u'The year this rule is in effect.')], HRESULT, 'Year', ( ['in'], c_int, 'Year' )), COMMETHOD(['propget', helpstring(u'The time zone bias from UTC in minutes. LocalTime = UtcTime + BiasFromUTC.')], HRESULT, 'BiasFromUTC', ( ['retval', 'out'], POINTER(c_int), 'BiasFromUTC' )), COMMETHOD(['propput', helpstring(u'The time zone bias from UTC in minutes. LocalTime = UtcTime + BiasFromUTC.')], HRESULT, 'BiasFromUTC', ( ['in'], c_int, 'BiasFromUTC' )), COMMETHOD(['propget', helpstring(u'Date for transition to daylight time.')], HRESULT, 'DaylightTimeTransitionTime', ( ['retval', 'out'], POINTER(TimeZoneTransitionTime), 'DaylightTimeTransitionTime' )), COMMETHOD(['propput', helpstring(u'Date for transition to daylight time.')], HRESULT, 'DaylightTimeTransitionTime', ( ['in'], POINTER(TimeZoneTransitionTime), 'DaylightTimeTransitionTime' )), COMMETHOD(['propget', helpstring(u"The bias to be used during daylight time. This bias is relative to the time zone's BiasFromUTC.")], HRESULT, 'DaylightTimeBias', ( ['retval', 'out'], POINTER(c_int), 'DaylightTimeBias' )), COMMETHOD(['propput', helpstring(u"The bias to be used during daylight time. This bias is relative to the time zone's BiasFromUTC.")], HRESULT, 'DaylightTimeBias', ( ['in'], c_int, 'DaylightTimeBias' )), COMMETHOD(['propget', helpstring(u'Date for transition to standard time.')], HRESULT, 'StandardTimeTransitionTime', ( ['retval', 'out'], POINTER(TimeZoneTransitionTime), 'StandardTimeTransitionTime' )), COMMETHOD(['propput', helpstring(u'Date for transition to standard time.')], HRESULT, 'StandardTimeTransitionTime', ( ['in'], POINTER(TimeZoneTransitionTime), 'StandardTimeTransitionTime' )), COMMETHOD(['propget', helpstring(u"The bias to be used during Standard time. This bias is relative to the time zone's BiasFromUTC.")], HRESULT, 'StandardTimeBias', ( ['retval', 'out'], POINTER(c_int), 'StandardTimeBias' )), COMMETHOD(['propput', helpstring(u"The bias to be used during Standard time. This bias is relative to the time zone's BiasFromUTC.")], HRESULT, 'StandardTimeBias', ( ['in'], c_int, 'StandardTimeBias' )), ] ################################################################ ## code template for ITimeZoneRule implementation ##class ITimeZoneRule_Impl(object): ## def _get(self): ## u"The bias to be used during Standard time. This bias is relative to the time zone's BiasFromUTC." ## #return StandardTimeBias ## def _set(self, StandardTimeBias): ## u"The bias to be used during Standard time. This bias is relative to the time zone's BiasFromUTC." ## StandardTimeBias = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The time zone bias from UTC in minutes. LocalTime = UtcTime + BiasFromUTC.' ## #return BiasFromUTC ## def _set(self, BiasFromUTC): ## u'The time zone bias from UTC in minutes. LocalTime = UtcTime + BiasFromUTC.' ## BiasFromUTC = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Date for transition to standard time.' ## #return StandardTimeTransitionTime ## def _set(self, StandardTimeTransitionTime): ## u'Date for transition to standard time.' ## StandardTimeTransitionTime = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Date for transition to daylight time.' ## #return DaylightTimeTransitionTime ## def _set(self, DaylightTimeTransitionTime): ## u'Date for transition to daylight time.' ## DaylightTimeTransitionTime = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'The year this rule is in effect.' ## #return Year ## def _set(self, Year): ## u'The year this rule is in effect.' ## Year = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u"The bias to be used during daylight time. This bias is relative to the time zone's BiasFromUTC." ## #return DaylightTimeBias ## def _set(self, DaylightTimeBias): ## u"The bias to be used during daylight time. This bias is relative to the time zone's BiasFromUTC." ## DaylightTimeBias = property(_get, _set, doc = _set.__doc__) ## class IWebRequestHandler(comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.IUnknown): _case_insensitive_ = True u'Provides access to methods that control handing of web requests.' _iid_ = GUID('{D1DA21F3-9EC1-40BC-B8A2-CD29A1EBED8D}') _idlflags_ = ['oleautomation'] IWebRequestHandler._methods_ = [ COMMETHOD([helpstring(u'Handles a request with explicit capabilities.')], HRESULT, 'HandleStringWebRequest', ( ['in'], esriHttpMethod, 'httpMethod' ), ( ['in'], BSTR, 'requestURL' ), ( ['in'], BSTR, 'queryString' ), ( ['in'], BSTR, 'Capabilities' ), ( ['in'], BSTR, 'requestData' ), ( ['out'], POINTER(BSTR), 'responseContentType' ), ( ['out'], POINTER(esriWebResponseDataType), 'respDataType' ), ( ['retval', 'out'], POINTER(_midlSAFEARRAY(c_ubyte)), 'responseData' )), ] ################################################################ ## code template for IWebRequestHandler implementation ##class IWebRequestHandler_Impl(object): ## def HandleStringWebRequest(self, httpMethod, requestURL, queryString, Capabilities, requestData): ## u'Handles a request with explicit capabilities.' ## #return responseContentType, respDataType, responseData ## IJSONObject._methods_ = [ COMMETHOD([helpstring(u'Parses JSON object from string into memory.')], HRESULT, 'ParseString', ( ['in'], BSTR, 'json' )), COMMETHOD([helpstring(u'Parses JSON object from IJSONReader into memory. Useful if you want to have random acces to just a part of a JSON.')], HRESULT, 'ParseJSON', ( ['in'], POINTER(IJSONReader), 'pReader' )), COMMETHOD(['propget', helpstring(u'Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods.')], HRESULT, 'CaseSensitiveNames', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'case_sensitive' )), COMMETHOD(['propput', helpstring(u'Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods.')], HRESULT, 'CaseSensitiveNames', ( ['in'], VARIANT_BOOL, 'case_sensitive' )), COMMETHOD([helpstring(u'Checks if a member with the given name exists.')], HRESULT, 'MemberExists', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'exists' )), COMMETHOD([helpstring(u"Returns VARIANT_TRUE if member is undefined or member's value is null. Returns VARIANT_FALSE if member exists and its value is not null.")], HRESULT, 'IsValueNull', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'IsNull' )), COMMETHOD(['propget', helpstring(u'Returns size of member collection.')], HRESULT, 'MemberCount', ( ['retval', 'out'], POINTER(c_int), 'Count' )), COMMETHOD([helpstring(u'Returns member name and value at a given index.')], HRESULT, 'GetMemberAt', ( ['in'], c_int, 'index' ), ( ['out'], POINTER(BSTR), 'Name' ), ( ['out'], POINTER(VARIANT), 'Value' )), COMMETHOD([helpstring(u"Returns member value for a given name. If member does not exist, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValue', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(VARIANT), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as DATE. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsDate', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(c_double), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as boolean. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsBoolean', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(VARIANT_BOOL), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as long. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsLong', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(c_int), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as double. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsDouble', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(c_double), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as string. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsString', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(BSTR), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as IJSONObject. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsObject', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(POINTER(IJSONObject)), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u"Returns member value for a given name as IJSONArray. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.")], HRESULT, 'TryGetValueAsArray', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(POINTER(IJSONArray)), 'Value' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'success' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddDate', ( ['in'], BSTR, 'Name' ), ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddBoolean', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddLong', ( ['in'], BSTR, 'Name' ), ( ['in'], c_int, 'Value' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddDouble', ( ['in'], BSTR, 'Name' ), ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddString', ( ['in'], BSTR, 'Name' ), ( ['in'], BSTR, 'Value' )), COMMETHOD([helpstring(u'Adds new member with the value of null to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddNull', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'Add', ( ['in'], BSTR, 'Name' ), ( ['in'], VARIANT, 'Value' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddJSONObject', ( ['in'], BSTR, 'Name' ), ( ['in'], POINTER(IJSONObject), 'Value' )), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddJSONArray', ( ['in'], BSTR, 'Name' ), ( ['in'], POINTER(IJSONArray), 'Value' )), COMMETHOD([helpstring(u'Creates and adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'CreateMemberObject', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(POINTER(IJSONObject)), 'Value' )), COMMETHOD([helpstring(u'Creates and adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.')], HRESULT, 'CreateMemberArray', ( ['in'], BSTR, 'Name' ), ( ['out'], POINTER(POINTER(IJSONArray)), 'Value' )), COMMETHOD([helpstring(u'Make a designated member NULL.')], HRESULT, 'MakeValueNull', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u"Converts IJSONObject to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL. ")], HRESULT, 'ToJSONString', ( ['in'], POINTER(IPropertySet), 'props' ), ( ['retval', 'out'], POINTER(BSTR), 'outStr' )), COMMETHOD([helpstring(u'Converts IJSONObject to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods.')], HRESULT, 'ToJSON', ( ['in'], BSTR, 'objectName' ), ( ['in'], POINTER(IJSONWriter), 'pWriter' )), COMMETHOD([helpstring(u'Remove a member from the member collection.')], HRESULT, 'RemoveMember', ( ['in'], BSTR, 'Name' )), COMMETHOD([helpstring(u'Removes all members.')], HRESULT, 'ClearAll'), COMMETHOD([helpstring(u'Adds new member name-value pair to the member collection. Stores precision for use in ToJSON and ToJSONString. Returns E_FAIL if duplicate member is found.')], HRESULT, 'AddDoubleEx', ( ['in'], BSTR, 'Name' ), ( ['in'], c_double, 'Value' ), ( ['in'], c_int, 'precision' )), ] ################################################################ ## code template for IJSONObject implementation ##class IJSONObject_Impl(object): ## def AddDoubleEx(self, Name, Value, precision): ## u'Adds new member name-value pair to the member collection. Stores precision for use in ToJSON and ToJSONString. Returns E_FAIL if duplicate member is found.' ## #return ## ## def TryGetValueAsArray(self, Name): ## u"Returns member value for a given name as IJSONArray. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def TryGetValueAsBoolean(self, Name): ## u"Returns member value for a given name as boolean. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddDate(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def _get(self): ## u'Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods.' ## #return case_sensitive ## def _set(self, case_sensitive): ## u'Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods.' ## CaseSensitiveNames = property(_get, _set, doc = _set.__doc__) ## ## def Add(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def IsValueNull(self, Name): ## u"Returns VARIANT_TRUE if member is undefined or member's value is null. Returns VARIANT_FALSE if member exists and its value is not null." ## #return IsNull ## ## def CreateMemberArray(self, Name): ## u'Creates and adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return Value ## ## def ToJSONString(self, props): ## u"Converts IJSONObject to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL. " ## #return outStr ## ## def ClearAll(self): ## u'Removes all members.' ## #return ## ## def TryGetValueAsDate(self, Name): ## u"Returns member value for a given name as DATE. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddBoolean(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def MemberExists(self, Name): ## u'Checks if a member with the given name exists.' ## #return exists ## ## def TryGetValue(self, Name): ## u"Returns member value for a given name. If member does not exist, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def ParseJSON(self, pReader): ## u'Parses JSON object from IJSONReader into memory. Useful if you want to have random acces to just a part of a JSON.' ## #return ## ## def MakeValueNull(self, Name): ## u'Make a designated member NULL.' ## #return ## ## def TryGetValueAsString(self, Name): ## u"Returns member value for a given name as string. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def RemoveMember(self, Name): ## u'Remove a member from the member collection.' ## #return ## ## def ParseString(self, json): ## u'Parses JSON object from string into memory.' ## #return ## ## def AddJSONObject(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## @property ## def MemberCount(self): ## u'Returns size of member collection.' ## #return Count ## ## def TryGetValueAsLong(self, Name): ## u"Returns member value for a given name as long. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def TryGetValueAsDouble(self, Name): ## u"Returns member value for a given name as double. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddNull(self, Name): ## u'Adds new member with the value of null to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def TryGetValueAsObject(self, Name): ## u"Returns member value for a given name as IJSONObject. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter." ## #return Value, success ## ## def AddString(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def AddJSONArray(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def AddLong(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def GetMemberAt(self, index): ## u'Returns member name and value at a given index.' ## #return Name, Value ## ## def AddDouble(self, Name, Value): ## u'Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return ## ## def CreateMemberObject(self, Name): ## u'Creates and adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.' ## #return Value ## ## def ToJSON(self, objectName, pWriter): ## u'Converts IJSONObject to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods.' ## #return ## # values for enumeration 'esriTimeRelation' esriTimeRelationOverlaps = 0 esriTimeRelationOverlapsStartWithinEnd = 1 esriTimeRelationAfterStartOverlapsEnd = 2 esriTimeRelation = c_int # enum _TimeZoneTransitionTime._fields_ = [ ('Year', c_short), ('Month', c_short), ('DayOfWeek', c_short), ('DayOccurrence', c_short), ('Hour', c_short), ('Minute', c_short), ('Second', c_short), ('Milliseconds', c_short), ] assert sizeof(_TimeZoneTransitionTime) == 16, sizeof(_TimeZoneTransitionTime) assert alignment(_TimeZoneTransitionTime) == 2, alignment(_TimeZoneTransitionTime) IRESTOperation._methods_ = [ COMMETHOD(['propget', helpstring(u"Operation name. Used in IRESTRequestHandler's schema generation and url parsing.")], HRESULT, 'Name', ( ['retval', 'out'], POINTER(BSTR), 'Name' )), COMMETHOD(['propget', helpstring(u'Operation parameters, separated by comma.')], HRESULT, 'Parameters', ( ['retval', 'out'], POINTER(BSTR), 'Parameters' )), COMMETHOD(['propget', helpstring(u'Supported output formats, separated by comma.')], HRESULT, 'OutputFormats', ( ['retval', 'out'], POINTER(BSTR), 'OutputFormats' )), COMMETHOD(['propget', helpstring(u'Required capability for the operation.')], HRESULT, 'RequiredCapability', ( ['retval', 'out'], POINTER(BSTR), 'capability' )), COMMETHOD(['propget', helpstring(u'Denotes POST-only operations.')], HRESULT, 'PostOnly', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD([helpstring(u'Converts operation object to JSON representation.')], HRESULT, 'ToJSONObject', ( ['retval', 'out'], POINTER(POINTER(IJSONObject)), 'pObj' )), COMMETHOD(['propput', helpstring(u"Operation name. Used in IRESTRequestHandler's schema generation and url parsing.")], HRESULT, 'Name', ( ['in'], BSTR, 'Name' )), COMMETHOD(['propput', helpstring(u'Operation parameters, separated by comma.')], HRESULT, 'Parameters', ( ['in'], BSTR, 'Parameters' )), COMMETHOD(['propput', helpstring(u'Supported output formats, separated by comma.')], HRESULT, 'OutputFormats', ( ['in'], BSTR, 'OutputFormats' )), COMMETHOD(['propput', helpstring(u'Required capability for the operation.')], HRESULT, 'RequiredCapability', ( ['in'], BSTR, 'capability' )), COMMETHOD(['propput', helpstring(u'Denotes POST-only operations.')], HRESULT, 'PostOnly', ( ['in'], VARIANT_BOOL, 'Value' )), ] ################################################################ ## code template for IRESTOperation implementation ##class IRESTOperation_Impl(object): ## def ToJSONObject(self): ## u'Converts operation object to JSON representation.' ## #return pObj ## ## def _get(self): ## u"Operation name. Used in IRESTRequestHandler's schema generation and url parsing." ## #return Name ## def _set(self, Name): ## u"Operation name. Used in IRESTRequestHandler's schema generation and url parsing." ## Name = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Operation parameters, separated by comma.' ## #return Parameters ## def _set(self, Parameters): ## u'Operation parameters, separated by comma.' ## Parameters = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Required capability for the operation.' ## #return capability ## def _set(self, capability): ## u'Required capability for the operation.' ## RequiredCapability = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Denotes POST-only operations.' ## #return Value ## def _set(self, Value): ## u'Denotes POST-only operations.' ## PostOnly = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Supported output formats, separated by comma.' ## #return OutputFormats ## def _set(self, OutputFormats): ## u'Supported output formats, separated by comma.' ## OutputFormats = property(_get, _set, doc = _set.__doc__) ## IByteSwapStreamIO._methods_ = [ COMMETHOD(['propputref', helpstring(u'The stream to perform byte swap reads and writes to.')], HRESULT, 'Stream', ( ['in'], POINTER(IStream), 'ppStream' )), COMMETHOD(['propget', helpstring(u'The stream to perform byte swap reads and writes to.')], HRESULT, 'Stream', ( ['retval', 'out'], POINTER(POINTER(IStream)), 'ppStream' )), COMMETHOD([helpstring(u'Perform a read byte swapping to the native format.')], HRESULT, 'Read', ( ['in'], esriByteSwapDataType, 'dataType' ), ( ['out'], c_void_p, 'pv' ), ( ['in'], c_ulong, 'cb' ), ( ['out'], POINTER(c_ulong), 'pcbRead' )), COMMETHOD([helpstring(u'Perform a write byte swapping to the windows format.')], HRESULT, 'Write', ( ['in'], esriByteSwapDataType, 'dataType' ), ( ['in'], c_void_p, 'pv' ), ( ['in'], c_ulong, 'cb' ), ( ['out'], POINTER(c_ulong), 'pcbWritten' )), ] ################################################################ ## code template for IByteSwapStreamIO implementation ##class IByteSwapStreamIO_Impl(object): ## def Read(self, dataType, cb): ## u'Perform a read byte swapping to the native format.' ## #return pv, pcbRead ## ## def Write(self, dataType, pv, cb): ## u'Perform a write byte swapping to the windows format.' ## #return pcbWritten ## ## @property ## def Stream(self, ppStream): ## u'The stream to perform byte swap reads and writes to.' ## #return ## IXMLReader2._methods_ = [ COMMETHOD(['propget', helpstring(u'XML representation of the current element.')], HRESULT, 'XML', ( ['retval', 'out'], POINTER(BSTR), 'Value' )), COMMETHOD([helpstring(u'Reads the current element value as an int64.')], HRESULT, 'ReadInt64', ( ['retval', 'out'], POINTER(c_longlong), 'Value' )), ] ################################################################ ## code template for IXMLReader2 implementation ##class IXMLReader2_Impl(object): ## @property ## def XML(self): ## u'XML representation of the current element.' ## #return Value ## ## def ReadInt64(self): ## u'Reads the current element value as an int64.' ## #return Value ## IXMLWriter._methods_ = [ COMMETHOD([helpstring(u'Specifies output XML stream.')], HRESULT, 'WriteTo', ( ['in'], POINTER(IStream), 'outputStream' )), COMMETHOD([helpstring(u'Writes the starting tag of an element.')], HRESULT, 'WriteStartTag', ( ['in'], BSTR, 'LocalName' ), ( ['in'], BSTR, 'uri' ), ( ['in'], POINTER(IXMLAttributes), 'Attributes' ), ( ['in'], POINTER(IXMLNamespaces), 'namespaces' ), ( ['in'], VARIANT_BOOL, 'isEmpty' )), COMMETHOD([helpstring(u'Writes the text value of an element.')], HRESULT, 'WriteText', ( ['in'], BSTR, 'Text' )), COMMETHOD([helpstring(u'Writes a CDATA section.')], HRESULT, 'WriteCData', ( ['in'], BSTR, 'cdata' )), COMMETHOD([helpstring(u'Writes the ending tag of an element.')], HRESULT, 'WriteEndTag'), COMMETHOD([helpstring(u'Writes an element value as a boolean.')], HRESULT, 'WriteBoolean', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a byte.')], HRESULT, 'WriteByte', ( ['in'], c_ubyte, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a short.')], HRESULT, 'WriteShort', ( ['in'], c_short, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a long.')], HRESULT, 'WriteInteger', ( ['in'], c_int, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a float.')], HRESULT, 'WriteFloat', ( ['in'], c_float, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a double.')], HRESULT, 'WriteDouble', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a date.')], HRESULT, 'WriteDate', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a binary array.')], HRESULT, 'WriteBinary', ( ['in'], POINTER(_midlSAFEARRAY(c_ubyte)), 'Value' )), COMMETHOD([helpstring(u'Writes an element value as a variant.')], HRESULT, 'WriteVariant', ( ['in'], VARIANT, 'Value' )), COMMETHOD([helpstring(u'Writes raw XML.')], HRESULT, 'WriteXML', ( ['in'], BSTR, 'XML' )), COMMETHOD([helpstring(u'Writes the XML document declaration.')], HRESULT, 'WriteXMLDeclaration'), COMMETHOD([helpstring(u'Writes a newline.')], HRESULT, 'WriteNewLine'), COMMETHOD([helpstring(u'Writes a tab.')], HRESULT, 'WriteTab'), COMMETHOD([helpstring(u'Obtains the declared namespace prefix for a namespace.')], HRESULT, 'LookupNamespace', ( ['in'], BSTR, 'uri' ), ( ['retval', 'out'], POINTER(BSTR), 'Prefix' )), ] ################################################################ ## code template for IXMLWriter implementation ##class IXMLWriter_Impl(object): ## def WriteDate(self, Value): ## u'Writes an element value as a date.' ## #return ## ## def WriteText(self, Text): ## u'Writes the text value of an element.' ## #return ## ## def WriteNewLine(self): ## u'Writes a newline.' ## #return ## ## def WriteBoolean(self, Value): ## u'Writes an element value as a boolean.' ## #return ## ## def WriteShort(self, Value): ## u'Writes an element value as a short.' ## #return ## ## def LookupNamespace(self, uri): ## u'Obtains the declared namespace prefix for a namespace.' ## #return Prefix ## ## def WriteTo(self, outputStream): ## u'Specifies output XML stream.' ## #return ## ## def WriteTab(self): ## u'Writes a tab.' ## #return ## ## def WriteXMLDeclaration(self): ## u'Writes the XML document declaration.' ## #return ## ## def WriteXML(self, XML): ## u'Writes raw XML.' ## #return ## ## def WriteDouble(self, Value): ## u'Writes an element value as a double.' ## #return ## ## def WriteFloat(self, Value): ## u'Writes an element value as a float.' ## #return ## ## def WriteVariant(self, Value): ## u'Writes an element value as a variant.' ## #return ## ## def WriteByte(self, Value): ## u'Writes an element value as a byte.' ## #return ## ## def WriteEndTag(self): ## u'Writes the ending tag of an element.' ## #return ## ## def WriteInteger(self, Value): ## u'Writes an element value as a long.' ## #return ## ## def WriteStartTag(self, LocalName, uri, Attributes, namespaces, isEmpty): ## u'Writes the starting tag of an element.' ## #return ## ## def WriteBinary(self, Value): ## u'Writes an element value as a binary array.' ## #return ## ## def WriteCData(self, cdata): ## u'Writes a CDATA section.' ## #return ## IRESTResource._methods_ = [ COMMETHOD(['propget', helpstring(u"Resource name. Used in IRESTRequestHandler's schema generation and url parsing.")], HRESULT, 'Name', ( ['retval', 'out'], POINTER(BSTR), 'Name' )), COMMETHOD(['propget', helpstring(u'Specifies collection resource.')], HRESULT, 'IsCollection', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD(['propget', helpstring(u"Specifies 'default' collection resource that can be accessed without explicitly using its name in the URL.")], HRESULT, 'IsDefaultCollection', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD(['propget', helpstring(u'This flag marks resources that do not change over time.')], HRESULT, 'IsStatic', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD(['propget', helpstring(u'This flag is only for a root level resource. If this flag is true, IRRH implementation supports ETag.')], HRESULT, 'SupportsETag', ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Value' )), COMMETHOD(['propget', helpstring(u'Required capability for the resource.')], HRESULT, 'RequiredCapability', ( ['retval', 'out'], POINTER(BSTR), 'capability' )), COMMETHOD(['propput', helpstring(u"Resource name. Used in IRESTRequestHandler's schema generation and url parsing.")], HRESULT, 'Name', ( ['in'], BSTR, 'Name' )), COMMETHOD(['propput', helpstring(u'Specifies collection resource.')], HRESULT, 'IsCollection', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD(['propput', helpstring(u"Specifies 'default' collection resource that can be accessed without explicitly using its name in the URL.")], HRESULT, 'IsDefaultCollection', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD(['propput', helpstring(u'This flag marks resources that do not change over time.')], HRESULT, 'IsStatic', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD(['propput', helpstring(u'This flag is only for a root level resource. If this flag is true, IRRH implementation supports ETag.')], HRESULT, 'SupportsETag', ( ['in'], VARIANT_BOOL, 'Value' )), COMMETHOD(['propput', helpstring(u'Required capability for the resource.')], HRESULT, 'RequiredCapability', ( ['in'], BSTR, 'capability' )), COMMETHOD([helpstring(u'Converts resource object to JSON representation.')], HRESULT, 'ToJSONObject', ( ['retval', 'out'], POINTER(POINTER(IJSONObject)), 'pObj' )), COMMETHOD([helpstring(u'Adds child resource.')], HRESULT, 'AddResource', ( ['in'], POINTER(IRESTResource), 'r' )), COMMETHOD([helpstring(u'Adds child operation.')], HRESULT, 'AddOperation', ( ['in'], POINTER(IRESTOperation), 'o' )), COMMETHOD([helpstring(u'Finds child resource, non-recursive.')], HRESULT, 'FindChildResource', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(POINTER(IRESTResource)), 'ppObj' )), COMMETHOD([helpstring(u'Finds child operation, non-recursive.')], HRESULT, 'FindChildOperation', ( ['in'], BSTR, 'Name' ), ( ['retval', 'out'], POINTER(POINTER(IRESTOperation)), 'ppObj' )), COMMETHOD([helpstring(u'Returns enumerator for immediate child resources.')], HRESULT, 'GetResources', ( ['retval', 'out'], POINTER(POINTER(IEnumRESTResource)), 'ppEnum' )), COMMETHOD([helpstring(u'Returns enumerator for operations.')], HRESULT, 'GetOperations', ( ['retval', 'out'], POINTER(POINTER(IEnumRESTOperation)), 'ppEnum' )), ] ################################################################ ## code template for IRESTResource implementation ##class IRESTResource_Impl(object): ## def _get(self): ## u'Specifies collection resource.' ## #return Value ## def _set(self, Value): ## u'Specifies collection resource.' ## IsCollection = property(_get, _set, doc = _set.__doc__) ## ## def ToJSONObject(self): ## u'Converts resource object to JSON representation.' ## #return pObj ## ## def _get(self): ## u'This flag marks resources that do not change over time.' ## #return Value ## def _set(self, Value): ## u'This flag marks resources that do not change over time.' ## IsStatic = property(_get, _set, doc = _set.__doc__) ## ## def GetOperations(self): ## u'Returns enumerator for operations.' ## #return ppEnum ## ## def _get(self): ## u"Resource name. Used in IRESTRequestHandler's schema generation and url parsing." ## #return Name ## def _set(self, Name): ## u"Resource name. Used in IRESTRequestHandler's schema generation and url parsing." ## Name = property(_get, _set, doc = _set.__doc__) ## ## def _get(self): ## u'Required capability for the resource.' ## #return capability ## def _set(self, capability): ## u'Required capability for the resource.' ## RequiredCapability = property(_get, _set, doc = _set.__doc__) ## ## def AddOperation(self, o): ## u'Adds child operation.' ## #return ## ## def AddResource(self, r): ## u'Adds child resource.' ## #return ## ## def FindChildOperation(self, Name): ## u'Finds child operation, non-recursive.' ## #return ppObj ## ## def FindChildResource(self, Name): ## u'Finds child resource, non-recursive.' ## #return ppObj ## ## def _get(self): ## u"Specifies 'default' collection resource that can be accessed without explicitly using its name in the URL." ## #return Value ## def _set(self, Value): ## u"Specifies 'default' collection resource that can be accessed without explicitly using its name in the URL." ## IsDefaultCollection = property(_get, _set, doc = _set.__doc__) ## ## def GetResources(self): ## u'Returns enumerator for immediate child resources.' ## #return ppEnum ## ## def _get(self): ## u'This flag is only for a root level resource. If this flag is true, IRRH implementation supports ETag.' ## #return Value ## def _set(self, Value): ## u'This flag is only for a root level resource. If this flag is true, IRRH implementation supports ETag.' ## SupportsETag = property(_get, _set, doc = _set.__doc__) ## ITimeRelationalOperator._methods_ = [ COMMETHOD([helpstring(u'Indicates whether the two time values are of the same type and define the same time values.')], HRESULT, 'Equals', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Equals' )), COMMETHOD([helpstring(u'Indicates whether the input time value falls fully outside of the time extent.')], HRESULT, 'Disjoint', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Disjoint' )), COMMETHOD([helpstring(u'Indicates whether the boundaries of the time values intersect.')], HRESULT, 'Touches', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Touches' )), COMMETHOD([helpstring(u'Indicates whether this time value is contained (is within) the other time value.')], HRESULT, 'Within', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Within' )), COMMETHOD([helpstring(u'Indicates whether this time value contains the other time value.')], HRESULT, 'Contains', ( ['in'], POINTER(ITimeValue), 'otherTimeValue' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'Contains' )), ] ################################################################ ## code template for ITimeRelationalOperator implementation ##class ITimeRelationalOperator_Impl(object): ## def Disjoint(self, otherTimeValue): ## u'Indicates whether the input time value falls fully outside of the time extent.' ## #return Disjoint ## ## def Touches(self, otherTimeValue): ## u'Indicates whether the boundaries of the time values intersect.' ## #return Touches ## ## def Within(self, otherTimeValue): ## u'Indicates whether this time value is contained (is within) the other time value.' ## #return Within ## ## def Contains(self, otherTimeValue): ## u'Indicates whether this time value contains the other time value.' ## #return Contains ## ## def Equals(self, otherTimeValue): ## u'Indicates whether the two time values are of the same type and define the same time values.' ## #return Equals ## IAoInitialize._methods_ = [ COMMETHOD([helpstring(u'Check if the Product Code is available.')], HRESULT, 'IsProductCodeAvailable', ( ['in'], esriLicenseProductCode, 'ProductCode' ), ( ['retval', 'out'], POINTER(esriLicenseStatus), 'licenseStatus' )), COMMETHOD([helpstring(u'Check if the Product Code is available and then the Extension Code for that product.')], HRESULT, 'IsExtensionCodeAvailable', ( ['in'], esriLicenseProductCode, 'ProductCode' ), ( ['in'], esriLicenseExtensionCode, 'extensionCode' ), ( ['retval', 'out'], POINTER(esriLicenseStatus), 'licenseStatus' )), COMMETHOD([helpstring(u'This must be called before any other ArcObjects are created to initialize product Code. If called a second time during the life time of an executable with a new product code, it will return esriLicenseAlreadyInitialized.')], HRESULT, 'Initialize', ( ['in'], esriLicenseProductCode, 'ProductCode' ), ( ['retval', 'out'], POINTER(esriLicenseStatus), 'licenseStatus' )), COMMETHOD([helpstring(u'Check out an extension.')], HRESULT, 'CheckOutExtension', ( ['in'], esriLicenseExtensionCode, 'extensionCode' ), ( ['retval', 'out'], POINTER(esriLicenseStatus), 'licenseStatus' )), COMMETHOD([helpstring(u'Check in an extension.')], HRESULT, 'CheckInExtension', ( ['in'], esriLicenseExtensionCode, 'extensionCode' ), ( ['retval', 'out'], POINTER(esriLicenseStatus), 'licenseStatus' )), COMMETHOD([helpstring(u'Shutdown method. This should be the last call to ArcObjects in an application.')], HRESULT, 'Shutdown'), COMMETHOD([helpstring(u"Retrieve's the product code at which the application has been initialized.")], HRESULT, 'InitializedProduct', ( ['retval', 'out'], POINTER(esriLicenseProductCode), 'ProductCode' )), COMMETHOD([helpstring(u'Is the Extension checked out.')], HRESULT, 'IsExtensionCheckedOut', ( ['in'], esriLicenseExtensionCode, 'extensionCode' ), ( ['retval', 'out'], POINTER(VARIANT_BOOL), 'checkedOut' )), ] ################################################################ ## code template for IAoInitialize implementation ##class IAoInitialize_Impl(object): ## def IsExtensionCheckedOut(self, extensionCode): ## u'Is the Extension checked out.' ## #return checkedOut ## ## def CheckInExtension(self, extensionCode): ## u'Check in an extension.' ## #return licenseStatus ## ## def IsExtensionCodeAvailable(self, ProductCode, extensionCode): ## u'Check if the Product Code is available and then the Extension Code for that product.' ## #return licenseStatus ## ## def Shutdown(self): ## u'Shutdown method. This should be the last call to ArcObjects in an application.' ## #return ## ## def Initialize(self, ProductCode): ## u'This must be called before any other ArcObjects are created to initialize product Code. If called a second time during the life time of an executable with a new product code, it will return esriLicenseAlreadyInitialized.' ## #return licenseStatus ## ## def IsProductCodeAvailable(self, ProductCode): ## u'Check if the Product Code is available.' ## #return licenseStatus ## ## def CheckOutExtension(self, extensionCode): ## u'Check out an extension.' ## #return licenseStatus ## ## def InitializedProduct(self): ## u"Retrieve's the product code at which the application has been initialized." ## #return ProductCode ## ILicenseInfoEnum._methods_ = [ COMMETHOD([helpstring(u'Resets the extension code.')], HRESULT, 'Reset'), COMMETHOD([helpstring(u'Obtains the next extension code.')], HRESULT, 'Next', ( ['retval', 'out'], POINTER(esriLicenseExtensionCode), 'extensionCode' )), ] ################################################################ ## code template for ILicenseInfoEnum implementation ##class ILicenseInfoEnum_Impl(object): ## def Reset(self): ## u'Resets the extension code.' ## #return ## ## def Next(self): ## u'Obtains the next extension code.' ## #return extensionCode ## IXMLWriter2._methods_ = [ COMMETHOD(['propget', helpstring(u'Obtains underlying stream. If WriteTo() is not called yet, will return NULL.')], HRESULT, 'Stream', ( ['retval', 'out'], POINTER(POINTER(IStream)), 'ppStream' )), COMMETHOD([helpstring(u'Writes an element value as an int64.')], HRESULT, 'WriteInt64', ( ['in'], c_longlong, 'Value' )), ] ################################################################ ## code template for IXMLWriter2 implementation ##class IXMLWriter2_Impl(object): ## def WriteInt64(self, Value): ## u'Writes an element value as an int64.' ## #return ## ## @property ## def Stream(self): ## u'Obtains underlying stream. If WriteTo() is not called yet, will return NULL.' ## #return ppStream ## class IJSONDeserializer(IExternalDeserializer): _case_insensitive_ = True u'Provides access to high-level JSON deserialization methods.' _iid_ = GUID('{1E6DC0EB-5C8A-4401-A8AF-BB5602DDFB7E}') _idlflags_ = ['oleautomation'] IJSONDeserializer._methods_ = [ COMMETHOD(['propget', helpstring(u'Obtains JSON Reader.')], HRESULT, 'Reader', ( ['retval', 'out'], POINTER(POINTER(IJSONReader)), 'ppReader' )), COMMETHOD([helpstring(u'Write deserialization options.')], HRESULT, 'InitDeserializer', ( ['in'], POINTER(IJSONReader), 'pReader' ), ( ['in'], POINTER(IPropertySet), 'pProps' )), ] ################################################################ ## code template for IJSONDeserializer implementation ##class IJSONDeserializer_Impl(object): ## def InitDeserializer(self, pReader, pProps): ## u'Write deserialization options.' ## #return ## ## @property ## def Reader(self): ## u'Obtains JSON Reader.' ## #return ppReader ## IGenerateStatistics._methods_ = [ COMMETHOD(['propput', helpstring(u'Indicates if simple statistics are sufficient. These are Count, Minimum, Maximum, Sum, Mean, Standard Deviation.')], HRESULT, 'SimpleStats', ( ['in'], VARIANT_BOOL, 'rhs' )), COMMETHOD(['propput', helpstring(u'Indicates if the statistics represent a sample of the data (used for calculating standard deviation).')], HRESULT, 'Sample', ( ['in'], VARIANT_BOOL, 'rhs' )), COMMETHOD([helpstring(u'Clears out the currently gathered statistics.')], HRESULT, 'Reset', ( ['in'], VARIANT_BOOL, 'SimpleStats' )), COMMETHOD([helpstring(u'Adds a data value to the collection of values used to derive the statistics.')], HRESULT, 'AddValue', ( ['in'], c_double, 'Value' )), COMMETHOD([helpstring(u'May be called after all values have been added to establish frequeny table (the function is not required any more).')], HRESULT, 'FinalCompute'), ] ################################################################ ## code template for IGenerateStatistics implementation ##class IGenerateStatistics_Impl(object): ## def _set(self, rhs): ## u'Indicates if simple statistics are sufficient. These are Count, Minimum, Maximum, Sum, Mean, Standard Deviation.' ## SimpleStats = property(fset = _set, doc = _set.__doc__) ## ## def _set(self, rhs): ## u'Indicates if the statistics represent a sample of the data (used for calculating standard deviation).' ## Sample = property(fset = _set, doc = _set.__doc__) ## ## def Reset(self, SimpleStats): ## u'Clears out the currently gathered statistics.' ## #return ## ## def FinalCompute(self): ## u'May be called after all values have been added to establish frequeny table (the function is not required any more).' ## #return ## ## def AddValue(self, Value): ## u'Adds a data value to the collection of values used to derive the statistics.' ## #return ## __all__ = ['IAngularConverter', 'esriLicenseExtensionCodeWorkflowManager', 'esriTSFYearThruDayWithDash', 'esriLicenseExtensionCodeNautical', 'TimeExtent', 'esriSystemMessageCode_ErrorReadXml', 'JSONEndOfArray', 'IXMLFlags', 'IObjectConstruct', 'CoRESTOperation', 'esriAnimationDrawing', 'esriDTPolar', 'IRectHolder', 'esriDecimeters', 'esriSystemMessageCode_XMLTypeMappingFailed', 'IMemoryBlobStream', 'esriLicenseExtensionCodeBathymetry', 'esriBSDTWCHAR', 'esriProductCodePublisher', 'esriJobMessageTypeProcessStart', 'esriLockMgrSchemaRead', 'esriProductCodeServerAdvancedEdition', 'esriTSFYearThruMinuteWithDash', 'esriLicenseUnavailable', 'EnvironmentManager', 'esriSquareMiles', 'esriUnitsLast', 'esriAGSInternetMessageFormatBin', 'esriSquareYards', 'IClassifyMinMax2', 'esriTSFYearThruDay', 'esriBSDTULONG', 'MESSAGESUPPORT_E_FORBIDDEN', 'IVariantArray', 'IFractionFormat', 'esriProductInstalled', 'esriTSFYearThruSubSecond', 'esriJobMessageTypeError', 'esriProductCodeNautical', 'esriJobMessageType', 'FileName', 'esriProductCodeSchematics', 'esriSystemMessageCode_ErrorImportFromMem', 'esriServerMessageCodeEnum', 'esriDrawPolyPolyline', 'IXMLSerializerAlt', '_esriPointAttributes', 'esriProductCodeDesigner', 'esriLicenseCheckedIn', 'esriPointAttributesEx', 'esriITFYearOnly', 'FileNames', 'IJSONSerializer', 'esriProductCodeRuntimeBasic', 'esriArcGISVersion92', 'esriJobCancelled', 'esriArcGISVersion93', 'IEnumBSTR', 'IExtensionManager', 'JSONStartOfObject', 'IWebRequestHandler', 'IJobResults', 'esriSystemMessageCode_ErrorSaveToString', 'XML_SERIALIZE_E_INVALIDENUMVALUE', 'esriLicenseExtensionCodeCOGO', 'TimeReference', 'MESSAGESUPPORT_E_SSL_CACERT', 'esriTransportTypeEmbedded', 'JobMessages', 'esriProductCodeHighways', 'esriByteSwapDataType', 'esriLicenseExtensionCodeServerStandardEdition', 'esriJobCancelling', 'esriBSDTbool', 'esriLicenseExtensionCodeTIFFLZW', 'esriAres', 'esriProductsInstalledServerJAVA', 'esriTextureCompressionJPEG', 'esriPoints', 'esriLicenseExtensionCodeVirtualEarthEng', 'esriProductCodeIntelAgency', 'IDeviationInterval', 'esriProductCodeBusinessStandard', 'esriAlignRight', 'IArray', 'esriDecimalDegrees', 'esriTimeUnitsCenturies', 'IXMLStream', 'esriProductCodeCOGO', 'IXMLSerialize', 'esriProductCodeItaly', 'esriProductCodeBelgium', 'esriScaleFormat', 'XMLFlags', 'ILatLonFormat', 'esriTimeLocaleFormat', 'esriLicenseProductCode', 'IEnvironmentManager', 'esriLicenseNotLicensed', 'DefinedInterval', 'esriLicenseExtensionCodeSchematics', 'esriLicenseNotInitialized', 'ITestConnection', 'ILocaleInfo', 'esriDUGons', 'MESSAGESUPPORT_E_AUTH_TOKEN_REQUIRED', 'esriLicenseExtensionCodeHighways', 'DirectionFormat', 'esriAnimationPrinting', 'ESRIScriptEngine', 'StandardDeviation', 'IAnimationProgressor', 'esriProductsInstalledReader', 'esriTimeUnitsMilliseconds', 'MESSAGESUPPORT_E_UNAUTHORIZED', 'esriTLFLongDate', 'MESSAGESUPPORT_E_SSL_CONNECT_ERROR', 'ILog2', 'IPropertySetArray', 'esriTSFYearThruSecondWithDash', 'CurrencyFormat', 'INumberFormat', 'Time', 'IPersistVariant', 'IFrequencyStatistics', 'esriSystemMessageCode_SetResponseStreamVersion', 'XMLNamespaces', 'ITrackCancel2', 'JSONArray', 'esriJobDeleted', 'esriArcGISVersion90', 'esriBSDTULONGLONG', 'esriTimeStringFormat', 'esriTSFYearThruSecondWithSlash', 'esriTSFYearThruMonthWithDash', 'XMLStream', 'esriJobDeleting', 'esriSystemMessageCodeEnum', 'WKSTimeDuration', 'E_REQUIRES_SERVER_STANDARD_EDITION', 'IJSONObject', 'esriAGSInternetMessageFormat', 'ITimeExtent', 'IESRIScriptEngine', 'esriHectares', 'IMessage', 'esriLicenseExtensionCode3DAnalyst', 'IStatisticsResults', 'IComponentCategoryManager', 'esriProductCodeDefenseUS', 'SCRIPTENGINE_E_CANNOT_COCREATE_VBSCRIPT_CONTROL', 'IZlibCompression', 'IClassID', 'MESSAGESUPPORT_E_COULDNT_RESOLVE_HOST', 'IXMLReader', 'esriProductCodeVBAExtension', 'MESSAGESUPPORT_E_SSL_PEER_CERTIFICATE', 'ILog', 'WKSDateTime', 'esriTransportTypeUrl', 'esriProductCodeVector', 'esriLicenseExtensionCodeRuntimeStandard', 'IZipArchive', 'MemoryBlobStream', 'esriLicenseAvailable', 'esriESDisabled', 'IVariantStream', 'esriTextureCompressionType', 'esriAcres', 'INameFactory', 'IRateFormat', 'MESSAGESUPPORT_E_NOT_IMPLEMENTED', 'esriDFDegreesMinutesSeconds', 'IExtension', 'esriLicenseExtensionCodeSchematicsSDK', 'esriDTSouthAzimuth', 'scriptEngineError', 'esriTSFYearThruMinute', 'esriSystemMessageCode_ErrorLoadBinaryStream', 'IJITExtensionManager', 'IJSONWriter2', 'E_NO_PRODUCT_LICENSE', 'esriSystemMessageCode_BinaryResponseSent', 'esriLicenseExtensionCodeServerAdvancedEdition', 'IExtensionConfig', 'IFileNames', 'esriRoundingOptionEnum', 'esriSystemMessageCode_CertFailed', 'TimeInstant', 'esriLicenseExtensionCodePublisher', 'AoAuthorizeLicense', 'XML_SERIALIZE_E_CONVFAILED', 'esriProductCodeNetwork', 'esriExtensionState', 'esriLicenseProductCodeBasic', 'esriLicenseExtensionCodeProductionMapping', 'XMLSerializerAlt', 'IPercentageFormat', 'IStringArray', 'esriLicenseExtensionCodeBusiness', 'JSONWriter', 'IJobInfo', 'IServerEnvironment2', 'IServerEnvironment3', 'AngularConverter', 'ITimeValue', 'esriRoundNumberOfDecimals', 'IObjectStream', 'IAngularConverter2', 'ITimeZoneFactory', 'ITime', 'esriLicenseExtensionCodeAeronautical', 'esriUnknownUnits', 'IPersistStream', '_TimeZoneTransitionTime', 'esriProductCodeArcScan', 'IProductInstalled', 'esriTSFYearThruHourWithDash', 'WKSEnvelopeZ', 'IArcGISLocale', 'esriProductCodeArcMapServer', 'esriDPGeography', 'esriTimeUnitsMinutes', 'esriLicenseExtensionCodeMrSID', 'IJobFilter', 'AngleFormat', 'VariantStreamIO', 'esriDrawPhase', 'esriCaseAppearance', 'LocaleInfo', 'IEnumVariantSimple', 'esriReadWrite', 'IParseNameString', 'esriLicenseExtensionCodeArcMapServer', 'CategoryFactory', 'VarArray', 'ISet', 'esriDrawMoveTo', 'Quantile', 'esriProductCodeRuntimeStandard', 'XML_SERIALIZE_E_CANT_MAP_XMLTYPE_TO_CLASS', 'IArray2', 'esriSquareCentimeters', 'esriAreaUnits', 'esriTextureCompressionNone', 'IRESTDispatcher', 'IParentExtension', 'esriDrawPolyBezier', 'esriDirectionUnits', 'IIntervalRange2', 'LongArray', 'esriAbsoluteScale', 'esriProductCodeTIFFLZW', 'esriProductCodeMappingAgency', 'esriProductCodeMLE', 'ProductInstalled', 'esriWRDTFileToReturn', 'esriProductCodeUnitedKingdom', 'IServerUserInfo', 'IObjectCopy', 'esriProductsInstalledDesktop', 'IParentLicenseExtension', 'esriCaseAppearanceUnchanged', 'esriLicenseExtensionCodeVideo', 'esriTSFYearThruHourWithSlash', 'esriDrawPolyPolygonNoBorder', 'esriBSDTBYTE', 'ITimeDuration', 'IProgressor', 'ICategoryFactory', 'esriProductCodeGeoStats', 'IByteSwapStreamIO', 'MESSAGESUPPORT_E_AUTH_TOKEN_FAILURE', 'esriITFYearThruMinute', 'esriProductCodeDataInteroperability', 'esriLicenseExtensionCodeDataReViewer', 'esriLicenseCheckedOut', 'ISequentialStream', 'IJobDefinition', 'esriProductCodeSchematicsSDK', 'esriLicenseProductCodeAdvanced', 'NameFactory', 'esriTimeUnitsSeconds', 'esriLicenseExtensionCodeDefenseUS', 'WKSEnvelope', 'IJSONDeserializer', 'JSONTokenType', 'esriJobMessageTypeProcessDefinition', 'IProxyServerInfo2', 'esriSquareInches', 'esriLicenseExtensionCodeDesigner', 'IScaleFormat', 'IXMLSerializeData', 'esriLicenseExtensionCodeBusinessStandard', 'IRESTCallback', 'esriProductCodeSpain', 'esriLicenseExtensionCodeStreetMap', 'RateFormat', 'esriLicenseAlreadyInitialized', 'esriTLFDefaultDateTime', 'PropertySet', 'esriTimeUnitsHours', 'esriDrawPolygonNoBorder', 'TimeZoneFactory', 'esriTSFYearThruHour', 'E_NO_EXTENSION_LICENSE', 'esriLicenseExtensionCodeArcPress', 'IShortcutName', 'esriArcGISVersion10', 'JSONReader', 'esriTimeUnitsWeeks', 'esriImperialScale', 'esriTimeUnits', 'esriLicenseFailure', 'esriLicenseExtensionCodeIntelAgency', 'esriITFYearThruDay', 'esriProductCodeTracking', 'esriAnimationLast', 'MESSAGESUPPORT_E_GET_TOKEN_FAILED', 'esriWRDTPayload', 'esriProductCodeAdvanced', 'esriProductsInstalledEngineRuntime', 'IExtensionManagerAdmin', 'Set', 'esriBSDTunsignedint', 'esriDrawPolyPolygon', 'esriTSFYearThruDayWithSlash', 'AoInitialize', 'IUnitConverter', 'ICustomNumberFormat', 'IChildExtension', 'esriReadOnly', 'esriLicenseExtensionCodeDefense', 'esriTextureCompressionNever', 'esriSystemMessageCode_ErrorWriteXml', 'IBlobStream', 'esriUnknownAreaUnits', 'ICheckProgressor', 'IJSONReader2', 'esriDTQuadrantBearing', 'InputDeviceManager', 'esriDrawBeginPath', 'IXMLVersionSupport', 'XML_SERIALIZE_E_UNKNOWN', 'IClone', 'JSONNull', 'XMLSerializer', 'esriSquareDecimeters', 'esriJobSubmitted', 'ArcGISLocale', 'ESRILicenseInfo', 'IEnumRESTOperation', 'ILogSupport', 'xmlSerializeError', 'StrArray', 'IDirectionFormat', 'ZipArchive', 'esriDPAnnotation', 'esriHttpMethodDelete', 'IXMLObjectElement', 'esriFeet', 'esriAreaUnitsLast', 'esriDrawRectangle', 'MESSAGESUPPORT_E_PROXY_GATEWAY_ERROR', 'esriProductCodeDenmark', '_WKSEnvelopeZ', 'IZipArchiveEx', 'esriSystemMessageCode_StringRequestReceived', 'esriSquareMeters', 'esriCoreErrorReturnCodes', 'esriPointAttributes', 'ShortcutName', 'esriLicenseProductCodeEngineGeoDB', 'esriBSDTUSHORT', 'esriProductCodeBingMaps', 'IAngleFormat', 'IServerEnvironment', 'esriProductCode', 'esriTLFLongTime', 'esriProductCodePortugal', 'esriInches', 'esriTLFShortDate', 'esriProductCodeImageExt', 'esriJobMessageTypeWarning', 'esriAnimations', 'IInputDeviceManager', 'esriBSDTDOUBLE', 'IErrorCollection', 'IEnumName', 'esriTimeUnitsYears', 'IStatusBar', 'esriSegmentModifier', 'MESSAGESUPPORT_E_MEM_ALLOC_FAILED', 'INumberFormatOperations', 'EqualInterval', 'tagSTATSTG', 'esriSystemMessageCode_ErrorWriteBinaryResponse', 'TimeZoneRule', 'esriProductCodeProductionMapping', 'IRESTRequestHandler', 'esriLicenseExtensionCodeDefenseINTL', '_WKSPoint', 'esriLicenseExtensionCodeRuntimeAdvanced', 'IJobMessage', 'JSONBoolean', 'esriProductCodeMrSID', 'esriBSDTBOOLU', 'esriITFYearThruHour', 'esriDrawArcCCW', 'OLE_HANDLE', 'esriSystemMessageCode_AuthFailed', 'IAuthorizeLicense', 'IClassify', 'MESSAGESUPPORT_E_NOT_ACCEPTABLE', 'esriProductCodeAeronautical', 'SSLInfo', '_WKSPointZ', 'ILatLonFormat2', 'esriDrawCircle', 'MESSAGESUPPORT_E_REQUEST_TOLARGE', 'ITime2', 'esriHttpMethodGet', 'esriMeters', 'IClassifyMinMax', 'IGenerateStatistics', 'IJobRegistry', 'esriProductCodeTIN', 'IStream', 'esriKilometers', 'IAMFWriter', 'MESSAGESUPPORT_E_COULDNT_CONNECT', 'SystemHelper', 'esriHttpMethodOptions', 'esriProductCodeSwitzerland', 'esriBSDTLONGLONG', 'esriProductCodeBusiness', 'esriESEnabled', 'BaseStatistics', 'esriDrawMultipoint', 'esriSystemMessageCode_BinaryRequestReceived', 'ISSLInfo', 'IESRILicenseInfo', 'IGlobeCompression', 'JSONStartOfArray', 'esriLicenseExtensionCodeNetwork', 'MESSAGESUPPORT_E_URL_MALFORMAT', 'esriLicenseServerEditionAdvanced', 'MESSAGESUPPORT_E_BAD_REQUEST', 'esriLockMgrWrite', 'ComponentCategoryManager', 'esriLicenseExtensionCodeVBAExtension', 'IJobMessages', 'esriHttpMethodHead', 'IEnumNameEdit', 'esriHttpMethodTrace', 'MESSAGESUPPORT_E_NO_CONTENT', 'CoRESTDispatcher', 'esriJobMessageTypeProcessStop', 'esriMillimeters', 'esriLicenseExtensionCodeBingMapsEng', 'XMLAttributes', 'MESSAGESUPPORT_E_INTERNAL_SERVER_ERROR', 'esriTextureCompressionJPEGPlus', 'esriProductCodeReader', 'esriLicenseProductCodeArcServer', 'esriTSFYearThruMinuteWithSlash', 'ILicenseInfoEnum', 'esriJobMessageTypeEmpty', 'IJobTracker', 'esriProductCodeBingMapsEng', 'esriProductCodeServerStandardEdition', 'esriJobMessageTypeAbort', 'JSONUndefined', 'esriTimeRelationOverlapsStartWithinEnd', 'esriBSDTFLOAT', 'esriLicenseProductCodeStandard', 'esriYards', 'ObjectCopy', 'IStepProgressor', 'esriLockMgrType', 'esriAlignLeft', 'IFileNames2', 'IMemoryBlobStream2', 'FileStream', 'IPropertySupport', 'ITimeOffsetOperator', 'MESSAGESUPPORT_E_SERVICE_NOT_AVAILABLE', 'esriLicenseExtensionCode', 'AMFWriter', 'INumericFormat', 'esriDrawPolyline', 'esriDPSelection', 'ISupportErrorInfo', 'esriTimeUnitsUnknown', 'IComponentCategoryInfo', 'esriHttpMethodPut', 'esriSystemMessageCode_ErrorLoadFromString', 'IXMLPersistedObject', 'esriProductCodeLuxembourg', 'esriLicenseExtensionCodeMLE', 'IMemoryBlobStreamVariant', 'NumericFormat', 'esriITFYearThruMonth', 'esriLicenseExtensionCodeBingMaps', 'esriLicenseExtensionCodeVector', 'CustomNumberFormat', 'esriProductCodeNetherlands', 'ILongArray', 'XMLTypeMapper', 'ProxyServerInfo', 'MESSAGESUPPORT_E_COULDNT_RESOLVE_PROXY', 'IFile', 'esriMiles', 'esriProductCodeDefense', 'esriLicenseExtensionCodeAGINSPIRE', 'ITextureCompression', 'esriProductCodeStreetMap', 'IUID', 'esriTSFYearThruSecond', 'esriJobTimedOut', 'IXMLWriter', 'esriLicenseExtensionCodeDataInteroperability', 'esriTSFYearThruSubSecondWithSlash', 'esriWebResponseDataType', 'IVariantStreamIO', 'esriTSFYearThruMonth', 'MESSAGESUPPORT_E_OPERATION_TIMEDOUT', 'esriDrawPolygon', 'IXMLSerializeData2', 'IXMLNamespaces', 'esriNumericAlignmentEnum', 'IEnumRESTResource', 'esriBSDTchar', 'FractionFormat', 'esriDUDegreesMinutesSeconds', 'esriProductCodeWorkflowManager', 'esriSpecifyFractionDenominator', 'esriDrawEndPath', 'IRequestHandler2', 'esriCentimeters', 'esriCustomScale', 'esriSquareKilometers', 'esriJobExecuting', 'ITimeRelationalOperator', 'esriLockMgrEdit', 'esriJobSucceeded', 'JSONValueDelimiter', 'ScientificFormat', 'esriLicenseExtensionCodeMappingAgency', 'ITimeReference', 'LatLonFormat', 'esriProductCodeFrance', 'IXMLWriter2', 'esriArcGISVersion101', 'esriProductCodeVirtualEarthEng', 'JSONString', 'esriLockMgrSchemaWrite', 'LicenseInfoEnum', 'IEnumUID', 'JSONObject', 'esriProductCodeDefenseINTL', 'IErrorInfo', 'ExtensionManager', 'ITimeZoneInfo', 'ScaleFormat', 'E_NOTLICENSED', 'esriLicenseServerEditionStandard', 'TimeZoneTransitionTime', 'esriLicenseExtensionCodeAirports', 'esriLicenseServerEditionBasic', 'IScientificNumberFormat', 'esriDrawArcCW', 'IAoInitialize', 'esriSpecifyFractionDigits', 'esriHttpMethodPost', 'esriProductCodeSweden', 'JSONEndOfObject', 'XMLPersistedObject', 'IDocumentVersionSupportGEN', 'esriDrawStop', 'esriProductCodeDataReViewer', 'esriTSFYearThruMonthWithSlash', 'OLE_COLOR', 'esriProductCodeGermany', 'esriFractionOptionEnum', 'UID', 'IExtensionAccelerators', 'ITimeZoneFactory2', 'IPropertySet', 'esriProductCodeAGINSPIRE', 'messageSupportError', 'esriJobStatus', 'IObjectUpdate', 'esriSquareFeet', 'IAutoExtension', 'esriTimeRelationAfterStartOverlapsEnd', 'esriDUGradians', 'esriLicenseStatus', 'esriJobWaiting', 'esriProductCodeServerEnterprise', 'esriNauticalMiles', 'PropertySetArray', 'esriProductCodeBasic', 'esriProductCodeArcPress', 'esriLockMgrRead', 'JobMessage', 'MESSAGESUPPORT_E_BAD_GATEWAY', 'esriLicenseExtensionCodeTracking', 'esriLicenseExtensionCodeGeoStats', 'esriUnits', 'esriProductPostCodesMajorRoads', 'esriTransportType', 'MESSAGESUPPORT_E_METHOD_NOT_ALLOWED', 'IIntervalRange', 'GeometricalInterval', 'JSONNumber', 'esriITFYearThruSecond', 'ILicenseInformation', 'esriTimeUnitsDays', 'esriDFQuadrantBearing', 'esriTimeRelationOverlaps', 'esriJobNew', 'esriDrawTrapezoids', 'IClassifyGEN', '_esriPointAttributesEx', 'IFileName', 'IProxyServerInfo', 'NaturalBreaks', 'esriProductCodeAirports', 'esriLockMgrNone', 'XMLWriter', 'esriTSFYearThruSubSecondWithDash', 'esriDURadians', 'UnitConverter', 'esriCaseAppearanceLower', 'esriLicenseExtensionCodeRuntimeBasic', 'esriProductCodeStandard', 'esriProductCodeVirtualEarth', 'MESSAGESUPPORT_E_REQUEST_TIMEOUT', 'IDocumentVersion', 'MESSAGESUPPORT_E_PROXY_AUTHENTICATION_REQUIRED', 'IXMLReader2', 'esriLicenseExtensionCodeServerEnterprise', 'IExternalSerializer', 'IXMLTypeMapper2', 'esriSystemMessageCode_HTTPConnectionFailed', 'esriLicenseExtensionCodeVirtualEarth', 'esriSystemMessageCode_RequestFailed', 'esriProductsInstalledServerNET', 'IEnumNamedID', 'ITimeInstant', 'esriLicenseExtensionCodeSpatialAnalyst', 'IDoubleArray', 'XMLReader', 'IJob', '_esriSegmentModifier', 'Message', 'JSONPropertyValueDelimiter', 'IXMLTypeMapper', 'esriTLFShortTime', 'esriArcGISVersion', 'DoubleArray', 'IExternalDeserializer', 'esriProductCodeBathymetry', 'esriProductCodeRuntimeAdvanced', 'esriDrawOp', 'PercentageFormat', 'esriProductCodeGrid', 'IJSONWriter', 'IRequestHandler', 'esriArcGISVersion83', 'MESSAGESUPPORT_E_INVALID_GET_FILE', 'esriSquareMillimeters', 'esriDirectionType', 'esriAGSInternetMessageFormatSoap', 'SCRIPTENGINE_E_CANNOT_COCREATE_JSCRIPT_CONTROL', 'esriBSDTGUID', 'esriTimeRelation', 'IName', 'esriProductCodeAustria', 'ITimeZoneRule', 'TimeDuration', 'esriLicenseExtensionCodeArcScan', 'esriLicenseServerEdition', 'ByteSwapStreamIO', 'IXMLSerializer', 'IXMLAttributes', 'CoRESTResource', 'esriSystemMessageCode_Debug', 'esriSystemMessageCode_StringResponseSent', 'esriESUnavailable', 'esriProductCodeReaderPro', 'IJSONReader', '_WKSTimeDuration', 'IRESTOperation', 'esriBSDTLONG', 'esriTimeUnitsMonths', 'IJSONArray', '_WKSDateTime', 'esriJobFailed', 'esriArcGISVersionCurrent', 'esriTSFYearOnly', 'esriFilePermission', 'E_REQUIRES_SERVER_ADVANCED_EDITION', 'TimeZoneInfo', '_WKSEnvelope', 'esriProductCodeMPSAtlas', 'esriProductCodeAllEurope', 'esriAnimationOther', 'esriJobMessageTypeInformative', 'esriLicenseExtensionCodeImageExt', 'ISystemBridge', 'IRESTResource', 'IJobCatalog', 'ObjectStream', 'esriHttpMethod', 'esriCaseAppearanceUpper', 'IAMFSerializer', 'esriLicenseUntrusted', 'IObjectValidate', 'ITrackCancel', 'esriDirectionFormatEnum', 'esriIntegerTimeFormat', 'IPropertySet2', 'esriLicenseProductCodeEngine', 'esriBSDTSHORT', 'esriDUDecimalDegrees', 'WKSPoint', 'esriRoundNumberOfSignificantDigits', 'IObjectActivate', 'esriLicenseExtensionCodeMPSAtlas', 'esriTimeUnitsDecades', 'MESSAGESUPPORT_E_NOT_FOUND', 'esriProductCodeVideo', 'esriDTNorthAzimuth', 'MESSAGESUPPORT_E_UNSUPPORTED_PROTOCOL', 'WKSPointZ'] from comtypes import _check_version; _check_version('501')
[ "anohe@esri.com" ]
anohe@esri.com
3858f2e9845f36382741bf11e618ff387c6faabf
2f0afa5e30a4f4d823ed287ffe6dcccdfe77f5d4
/student_net_learning/models/inception4.py
d134a2ef27be08dd37cd49dcfcbe8375153dfafd
[ "MIT" ]
permissive
Kulikovpavel/MCS2018.Baseline
2a76119c9439f929ef536e8af671bf5665ebe3e3
5a3997bc9e59ea1c2ada3df4c4f036465b38303f
refs/heads/master
2020-03-18T07:16:35.447283
2018-06-06T08:24:24
2018-06-06T08:24:24
134,442,296
0
0
MIT
2018-05-22T16:17:22
2018-05-22T16:17:22
null
UTF-8
Python
false
false
9,043
py
import torch.nn as nn import torch.utils.model_zoo as model_zoo import torch import torch.nn.functional as F from torch.autograd import Variable __all__ = ['InceptionV4', 'inceptionv4'] model_urls = { 'inceptionv4': 'https://s3.amazonaws.com/pytorch/models/inceptionv4-58153ba9.pth' } class BasicConv2d(nn.Module): def __init__(self, in_planes, out_planes, kernel_size, stride, padding=0): super(BasicConv2d, self).__init__() self.conv = nn.Conv2d(in_planes, out_planes, kernel_size=kernel_size, stride=stride, padding=padding, bias=False) # verify bias false self.bn = nn.BatchNorm2d(out_planes, eps=0.001, momentum=0, affine=True) self.relu = nn.ReLU(inplace=True) def forward(self, x): x = self.conv(x) x = self.bn(x) x = self.relu(x) return x class Mixed_3a(nn.Module): def __init__(self): super(Mixed_3a, self).__init__() self.maxpool = nn.MaxPool2d(3, stride=2) self.conv = BasicConv2d(64, 96, kernel_size=3, stride=2) def forward(self, x): x0 = self.maxpool(x) x1 = self.conv(x) out = torch.cat((x0, x1), 1) return out class Mixed_4a(nn.Module): def __init__(self): super(Mixed_4a, self).__init__() self.block0 = nn.Sequential( BasicConv2d(160, 64, kernel_size=1, stride=1), BasicConv2d(64, 96, kernel_size=3, stride=1) ) self.block1 = nn.Sequential( BasicConv2d(160, 64, kernel_size=1, stride=1), BasicConv2d(64, 64, kernel_size=(1,7), stride=1, padding=(0,3)), BasicConv2d(64, 64, kernel_size=(7,1), stride=1, padding=(3,0)), BasicConv2d(64, 96, kernel_size=(3,3), stride=1) ) def forward(self, x): x0 = self.block0(x) x1 = self.block1(x) out = torch.cat((x0, x1), 1) return out class Mixed_5a(nn.Module): def __init__(self): super(Mixed_5a, self).__init__() self.conv = BasicConv2d(192, 192, kernel_size=3, stride=2) self.maxpool = nn.MaxPool2d(3, stride=2) def forward(self, x): x0 = self.conv(x) x1 = self.maxpool(x) out = torch.cat((x0, x1), 1) return out class Inception_A(nn.Module): def __init__(self): super(Inception_A, self).__init__() self.block0 = BasicConv2d(384, 96, kernel_size=1, stride=1) self.block1 = nn.Sequential( BasicConv2d(384, 64, kernel_size=1, stride=1), BasicConv2d(64, 96, kernel_size=3, stride=1, padding=1) ) self.block2 = nn.Sequential( BasicConv2d(384, 64, kernel_size=1, stride=1), BasicConv2d(64, 96, kernel_size=3, stride=1, padding=1), BasicConv2d(96, 96, kernel_size=3, stride=1, padding=1) ) self.block3 = nn.Sequential( nn.AvgPool2d(3, stride=1, padding=1, count_include_pad=False), BasicConv2d(384, 96, kernel_size=1, stride=1) ) def forward(self, x): x0 = self.block0(x) x1 = self.block1(x) x2 = self.block2(x) x3 = self.block3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Reduction_A(nn.Module): def __init__(self): super(Reduction_A, self).__init__() self.block0 = BasicConv2d(384, 384, kernel_size=3, stride=2) self.block1 = nn.Sequential( BasicConv2d(384, 192, kernel_size=1, stride=1), BasicConv2d(192, 224, kernel_size=3, stride=1, padding=1), BasicConv2d(224, 256, kernel_size=3, stride=2) ) self.block2 = nn.MaxPool2d(3, stride=2) def forward(self, x): x0 = self.block0(x) x1 = self.block1(x) x2 = self.block2(x) out = torch.cat((x0, x1, x2), 1) return out class Inception_B(nn.Module): def __init__(self): super(Inception_B, self).__init__() self.block0 = BasicConv2d(1024, 384, kernel_size=1, stride=1) self.block1 = nn.Sequential( BasicConv2d(1024, 192, kernel_size=1, stride=1), BasicConv2d(192, 224, kernel_size=(1,7), stride=1, padding=(0,3)), BasicConv2d(224, 256, kernel_size=(7,1), stride=1, padding=(3,0)) ) self.block2 = nn.Sequential( BasicConv2d(1024, 192, kernel_size=1, stride=1), BasicConv2d(192, 192, kernel_size=(7,1), stride=1, padding=(3,0)), BasicConv2d(192, 224, kernel_size=(1,7), stride=1, padding=(0,3)), BasicConv2d(224, 224, kernel_size=(7,1), stride=1, padding=(3,0)), BasicConv2d(224, 256, kernel_size=(1,7), stride=1, padding=(0,3)) ) self.block3 = nn.Sequential( nn.AvgPool2d(3, stride=1, padding=1, count_include_pad=False), BasicConv2d(1024, 128, kernel_size=1, stride=1) ) def forward(self, x): x0 = self.block0(x) x1 = self.block1(x) x2 = self.block2(x) x3 = self.block3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class Reduction_B(nn.Module): def __init__(self): super(Reduction_B, self).__init__() self.block0 = nn.Sequential( BasicConv2d(1024, 192, kernel_size=1, stride=1), BasicConv2d(192, 192, kernel_size=3, stride=2) ) self.block1 = nn.Sequential( BasicConv2d(1024, 256, kernel_size=1, stride=1), BasicConv2d(256, 256, kernel_size=(1,7), stride=1, padding=(0,3)), BasicConv2d(256, 320, kernel_size=(7,1), stride=1, padding=(3,0)), BasicConv2d(320, 320, kernel_size=3, stride=2) ) self.block2 = nn.MaxPool2d(3, stride=2) def forward(self, x): x0 = self.block0(x) x1 = self.block1(x) x2 = self.block2(x) out = torch.cat((x0, x1, x2), 1) return out class Inception_C(nn.Module): def __init__(self): super(Inception_C, self).__init__() self.block0 = BasicConv2d(1536, 256, kernel_size=1, stride=1) self.block1_0 = BasicConv2d(1536, 384, kernel_size=1, stride=1) self.block1_1a = BasicConv2d(384, 256, kernel_size=(1,3), stride=1, padding=(0,1)) self.block1_1b = BasicConv2d(384, 256, kernel_size=(3,1), stride=1, padding=(1,0)) self.block2_0 = BasicConv2d(1536, 384, kernel_size=1, stride=1) self.block2_1 = BasicConv2d(384, 448, kernel_size=(3,1), stride=1, padding=(1,0)) self.block2_2 = BasicConv2d(448, 512, kernel_size=(1,3), stride=1, padding=(0,1)) self.block2_3a = BasicConv2d(512, 256, kernel_size=(1,3), stride=1, padding=(0,1)) self.block2_3b = BasicConv2d(512, 256, kernel_size=(3,1), stride=1, padding=(1,0)) self.block3 = nn.Sequential( nn.AvgPool2d(3, stride=1, padding=1, count_include_pad=False), BasicConv2d(1536, 256, kernel_size=1, stride=1) ) def forward(self, x): x0 = self.block0(x) x1_0 = self.block1_0(x) x1_1a = self.block1_1a(x1_0) x1_1b = self.block1_1b(x1_0) x1 = torch.cat((x1_1a, x1_1b), 1) x2_0 = self.block2_0(x) x2_1 = self.block2_1(x2_0) x2_2 = self.block2_2(x2_1) x2_3a = self.block2_3a(x2_2) x2_3b = self.block2_3b(x2_2) x2 = torch.cat((x2_3a, x2_3b), 1) x3 = self.block3(x) out = torch.cat((x0, x1, x2, x3), 1) return out class InceptionV4(nn.Module): def __init__(self, num_classes=1001): super(InceptionV4, self).__init__() self.features = nn.Sequential( BasicConv2d(3, 32, kernel_size=3, stride=2), BasicConv2d(32, 32, kernel_size=3, stride=1), BasicConv2d(32, 64, kernel_size=3, stride=1, padding=1), Mixed_3a(), Mixed_4a(), Mixed_5a(), Inception_A(), Inception_A(), Inception_A(), Inception_A(), Reduction_A(), # Mixed_6a Inception_B(), Inception_B(), Inception_B(), Inception_B(), Inception_B(), Inception_B(), Inception_B(), Reduction_B(), # Mixed_7a Inception_C(), Inception_C(), Inception_C(), nn.AvgPool2d(8, 1, 3, count_include_pad=False) ) self.classif = nn.Linear(1536, num_classes) self.fc_bn = nn.BatchNorm1d(num_classes) def forward(self, x): x = self.features(x) x = x.view(x.size(0), -1) x = self.classif(x) x = self.fc_bn(x) # x = F.normalize(x, 2, 1) return x def inceptionv4(): r"""InceptionV4 model architecture from the `"Inception-v4, Inception-ResNet..." <https://arxiv.org/abs/1602.07261>`_ paper. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet """ model = InceptionV4(512) return model
[ "noreply@github.com" ]
Kulikovpavel.noreply@github.com
423e56b566e3b60abab5e63e209b832e13ca062e
3911b47b7aee41d281b68ef0ce69295d37bdd3cc
/py_test/manage.py
01d03b6742ac771c0d9a589f43778bfefc7df88f
[]
no_license
ptera-py/hello-world
42a1e64247b3d1b2e1642f643fe1a1caa0a4c749
29b73c229a7ba506de8f9c4494e716af61f92eb1
refs/heads/master
2021-01-21T14:24:21.928176
2017-06-25T10:33:12
2017-06-25T10:33:12
95,277,424
0
0
null
2017-06-25T10:33:13
2017-06-24T05:18:36
Python
UTF-8
Python
false
false
827
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "py_test.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other # exceptions on Python 2. try: import django except ImportError: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) raise execute_from_command_line(sys.argv)
[ "noreply@github.com" ]
ptera-py.noreply@github.com
0506394ed1c9c7b18d7070a7674ac49052ac815d
0ca9a1a205e103effbadc5b9b115af941e0d4bda
/app/models/__init__.py
daa76339b7fe1bb7ccbff9d7733dcdd6f12167f1
[]
no_license
tonyjhang/assignment
a75c3de82ea766789730492324d1a406c0e48661
2071761155b498905b6c24f0dcc00cf420c86a0d
refs/heads/master
2023-06-16T10:53:49.750864
2021-07-17T21:22:52
2021-07-17T21:22:52
386,336,591
0
1
null
null
null
null
UTF-8
Python
false
false
18
py
__all__ = ['Task']
[ "tony40815@gmail.com" ]
tony40815@gmail.com
6460068358f2fcacd4218fdf5566cc3b6e6cfab5
e151b609b1c025ba44f76cee8b9fca77897874ae
/env/bin/chardetect
819e16a0dbff69b885fcfc91736337965edfc31b
[ "MIT" ]
permissive
febycloud/wagtail_project_demo
3443e60c7c5a5d5f310aab8d94657100ef0dfd94
0a72f112133423b08c1a149d527f3366cfad198f
refs/heads/main
2023-06-01T07:27:15.335185
2021-06-03T20:17:23
2021-06-03T20:17:23
372,946,148
1
0
null
null
null
null
UTF-8
Python
false
false
247
#!/Users/yunfei/Codes/mysite/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "fei.yun.unhi@gmail.com" ]
fei.yun.unhi@gmail.com
2fa3f47590e6019234b83592cd34fe159dea3314
34ef54c04b369a6161c6f8a649868a47122a2d89
/.venv/Lib/site-packages/pip/__init__.py
9a8c59275a79c04d45305c4565c9ce5d2d656726
[ "MIT" ]
permissive
abner-lucas/tp-cruzi-db
f70ad269c50a2db24debd1455daeddaa2ebd3923
595c5c46794ae08a1f19716636eac7430cededa1
refs/heads/bioinformatica
2023-05-18T23:23:23.458394
2021-06-14T02:13:17
2021-06-14T02:13:17
351,864,250
2
2
MIT
2021-06-13T19:52:18
2021-03-26T17:40:20
Python
UTF-8
Python
false
false
366
py
from typing import List, Optional __version__ = "21.1" def main(args=None): # type: (Optional[List[str]]) -> int """This is an internal API only meant for use by pip's own console scripts. For additional details, see https://github.com/pypa/pip/issues/7498. """ from pip._internal.utils.entrypoints import _wrapper return _wrapper(args)
[ "abnerlucas.cad@gmail.com" ]
abnerlucas.cad@gmail.com
af604625a32d907fa6f79662e4bb0ff6143c0a53
f0c973f32b37904b2aaa5ce552213667b8ab93b3
/dao/weddingDao.py
b66fe188acbad91a3b978f10dc8dcfb42b7c7765
[]
no_license
cmaiser/wedding
e4ab02c5b6c5b4d5a7281d955a0cbb3468c061d4
ad06d0c57e979145b9333816ace407c7e258203d
refs/heads/master
2021-01-11T20:39:46.023455
2017-02-23T02:29:20
2017-02-23T02:29:20
79,162,038
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
def getHouseholds(app, db): return "weddingDao.getHouseholds" def saveHousehold(app): return "weddingDao.SaveHousehold"
[ "nnagflar@gmail.com" ]
nnagflar@gmail.com
820ad80f50e7e860221d488214a0da709630f7d8
55b6f44ed6c2ebee2e1b2df74b858dcc0b8ef829
/Test2.py
77b81783c863f895484029a1748f5b486f168999
[]
no_license
EmilPBInv/Vell-Assistant
519e8abc7d6a99ba3453112df83b98915c8ff304
954d37378404f2429e75b8e89c6134ff712eb36b
refs/heads/master
2021-01-19T10:26:56.950348
2017-04-11T19:42:08
2017-04-11T19:42:08
87,868,586
0
0
null
2017-04-11T00:00:26
2017-04-11T00:00:26
null
UTF-8
Python
false
false
646
py
import random print ("Hi, My name is Vell, I'm your Virtual Assistent") print ("I'll be asking you some questions, let's begin with the Test!") name = raw_input("So, Tell me your name:") if name <= str(5): print ("Now I know that your name is " + name + ", You know? You have a short name") elif name >= str(5): print ("Now I know that your name is " + name + ", You know? You have a large name") age = raw_input("How old are you?") if age <= str(18): print ("You don't look like you're " + age + ", Psst... I'm older than you!") else: print ("You don't look like you're " + age + ", Psst... You're older than me!")
[ "noreply@github.com" ]
EmilPBInv.noreply@github.com
4b66556b19b45a618e58f7c6a908aa03089b514d
939d8b5764a671b435fcec3e607c230b6bc2bf61
/netrino/version.py
304945faf25c921f6b46894b3c526bb1584cfc8a
[ "BSD-3-Clause" ]
permissive
Vuader/netrino_ui
129026d448be2475454e244cb96fcc11fd5e3703
8037781ad10439deb6f4ea361a4c8a99b942a3d8
refs/heads/master
2021-01-22T22:35:21.224468
2017-03-17T16:11:53
2017-03-17T16:11:53
85,557,335
0
0
null
2017-03-20T09:21:28
2017-03-20T09:21:27
null
UTF-8
Python
false
false
87
py
# Do not edit this file,pipeline versioning is governed by git tags __version__='0.0.0'
[ "dave@myria.co.za" ]
dave@myria.co.za
16099667053a6a7b0853e7937c52aaf5296651fc
2b3cfeab7137cbd3692f149c9f2bba91e85980e7
/day13/run.py
75d61637559bf8e36e90d34cfdc215ee58c5f17a
[]
no_license
andreypopp/aoc2019
b87eef49a9fe295e8dd294ff7805dfbfcb75ace2
9416cbd4625d8e4367651154cbc141461ef6339f
refs/heads/master
2020-09-28T17:26:04.258558
2019-12-15T08:28:20
2019-12-15T08:28:39
226,824,293
1
0
null
null
null
null
UTF-8
Python
false
false
5,254
py
# encoding: utf-8 import collections class Out(object): def __init__(self, v): self.v = v class Inp(object): def __init__(self): pass class Stop(object): def __init__(self): pass mode_name = {1: 'imm', 0: 'pos', 2: 'rel'} def intcode(code, trace=False): if trace: print('-----------') idx = 0 base = 0 while True: if trace: print('--- IDX %i ---' % idx) instr = code[idx] mode3 = instr / 10000 mode2 = instr / 1000 - mode3 * 10 mode1 = instr / 100 - mode3 * 100 - mode2 * 10 modes = [mode1, mode2, mode3] opcode = instr - mode1 * 100 - mode2 * 1000 - mode3 * 10000 def get(n): mode = modes[n - 1] if mode == 0: v = code[code[idx + n]] elif mode == 1: v = code[idx + n] elif mode == 2: v = code[base + code[idx + n]] else: raise Exception("invalid mode", mode) if trace: print(' GET(%s) %i = %i' % (mode_name[mode], idx + n, v)) return v def set(n, v): mode = modes[n - 1] if trace: print(' SET(%s) %i = %i' % (mode_name[mode], idx + n, v)) if mode == 0: code[code[idx + n]] = v elif mode == 1: code[idx + n] = v elif mode == 2: code[base + code[idx + n]] = v else: raise Exception("invalid mode", mode) if opcode == 99: if trace: print('EXIT') yield Stop() elif opcode == 1: a = get(1) b = get(2) c = a + b if trace: print("%i + %i = %i" % (a, b, c)) set(3, c) idx = idx + 4 elif opcode == 2: a = get(1) b = get(2) c = a * b if trace: print("%i * %i = %i" % (a, b, c)) set(3, c) idx = idx + 4 elif opcode == 3: v = yield Inp() if trace: print('INP %r' % v) set(1, v) idx = idx + 2 elif opcode == 4: v = get(1) if trace: print('OUT %r' % v) yield Out(v) idx = idx + 2 elif opcode == 5: a1 = get(1) a2 = get(2) if trace: print('JUMP-IF-TRUE %r' % (a1,)) # 369 is the condition which checks failure, which just say it never # happen! if idx == 369: print('NOT GONNA LOOSE!!!') idx = a2 continue if a1 != 0: v = a2 if trace: print('JUMP %i' % v) idx = v else: idx = idx + 3 elif opcode == 6: if trace: print('JUMP-IF-FALSE %r' % (get(1),)) if get(1) == 0: v = get(2) if trace: print('JUMP %i' % v) idx = v else: idx = idx + 3 elif opcode == 7: a1 = get(1) a2 = get(2) if trace: print('IF-LE %r < %r' % (a1, a2)) if a1 < a2: set(3, 1) else: set(3, 0) idx = idx + 4 elif opcode == 8: a1 = get(1) a2 = get(2) if trace: print('IF-EQ %r == %r' % (a1, a2)) if a1 == a2: set(3, 1) else: set(3, 0) idx = idx + 4 elif opcode == 9: a1 = get(1) if trace: print('SET-BASE %r' % a1) base = base + get(1) idx = idx + 2 else: raise Exception("invalid instruction", opcode) def init(prg, trace=False): mem = collections.defaultdict(lambda: 0, enumerate(prg)) return intcode(mem, trace=trace) def run(state): v = next(state) map = {} while True: if isinstance(v, Stop): break elif isinstance(v, Out): x = v.v v = next(state) y = v.v v = next(state) t = v.v if (x, y) == (-1, 0): print 'SCORE: ', t else: assert y >= 0, y assert x >= 0, x tt = tiles.get(t) assert tt, tt map[(x, y)] = tt v = next(state) elif isinstance(v, Inp): draw(map) inp = 0 v = state.send(inp) else: raise Exception("Unknown state %r" % v) tiles = { 0: ' ', 1: '▒', 2: '▓', 3: '▂', 4: 'o', } def draw(map): for y in range(0, 24): line = [] for x in range(0, 42): t = map.get((x, y), ' ') line.append(t) print(''.join(line)) from input import prg from pprint import pprint prg = prg[:] prg[0] = 2 run(init(prg))
[ "8mayday@gmail.com" ]
8mayday@gmail.com
c47b1fb491e2f73f14b8fa691f35bef8bee9fb72
819f64c5e11ad2e5f061450e1a961de914c59382
/library_backend/library_backend/wsgi.py
798adf786308fa74fd67b43b841da3a876945220
[]
no_license
MaticBernik/SP_Webapp
7804888328302086fb4a53752aa523c36ca63269
155e7d0911c48bd8c48aa46eafecdf3b83fcc6cf
refs/heads/master
2021-01-12T17:26:37.800530
2017-01-20T14:43:56
2017-01-20T14:43:56
71,570,868
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
""" WSGI config for library_backend project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "library_backend.settings") application = get_wsgi_application()
[ "mb2551@student.uni-lj.si" ]
mb2551@student.uni-lj.si
e6d8f979f7f866f621fee950c6d3549e49215c1f
58373aa1768d3632f0bdc9c9d6eb1eeac0d76369
/yamtbx/dataproc/XIO/oxford2adsc.py
e785b61350972638b066509e60e92ec94faac81e
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
keitaroyam/yamtbx
ee3c6e694f3c81277dfaebf7253b159e1f14b413
11b27aaff4920f554b4db76e80d0d832cd23809c
refs/heads/master
2023-07-26T03:42:05.971228
2023-07-12T21:00:51
2023-07-12T21:00:51
46,595,277
18
11
null
null
null
null
UTF-8
Python
false
false
1,628
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import sys import struct #sys.path.append("/Users/plegrand/work/xdsme/XIO") from . import XIO header_fmt = """{ HEADER_BYTES= 1024; BEAM_CENTER_X=%(beamx).3f; BEAM_CENTER_Y=%(beamy).3f; BIN=2x2; BYTE_ORDER=little_endian; DATE=%(date)s; DETECTOR_SN=D2; DIM=2; DISTANCE=%(distance).3f; Data_type=unsigned short int; KAPPA=0; OMEGA=0.0000; OSC_AXIS=PHI; OSC_RANGE=%(osc_range).4f; OSC_START=%(osc_start).4f; PHI=0.0000; PIXEL_SIZE=%(pixelx).6f; TIME=0.5; TWOTHETA=0; TYPE=unsigned_short; WAVELENGTH=0.732; CREV=1; CCD=TH7899; ADC=slow; SIZE1=%(height)d; SIZE2=%(width)d; CCD_IMAGE_SATURATION=65535; } """ def _export(filename, format): try: datacoll = XIO.Collect(filename) datacoll.interpretImage() #datacoll.lookup_imageRanges() except XIO.XIOError: print("\nError while trying to acceess %s.\nSorry." % filename) sys.exit() return datacoll.export(format) #print datacoll.export_template(format) for oxf in sys.argv[1:]: datacoll = XIO.Collect(oxf) datacoll.interpretImage() header = header_fmt % datacoll.export("diffdump") datacoll.nDigits = 4 datacoll.setTemplates() num = datacoll.getNumber(oxf) new_name = datacoll.pythonTemplate % num print("%s --> %s" % (oxf, new_name)) new = open(new_name,"w") data = datacoll.image.getData(clipping=True) #new.write("%-1024s" % header) new.write(struct.pack("<"+len(data)*"H", *data)) new.close()
[ "keitaroyam@users.noreply.github.com" ]
keitaroyam@users.noreply.github.com
befbb425b84a226c38628b952e273897cc8deb0e
37887a008c984151a7e4d9bd8e50a204a2f71713
/log-beautifier.py
a376bc7d8df3db0665c7f7415e6f675da6b33e07
[]
no_license
c0derMo/clash-team-analyzer
4e4a09be56e3abb5e73a2494f0e13fa3808632b7
c9fea1740f786f6e3c2b21aa1808b028a5110097
refs/heads/master
2021-09-06T20:50:51.169139
2021-08-08T18:05:56
2021-08-08T18:05:56
226,484,052
2
1
null
2021-06-11T17:57:56
2019-12-07T09:08:41
CSS
UTF-8
Python
false
false
732
py
fn = input("Please enter the log path:") f = open(fn, "r") foutput = open(fn + "-beautified", "w") for line in f.readlines(): # Remove all PIP Outputs if not "Requirement" in line: if not "pip" in line: # Remove socket-io posts & gets if not "socket.io" in line: # Remove favicon requests if not "favicon.ico" in line: # Remove logo requests if not "clash.png" in line: # Remove assets requests if not "assets" in line: # Line is fine, we can write it. foutput.write(line) f.close() foutput.close() print("Done!")
[ "c0dermo@curryato.de" ]
c0dermo@curryato.de
3568275339e84528947291319d1b210cad04a5bc
416b8852908cd9b4a7b1935679ad042eacde4637
/generate_tfrecord.py
4ed9cdd31469d73f72b6fdb91ba3e825e03100c5
[]
no_license
sergemr/invoice-dataset
fad4730359f914d8e5fdab50407e079073ed822a
4e1017fbec93fd611a69c63ca1b132983cae786d
refs/heads/master
2023-03-15T09:50:41.315693
2019-07-24T07:09:35
2019-07-24T07:09:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,498
py
""" Usage: # From tensorflow/models/ # Create train data: python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record # Create test data: python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record """ from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import io import pandas as pd import tensorflow as tf from PIL import Image from object_detection.utils import dataset_util from collections import namedtuple, OrderedDict flags = tf.app.flags flags.DEFINE_string('csv_input', '', 'data/invoice_labels_train.csv') flags.DEFINE_string('output_path', '', 'data/train.record') flags.DEFINE_string('image_dir', '', 'images/train') FLAGS = flags.FLAGS # TO-DO replace this with label map def class_text_to_int(row_label): if row_label == 'paragraph': return 1 elif row_label == 'table': return 2 else: None def split(df, group): data = namedtuple('data', ['filename', 'object']) gb = df.groupby(group) return [data(filename, gb.get_group(x)) for filename, x in zip(gb.groups.keys(), gb.groups)] def create_tf_example(group, path): with tf.gfile.GFile(os.path.join(path, '{}'.format(group.filename)), 'rb') as fid: encoded_jpg = fid.read() encoded_jpg_io = io.BytesIO(encoded_jpg) image = Image.open(encoded_jpg_io) width, height = image.size filename = group.filename.encode('utf8') image_format = b'jpg' xmins = [] xmaxs = [] ymins = [] ymaxs = [] classes_text = [] classes = [] for index, row in group.object.iterrows(): #print("index " +str(index) + " " "row"+str(row)) xmins.append(row['xmin'] / width) xmaxs.append(row['xmax'] / width) ymins.append(row['ymin'] / height) ymaxs.append(row['ymax'] / height) classes_text.append(row['class'].encode('utf8')) classes.append(class_text_to_int(row['class'])) tf_example = tf.train.Example(features=tf.train.Features(feature={ 'image/height': dataset_util.int64_feature(height), 'image/width': dataset_util.int64_feature(width), 'image/filename': dataset_util.bytes_feature(filename), 'image/source_id': dataset_util.bytes_feature(filename), 'image/encoded': dataset_util.bytes_feature(encoded_jpg), 'image/format': dataset_util.bytes_feature(image_format), 'image/object/bbox/xmin': dataset_util.float_list_feature(xmins), 'image/object/bbox/xmax': dataset_util.float_list_feature(xmaxs), 'image/object/bbox/zl': dataset_util.float_list_feature(ymins), 'image/object/bbox/ymax': dataset_util.float_list_feature(ymaxs), 'image/object/class/text': dataset_util.bytes_list_feature(classes_text), 'image/object/class/label': dataset_util.int64_list_feature(classes), })) return tf_example def main(_): writer = tf.python_io.TFRecordWriter(FLAGS.output_path) path = os.path.join(FLAGS.image_dir) examples = pd.read_csv(FLAGS.csv_input) grouped = split(examples, 'filename') for group in grouped: tf_example = create_tf_example(group, path) writer.write(tf_example.SerializeToString()) writer.close() output_path = os.path.join(os.getcwd(), FLAGS.output_path) print('Successfully created the TFRecords: {}'.format(output_path)) if __name__ == '__main__': tf.app.run()
[ "noreply@github.com" ]
sergemr.noreply@github.com
1786d2c386b3691f0df255671fc444bfd1ae19a7
3997edb73ae75d70705e9adf1133254bb02a7460
/q36.py
96c23594efdee15ba61491f055055d6382ffe0ff
[]
no_license
raghavkishan/Bio-informatics---python
ad32ad78bfb29462be4c7d9527a4cf154f43ce3a
1c709caabf7250247362ca6b22fe7e6430e4ba37
refs/heads/master
2021-01-13T16:34:25.508809
2017-01-16T23:43:20
2017-01-16T23:43:20
79,165,988
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
from Bio import Phylo #f = open("test1.txt","r") Phylo.convert('test1.txt', 'txt', 'a36.nhx', 'newick')
[ "raghav.kishan@gmail.com" ]
raghav.kishan@gmail.com
9cf7356e60e5df3b6de7c2c5f5a8c773a114fc3e
941b98ad52ee233897b21037c1121bf159a9364a
/doc/conf.py
d116ceb0c64f83316843c3f71b8d6e3d884bf723
[ "MIT" ]
permissive
AlekseiCherkes/python-xmlunittest
176c787a8ddd233e1c408a77392ff2228bc4622d
bd8ee70feb9846bbfafc2e06bb397fd3a36c5b83
refs/heads/master
2021-01-12T21:04:23.239947
2014-03-04T16:20:38
2014-03-04T16:20:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,860
py
# -*- coding: utf-8 -*- # # Python XML Unittest documentation build configuration file, created by # sphinx-quickstart on Wed Oct 16 21:42:39 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'Python XML Unittest' copyright = u'2013, Florian Strzelecki' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '0.1' # The full version, including alpha/beta/rc tags. release = '0.1-dev' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a <link> tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'PythonXMLUnittestdoc' # -- Options for LaTeX output -------------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', # Additional stuff for the LaTeX preamble. #'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'PythonXMLUnittest.tex', u'Python XML Unittest Documentation', u'Florian Strzelecki', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'pythonxmlunittest', u'Python XML Unittest Documentation', [u'Florian Strzelecki'], 1) ] # If true, show URL addresses after external links. #man_show_urls = False # -- Options for Texinfo output ------------------------------------------------ # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'PythonXMLUnittest', u'Python XML Unittest Documentation', u'Florian Strzelecki', 'PythonXMLUnittest', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. #texinfo_appendices = [] # If false, no module index is generated. #texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote'
[ "florian.strzelecki@gmail.com" ]
florian.strzelecki@gmail.com
a7644d0abc8abd49bc61ca9bc63fc47c63e7c36d
ec181b840d3462eb43de5682adde38fa3c0ab570
/towhee/compiler/log.py
6950a3646110f68fb258227ce966a0e93b6f21df
[ "Apache-2.0" ]
permissive
towhee-io/towhee-compiler
37fc26ec87fc20710d2e1b653b2d83fad0dfc63f
e9a724169ae96d3ae73db732ae3d8b4e9e3f9b5c
refs/heads/main
2023-05-23T07:59:11.217347
2022-09-13T11:32:23
2022-09-13T11:32:23
514,104,716
6
6
Apache-2.0
2022-09-13T11:32:24
2022-07-15T02:10:13
Python
UTF-8
Python
false
false
820
py
import logging import logging.config logging.config.dictConfig( dict( version=1, formatters={ "info": { "format": "%(asctime)s|%(levelname)s|%(module)s:%(lineno)s| %(message)s" }, }, loggers={ "": dict(level="NOTSET", handlers=["console"]), }, handlers={ "console": { "level": "INFO", "formatter": "info", "class": "logging.StreamHandler", "stream": "ext://sys.stdout", }, }, ) ) def set_log_level(level): if isinstance(level, str): level = getattr(logging, level.upper()) for h in logging.getLogger().handlers: h.setLevel(level) def get_logger(name): return logging.getLogger(name)
[ "shiyu.chen@zilliz.com" ]
shiyu.chen@zilliz.com
7ecd4589f801595ec4745947cf55b1548413e189
33836016ea99776d31f7ad8f2140c39f7b43b5fe
/fip_collab/2016_03_23_check_fip_predict/get_pred_plt7.py
26ea8f6ffa8685c250850a2f96ddcfc189c47aa2
[]
no_license
earthexploration/MKS-Experimentation
92a2aea83e041bfe741048d662d28ff593077551
9b9ff3b468767b235e7c4884b0ed56c127328a5f
refs/heads/master
2023-03-17T23:11:11.313693
2017-04-24T19:24:35
2017-04-24T19:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,763
py
import numpy as np from numpy import linalg as LA import h5py import functions as rr import euler_func as ef import matplotlib.pyplot as plt def field_std(el, ns, SET1, SET2, SET3, slc, typecomp, plotnum): """Plot slices of the response""" plt.figure(num=plotnum, figsize=[12, 2.7]) dmin = np.min([SET1[slc, :, :], SET2[slc, :, :]]) dmax = np.max([SET1[slc, :, :], SET2[slc, :, :]]) plt.subplot(131) ax = plt.imshow(SET1[slc, :, :], origin='lower', interpolation='none', cmap='magma', vmin=dmin, vmax=dmax) plt.colorbar(ax) plt.title('spectral method, %s, slice %s' % (typecomp, slc)) plt.subplot(132) ax = plt.imshow(SET2[slc, :, :], origin='lower', interpolation='none', cmap='magma', vmin=dmin, vmax=dmax) plt.colorbar(ax) plt.title('single point CP, %s, slice %s' % (typecomp, slc)) plt.subplot(133) ax = plt.imshow(SET3[slc, :, :], origin='lower', interpolation='none', cmap='viridis') plt.colorbar(ax) plt.title('CPFEM, %s, slice %s' % (typecomp, slc)) def field_euler(slc, euler, plotnum): """Plot slices of the response""" plt.figure(num=plotnum, figsize=[4, 2.7]) plt.imshow(euler[slc, :, :, 0], origin='lower', interpolation='none', cmap='magma') plt.title("Grain Structure") def bunge2g(euler): # this has been cross-checked # only works for radians phi1 = euler[0] Phi = euler[1] phi2 = euler[2] g = np.zeros([3, 3]) g[0, 0] = np.cos(phi1)*np.cos(phi2) - \ np.sin(phi1)*np.sin(phi2)*np.cos(Phi) g[0, 1] = np.sin(phi1)*np.cos(phi2) + \ np.cos(phi1)*np.sin(phi2)*np.cos(Phi) g[0, 2] = np.sin(phi2)*np.sin(Phi) g[1, 0] = -np.cos(phi1)*np.sin(phi2) - \ np.sin(phi1)*np.cos(phi2)*np.cos(Phi) g[1, 1] = -np.sin(phi1)*np.sin(phi2) + \ np.cos(phi1)*np.cos(phi2)*np.cos(Phi) g[1, 2] = np.cos(phi2)*np.sin(Phi) g[2, 0] = np.sin(phi1)*np.sin(Phi) g[2, 1] = -np.cos(phi1)*np.sin(Phi) g[2, 2] = np.cos(Phi) return g def g2bunge(g): if np.abs(np.abs(g[2, 2]) - 1) < 1E-8: print "gimble lock warning" Phi = 0 phi1 = np.arctan2(g[0, 1], g[0, 0])/2 phi2 = phi1 else: Phi = np.arccos(g[2, 2]) phi1 = np.arctan2(g[2, 0]/np.sin(Phi), -g[2, 1]/np.sin(Phi)) phi2 = np.arctan2(g[0, 2]/np.sin(Phi), g[1, 2]/np.sin(Phi)) return np.array([phi1, Phi, phi2]) def tensnorm(mat): return np.sqrt(np.sum(mat**2)) def tens2mat(vec): mat = np.zeros((3, 3)) mat[0, 0] = vec[0] mat[1, 1] = vec[1] mat[2, 2] = vec[2] mat[0, 1] = vec[3] mat[1, 0] = vec[3] mat[0, 2] = vec[4] mat[2, 0] = vec[4] mat[1, 2] = vec[5] mat[2, 1] = vec[5] return mat def theta2eig(x): et_ii = np.array([np.sqrt(2./3.)*np.cos(x-(np.pi/3.)), np.sqrt(2./3.)*np.cos(x+(np.pi/3.)), -np.sqrt(2./3.)*np.cos(x)]) return et_ii def return2fz(euler): g = bunge2g(euler) symhex = ef.symhex() for ii in xrange(symhex.shape[0]): g_symm = np.dot(symhex[ii, ...], g) euler_ = g2bunge(g_symm) euler_ += 2*np.pi*np.array(euler_ < 0) if np.all(euler_ < np.array([2*np.pi, np.pi/2, np.pi/3])): break return euler_ def get_sp_answer(el): # open file containing Matthew's data filename = 'Results_tensor_%s.hdf5' % str(0).zfill(2) f = h5py.File(filename, 'r') resp = np.zeros((el**3)) for ii in xrange(el**3): test_id = 'sim%s' % str(ii+1).zfill(7) dset = f.get(test_id) """ Column order in each dataset: time,... sig11,sig22,sig33,sig12,sig13,sig23... e11,e22,e33,e12,e13,e23 ep11,ep22,ep33,ep12,ep13,ep23, fip,gamdot,signorm """ tmp = dset[-1, 13:19] tmp = tens2mat(tmp) var = tensnorm(tmp) resp[ii] = var return resp def get_pred(el, etv, epv, euler): et = tens2mat(etv) ep = tens2mat(epv) """find the deviatoric strain tensor""" hydro = (et[0, 0]+et[1, 1]+et[2, 2])/3. et_dev = et - hydro*np.identity(3) """find the norm of the tensors""" en = tensnorm(et_dev) CPFEM = tensnorm(ep) """normalize the deviatoric strain tensor""" et_n = et_dev/en """find the principal values of the normalized tensor""" eigval_, g_p2s_ = LA.eigh(et_n) # esort = np.argsort(eigval)[::-1] esort = np.argsort(np.abs(eigval_))[::-1] eigval = eigval_[esort] g_p2s = g_p2s_[:, esort] """check for improper rotations""" if np.isclose(np.linalg.det(g_p2s), -1.0): # print "warning: improper rotation" g_p2s[:, 2] = -1*g_p2s[:, 2] """find the deformation mode""" theta = np.arccos(-np.sqrt(3./2.)*np.min(eigval_)) # theta = np.arctan2(-2*eigval[0]-eigval[2], np.sqrt(3)*eigval[2]) if theta < 0: theta += np.pi """find g_p2c = g_p2s*g_s2c""" g_s2c = bunge2g(euler) g_p2c = np.dot(g_s2c, g_p2s) if np.isclose(np.linalg.det(g_p2c), -1.0): print "warning: g_p2c is improper" phi1, phi, phi2 = g2bunge(g_p2c) euler_p2c = np.array([phi1, phi, phi2]) euler_p2c += 2*np.pi*np.array(euler_p2c < 0) """try to recover et_dev from theta and euler_p2c""" g_p2c_ = bunge2g(euler_p2c) # if np.all(g_p2c != g_p2c_): # print "g_p2c_ != g_p2c" princ_vals = theta2eig(theta) et_n_P = np.zeros((3, 3)) et_n_P[0, 0] = princ_vals[0] et_n_P[1, 1] = princ_vals[1] et_n_P[2, 2] = princ_vals[2] et_n_C = np.dot(np.dot(g_p2c_, et_n_P), g_p2c_.T) g_c2s = g_s2c.T et_n_S = np.dot(np.dot(g_c2s, et_n_C), g_c2s.T) et_dev_ = et_n_S * en if not np.all(np.isclose(et_dev_, et_dev)): print "et_dev_ != et_dev" X = np.vstack([phi1, phi, phi2]).T return CPFEM, theta, X, en, eigval if __name__ == '__main__': sn = 2 el = 21 ns = 100 set_id = 'val' step = 1 compl = ['11', '22', '33', '12', '13', '23'] f = h5py.File("ref_%s%s_s%s.hdf5" % (ns, set_id, step), 'r') print f.get('euler').shape euler = f.get('euler')[sn, ...] np.save('euler.npy', euler) euler = euler.swapaxes(0, 1) etv = np.zeros((el**3, 6)) epv = np.zeros((el**3, 6)) for ii in xrange(6): comp = compl[ii] tmp = f.get('r%s_epsilon_t' % comp)[sn, ...] etv[:, ii] = tmp.reshape(el**3) tmp = f.get('r%s_epsilon_p' % comp)[sn, ...] epv[:, ii] = tmp.reshape(el**3) f.close() CPFEM_m = np.zeros(el**3) theta_m = np.zeros(el**3) X_m = np.zeros((el**3, 3)) en_m = np.zeros(el**3) eigval_m = np.zeros((el**3, 3)) for ii in xrange(el**3): if np.mod(ii, 100) == 0: print ii CPFEM, theta, X, en, eigval = get_pred(el, etv[ii, :], epv[ii, :], euler[ii, :]) CPFEM_m[ii] = CPFEM theta_m[ii] = theta X_m[ii, :] = X en_m[ii] = en eigval_m[ii, :] = eigval """write file for matthew""" # tempm = np.hstack([eigval_m*en_m[:, None], X_m]) # np.savetxt('et_file.txt', tempm) SPECTRAL_m = rr.eval_func(theta_m, X_m, en_m).real SPCP_m = get_sp_answer(el) SPECTRAL_m = SPECTRAL_m.reshape(el, el, el) SPCP_m = SPCP_m.reshape(el, el, el) CPFEM_m = CPFEM_m.reshape(el, el, el) maxindx = np.unravel_index(np.argmax(np.abs(CPFEM_m)), CPFEM_m.shape) slc = maxindx[0] field_std(el, ns, SPECTRAL_m, SPCP_m, CPFEM_m, slc, "$|\epsilon^{p}|$", 1) print 'shape of euler: %s' % str(euler.shape) field_euler(slc, euler.reshape((el, el, el, 3)), 2) plt.show()
[ "noahhpaulson@gmail.com" ]
noahhpaulson@gmail.com
d1dbfb5e80bd870872a98fb673742f1e6a065195
3aecba185bd71f62749533c2baf86d8c63dc0866
/Exams/Python/TravelBuddy/apps/travelbuddy/models.py
b3486125234fb4c4fbffbfa9d5384321d4b9bbb7
[]
no_license
anniemou/portfolio
ef7788ea346c26e353f31dc054a6fffbda7db4f9
31264460608802bf134ab0cadc74d15bc271afad
refs/heads/master
2020-03-21T04:40:04.009551
2018-06-21T05:19:29
2018-06-21T05:19:29
138,121,412
0
1
null
null
null
null
UTF-8
Python
false
false
842
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class User(models.Model): fullname = models.CharField(max_length=255) username = models.CharField(max_length=255) password = models.CharField(max_length=255) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) class Travel(models.Model): destination = models.CharField(max_length=255) description = models.CharField(max_length=255) datestart= models.DateField() dateend = models.DateField() creator = models.ForeignKey(User, related_name= "creator") join = models.ManyToManyField(User, related_name="partymembers") created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)
[ "annie@moumouri.me" ]
annie@moumouri.me
d91b4e8b7e75b2c1eeb23ba3d5a1a2627ad007fb
dbc9600d4c0fa9a8147a13bd669f1bc48876e4ed
/actualites/migrations/0001_initial.py
366be6b26759466551760dcc0452671034927891
[]
no_license
sarsenij/hearthstone-romandie
9895a01fdb0b7bc5cdc5e6678914a61e06625000
da828f1257e203065bb99ee7fb6d0dc30f09bb28
refs/heads/master
2020-06-03T12:13:12.702947
2015-07-18T16:56:13
2015-07-18T16:56:13
24,370,870
0
0
null
null
null
null
UTF-8
Python
false
false
959
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Horaire' db.create_table(u'actualites_horaire', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('content', self.gf('django.db.models.fields.TextField')()), )) db.send_create_signal(u'actualites', ['Horaire']) def backwards(self, orm): # Deleting model 'Horaire' db.delete_table(u'actualites_horaire') models = { u'actualites.horaire': { 'Meta': {'object_name': 'Horaire'}, 'content': ('django.db.models.fields.TextField', [], {}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) } } complete_apps = ['actualites']
[ "sarsenij@gmail.com" ]
sarsenij@gmail.com
d5a1dbfe5182cf6b185eb679e884c7bcc4cde127
001ebc62b17790a8ee060478dedcf21875d44c36
/Project 3: Collaboration and Competition/network.py
e5bf9259ea9c5de6f860c495d4be24a37bf8e38f
[]
no_license
AlekseySyryh/udacity_drl
b9556761e855c402ab66c16b1de4970e76424992
02f5c63e8b4f58c4cb35818ebb982812897c0dad
refs/heads/master
2021-03-09T17:34:55.503431
2020-03-10T17:31:32
2020-03-10T17:31:32
246,363,154
0
0
null
null
null
null
UTF-8
Python
false
false
2,591
py
import numpy as np import torch import torch.nn as nn class Actor(nn.Module): """Actor (Policy) Model.""" def __init__(self, state_size, action_size, seed, fc1_units=256, fc2_units=128): """Initialize parameters and build model. Params ====== state_size (int): Dimension of each state action_size (int): Dimension of each action seed (int): Random seed fc1_units (int): Number of nodes in first hidden layer fc2_units (int): Number of nodes in second hidden layer """ super(Actor, self).__init__() self.seed = torch.manual_seed(seed) self.fc1 = nn.Linear(state_size, fc1_units) limit1 = 1./np.sqrt(state_size*fc1_units) self.fc1.weight.data.uniform_(-limit1,limit1) self.fc2 = nn.Linear(fc1_units, fc2_units) limit2 = 1./np.sqrt(fc1_units*fc2_units) self.fc2.weight.data.uniform_(-limit2,limit2) self.fc3 = nn.Linear(fc2_units, action_size) self.fc3.weight.data.uniform_(-3e-3, 3e-3) def forward(self, state): """Build an actor (policy) network that maps states -> actions.""" x = torch.relu(self.fc1(state)) x = torch.relu(self.fc2(x)) return torch.tanh(self.fc3(x)) class Critic(nn.Module): """Critic (Value) Model.""" def __init__(self, state_size, action_size, seed, fc1_units=256, fc2_units=128): """Initialize parameters and build model. Params ====== state_size (int): Dimension of each state action_size (int): Dimension of each action seed (int): Random seed fc1_units (int): Number of nodes in the first hidden layer fc2_units (int): Number of nodes in the second hidden layer """ super(Critic, self).__init__() self.seed = torch.manual_seed(seed) self.fc1 = nn.Linear((state_size+action_size), fc1_units) limit1 = 1./np.sqrt((state_size+action_size)*fc1_units) self.fc1.weight.data.uniform_(-limit1,limit1) self.fc2 = nn.Linear(fc1_units, fc2_units) limit2 = 1./np.sqrt(fc1_units*fc2_units) self.fc2.weight.data.uniform_(-limit2,limit2) self.fc3 = nn.Linear(fc2_units, 1) self.fc3.weight.data.uniform_(-3e-3, 3e-3) def forward(self, state, action): """Build a critic (value) network that maps (state, action) pairs -> Q-values.""" x = torch.relu(self.fc1(torch.cat((state, action), dim=1))) x = torch.relu(self.fc2(x)) return self.fc3(x)
[ "asyryh@gmail.com" ]
asyryh@gmail.com
6e66048d22115d894ef1fd6644780866c5734623
4525a45c920fcf2bf2ce50091c7120c9e5789ca3
/devel/lib/python2.7/dist-packages/human_navigation/msg/__init__.py
5d6ec23c37ccafa1f6f167a887eb77ab472dc59e
[]
no_license
HilbertXu/Ultraman_Homework
36c07ec5d5ea62eba9d0c2b5737cbefacfbacb9d
e5f98f95057d7afe60ee13ce2ae8d7a5ee023b08
refs/heads/master
2020-03-21T01:58:31.272327
2018-07-03T07:32:40
2018-07-03T07:32:40
137,972,416
1
0
null
null
null
null
UTF-8
Python
false
false
172
py
from ._HumanNaviAvatarPose import * from ._HumanNaviGuidanceMsg import * from ._HumanNaviMsg import * from ._HumanNaviObjectInfo import * from ._HumanNaviTaskInfo import *
[ "hilbertxu@outlook.com" ]
hilbertxu@outlook.com
d0a101e12083e4ad0bc9e196cf340d5ccfd3a339
392824767b4ccb772a33a8f242f2d43a6ced0b80
/BIL103E - Intr. to Inf. Syst.&Comp. Eng./Course Files/OtherExamples/Bottle Forms/time7.py
0d1ce4a18fd936aa6029402762fe88040e3873f3
[]
no_license
yilmazmuhammed/ITU-CE-Courses
82ec520c3703c91c6eb98be2769a1418ac925b70
19f2db633e5fdf6f5ea0c3584a5432f6fb4adf36
refs/heads/master
2020-03-11T16:34:51.650985
2018-05-17T01:25:24
2018-05-17T01:25:24
130,121,033
7
0
null
null
null
null
UTF-8
Python
false
false
984
py
from bottle import route, run, request, static_file from datetime import datetime from pytz import timezone def htmlify(text,title): page = """ <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>%(title)s</title> </head> <body> %(text)s </body> </html> """ % {'text':text,'title':title} return page def css(fname): print("css called") toreturn = static_file(fname,root='/home/docean/tmp/css') print("returning:"+str(toreturn)) return toreturn route('/css/<fname>','GET',css) def home_page(): return static_file('homepage7.html',root='/home/docean/tmp/static') route('/','GET',home_page) def time_page(): zone_str = request.POST["zone"] zone = timezone(zone_str) curr_time = datetime.now(zone) return htmlify(str(curr_time),"Time in zone") route('/time','POST',time_page) run(debug=True)
[ "halil_yilmaz1997@hotmail.com" ]
halil_yilmaz1997@hotmail.com
cde8d095c9b5706e196daa89e8365a6fd0e987cd
fe85f6275011f35ed04475c0796bda490b6fcd1a
/authentication/migrations/0002_auto_20160127_1151.py
988d1c0826c4dd8790562f6d935ce1b36f52d1c6
[]
no_license
localboy/gemstore_djangular
c1e2e35e35071c5d37b1c5c7edbc9ce332a8a9b2
c82e3a0c7496067029bc39d507e00e7358537650
refs/heads/master
2016-08-09T22:55:23.955170
2016-01-28T10:57:55
2016-01-28T10:57:55
50,576,748
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-27 11:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authentication', '0001_initial'), ] operations = [ migrations.AlterField( model_name='account', name='is_admin', field=models.BooleanField(default=True), ), migrations.AlterField( model_name='account', name='username', field=models.CharField(blank=True, max_length=40, unique=True), ), ]
[ "jakir@skylark.com" ]
jakir@skylark.com
e6d992cead87ece7f7dc3da76c892a5f36126dd9
45a8cdeb78d26ab4a511681a168bb680673779a6
/DataStructuresPython/list/09_insertNodeInSortedList.py
b16a0b496af7c4f3e6a76f1155afa87cc613353f
[]
no_license
pymd/DataStructures
ca8c3cf1d704fc1a28f4f895e3724a5487763300
eef5522d34343489bbd5ab0763e4bad768383741
refs/heads/master
2021-05-14T00:38:47.510758
2019-05-13T18:57:33
2019-05-13T18:57:33
116,545,005
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
from listNode import Node class List: def __init__(self): self.head = None def getHead(self): return self.head def setHead(self, head): self.head = head def createNode(self, val): node = Node() node.setVal(val) node.setNext(None) return node def addNodeToSortedList(self, val): node = self.createNode(val) cur = self.head if cur is None: self.head = node return else: if cur.getVal() >= val: # Insert at head node.setNext(self.head) self.head = node return while cur != None: if cur.getVal() <= val: if cur.getNext() != None: if cur.getNext().getVal() >= val: break else: break cur = cur.getNext() next = cur.getNext() cur.setNext(node) node.setNext(next) def printList(self): cur = self.head while cur is not None: print cur.getVal(),'->', cur = cur.getNext() print 'NULL' if __name__ == '__main__': l = List() l.addNodeToSortedList(20) l.addNodeToSortedList(10) l.printList() l.addNodeToSortedList(50) l.addNodeToSortedList(40) l.printList() l.addNodeToSortedList(30) l.printList()
[ "piyush@qtos.in" ]
piyush@qtos.in
d3c28dee062084003308c7d1ff56722981d47789
2cd11d49f25b4d8a747fb949fc9622e6995df070
/Widen/LC702_Search_in_a_Sorted_Array_of_Unknown_Size.py
12ace8649e22a7b9aaa59b5209805d9ff54bd57f
[ "MIT" ]
permissive
crazywiden/Leetcode_daily_submit
4364b0976b1c5168f0626534533a61bb9a963f96
15637e260ab547022ac0c828dd196337bd8d50a3
refs/heads/master
2021-11-12T00:24:31.187581
2021-11-11T05:56:29
2021-11-11T05:56:29
211,709,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,310
py
""" LC702 Search in a Sorted Array of Unknown Size Given an integer array sorted in ascending order, write a function to search target in nums. If target exists, then return its index, otherwise return -1. However, the array size is unknown to you. You may only access the array using an ArrayReader interface, where ArrayReader.get(k) returns the element of the array at index k (0-indexed). You may assume all integers in the array are less than 10000, and if you access the array out of bounds, ArrayReader.get will return 2147483647. """ # Runtime: 36 ms, faster than 97.98% of Python3 online submissions for Search in a Sorted Array of Unknown Size. # Memory Usage: 13.8 MB, less than 100.00% of Python3 online submissions for Search in a Sorted Array of Unknown Size. class Solution: def search(self, reader, target): """ :type reader: ArrayReader :type target: int :rtype: int """ start, end = 0, 10000 while start < end: mid = (start + end) // 2 ele = reader.get(mid) if ele == 2147483647 or ele > target: end = mid elif ele == target: return mid elif ele < target: start = mid + 1 return -1
[ "yuangao719@gmail.com" ]
yuangao719@gmail.com
23aaed359da4ac1a3a1025579706ea170de0927c
7a361d96d303c0e45a86ce8dddbdf7951f6a8f46
/Exercicios mundo 1/ex045.py
9558966bcb43447fc19ab4347ddd41437ce2057c
[ "MIT" ]
permissive
prc3333/Exercicios--de-Phyton-
ebbce827bf01ed2faa15afe14f076ccf5c089cbf
a4b54af45f6bb3a89a205b570e1cf1164e505e29
refs/heads/main
2023-01-06T08:28:24.472999
2020-11-06T19:37:57
2020-11-06T19:37:57
310,687,605
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
from random import randint from time import sleep itens = ('Pedra', 'Papel', 'Tesoura') computador = randint(0, 2) print('''Suas opções: [0] PEDRA [1] PAPEL [2] TESOURA''') jogador = int(input('Qual é a sua jogada?')) print('JO') sleep(1) print('KEN') sleep(1) print('PO!!!') sleep(1) print('-=' * 11) print('Computador jogou {}'.format(itens[computador])) print('Jogador jogou {}'.format(itens[jogador])) print('-=' * 11) if computador == 0: # computador jogou pedra if jogador == 0: print('Empate') elif jogador == 1: print('Jogador Venceu!') elif jogador == 2: print('Computador venceu!') else: print('Jogada Inválida!!!') elif computador == 1: # computador jogou papael if jogador == 0: print('Computador venceu!') elif jogador == 1: print('Empate') elif jogador == 2: print('Jogador Venceu!') else: print('Jogada Inválida!!!') elif computador == 2: # computador jogou tesoura if jogador == 0: print('Jogador Venceu!') elif jogador == 1: print('Computador venceu!') elif jogador == 2: print('Empate') else: print('Jogada Inválida!!!')
[ "63015007+prc3333@users.noreply.github.com" ]
63015007+prc3333@users.noreply.github.com
3267ee1d0b8aa1a521306abf3a016c0315dc5358
3f2d85921f528f6a36f348e31512f3362a5c72c4
/tablero.py
8420150016d8fff460afe0334a4f974e7e494fb0
[]
no_license
feijooso/Reversi
3c18828fd37ad3374cc0852251ffb170829859ef
04b734ad19a2e7659e211a99370a56e2f1221683
refs/heads/master
2020-12-02T22:22:58.739098
2017-07-05T19:07:37
2017-07-05T19:07:37
96,125,697
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
def inicializar_tablero(): tablero = [] #Inicializamos el tablero vacio, representamos vacio con guiones for i in range(0, 10): tablero.append([]) for j in range(0, 10): tablero[i].append('-') #Ponemos numeros para las posiciones #Filas for j in range(0, 10): tablero[0][j] = j #Columnas for i in range(0, 10): tablero[i][0] = i #Asterisco para el resto de los bordes i = 9 for j in range(0, 10): tablero[i][j] = '*' j = 9 for i in range(0, 10): tablero[i][j] = '*' #Ponemos las fichas iniciales tablero[4][4]='X' tablero[5][4]='O' return tablero def mostrar_tablero(tablero): for row in tablero: print(*row) tablero=inicializar_tablero() mostrar_tablero(tablero)
[ "sofeijoo@gmail.com" ]
sofeijoo@gmail.com
74b11434d93de36248d3f4b98b619a0997f68cd0
cfad606e24e4f7fcc84d4ad62d905756bbe4610c
/util.py
bd3c9e48c40d0ff01f7dc465c79d2a65adeb858b
[]
no_license
titaristanto/object-detection-experiment
cf2815de7a6b45fddac1d916e28dd991195d6b27
a55b804a7c57eb4263a744de37befabb51b486af
refs/heads/master
2022-06-13T04:24:23.103257
2020-05-01T06:59:21
2020-05-01T06:59:21
258,911,292
0
0
null
null
null
null
UTF-8
Python
false
false
8,315
py
from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import cv2 def load_classes(namesfile): fp = open(namesfile, "r") names = fp.read().split("\n")[:-1] return names def prep_image(img, inp_dim): """ Prepare image for inputting to the neural network. Returns a Variable """ img = cv2.resize(img, (inp_dim, inp_dim)) img = img[:, :, ::-1].transpose((2, 0, 1)).copy() img = torch.from_numpy(img).float().div(255.0).unsqueeze(0) return img def predict_transform(prediction, inp_dim, anchors, num_classes, CUDA=True): batch_size = prediction.size(0) stride = inp_dim // prediction.size(2) grid_size = inp_dim // stride bbox_attrs = 5 + num_classes num_anchors = len(anchors) prediction = prediction.view(batch_size, bbox_attrs * num_anchors, grid_size * grid_size) prediction = prediction.transpose(1, 2).contiguous() prediction = prediction.view(batch_size, grid_size * grid_size * num_anchors, bbox_attrs) anchors = [(a[0] / stride, a[1] / stride) for a in anchors] # Sigmoid the centre_X, centre_Y. and object confidencce prediction[:, :, 0] = torch.sigmoid(prediction[:, :, 0]) # x prediction[:, :, 1] = torch.sigmoid(prediction[:, :, 1]) # y prediction[:, :, 4] = torch.sigmoid(prediction[:, :, 4]) # confidence # Center coordinate - Add the center offsets grid = np.arange(grid_size) a, b = np.meshgrid(grid, grid) x_offset = torch.FloatTensor(a).view(-1, 1) y_offset = torch.FloatTensor(b).view(-1, 1) if CUDA: x_offset = x_offset.cuda() y_offset = y_offset.cuda() x_y_offset = torch.cat((x_offset, y_offset), 1).repeat(1, num_anchors).view(-1, 2).unsqueeze(0) prediction[:, :, :2] += x_y_offset # Bounding box dimension - Log space transform height and the width (anchoring) anchors = torch.FloatTensor(anchors) if CUDA: anchors = anchors.cuda() anchors = anchors.repeat(grid_size * grid_size, 1).unsqueeze(0) prediction[:, :, 2:4] = torch.exp(prediction[:, :, 2:4]) * anchors # Class score prediction[:, :, 5: 5 + num_classes] = torch.sigmoid((prediction[:, :, 5: 5 + num_classes])) # Convert mapped variables to original image size prediction[:, :, :4] *= stride return prediction def unique(tensor): tensor_np = tensor.cpu().numpy() unique_np = np.unique(tensor_np) unique_tensor = torch.from_numpy(unique_np) tensor_res = tensor.new(unique_tensor.shape) tensor_res.copy_(unique_tensor) return tensor_res def bbox_iou(box1, box2): """ Returns the IoU of two bounding boxes """ # Get the coordinates of bounding boxes b1_x1, b1_y1, b1_x2, b1_y2 = box1[:, 0], box1[:, 1], box1[:, 2], box1[:, 3] b2_x1, b2_y1, b2_x2, b2_y2 = box2[:, 0], box2[:, 1], box2[:, 2], box2[:, 3] # get the corrdinates of the intersection rectangle inter_rect_x1 = torch.max(b1_x1, b2_x1) inter_rect_y1 = torch.max(b1_y1, b2_y1) inter_rect_x2 = torch.min(b1_x2, b2_x2) inter_rect_y2 = torch.min(b1_y2, b2_y2) # Intersection area inter_area = torch.clamp(inter_rect_x2 - inter_rect_x1 + 1, min=0) * torch.clamp(inter_rect_y2 - inter_rect_y1 + 1, min=0) # Union Area b1_area = (b1_x2 - b1_x1 + 1) * (b1_y2 - b1_y1 + 1) b2_area = (b2_x2 - b2_x1 + 1) * (b2_y2 - b2_y1 + 1) iou = inter_area / (b1_area + b2_area - inter_area) return iou def write_results(prediction, confidence, num_classes, nms_conf=0.4): conf_mask = (prediction[:, :, 4] > confidence).float().unsqueeze(2) prediction = prediction * conf_mask # NON-MAXIMUM SUPRESSION box_corner = prediction.new(prediction.shape) box_corner[:, :, 0] = (prediction[:, :, 0] - prediction[:, :, 2] / 2) # top left corner x (center - half width) box_corner[:, :, 1] = (prediction[:, :, 1] - prediction[:, :, 3] / 2) # top right corner y box_corner[:, :, 2] = (prediction[:, :, 0] + prediction[:, :, 2] / 2) # right bottom corner x box_corner[:, :, 3] = (prediction[:, :, 1] + prediction[:, :, 3] / 2) # right bottom corner y prediction[:, :, :4] = box_corner[:, :, :4] batch_size = prediction.size(0) write = False for ind in range(batch_size): image_pred = prediction[ind] # image Tensor # Of all num_classes, get only one that has max score max_conf, max_conf_score = torch.max(image_pred[:, 5:5 + num_classes], 1) max_conf = max_conf.float().unsqueeze(1) max_conf_score = max_conf_score.float().unsqueeze(1) seq = (image_pred[:, :5], max_conf, max_conf_score) image_pred = torch.cat(seq, 1) # Remove bounding boxes which scores less than certain threshold non_zero_ind = (torch.nonzero(image_pred[:, 4])) try: # If the model detects something image_pred_ = image_pred[non_zero_ind.squeeze(), :].view(-1, 7) except: continue # For PyTorch 0.4 compatibility # Since the above code with not raise exception for no detection # as scalars are supported in PyTorch 0.4 if image_pred_.shape[0] == 0: continue # Get the various classes detected in the image img_classes = unique(image_pred_[:, -1]) # -1 index holds the class index for cls in img_classes: # perform NMS # get the detections with one particular class cls_mask = image_pred_ * (image_pred_[:, -1] == cls).float().unsqueeze(1) class_mask_ind = torch.nonzero(cls_mask[:, -2]).squeeze() image_pred_class = image_pred_[class_mask_ind].view(-1, 7) # sort the detections such that the entry with the maximum objectness # confidence is at the top conf_sort_index = torch.sort(image_pred_class[:, 4], descending=True)[1] image_pred_class = image_pred_class[conf_sort_index] idx = image_pred_class.size(0) # Number of detections for i in range(idx): # Get the IOUs of all boxes that come after the one we are looking at # in the loop try: ious = bbox_iou(image_pred_class[i].unsqueeze(0), image_pred_class[i + 1:]) except ValueError: break except IndexError: break # Zero out all the detections that have IoU > treshhold iou_mask = (ious < nms_conf).float().unsqueeze(1) image_pred_class[i + 1:] *= iou_mask # Remove the non-zero entries non_zero_ind = torch.nonzero(image_pred_class[:, 4]).squeeze() image_pred_class = image_pred_class[non_zero_ind].view(-1, 7) for i in range(idx): # Get the IOUs of all boxes that come after the one we are looking at # in the loop try: ious = bbox_iou(image_pred_class[i].unsqueeze(0), image_pred_class[i + 1:]) except ValueError: break except IndexError: break # Zero out all the detections that have IoU > treshhold iou_mask = (ious < nms_conf).float().unsqueeze(1) image_pred_class[i + 1:] *= iou_mask # Remove the non-zero entries non_zero_ind = torch.nonzero(image_pred_class[:, 4]).squeeze() image_pred_class = image_pred_class[non_zero_ind].view(-1, 7) batch_ind = image_pred_class.new(image_pred_class.size(0), 1).fill_(ind) # Repeat the batch_id for as many detections of the class cls in the image seq = batch_ind, image_pred_class if not write: output = torch.cat(seq, 1) write = True else: out = torch.cat(seq, 1) output = torch.cat((output, out)) try: return output except: return 0
[ "titaristanto@gmail.com" ]
titaristanto@gmail.com
be6fafc70eeb36a5277104757f82f7081414f65f
16448a9beda337e20320f90e5c846830a370052c
/Tipping (Work In Progress)/lib/faker/data.py
13de816bbfae4c6a3c8554616e3e05772755615d
[]
no_license
rahulraman/sprApi
e8937c82abcbc2941ac31ed35dd6a3d17df89a95
a3f2cba74127fdc7c70916105b9cb73ebc09ea9c
refs/heads/master
2020-12-13T04:32:06.733567
2017-06-26T06:50:53
2017-06-26T06:50:53
95,413,616
0
0
null
null
null
null
UTF-8
Python
false
false
30,539
py
FIRST_NAMES = u""" Aaliyah Aaron Abagail Abbey Abbie Abbigail Abby Abdiel Abdul Abdullah Abe Abel Abelardo Abigail Abigale Abigayle Abner Abraham Ada Adah Adalberto Adaline Adam Adan Addie Addison Adela Adelbert Adele Adelia Adeline Adell Adella Adelle Aditya Adolf Adolfo Adolph Adolphus Adonis Adrain Adrian Adriana Adrianna Adriel Adrien Adrienne Afton Aglae Agnes Agustin Agustina Ahmad Ahmed Aida Aidan Aiden Aileen Aimee Aisha Aiyana Akeem Al Alaina Alan Alana Alanis Alanna Alayna Alba Albert Alberta Albertha Alberto Albin Albina Alda Alden Alec Aleen Alejandra Alejandrin Alek Alena Alene Alessandra Alessandro Alessia Aletha Alex Alexa Alexander Alexandra Alexandre Alexandrea Alexandria Alexandrine Alexandro Alexane Alexanne Alexie Alexis Alexys Alexzander Alf Alfonso Alfonzo Alford Alfred Alfreda Alfredo Ali Alia Alice Alicia Alisa Alisha Alison Alivia Aliya Aliyah Aliza Alize Allan Allen Allene Allie Allison Ally Alphonso Alta Althea Alva Alvah Alvena Alvera Alverta Alvina Alvis Alyce Alycia Alysa Alysha Alyson Alysson Amalia Amanda Amani Amara Amari Amaya Amber Ambrose Amelia Amelie Amely America Americo Amie Amina Amir Amira Amiya Amos Amparo Amy Amya Ana Anabel Anabelle Anahi Anais Anastacio Anastasia Anderson Andre Andreane Andreanne Andres Andrew Andy Angel Angela Angelica Angelina Angeline Angelita Angelo Angie Angus Anibal Anika Anissa Anita Aniya Aniyah Anjali Anna Annabel Annabell Annabelle Annalise Annamae Annamarie Anne Annetta Annette Annie Ansel Ansley Anthony Antoinette Antone Antonetta Antonette Antonia Antonietta Antonina Antonio Antwan Antwon Anya April Ara Araceli Aracely Arch Archibald Ardella Arden Ardith Arely Ari Ariane Arianna Aric Ariel Arielle Arjun Arlene Arlie Arlo Armand Armando Armani Arnaldo Arne Arno Arnold Arnoldo Arnulfo Aron Art Arthur Arturo Arvel Arvid Arvilla Aryanna Asa Asha Ashlee Ashleigh Ashley Ashly Ashlynn Ashton Ashtyn Asia Assunta Astrid Athena Aubree Aubrey Audie Audra Audreanne Audrey August Augusta Augustine Augustus Aurelia Aurelie Aurelio Aurore Austen Austin Austyn Autumn Ava Avery Avis Axel Ayana Ayden Ayla Aylin Baby Bailee Bailey Barbara Barney Baron Barrett Barry Bart Bartholome Barton Baylee Beatrice Beau Beaulah Bell Bella Belle Ben Benedict Benjamin Bennett Bennie Benny Benton Berenice Bernadette Bernadine Bernard Bernardo Berneice Bernhard Bernice Bernie Berniece Bernita Berry Bert Berta Bertha Bertram Bertrand Beryl Bessie Beth Bethany Bethel Betsy Bette Bettie Betty Bettye Beulah Beverly Bianka Bill Billie Billy Birdie Blair Blaise Blake Blanca Blanche Blaze Bo Bobbie Bobby Bonita Bonnie Boris Boyd Brad Braden Bradford Bradley Bradly Brady Braeden Brain Brandi Brando Brandon Brandt Brandy Brandyn Brannon Branson Brant Braulio Braxton Brayan Breana Breanna Breanne Brenda Brendan Brenden Brendon Brenna Brennan Brennon Brent Bret Brett Bria Brian Briana Brianne Brice Bridget Bridgette Bridie Brielle Brigitte Brionna Brisa Britney Brittany Brock Broderick Brody Brook Brooke Brooklyn Brooks Brown Bruce Bryana Bryce Brycen Bryon Buck Bud Buddy Buford Bulah Burdette Burley Burnice Buster Cade Caden Caesar Caitlyn Cale Caleb Caleigh Cali Calista Callie Camden Cameron Camila Camilla Camille Camren Camron Camryn Camylle Candace Candelario Candice Candida Candido Cara Carey Carissa Carlee Carleton Carley Carli Carlie Carlo Carlos Carlotta Carmel Carmela Carmella Carmelo Carmen Carmine Carol Carolanne Carole Carolina Caroline Carolyn Carolyne Carrie Carroll Carson Carter Cary Casandra Casey Casimer Casimir Casper Cassandra Cassandre Cassidy Cassie Catalina Caterina Catharine Catherine Cathrine Cathryn Cathy Cayla Ceasar Cecelia Cecil Cecile Cecilia Cedrick Celestine Celestino Celia Celine Cesar Chad Chadd Chadrick Chaim Chance Chandler Chanel Chanelle Charity Charlene Charles Charley Charlie Charlotte Chase Chasity Chauncey Chaya Chaz Chelsea Chelsey Chelsie Chesley Chester Chet Cheyanne Cheyenne Chloe Chris Christ Christa Christelle Christian Christiana Christina Christine Christop Christophe Christopher Christy Chyna Ciara Cicero Cielo Cierra Cindy Citlalli Clair Claire Clara Clarabelle Clare Clarissa Clark Claud Claude Claudia Claudie Claudine Clay Clemens Clement Clementina Clementine Clemmie Cleo Cleora Cleta Cletus Cleve Cleveland Clifford Clifton Clint Clinton Clotilde Clovis Cloyd Clyde Coby Cody Colby Cole Coleman Colin Colleen Collin Colt Colten Colton Columbus Concepcion Conner Connie Connor Conor Conrad Constance Constantin Consuelo Cooper Cora Coralie Corbin Cordelia Cordell Cordia Cordie Corene Corine Cornelius Cornell Corrine Cortez Cortney Cory Coty Courtney Coy Craig Crawford Creola Cristal Cristian Cristina Cristobal Cristopher Cruz Crystal Crystel Cullen Curt Curtis Cydney Cynthia Cyril Cyrus Dagmar Dahlia Daija Daisha Daisy Dakota Dale Dallas Dallin Dalton Damaris Dameon Damian Damien Damion Damon Dan Dana Dandre Dane D'angelo Dangelo Danial Daniela Daniella Danielle Danika Dannie Danny Dante Danyka Daphne Daphnee Daphney Darby Daren Darian Dariana Darien Dario Darion Darius Darlene Daron Darrel Darrell Darren Darrick Darrin Darrion Darron Darryl Darwin Daryl Dashawn Dasia Dave David Davin Davion Davon Davonte Dawn Dawson Dax Dayana Dayna Dayne Dayton Dean Deangelo Deanna Deborah Declan Dedric Dedrick Dee Deion Deja Dejah Dejon Dejuan Delaney Delbert Delfina Delia Delilah Dell Della Delmer Delores Delpha Delphia Delphine Delta Demarco Demarcus Demario Demetris Demetrius Demond Dena Denis Dennis Deon Deondre Deontae Deonte Dereck Derek Derick Deron Derrick Deshaun Deshawn Desiree Desmond Dessie Destany Destin Destinee Destiney Destini Destiny Devan Devante Deven Devin Devon Devonte Devyn Dewayne Dewitt Dexter Diamond Diana Dianna Diego Dillan Dillon Dimitri Dina Dino Dion Dixie Dock Dolly Dolores Domenic Domenica Domenick Domenico Domingo Dominic Dominique Don Donald Donato Donavon Donna Donnell Donnie Donny Dora Dorcas Dorian Doris Dorothea Dorothy Dorris Dortha Dorthy Doug Douglas Dovie Doyle Drake Drew Duane Dudley Dulce Duncan Durward Dustin Dusty Dwight Dylan Earl Earlene Earline Earnest Earnestine Easter Easton Ebba Ebony Ed Eda Edd Eddie Eden Edgar Edgardo Edison Edmond Edmund Edna Eduardo Edward Edwardo Edwin Edwina Edyth Edythe Effie Efrain Efren Eileen Einar Eino Eladio Elaina Elbert Elda Eldon Eldora Eldred Eldridge Eleanora Eleanore Eleazar Electa Elena Elenor Elenora Eleonore Elfrieda Eli Elian Eliane Elias Eliezer Elijah Elinor Elinore Elisa Elisabeth Elise Eliseo Elisha Elissa Eliza Elizabeth Ella Ellen Ellie Elliot Elliott Ellis Ellsworth Elmer Elmira Elmo Elmore Elna Elnora Elody Eloisa Eloise Elouise Eloy Elroy Elsa Else Elsie Elta Elton Elva Elvera Elvie Elvis Elwin Elwyn Elyse Elyssa Elza Emanuel Emelia Emelie Emely Emerald Emerson Emery Emie Emil Emile Emilia Emiliano Emilie Emilio Emily Emma Emmalee Emmanuel Emmanuelle Emmet Emmett Emmie Emmitt Emmy Emory Ena Enid Enoch Enola Enos Enrico Enrique Ephraim Era Eriberto Eric Erica Erich Erick Ericka Erik Erika Erin Erling Erna Ernest Ernestina Ernestine Ernesto Ernie Ervin Erwin Eryn Esmeralda Esperanza Esta Esteban Estefania Estel Estell Estella Estelle Estevan Esther Estrella Etha Ethan Ethel Ethelyn Ethyl Ettie Eudora Eugene Eugenia Eula Eulah Eulalia Euna Eunice Eusebio Eva Evalyn Evan Evangeline Evans Eve Eveline Evelyn Everardo Everett Everette Evert Evie Ewald Ewell Ezekiel Ezequiel Ezra Fabian Fabiola Fae Fannie Fanny Fatima Faustino Fausto Favian Fay Faye Federico Felicia Felicita Felicity Felipa Felipe Felix Felton Fermin Fern Fernando Ferne Fidel Filiberto Filomena Finn Fiona Flavie Flavio Fleta Fletcher Flo Florence Florencio Florian Florida Florine Flossie Floy Floyd Ford Forest Forrest Foster Frances Francesca Francesco Francis Francisca Francisco Franco Frank Frankie Franz Fred Freda Freddie Freddy Frederic Frederick Frederik Frederique Fredrick Fredy Freeda Freeman Freida Frida Frieda Friedrich Fritz Furman Gabe Gabriel Gabriella Gabrielle Gaetano Gage Gail Gardner Garett Garfield Garland Garnet Garnett Garret Garrett Garrick Garrison Garry Garth Gaston Gavin Gay Gayle Gaylord Gene General Genesis Genevieve Gennaro Genoveva Geo Geoffrey George Georgette Georgiana Georgianna Geovanni Geovanny Geovany Gerald Geraldine Gerard Gerardo Gerda Gerhard Germaine German Gerry Gerson Gertrude Gia Gianni Gideon Gilbert Gilberto Gilda Giles Gillian Gina Gino Giovani Giovanna Giovanni Giovanny Gisselle Giuseppe Gladyce Gladys Glen Glenda Glenna Glennie Gloria Godfrey Golda Golden Gonzalo Gordon Grace Gracie Graciela Grady Graham Grant Granville Grayce Grayson Green Greg Gregg Gregoria Gregorio Gregory Greta Gretchen Greyson Griffin Grover Guadalupe Gudrun Guido Guillermo Guiseppe Gunnar Gunner Gus Gussie Gust Gustave Guy Gwen Gwendolyn Hadley Hailee Hailey Hailie Hal Haleigh Haley Halie Halle Hallie Hank Hanna Hannah Hans Hardy Harley Harmon Harmony Harold Harrison Harry Harvey Haskell Hassan Hassie Hattie Haven Hayden Haylee Hayley Haylie Hazel Hazle Heath Heather Heaven Heber Hector Heidi Helen Helena Helene Helga Hellen Helmer Heloise Henderson Henri Henriette Henry Herbert Herman Hermann Hermina Herminia Herminio Hershel Herta Hertha Hester Hettie Hilario Hilbert Hilda Hildegard Hillard Hillary Hilma Hilton Hipolito Hiram Hobart Holden Hollie Hollis Holly Hope Horace Horacio Hortense Hosea Houston Howard Howell Hoyt Hubert Hudson Hugh Hulda Humberto Hunter Hyman Ian Ibrahim Icie Ida Idell Idella Ignacio Ignatius Ike Ila Ilene Iliana Ima Imani Imelda Immanuel Imogene Ines Irma Irving Irwin Isaac Isabel Isabell Isabella Isabelle Isac Isadore Isai Isaiah Isaias Isidro Ismael Isobel Isom Israel Issac Itzel Iva Ivah Ivory Ivy Izabella Izaiah Jabari Jace Jacey Jacinthe Jacinto Jack Jackeline Jackie Jacklyn Jackson Jacky Jaclyn Jacquelyn Jacques Jacynthe Jada Jade Jaden Jadon Jadyn Jaeden Jaida Jaiden Jailyn Jaime Jairo Jakayla Jake Jakob Jaleel Jalen Jalon Jalyn Jamaal Jamal Jamar Jamarcus Jamel Jameson Jamey Jamie Jamil Jamir Jamison Jammie Jan Jana Janae Jane Janelle Janessa Janet Janice Janick Janie Janis Janiya Jannie Jany Jaquan Jaquelin Jaqueline Jared Jaren Jarod Jaron Jarred Jarrell Jarret Jarrett Jarrod Jarvis Jasen Jasmin Jason Jasper Jaunita Javier Javon Javonte Jay Jayce Jaycee Jayda Jayde Jayden Jaydon Jaylan Jaylen Jaylin Jaylon Jayme Jayne Jayson Jazlyn Jazmin Jazmyn Jazmyne Jean Jeanette Jeanie Jeanne Jed Jedediah Jedidiah Jeff Jefferey Jeffery Jeffrey Jeffry Jena Jenifer Jennie Jennifer Jennings Jennyfer Jensen Jerad Jerald Jeramie Jeramy Jerel Jeremie Jeremy Jermain Jermaine Jermey Jerod Jerome Jeromy Jerrell Jerrod Jerrold Jerry Jess Jesse Jessica Jessie Jessika Jessy Jessyca Jesus Jett Jettie Jevon Jewel Jewell Jillian Jimmie Jimmy Jo Joan Joana Joanie Joanne Joannie Joanny Joany Joaquin Jocelyn Jodie Jody Joe Joel Joelle Joesph Joey Johan Johann Johanna Johathan John Johnathan Johnathon Johnnie Johnny Johnpaul Johnson Jolie Jon Jonas Jonatan Jonathan Jonathon Jordan Jordane Jordi Jordon Jordy Jordyn Jorge Jose Josefa Josefina Joseph Josephine Josh Joshua Joshuah Josiah Josiane Josianne Josie Josue Jovan Jovani Jovanny Jovany Joy Joyce Juana Juanita Judah Judd Jude Judge Judson Judy Jules Julia Julian Juliana Julianne Julie Julien Juliet Julio Julius June Junior Junius Justen Justice Justina Justine Juston Justus Justyn Juvenal Juwan Kacey Kaci Kacie Kade Kaden Kadin Kaela Kaelyn Kaia Kailee Kailey Kailyn Kaitlin Kaitlyn Kale Kaleb Kaleigh Kaley Kali Kallie Kameron Kamille Kamren Kamron Kamryn Kane Kara Kareem Karelle Karen Kari Kariane Karianne Karina Karine Karl Karlee Karley Karli Karlie Karolann Karson Kasandra Kasey Kassandra Katarina Katelin Katelyn Katelynn Katharina Katherine Katheryn Kathleen Kathlyn Kathryn Kathryne Katlyn Katlynn Katrina Katrine Kattie Kavon Kay Kaya Kaycee Kayden Kayla Kaylah Kaylee Kayleigh Kayley Kayli Kaylie Kaylin Keagan Keanu Keara Keaton Keegan Keeley Keely Keenan Keira Keith Kellen Kelley Kelli Kellie Kelly Kelsi Kelsie Kelton Kelvin Ken Kendall Kendra Kendrick Kenna Kennedi Kennedy Kenneth Kennith Kenny Kenton Kenya Kenyatta Kenyon Keon Keshaun Keshawn Keven Kevin Kevon Keyon Keyshawn Khalid Khalil Kian Kiana Kianna Kiara Kiarra Kiel Kiera Kieran Kiley Kim Kimberly King Kip Kira Kirk Kirsten Kirstin Kitty Kobe Koby Kody Kolby Kole Korbin Korey Kory Kraig Kris Krista Kristian Kristin Kristina Kristofer Kristoffer Kristopher Kristy Krystal Krystel Krystina Kurt Kurtis Kyla Kyle Kylee Kyleigh Kyler Kylie Kyra Lacey Lacy Ladarius Lafayette Laila Laisha Lamar Lambert Lamont Lance Landen Lane Laney Larissa Laron Larry Larue Laura Laurel Lauren Laurence Lauretta Lauriane Laurianne Laurie Laurine Laury Lauryn Lavada Lavern Laverna Laverne Lavina Lavinia Lavon Lavonne Lawrence Lawson Layla Layne Lazaro Lea Leann Leanna Leanne Leatha Leda Lee Leif Leila Leilani Lela Lelah Leland Lelia Lempi Lemuel Lenna Lennie Lenny Lenora Lenore Leo Leola Leon Leonard Leonardo Leone Leonel Leonie Leonor Leonora Leopold Leopoldo Leora Lera Lesley Leslie Lesly Lessie Lester Leta Letha Letitia Levi Lew Lewis Lexi Lexie Lexus Lia Liam Liana Libbie Libby Lila Lilian Liliana Liliane Lilla Lillian Lilliana Lillie Lilly Lily Lilyan Lina Lincoln Linda Lindsay Lindsey Linnea Linnie Linwood Lionel Lisa Lisandro Lisette Litzy Liza Lizeth Lizzie Llewellyn Lloyd Logan Lois Lola Lolita Loma Lon London Lonie Lonnie Lonny Lonzo Lora Loraine Loren Lorena Lorenz Lorenza Lorenzo Lori Lorine Lorna Lottie Lou Louie Louisa Lourdes Louvenia Lowell Loy Loyal Loyce Lucas Luciano Lucie Lucienne Lucile Lucinda Lucio Lucious Lucius Lucy Ludie Ludwig Lue Luella Luigi Luis Luisa Lukas Lula Lulu Luna Lupe Lura Lurline Luther Luz Lyda Lydia Lyla Lynn Lyric Lysanne Mabel Mabelle Mable Mac Macey Maci Macie Mack Mackenzie Macy Madaline Madalyn Maddison Madeline Madelyn Madelynn Madge Madie Madilyn Madisen Madison Madisyn Madonna Madyson Mae Maegan Maeve Mafalda Magali Magdalen Magdalena Maggie Magnolia Magnus Maia Maida Maiya Major Makayla Makenna Makenzie Malachi Malcolm Malika Malinda Mallie Mallory Malvina Mandy Manley Manuel Manuela Mara Marc Marcel Marcelina Marcelino Marcella Marcelle Marcellus Marcelo Marcia Marco Marcos Marcus Margaret Margarete Margarett Margaretta Margarette Margarita Marge Margie Margot Margret Marguerite Maria Mariah Mariam Marian Mariana Mariane Marianna Marianne Mariano Maribel Marie Mariela Marielle Marietta Marilie Marilou Marilyne Marina Mario Marion Marisa Marisol Maritza Marjolaine Marjorie Marjory Mark Markus Marlee Marlen Marlene Marley Marlin Marlon Marques Marquis Marquise Marshall Marta Martin Martina Martine Marty Marvin Mary Maryam Maryjane Maryse Mason Mateo Mathew Mathias Mathilde Matilda Matilde Matt Matteo Mattie Maud Maude Maudie Maureen Maurice Mauricio Maurine Maverick Mavis Max Maxie Maxime Maximilian Maximillia Maximillian Maximo Maximus Maxine Maxwell May Maya Maybell Maybelle Maye Maymie Maynard Mayra Mazie Mckayla Mckenna Mckenzie Meagan Meaghan Meda Megane Meggie Meghan Mekhi Melany Melba Melisa Melissa Mellie Melody Melvin Melvina Melyna Melyssa Mercedes Meredith Merl Merle Merlin Merritt Mertie Mervin Meta Mia Micaela Micah Michael Michaela Michale Micheal Michel Michele Michelle Miguel Mikayla Mike Mikel Milan Miles Milford Miller Millie Milo Milton Mina Minerva Minnie Miracle Mireille Mireya Misael Missouri Misty Mitchel Mitchell Mittie Modesta Modesto Mohamed Mohammad Mohammed Moises Mollie Molly Mona Monica Monique Monroe Monserrat Monserrate Montana Monte Monty Morgan Moriah Morris Mortimer Morton Mose Moses Moshe Mossie Mozell Mozelle Muhammad Muriel Murl Murphy Murray Mustafa Mya Myah Mylene Myles Myra Myriam Myrl Myrna Myron Myrtice Myrtie Myrtis Myrtle Nadia Nakia Name Nannie Naomi Naomie Napoleon Narciso Nash Nasir Nat Natalia Natalie Natasha Nathan Nathanael Nathanial Nathaniel Nathen Nayeli Neal Ned Nedra Neha Neil Nelda Nella Nelle Nellie Nels Nelson Neoma Nestor Nettie Neva Newell Newton Nia Nicholas Nicholaus Nichole Nick Nicklaus Nickolas Nico Nicola Nicolas Nicole Nicolette Nigel Nikita Nikki Nikko Niko Nikolas Nils Nina Noah Noble Noe Noel Noelia Noemi Noemie Noemy Nola Nolan Nona Nora Norbert Norberto Norene Norma Norris Norval Norwood Nova Novella Nya Nyah Nyasia Obie Oceane Ocie Octavia Oda Odell Odessa Odie Ofelia Okey Ola Olaf Ole Olen Oleta Olga Olin Oliver Ollie Oma Omari Omer Ona Onie Opal Ophelia Ora Oral Oran Oren Orie Orin Orion Orland Orlando Orlo Orpha Orrin Orval Orville Osbaldo Osborne Oscar Osvaldo Oswald Oswaldo Otha Otho Otilia Otis Ottilie Ottis Otto Ova Owen Ozella Pablo Paige Palma Pamela Pansy Paolo Paris Parker Pascale Pasquale Pat Patience Patricia Patrick Patsy Pattie Paul Paula Pauline Paxton Payton Pearl Pearlie Pearline Pedro Peggie Penelope Percival Percy Perry Pete Peter Petra Peyton Philip Phoebe Phyllis Pierce Pierre Pietro Pink Pinkie Piper Polly Porter Precious Presley Preston Price Prince Princess Priscilla Providenci Prudence Queen Queenie Quentin Quincy Quinn Quinten Quinton Rachael Rachel Rachelle Rae Raegan Rafael Rafaela Raheem Rahsaan Rahul Raina Raleigh Ralph Ramiro Ramon Ramona Randal Randall Randi Randy Ransom Raoul Raphael Raphaelle Raquel Rashad Rashawn Rasheed Raul Raven Ray Raymond Raymundo Reagan Reanna Reba Rebeca Rebecca Rebeka Rebekah Reece Reed Reese Regan Reggie Reginald Reid Reilly Reina Reinhold Remington Rene Renee Ressie Reta Retha Retta Reuben Reva Rex Rey Reyes Reymundo Reyna Reynold Rhea Rhett Rhianna Rhiannon Rhoda Ricardo Richard Richie Richmond Rick Rickey Rickie Ricky Rico Rigoberto Riley Rita River Robb Robbie Robert Roberta Roberto Robin Robyn Rocio Rocky Rod Roderick Rodger Rodolfo Rodrick Rodrigo Roel Rogelio Roger Rogers Rolando Rollin Roma Romaine Roman Ron Ronaldo Ronny Roosevelt Rory Rosa Rosalee Rosalia Rosalind Rosalinda Rosalyn Rosamond Rosanna Rosario Roscoe Rose Rosella Roselyn Rosemarie Rosemary Rosendo Rosetta Rosie Rosina Roslyn Ross Rossie Rowan Rowena Rowland Roxane Roxanne Roy Royal Royce Rozella Ruben Rubie Ruby Rubye Rudolph Rudy Rupert Russ Russel Russell Rusty Ruth Ruthe Ruthie Ryan Ryann Ryder Rylan Rylee Ryleigh Ryley Sabina Sabrina Sabryna Sadie Sadye Sage Saige Sallie Sally Salma Salvador Salvatore Sam Samanta Samantha Samara Samir Sammie Sammy Samson Sandra Sandrine Sandy Sanford Santa Santiago Santina Santino Santos Sarah Sarai Sarina Sasha Saul Savanah Savanna Savannah Savion Scarlett Schuyler Scot Scottie Scotty Seamus Sean Sebastian Sedrick Selena Selina Selmer Serena Serenity Seth Shad Shaina Shakira Shana Shane Shanel Shanelle Shania Shanie Shaniya Shanna Shannon Shanny Shanon Shany Sharon Shaun Shawn Shawna Shaylee Shayna Shayne Shea Sheila Sheldon Shemar Sheridan Sherman Sherwood Shirley Shyann Shyanne Sibyl Sid Sidney Sienna Sierra Sigmund Sigrid Sigurd Silas Sim Simeon Simone Sincere Sister Skye Skyla Skylar Sofia Soledad Solon Sonia Sonny Sonya Sophia Sophie Spencer Stacey Stacy Stan Stanford Stanley Stanton Stefan Stefanie Stella Stephan Stephania Stephanie Stephany Stephen Stephon Sterling Steve Stevie Stewart Stone Stuart Summer Sunny Susan Susana Susanna Susie Suzanne Sven Syble Sydnee Sydney Sydni Sydnie Sylvan Sylvester Sylvia Tabitha Tad Talia Talon Tamara Tamia Tania Tanner Tanya Tara Taryn Tate Tatum Tatyana Taurean Tavares Taya Taylor Teagan Ted Telly Terence Teresa Terrance Terrell Terrence Terrill Terry Tess Tessie Tevin Thad Thaddeus Thalia Thea Thelma Theo Theodora Theodore Theresa Therese Theresia Theron Thomas Thora Thurman Tia Tiana Tianna Tiara Tierra Tiffany Tillman Timmothy Timmy Timothy Tina Tito Titus Tobin Toby Tod Tom Tomas Tomasa Tommie Toney Toni Tony Torey Torrance Torrey Toy Trace Tracey Tracy Travis Travon Tre Tremaine Tremayne Trent Trenton Tressa Tressie Treva Trever Trevion Trevor Trey Trinity Trisha Tristian Tristin Triston Troy Trudie Trycia Trystan Turner Twila Tyler Tyra Tyree Tyreek Tyrel Tyrell Tyrese Tyrique Tyshawn Tyson Ubaldo Ulices Ulises Una Unique Urban Uriah Uriel Ursula Vada Valentin Valentina Valentine Valerie Vallie Van Vance Vanessa Vaughn Veda Velda Vella Velma Velva Vena Verda Verdie Vergie Verla Verlie Vern Verna Verner Vernice Vernie Vernon Verona Veronica Vesta Vicenta Vicente Vickie Vicky Victor Victoria Vida Vidal Vilma Vince Vincent Vincenza Vincenzo Vinnie Viola Violet Violette Virgie Virgil Virginia Virginie Vita Vito Viva Vivian Viviane Vivianne Vivien Vivienne Vladimir Wade Waino Waldo Walker Wallace Walter Walton Wanda Ward Warren Watson Wava Waylon Wayne Webster Weldon Wellington Wendell Wendy Werner Westley Weston Whitney Wilber Wilbert Wilburn Wiley Wilford Wilfred Wilfredo Wilfrid Wilhelm Wilhelmine Will Willa Willard William Willie Willis Willow Willy Wilma Wilmer Wilson Wilton Winfield Winifred Winnifred Winona Winston Woodrow Wyatt Wyman Xander Xavier Xzavier Yadira Yasmeen Yasmin Yasmine Yazmin Yesenia Yessenia Yolanda Yoshiko Yvette Yvonne Zachariah Zachary Zachery Zack Zackary Zackery Zakary Zander Zane Zaria Zechariah Zelda Zella Zelma Zena Zetta Zion Zita Zoe Zoey Zoie Zoila Zola Zora Zula """ LAST_NAMES = u""" Abbott Abernathy Abshire Adams Altenwerth Anderson Ankunding Armstrong Auer Aufderhar Bahringer Bailey Balistreri Barrows Bartell Bartoletti Barton Bashirian Batz Bauch Baumbach Bayer Beahan Beatty Bechtelar Becker Bednar Beer Beier Berge Bergnaum Bergstrom Bernhard Bernier Bins Blanda Blick Block Bode Boehm Bogan Bogisich Borer Bosco Botsford Boyer Boyle Bradtke Brakus Braun Breitenberg Brekke Brown Bruen Buckridge Carroll Carter Cartwright Casper Cassin Champlin Christiansen Cole Collier Collins Conn Connelly Conroy Considine Corkery Cormier Corwin Cremin Crist Crona Cronin Crooks Cruickshank Cummerata Cummings Dach D'Amore Daniel Dare Daugherty Davis Deckow Denesik Dibbert Dickens Dicki Dickinson Dietrich Donnelly Dooley Douglas Doyle DuBuque Durgan Ebert Effertz Eichmann Emard Emmerich Erdman Ernser Fadel Fahey Farrell Fay Feeney Feest Feil Ferry Fisher Flatley Frami Franecki Friesen Fritsch Funk Gaylord Gerhold Gerlach Gibson Gislason Gleason Gleichner Glover Goldner Goodwin Gorczany Gottlieb Goyette Grady Graham Grant Green Greenfelder Greenholt Grimes Gulgowski Gusikowski Gutkowski Gutmann Haag Hackett Hagenes Hahn Haley Halvorson Hamill Hammes Hand Hane Hansen Harber Harris Hartmann Harvey Hauck Hayes Heaney Heathcote Hegmann Heidenreich Heller Herman Hermann Hermiston Herzog Hessel Hettinger Hickle Hilll Hills Hilpert Hintz Hirthe Hodkiewicz Hoeger Homenick Hoppe Howe Howell Hudson Huel Huels Hyatt Jacobi Jacobs Jacobson Jakubowski Jaskolski Jast Jenkins Jerde Jewess Johns Johnson Johnston Jones Kassulke Kautzer Keebler Keeling Kemmer Kerluke Kertzmann Kessler Kiehn Kihn Kilback King Kirlin Klein Kling Klocko Koch Koelpin Koepp Kohler Konopelski Koss Kovacek Kozey Krajcik Kreiger Kris Kshlerin Kub Kuhic Kuhlman Kuhn Kulas Kunde Kunze Kuphal Kutch Kuvalis Labadie Lakin Lang Langosh Langworth Larkin Larson Leannon Lebsack Ledner Leffler Legros Lehner Lemke Lesch Leuschke Lind Lindgren Littel Little Lockman Lowe Lubowitz Lueilwitz Luettgen Lynch Macejkovic Maggio Mann Mante Marks Marquardt Marvin Mayer Mayert McClure McCullough McDermott McGlynn McKenzie McLaughlin Medhurst Mertz Metz Miller Mills Mitchell Moen Mohr Monahan Moore Morar Morissette Mosciski Mraz Mueller Muller Murazik Murphy Murray Nader Nicolas Nienow Nikolaus Nitzsche Nolan Oberbrunner O'Connell O'Conner O'Hara O'Keefe O'Kon Okuneva Olson Ondricka O'Reilly Orn Ortiz Osinski Pacocha Padberg Pagac Parisian Parker Paucek Pfannerstill Pfeffer Pollich Pouros Powlowski Predovic Price Prohaska Prosacco Purdy Quigley Quitzon Rath Ratke Rau Raynor Reichel Reichert Reilly Reinger Rempel Renner Reynolds Rice Rippin Ritchie Robel Roberts Rodriguez Rogahn Rohan Rolfson Romaguera Roob Rosenbaum Rowe Ruecker Runolfsdottir Runolfsson Runte Russel Rutherford Ryan Sanford Satterfield Sauer Sawayn Schaden Schaefer Schamberger Schiller Schimmel Schinner Schmeler Schmidt Schmitt Schneider Schoen Schowalter Schroeder Schulist Schultz Schumm Schuppe Schuster Senger Shanahan Shields Simonis Sipes Skiles Smith Smitham Spencer Spinka Sporer Stamm Stanton Stark Stehr Steuber Stiedemann Stokes Stoltenberg Stracke Streich Stroman Strosin Swaniawski Swift Terry Thiel Thompson Tillman Torp Torphy Towne Toy Trantow Tremblay Treutel Tromp Turcotte Turner Ullrich Upton Vandervort Veum Volkman Von VonRueden Waelchi Walker Walsh Walter Ward Waters Watsica Weber Wehner Weimann Weissnat Welch West White Wiegand Wilderman Wilkinson Will Williamson Willms Windler Wintheiser Wisoky Wisozk Witting Wiza Wolf Wolff Wuckert Wunsch Wyman Yost Yundt Zboncak Zemlak Ziemann Zieme Zulauf """ FREE_EMAIL = u""" gmail.com yahoo.com hotmail.com """ STATE_ABBR = u""" AL AK AS AZ AR CA CO CT DE DC FM FL GA GU HI ID IL IN IA KS KY LA ME MH MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND MP OH OK OR PW PA PR RI SC SD TN TX UT VT VI VA WA WV WI WY AE AA AP """ US_STATES = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"] UK_COUNTIES = ["Avon", "Bedfordshire", "Berkshire", "Borders", "Buckinghamshire", "Cambridgeshire", "Central", "Cheshire", "Cleveland", "Clwyd", "Cornwall", "County Antrim", "County Armagh", "County Down", "County Fermanagh", "County Londonderry", "County Tyrone", "Cumbria", "Derbyshire", "Devon", "Dorset", "Dumfries and Galloway", "Durham", "Dyfed", "East Sussex", "Essex", "Fife", "Gloucestershire", "Grampian", "Greater Manchester", "Gwent", "Gwynedd County", "Hampshire", "Herefordshire", "Hertfordshire", "Highlands and Islands", "Humberside", "Isle of Wight", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Lothian", "Merseyside", "Mid Glamorgan", "Norfolk", "North Yorkshire", "Northamptonshire", "Northumberland", "Nottinghamshire", "Oxfordshire", "Powys", "Rutland", "Shropshire", "Somerset", "South Glamorgan", "South Yorkshire", "Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Tayside", "Tyne and Wear", "Warwickshire", "West Glamorgan", "West Midlands", "West Sussex", "West Yorkshire", "Wiltshire", "Worcestershire"] UK_COUNTRIES = ["England", "Scotland", "Wales", "Northern Ireland"] CITY_PREFIX = u""" North East West South New Lake Port """ CITY_SUFFIX = u""" town ton land ville berg burgh borough bury view port mouth stad furt chester mouth fort haven side shire """ STREET_SUFFIX = u""" Alley Avenue Branch Bridge Brook Brooks Burg Burgs Bypass Camp Canyon Cape Causeway Center Centers Circle Circles Cliff Cliffs Club Common Corner Corners Course Court Courts Cove Coves Creek Crescent Crest Crossing Crossroad Curve Dale Dam Divide Drive Drive Drives Estate Estates Expressway Extension Extensions Fall Falls Ferry Field Fields Flat Flats Ford Fords Forest Forge Forges Fork Forks Fort Freeway Garden Gardens Gateway Glen Glens Green Greens Grove Groves Harbor Harbors Haven Heights Highway Hill Hills Hollow Inlet Inlet Island Island Islands Islands Isle Isle Junction Junctions Key Keys Knoll Knolls Lake Lakes Land Landing Lane Light Lights Loaf Lock Locks Locks Lodge Lodge Loop Mall Manor Manors Meadow Meadows Mews Mill Mills Mission Mission Motorway Mount Mountain Mountain Mountains Mountains Neck Orchard Oval Overpass Park Parks Parkway Parkways Pass Passage Path Pike Pine Pines Place Plain Plains Plains Plaza Plaza Point Points Port Port Ports Ports Prairie Prairie Radial Ramp Ranch Rapid Rapids Rest Ridge Ridges River Road Road Roads Roads Route Row Rue Run Shoal Shoals Shore Shores Skyway Spring Springs Springs Spur Spurs Square Square Squares Squares Station Station Stravenue Stravenue Stream Stream Street Street Streets Summit Summit Terrace Throughway Trace Track Trafficway Trail Trail Tunnel Tunnel Turnpike Turnpike Underpass Union Unions Valley Valleys Via Viaduct View Views Village Village Villages Ville Vista Vista Walk Walks Wall Way Ways Well Wells """ WORDS = u""" alias consequatur aut perferendis sit voluptatem accusantium doloremque aperiam eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo aspernatur aut odit aut fugit sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt neque dolorem ipsum quia dolor sit amet consectetur adipisci velit sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem ut enim ad minima veniam quis nostrum exercitationem ullam corporis nemo enim ipsam voluptatem quia voluptas sit suscipit laboriosam nisi ut aliquid ex ea commodi consequatur quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae et iusto odio dignissimos ducimus qui blanditiis praesentium laudantium totam rem voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident sed ut perspiciatis unde omnis iste natus error similique sunt in culpa qui officia deserunt mollitia animi id est laborum et dolorum fuga et harum quidem rerum facilis est et expedita distinctio nam libero tempore cum soluta nobis est eligendi optio cumque nihil impedit quo porro quisquam est qui minus id quod maxime placeat facere possimus omnis voluptas assumenda est omnis dolor repellendus temporibus autem quibusdam et aut consequatur vel illum qui dolorem eum fugiat quo voluptas nulla pariatur at vero eos et accusamus officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae itaque earum rerum hic tenetur a sapiente delectus ut aut reiciendis voluptatibus maiores doloribus asperiores repellat """ COMPANY_NAME_PREFIX = u""" you my twi ya bo ad cloud ini ibi loo live day ni kos ja flo open i yo tub xo pro ra plur clax vert rem scro do kab smug fil zim glif sko zin yedd bling tru blao dot jam zu quirb jib """ COMPANY_NAME_SUFFIX = u""" trix ly sy ton era jing la box ga za zing ster sense ify you go nico chi mix mee on doodle scro diant hop ckr sauce nit bee zizzl bio doo qa zee kee space tra fish cloud monkey geo jam ba bo mo star net """ COMPANY_NAME_EXTRA = u""" media designs collective systems labs """
[ "anu160580@gmail.com" ]
anu160580@gmail.com
0592092bfec4a4e56c3c4a0d111730dddc9b52c8
36aa8ca505bcfe024db9875fb056ca6570f3504d
/bankOnCube/wsgi.py
cc9f96726036e6f6de11c0c427cbef5d4a492b20
[]
no_license
shashanj/bankOnCube
42fec3886b7e5628e47603e7cb0f6fb177e564ec
865fa104022c8dd2116bf83280bf22c78069537c
refs/heads/master
2021-01-20T12:38:26.897843
2017-05-05T15:25:19
2017-05-05T15:25:19
90,389,519
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for bankOnCube project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bankOnCube.settings") application = get_wsgi_application()
[ "shashanks.1903@gmail.com" ]
shashanks.1903@gmail.com
b909677b5e83bbd0cff9304d935baf8e95ec85cb
d6877d0fd2f4952abc1dd33e84843abbf9cd4266
/catcollector/settings.py
760f93cd315cf4f2284ae4294aefe6cfe0e367a1
[]
no_license
Niki-Sal/catcollector
c5759687501df1986a5cfb83cfab6772fa38a8ad
56a0e43f1d45ed7e0bd8492cd3230f6cdce8f754
refs/heads/main
2023-03-22T10:01:54.615010
2021-03-19T23:55:09
2021-03-19T23:55:09
349,552,142
0
0
null
null
null
null
UTF-8
Python
false
false
3,082
py
""" Django settings for catcollector project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'oj5wxlitn&8-eh$hk(9nzkp$lp9dteqnf(6pk)+xsv@^f$kb#r' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'main_app', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'catcollector.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'catcollector.wsgi.application' # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'cats', } } # Password validation # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/'
[ "ne.salehi@gmail.com" ]
ne.salehi@gmail.com
950f415ead509a92b7eff8d0d47eddf9a0baa1a6
acefcaf40c00b20535d6b220f8260ca191b41455
/Manage_rds/src/ec2.py
7f625d4c84a5526c8cd5b506e765d549d6b18428
[]
no_license
jagsrathinam/AWS-RDS-DyDB
1ccf7731ac9353fc186a6c8937361ff26e2ef095
61e200c5fc91f1a29264d04b87bf2d095fda66f3
refs/heads/master
2023-01-02T23:20:49.299492
2020-10-27T02:08:32
2020-10-27T02:08:32
307,559,863
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
RDS_SECURITY_GROUP_NAME = "my-rds-public-sg" class EC2: def __init__(self, client): self._client = client """ :type : pyboto3.ec2 """ def create_security_group(self): print("Creating RDS Security Group with name " + RDS_SECURITY_GROUP_NAME) return self._client.create_security_group( GroupName=RDS_SECURITY_GROUP_NAME, Description='RDS security group for public access', VpcId='vpc-3242737e' ) def add_inbound_rule_to_sg(self, security_group_id): print("Adding inbound access rule to security group " + security_group_id) self._client.authorize_security_group_ingress( GroupId=security_group_id, IpPermissions=[ { 'IpProtocol': 'tcp', 'FromPort': 5432, 'ToPort': 5432, 'IpRanges': [{'CidrIp': '0.0.0.0/0'}] } ] )
[ "jags.rathinam@gmail.com" ]
jags.rathinam@gmail.com
b552aadf4e62bf6779d0a14005cec9dd5e27ab42
1426210a8eef5b6dd72972110f3ff7b6f561b0bf
/Iterated Prisoners Dilemma/Çetin's Article/Huso/defector.py
23a6962c9305408db32bf4387846a659900eb398
[]
no_license
complex-systems-rg/UG-Research
4d3ead80e0b8a72258875aa997291bf8e1147b88
56b7e5d82aaec6c02e652fcc093d50044cec7bf4
refs/heads/master
2020-08-11T19:46:42.029503
2020-01-18T14:42:53
2020-01-18T14:42:53
214,617,218
3
1
null
null
null
null
UTF-8
Python
false
false
111
py
from player import Player class Defector(Player): def __init__(self, M): super().__init__("D", M)
[ "canbolukbas98@gmail.com" ]
canbolukbas98@gmail.com
b62eecba0d0273035f6dab131c786255e939a0d1
00418b7f34078382d3eefb16ea3fc21d87a47f27
/detectZebra.py
85debcc4fa67cf7d3b17fb9b45cb2b249e5fd5b8
[ "MIT" ]
permissive
RocketFlash/VisionHack_Evil_Panda
9ff551e5fda9f5524effbd6b90242cd4ef44f6b2
2941c3092e5419765e03c4c1d2eea7f09a80a3d5
refs/heads/master
2020-07-18T14:10:09.464972
2019-09-04T07:40:21
2019-09-04T07:40:21
206,260,661
0
0
null
null
null
null
UTF-8
Python
false
false
2,155
py
import cv2 import numpy as np def detect(frame, focus=None): img = cv2.resize(frame, (0, 0), fx=0.333, fy=0.333) window = 70 if focus is None: focus = (int(img.shape[0] / 2) + 100, int(img.shape[1] / 2)) else: focus = (int(float(focus[0]) * 0.33), int(float(focus[1]) * 0.33)) h, w = img.shape[0], img.shape[1] shiftBottom = 10 shiftUp = 10 src = np.array([ [focus[0] - window, focus[1]+shiftUp], [focus[0] + window, focus[1]+shiftUp], [w-shiftBottom, h], [0+shiftBottom, h] ], np.float32) dst = np.array([ [0, 0], [w, 0], [w, h], [0, h] ], np.float32) M = cv2.getPerspectiveTransform(src, dst) warp = cv2.warpPerspective(img.copy(), M, (w, h)) warp = cv2.equalizeHist(warp) warp = cv2.medianBlur(warp, 5) cv2.imshow('warp',warp) cv2.waitKey(1) sobelx64f = cv2.Sobel(warp, cv2.CV_64F, 2, 0, ksize=1) abs_sobel64f = np.absolute(sobelx64f) edges = np.uint8(abs_sobel64f) (thresh, im_bw) = cv2.threshold(edges, 15, 255, cv2.THRESH_BINARY) # im_bw = cv2.adaptiveThreshold(warp, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C|cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,3,0) im_bw = cv2.morphologyEx(im_bw, cv2.MORPH_OPEN, (5, 5)) (thresh, im_bw) = cv2.threshold(edges, 15, 255, cv2.THRESH_BINARY) index = int(0.76 * warp.shape[0]) cnct = im_bw[index] & im_bw[index + 8] cnt = np.count_nonzero(cnct) answer = cnt > 20 return answer textFile = open('/Users/YagfarovRauf/Desktop/trainset/train.txt', "r") lines = textFile.readlines() for f in lines: FOPFile = open('/Users/YagfarovRauf/Desktop/trainset/' + f.split(" ")[0][0:-9] + '.txt', "r") FOP = list(map(int, filter(None, FOPFile.readline().split(" ")))) print(f) if int(f.split(" ")[1][5]) != 1: continue cap = cv2.VideoCapture("/Users/YagfarovRauf/Desktop/trainset/" + f.split(" ")[0]) while (1): ret, frame = cap.read() if ret == False: break frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) print(detect(frame,tuple(FOP)))
[ "goodraff@gmail.com" ]
goodraff@gmail.com
793d52993e9cf848f333f484c1f422104fa3175e
8120975953f5ed704894284048efb25ac5acabfd
/server/apps/wejudge/apps.py
3631e433d423ea0a659844d3ec833de53919c169
[]
no_license
DICKQI/WeJudge-2-Dev
9815b69a56dab13a9aab52bcf75ebfabfc05a8e1
ded211428adc9506e7a7b9bbaa5d38c4b5c798d8
refs/heads/master
2021-08-31T18:20:31.285661
2017-12-22T07:22:19
2017-12-22T07:22:19
115,104,196
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.apps import AppConfig class WejudgeConfig(AppConfig): name = 'wejudge'
[ "lancelrq@gmail.com" ]
lancelrq@gmail.com
fe12fd29290560b7f198f8787a82bd740c1f3842
3be96078a0ff88fa81b188ed71127f1b00ce176d
/Probleme018.py
c97fa453e8e31906b58530aaaa6701f920370667
[]
no_license
foulp/projectEuler
ad50806b9076bb2d703f3ad290ab502d09e45503
0b68ee21645af81fd608188477133c3c6585e0e0
refs/heads/master
2020-04-11T17:06:10.089533
2019-12-07T00:27:22
2019-12-07T00:27:22
161,947,657
0
0
null
null
null
null
UTF-8
Python
false
false
1,571
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 25 15:42:12 2016 @author: timothee.boulet """ grid = [ [75], [95, 64], [17, 47, 82], [18, 35, 87, 10], [20, 4, 82, 47, 65], [19, 1, 23, 75, 3, 34], [88, 2, 77, 73, 7, 63, 67], [99, 65, 4, 28, 6, 16, 70, 92], [41, 41, 26, 56, 83, 40, 80, 70, 33], [41, 48, 72, 33, 47, 32, 37, 16, 94, 29], [53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14], [70, 11, 33, 28, 77, 73, 17, 78, 39, 68, 17, 57], [91, 71, 52, 38, 17, 14, 91, 43, 58, 50, 27, 29, 48], [63, 66, 4, 68, 89, 53, 67, 30, 73, 16, 69, 87, 40, 31], [4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23]] best=75 choice = [0,1] def path(seq): somme=75 col=0 for i, suivant in enumerate(seq) : col=col+suivant somme=somme+grid[i+1][col] return somme for a in choice: for b in choice: for c in choice: for d in choice: for e in choice: for f in choice: for g in choice: for h in choice: for i in choice: for j in choice: for k in choice: for l in choice: for m in choice: for n in choice: best=max(best, path([a,b,c,d,e,f,g,h,i,j,k,l,m,n])) print(best)
[ "noreply@github.com" ]
foulp.noreply@github.com
8d0914ad184a024b4c854f6f3e5b98541b067f81
e07a833ba9cef8d45a7252e592da613c9d47db2c
/lat1.1.py
a079dedae6d102e644e4294d1f1ea1b7266bed5e
[]
no_license
vicky299/praktikum-5
ab04380cc64f3ffb50835d7edcefde5781774497
40d21b11b32e3c2d7842012d350d13e7f9a4950b
refs/heads/main
2023-01-25T04:23:04.536249
2020-11-23T03:45:19
2020-11-23T03:45:19
315,193,399
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
#latihan praktikum 1 #no.1 #syarat kelulusan #tidak ada nilai yang kurang dari 60 #nilai matematika harus lebih dari 70 print("status kelulusan siswa") print ("range(1-100)") nilaibindo = a =int(input("masukkan nilai bahasa Indonesian :")) nilaiIpa = b =int(input("masukkan nilai IPA :")) nilaimat = c =int(input("masukkan nilai matematika :")) if (60<=a<=100) and (60<=b<=100) and (70<=c<=100): print("LULUS") elif ( 0<=a<60) or (0<=b<60) or (0<=c<70): print("TIDAK LULUS") elif (a<0) or (b<0) or (c<0): print("Maaf input ada yang tidak valid")
[ "71803020+vicky299@users.noreply.github.com" ]
71803020+vicky299@users.noreply.github.com
a1ef0e7b66211e41d931adde060fde627ca09929
eb82022c0cfc7c8747661cff9624ad2099fa1c3f
/accounting_report_xls/wizard/hutang_wizard.py
bb9b3c1f5659613139805c836f377e12cff6f17e
[]
no_license
dadysuarsa/Odoo
8d026a066c390cc8f72805d2672212e61260c1cb
c9becd0c192fa239520ad3e1a11d81f70832eddf
refs/heads/master
2023-03-11T06:02:06.011575
2021-02-26T02:17:37
2021-02-26T02:17:37
276,346,540
0
0
null
null
null
null
UTF-8
Python
false
false
39,582
py
from openerp import fields, models, api, _ import dateutil.relativedelta from datetime import datetime, date, timedelta from openerp.exceptions import UserError class HutangReportWizard(models.TransientModel): _name = 'hutang.report.wizard' @api.multi def get_first_date(self): current_date = date.today() return date(current_date.year, current_date.month, 1) company_id = fields.Many2one('res.company', 'Company', default=lambda self: self.env.user.company_id) date_from = fields.Date('Start Date', default=get_first_date) date_to = fields.Date('End Date', default=date.today()) partner_ids = fields.Many2many('res.partner', string='Partner(s)') type = fields.Selection([ ('idr', 'IDR'), ('valas', 'VALAS') ], string='Type', default='idr') currency_id = fields.Many2one('res.currency', string='Currency') report_type = fields.Selection([ ('rekap', 'Rekap'), ('detail', 'Detail'), ], string='Report Type', default='rekap') @api.onchange('type') def change_type(self): if self.type == 'idr': self.currency_id = self.env['res.currency'].search([('name', '=', 'IDR')], limit=1).id else: self.currency_id = self.env['res.currency'].search([('name', '=', 'USD')], limit=1).id @api.multi def view_hutang_report(self): if self.type == 'idr': return self.view_hutang_idr_report() else: return self.view_hutang_valas_report() @api.multi def view_hutang_idr_report(self): datas = {} datas['ids'] = [self['id']] datas['company_name'] = self.company_id.name + ' - ' + self.company_id.currency_id.name datas['model'] = self._name datas['form'] = self.read()[0] datas['date_from'] = datetime.strptime(self.date_from, '%Y-%m-%d').strftime('%d %B %Y') datas['date_to'] = datetime.strptime(self.date_to, '%Y-%m-%d').strftime('%d %B %Y') datas['account_ids'] = 'All' datas['partner_ids'] = 'All' datas['report_type'] = 'Rekap' and self.report_type == 'rekap' or 'Detail' compiled_data = {} if self.partner_ids: datas['partner_ids'] = self.partner_ids and ', '.join(map(str, [x.name for x in self['partner_ids']])) or 'All' domain = [ ('type', '=', 'in_invoice'), ('state', 'not in', ['cancel', 'draft']), ('date_invoice', '<=', self.date_to), ('currency_id.name', '=', 'IDR') ] if self.partner_ids: domain.append(('partner_id', 'in', self.partner_ids.ids)) bills = self.env['account.invoice'].search(domain, order='date_invoice') gt_saldo_awal = gt_penambahan = gt_bank = gt_kompensasi = gt_perantara = gt_reclass = gt_retur = gt_klaim = gt_lain = gt_total_pelunasan = gt_saldo_ahir = 0 compiled_data = {} for bill in bills: if not bill.invoice_line_ids: continue print(bill.number) # Remove invoice paid from retur if bill.state == 'paid' and not bill.payment_move_line_ids.sorted(key=lambda l: l.date): continue # Remove invoice paid and payment date before date from if bill.state == 'paid' and bill.payment_move_line_ids.sorted(key=lambda l: l.date)[-1].date < self.date_from: continue partner = bill.partner_id.name or 'Undefined' sorted_bill = '%s%s%s' % (bill.date_invoice, bill.id, bill.number) if not compiled_data.get(partner): compiled_data[partner] = {'bills': {} } if not compiled_data[partner]['bills'].get(sorted_bill): compiled_data[partner]['bills'][sorted_bill] = {'saldo_awal': 0, 'bill_info': [], 'total_pelunasan': 0, 'payments': [], 'saldo_ahir': 0} pelunasan = payment_banks_before_amount = payment_kompensasi_before_amount = payment_perantara_before_amount = \ payment_reclass_before_amount = payment_retur_before_amount = payment_klaim_before_amount = payment_lain_before_amount = 0 # PAYMENT BANK banks = [] payment_banks = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.type in ['bank', 'cash'] and self.date_from <= l.date <= self.date_to) payment_banks_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.type in ['bank', 'cash'] and l.date < self.date_from) for payment in payment_banks: payment_amount = abs(payment.balance) data = [ payment.statement_id.mutasi_bank_id.name if payment.journal_id.type == 'bank' else payment.statement_id.name, payment.move_id.ref if payment.journal_id.type == 'bank' else payment.move_id.name, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), payment_amount ] pelunasan += payment_amount gt_bank += payment_amount banks.append(data) for payment in payment_banks_before: payment_amount = abs(payment.balance) payment_banks_before_amount += payment_amount # PAYMENT KOMPENSASI kompensasi = [] payment_kompensasi = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KPE', 'KPL'] and self.date_from <= l.date <= self.date_to) payment_kompensasi_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KPE', 'KPL'] and l.date < self.date_from) for payment in payment_kompensasi_before: payment_amount = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), '', payment_amount ] pelunasan += payment_amount gt_kompensasi += payment_amount kompensasi.append(data) for payment in payment_kompensasi_before: payment_amount = abs(payment.balance) payment_kompensasi_before_amount += payment_amount # PAYMENT PERANTARA perantara = [] payment_perantara = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['PRLC', 'PRTB'] and self.date_from <= l.date <= self.date_to) payment_perantara_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['PRLC', 'PRTB'] and l.date < self.date_from) for payment in payment_perantara: payment_amount = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), '', '', payment_amount ] pelunasan += payment_amount gt_perantara += payment_amount perantara.append(data) for payment in payment_perantara_before: payment_amount = abs(payment.balance) payment_perantara_before_amount += payment_amount # RECLASS reclass = [] payment_reclass = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['LUMAP', 'IUMAP'] and self.date_from <= l.date <= self.date_to) payment_reclass_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['LUMAP', 'IUMAP'] and l.date < self.date_from) for payment in payment_reclass: payment_amount = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), '', '', '', payment_amount ] pelunasan += payment_amount gt_reclass += payment_amount reclass.append(data) for payment in payment_reclass_before: payment_amount = abs(payment.balance) payment_reclass_before_amount += payment_amount # RETUR retur = [] payment_retur = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['RTRIN', 'RETUR'] and self.date_from <= l.date <= self.date_to) payment_retur_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['RTRIN', 'RETUR'] and l.date < self.date_from) for payment in payment_retur: payment_amount = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), '', '', '', '', payment_amount ] pelunasan += payment_amount gt_retur += payment_amount retur.append(data) for payment in payment_retur_before: payment_amount = abs(payment.balance) payment_retur_before_amount += payment_amount # KLAIM klaim = [] payment_klaim = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KLAIM', 'KLMB'] and self.date_from <= l.date <= self.date_to) payment_klaim_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KLAIM', 'KLMB'] and l.date < self.date_from) for payment in payment_klaim: payment_amount = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), '', '', '', '', '', payment_amount ] pelunasan += payment_amount gt_klaim += payment_amount klaim.append(data) for payment in payment_klaim_before: payment_amount = abs(payment.balance) payment_klaim_before_amount += payment_amount # LAIN lain = [] payment_lain = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['JMAP'] and self.date_from <= l.date <= self.date_to) payment_lain_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['JMAP'] and l.date < self.date_from) for payment in payment_lain: payment_amount = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), '', '', '', '', '', '', payment_amount ] pelunasan += payment_amount gt_lain += payment_amount lain.append(data) for payment in payment_lain_before: payment_amount = abs(payment.balance) payment_retur_before_amount += payment_amount payments = [ banks, kompensasi, perantara, reclass, retur, klaim, lain ] total_payment_before_date_from = payment_banks_before_amount + payment_kompensasi_before_amount + payment_perantara_before_amount + payment_reclass_before_amount + \ payment_retur_before_amount + payment_klaim_before_amount + payment_lain_before_amount saldo_awal = round(bill.amount_total - total_payment_before_date_from, 2) if bill.date_invoice < self.date_from else 0 penambahan = round(bill.amount_total, 2) if self.date_from <= bill.date_invoice <= self.date_to else 0 saldo_ahir = round(saldo_awal + penambahan - pelunasan, 2) bill_info = [ bill.partner_id.name, bill.account_id.name, datetime.strptime(bill.date_invoice, "%Y-%m-%d").strftime("%d-%m-%Y"), bill.number, bill.nobukti_kontrabon.name or '', bill.reference or '', saldo_awal, penambahan ] gt_saldo_awal += saldo_awal gt_penambahan += penambahan gt_saldo_ahir += saldo_ahir gt_total_pelunasan += pelunasan compiled_data[partner]['bills'][sorted_bill]['saldo_awal'] = saldo_awal compiled_data[partner]['bills'][sorted_bill]['saldo_ahir'] = saldo_ahir compiled_data[partner]['bills'][sorted_bill]['bill_info'].append(bill_info) compiled_data[partner]['bills'][sorted_bill]['payments'].append(payments) compiled_data[partner]['bills'][sorted_bill]['total_pelunasan'] += pelunasan grand_total = [ gt_saldo_awal, gt_penambahan, '', '', '', gt_bank, gt_kompensasi, gt_perantara, gt_reclass, gt_klaim, gt_retur, gt_lain, gt_total_pelunasan, gt_saldo_ahir ] datas['csv'] = compiled_data datas['grand_total'] = grand_total if self.report_type == 'rekap': return { 'type': 'ir.actions.report.xml', 'report_name': 'hutang.summary.idr.xls', 'nodestroy': True, 'datas': datas, } return { 'type': 'ir.actions.report.xml', 'report_name': 'hutang.idr.xls', 'nodestroy': True, 'datas': datas, } ############################## VALAS ############################################################## @api.multi def view_hutang_valas_report(self): datas = {} datas['ids'] = [self['id']] datas['company_name'] = self.company_id.name + ' - ' + self.currency_id.name datas['model'] = self._name datas['form'] = self.read()[0] datas['date_from'] = datetime.strptime(self.date_from, '%Y-%m-%d').strftime('%d %B %Y') datas['date_to'] = datetime.strptime(self.date_to, '%Y-%m-%d').strftime('%d %B %Y') datas['account_ids'] = 'All' datas['partner_ids'] = 'All' datas['partner_ids'] = self.partner_ids and ', '.join(map(str, [x.name for x in self['partner_ids']])) or 'All' datas['valas'] = self.currency_id.name datas['report_type'] = 'Rekap' and self.report_type == 'rekap' or 'Detail' # KURS this_month = datetime.strptime(self.date_from, '%Y-%m-%d') before_1_month = this_month - dateutil.relativedelta.relativedelta(months=1) before_month = before_1_month.month if before_1_month.month >= 10 else '0%s' % (before_1_month.month) year = before_1_month.year domain_kurs = [ ('bulan', '=', before_month), ('tahun_id.name', '=', year), ('currency_id', '=', self.currency_id.id) ] kurs = self.env['master.kurs.bi'].search(domain_kurs, limit=1) if not kurs: raise UserError(_('Master data kurs transaksi berjalan tidak ditemukan !')) datas['kurs_awal'] = kurs.kurs_akhir datas['kurs_ahir'] = 0 current_month = this_month.month if this_month.month >= 10 else '0%s' % (this_month.month) domain_kurs = [ ('bulan', '=', current_month), ('tahun_id.name', '=', self.date_from[:4]), ('currency_id', '=', self.currency_id.id) ] kurs = self.env['master.kurs.bi'].search(domain_kurs, limit=1) if kurs: datas['kurs_awal'] = kurs.kurs_awal datas['kurs_ahir'] = kurs.kurs_akhir compiled_data = {} domain = [ ('type', '=', 'in_invoice'), ('state', 'not in', ['cancel', 'draft']), ('date_invoice', '<=', self.date_to), ('currency_id', '=', self.currency_id.id) ] if self.partner_ids: domain.append(('partner_id', 'in', self.partner_ids.ids)) bills = self.env['account.invoice'].search(domain, order='date_invoice') gt_saldo_awal_valas = gt_penambahan_valas = gt_bank_valas = gt_kompensasi_valas = gt_perantara_valas = gt_reclass_valas = gt_retur_valas = gt_klaim_valas = gt_lain_valas = gt_total_valas = gt_saldo_ahir_valas = 0 gt_saldo_awal_idr = gt_penambahan_idr = gt_bank_idr = gt_kompensasi_idr = gt_perantara_idr = gt_reclass_idr = gt_retur_idr = gt_klaim_idr = gt_lain_idr = gt_total_idr = gt_selisih_idr = gt_saldo_ahir_idr = 0 gt_unrealized = gt_realized = total_selisih_idr = 0 compiled_data = {} for bill in bills: selisih_idr = total_selisih_idr = 0 if not bill.invoice_line_ids: continue # Remove invoice paid from retur if bill.state == 'paid' and not bill.payment_move_line_ids.sorted(key=lambda l: l.date): continue # Remove invoice paid and payment date before date from if bill.state == 'paid' and bill.payment_move_line_ids.sorted(key=lambda l: l.date)[-1].date < self.date_from: continue partner = bill.partner_id.name or 'Undefined' sorted_bill = '%s%s%s' % (bill.date_invoice, bill.id, bill.number) if not compiled_data.get(partner): compiled_data[partner] = {'bills': {} } if not compiled_data[partner]['bills'].get(sorted_bill): compiled_data[partner]['bills'][sorted_bill] = { 'saldo_awal': 0, 'bill_info': [], 'payments': [], 'total_pelunasan_valas': 0, 'total_pelunasan_idr': 0, 'saldo_ahir_valas': 0, 'saldo_ahir_idr': 0 } pelunasan_valas = pelunasan_idr = payment_banks_before_valas_amount = payment_banks_before_idr_amount = payment_kompensasi_before_valas_amount = payment_kompensasi_before_idr_amount = \ payment_perantara_before_valas_amount = payment_perantara_before_idr_amount = payment_reclass_before_valas_amount = payment_reclass_before_idr_amount = \ payment_retur_before_valas_amount = payment_retur_before_idr_amount = payment_klaim_before_valas_amount = payment_klaim_before_idr_amount = \ payment_lain_before_valas_amount = payment_lain_before_idr_amount = 0 # PAYMENT BANK banks = [] payment_banks = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.type in ['bank', 'cash'] and self.date_from <= l.date <= self.date_to) payment_banks_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.type in ['bank', 'cash'] and l.date < self.date_from) for payment in payment_banks: payment_amount_currency = abs(payment.amount_currency) payment_amount_idr = abs(payment.balance) data = [ payment.statement_id.mutasi_bank_id.name if payment.journal_id.type == 'bank' else payment.statement_id.name, payment.move_id.ref if payment.journal_id.type == 'bank' else payment.move_id.name, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_bank_valas += payment_amount_currency gt_bank_idr += payment_amount_idr banks.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr for payment in payment_banks_before: payment_banks_before_valas_amount += abs(payment.amount_currency) payment_banks_before_idr_amount += abs(payment.balance) # PAYMENT KOMPENSASI kompensasi = [] payment_kompensasi = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KPE', 'KPL'] and self.date_from <= l.date <= self.date_to) payment_kompensasi_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KPE', 'KPL'] and l.date < self.date_from) for payment in payment_kompensasi: print(bill.number) payment_amount_currency = abs(payment.amount_currency) payment_amount_idr = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), # BANK '', '', payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_kompensasi_valas += payment_amount_currency gt_kompensasi_idr += payment_amount_idr kompensasi.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr for payment in payment_kompensasi_before: payment_kompensasi_before_valas_amount += abs(payment.amount_currency) payment_kompensasi_before_idr_amount += abs(payment.balance) # PAYMENT PERANTARA perantara = [] payment_perantara = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['PRLC', 'PRTB'] and self.date_from <= l.date <= self.date_to) payment_perantara_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['PRLC', 'PRTB'] and l.date < self.date_from) for payment in payment_perantara: payment_amount_currency = abs(payment.amount_currency) payment_amount_idr = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), # BANK '', '', # KOMPENSASI '', '', payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_perantara_valas += payment_amount_currency gt_perantara_idr += payment_amount_idr perantara.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr for payment in payment_perantara_before: payment_perantara_before_valas_amount += abs(payment.amount_currency) payment_perantara_before_idr_amount += abs(payment.balance) # RECLASS reclass = [] payment_reclass = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['LUMAP', 'IUMAP'] and self.date_from <= l.date <= self.date_to) payment_reclass_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['LUMAP', 'IUMAP'] and l.date < self.date_from) for payment in payment_reclass: payment_amount_currency = abs(payment.amount_currency) payment_amount_idr = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), # BANK '', '', # KOMPENSASI '', '', # PERANTARA '', '', payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_reclass_valas += payment_amount_currency gt_reclass_idr += payment_amount_idr reclass.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr for payment in payment_reclass_before: payment_reclass_before_valas_amount += abs(payment.amount_currency) payment_reclass_before_idr_amount += abs(payment.balance) # RETUR retur = [] payment_retur = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['RETUR', 'RTRIN'] and self.date_from <= l.date <= self.date_to) payment_retur_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['RETUR', 'RTRIN'] and l.date < self.date_from) for payment in payment_retur: data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), # BANK '', '', # KOMPENSASI '', '', # PERANTARA '', '', # RECLAS UM '', '', payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_retur_valas += payment_amount_currency gt_retur_idr += payment_amount_idr retur.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr # KLAIM klaim = [] payment_klaim = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KLAIM', 'KLMB'] and self.date_from <= l.date <= self.date_to) payment_klaim_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['KLAIM', 'KLMB'] and l.date < self.date_from) for payment in payment_klaim: data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), # BANK '', '', # KOMPENSASI '', '', # PERANTARA '', '', # RECLAS UM '', '', # RETUR '', '', payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_klaim_valas += payment_amount_currency gt_klaim_idr += payment_amount_idr retur.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr # LAIN lain = [] payment_lain = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['JMAP'] and self.date_from <= l.date <= self.date_to) payment_lain_before = bill.payment_move_line_ids.filtered(lambda l: l.journal_id.code.replace(" ", "") in ['JMAP'] and l.date < self.date_from) for payment in payment_lain: payment_amount_currency = abs(payment.amount_currency) payment_amount_idr = abs(payment.balance) data = [ payment.move_id.name, payment.move_id.ref, datetime.strptime(payment.date, "%Y-%m-%d").strftime("%d-%m-%Y"), # BANK '', '', # KOMPENSASI '', '', # PERANTARA '', '', # RECLAS UM '', '', # RETUR '', '', # KLAIM '', '', payment_amount_currency, payment_amount_idr ] pelunasan_valas += payment_amount_currency pelunasan_idr += payment_amount_idr gt_lain_valas += payment_amount_currency gt_lain_idr += payment_amount_idr lain.append(data) if payment.date[:7] == bill.date_invoice[:7]: ap_invoice_aml = bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable') if ap_invoice_aml and abs(ap_invoice_aml.balance) > 0: invoice_kurs = abs(ap_invoice_aml.balance) / abs(ap_invoice_aml.amount_currency) selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * invoice_kurs) else: selisih_idr = abs(payment.balance) - (abs(payment.amount_currency) * datas['kurs_awal']) total_selisih_idr += selisih_idr for payment in payment_lain_before: payment_lain_before_valas_amount += abs(payment.amount_currency) payment_lain_before_idr_amount += abs(payment.balance) payments = [ banks, kompensasi, perantara, reclass, retur, klaim, lain ] total_payment_before_date_from_valas = payment_banks_before_valas_amount + payment_kompensasi_before_valas_amount + payment_perantara_before_valas_amount + \ payment_reclass_before_valas_amount + payment_retur_before_valas_amount + payment_klaim_before_valas_amount + payment_lain_before_valas_amount saldo_awal_valas = round(bill.amount_total - total_payment_before_date_from_valas, 2) if bill.date_invoice < self.date_from else 0 penambahan_valas = round(bill.amount_total, 2) if self.date_from <= bill.date_invoice <= self.date_to else 0 penambahan_idr = abs(bill.move_id.line_ids.filtered(lambda l: l.account_id.internal_type == 'payable')[0].balance) if self.date_from <= bill.date_invoice <= self.date_to else 0 saldo_ahir_valas = saldo_awal_valas + penambahan_valas - round(pelunasan_valas, 2) total_selisih_idr = pelunasan_idr > 0 and total_selisih_idr or 0 bill_info = [ bill.partner_id.name, bill.account_id.name, datetime.strptime(bill.date_invoice, "%Y-%m-%d").strftime("%d-%m-%Y"), bill.number, bill.nobukti_kontrabon.name or '', bill.reference or '', datas['kurs_awal'] or 0, saldo_awal_valas or 0, round(datas['kurs_awal'] * saldo_awal_valas, 2), penambahan_valas, penambahan_idr ] unrealized_kurs_idr = sum(bill.unrealized_move_line_ids.filtered(lambda l: self.date_from <= l.date <= self.date_to).mapped('balance')) or 0 realized_kurs_idr = sum(bill.realized_move_line_ids.filtered(lambda l: self.date_from <= l.date <= self.date_to).mapped('balance')) or 0 compiled_data[partner]['bills'][sorted_bill]['bill_info'].append(bill_info) compiled_data[partner]['bills'][sorted_bill]['payments'].append(payments) compiled_data[partner]['bills'][sorted_bill]['total_pelunasan_valas'] = pelunasan_valas compiled_data[partner]['bills'][sorted_bill]['total_pelunasan_idr'] = pelunasan_idr compiled_data[partner]['bills'][sorted_bill]['unrealized_kurs'] = unrealized_kurs_idr compiled_data[partner]['bills'][sorted_bill]['realized_kurs'] = realized_kurs_idr if self.date_from >= '2020-10-01' else round(total_selisih_idr, 2) compiled_data[partner]['bills'][sorted_bill]['saldo_ahir_valas'] = saldo_ahir_valas compiled_data[partner]['bills'][sorted_bill]['saldo_ahir_idr'] = round(saldo_ahir_valas * datas['kurs_ahir'], 2) gt_saldo_awal_valas += saldo_awal_valas gt_saldo_awal_idr += round(datas['kurs_awal'] * saldo_awal_valas, 2) gt_penambahan_valas += penambahan_valas gt_penambahan_idr += penambahan_idr gt_total_valas += pelunasan_valas gt_total_idr += pelunasan_idr gt_unrealized += unrealized_kurs_idr gt_realized += realized_kurs_idr gt_saldo_ahir_valas += saldo_ahir_valas gt_saldo_ahir_idr += round(saldo_ahir_valas * datas['kurs_ahir'], 2) grand_total = [ datas['kurs_awal'], gt_saldo_awal_valas, gt_saldo_awal_idr, gt_penambahan_valas, gt_penambahan_idr, '', '', '', gt_bank_valas, gt_bank_idr, gt_kompensasi_valas, gt_kompensasi_idr, gt_perantara_valas, gt_perantara_idr, gt_reclass_valas, gt_reclass_idr, gt_retur_valas, gt_retur_idr, gt_klaim_valas, gt_klaim_idr, gt_lain_valas, gt_lain_idr, gt_total_valas, gt_total_idr, gt_unrealized, gt_realized, gt_saldo_ahir_valas, gt_saldo_ahir_idr, datas['kurs_ahir'] ] datas['csv'] = compiled_data datas['grand_total'] = grand_total if self.report_type == 'rekap': return { 'type': 'ir.actions.report.xml', 'report_name': 'hutang.valas.summary.xls', 'nodestroy': True, 'datas': datas, } return { 'type': 'ir.actions.report.xml', 'report_name': 'hutang.valas.xls', 'nodestroy': True, 'datas': datas, }
[ "dads02_zetti@yahoo.com" ]
dads02_zetti@yahoo.com
b975c3750ca0bbfcae9452e1509f6b24a1096888
0e29ce9ecc89d5b03b4c6c42bfbc26c4dd36d304
/PHYSNET/physnet_train_gpu.py
1da55402dd14a1071e39758e57ca862153ea0515
[]
no_license
Nabeel-Idrees/Heart-Rate-Prediction
a1c2514ee2bca9ff524dea236e2f0c9ca059bce2
ad69aa411c986226dbf4529e0b8ebe9bfa26afde
refs/heads/main
2023-05-07T12:06:29.339823
2021-06-02T05:39:52
2021-06-02T05:39:52
372,632,538
1
0
null
null
null
null
UTF-8
Python
false
false
9,731
py
from __future__ import print_function, division import torch import matplotlib.pyplot as plt import argparse,os import pandas as pd import numpy as np import random import math import pandas as pd from torchvision import transforms import numpy as np import matplotlib.pyplot as plt import cv2 import os import scipy.io import math import torch.nn as nn from torch.nn.modules.utils import _triple import pdb import torch import torchvision import torchvision.transforms as transforms from torch import autograd import argparse import parser #CUDA parser = argparse.ArgumentParser() parser.add_argument('--Device', default = 'cuda:0', type = str) parser.add_argument('--DataParallel', default = 0, type = int) import math import torch.nn as nn from torch.nn.modules.utils import _triple import torch import pdb class PhysNet_padding_Encoder_Decoder_MAX(nn.Module): def __init__(self, frames=128): super(PhysNet_padding_Encoder_Decoder_MAX, self).__init__() self.ConvBlock1 = nn.Sequential( nn.Conv3d(3, 16, [1,5,5],stride=1, padding=[0,2,2]), nn.BatchNorm3d(16), nn.ReLU(inplace=True), ) self.ConvBlock2 = nn.Sequential( nn.Conv3d(16, 32, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(32), nn.ReLU(inplace=True), ) self.ConvBlock3 = nn.Sequential( nn.Conv3d(32, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.ConvBlock4 = nn.Sequential( nn.Conv3d(64, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.ConvBlock5 = nn.Sequential( nn.Conv3d(64, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.ConvBlock6 = nn.Sequential( nn.Conv3d(64, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.ConvBlock7 = nn.Sequential( nn.Conv3d(64, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.ConvBlock8 = nn.Sequential( nn.Conv3d(64, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.ConvBlock9 = nn.Sequential( nn.Conv3d(64, 64, [3, 3, 3], stride=1, padding=1), nn.BatchNorm3d(64), nn.ReLU(inplace=True), ) self.upsample = nn.Sequential( nn.ConvTranspose3d(in_channels=64, out_channels=64, kernel_size=[4,1,1], stride=[2,1,1], padding=[1,0,0]), #[1, 128, 32] nn.BatchNorm3d(64), nn.ELU(), ) self.upsample2 = nn.Sequential( nn.ConvTranspose3d(in_channels=64, out_channels=64, kernel_size=[4,1,1], stride=[2,1,1], padding=[1,0,0]), #[1, 128, 32] nn.BatchNorm3d(64), nn.ELU(), ) self.ConvBlock10 = nn.Conv3d(64, 1, [1,1,1],stride=1, padding=0) self.MaxpoolSpa = nn.MaxPool3d((1, 2, 2), stride=(1, 2, 2)) self.MaxpoolSpaTem = nn.MaxPool3d((2, 2, 2), stride=2) #self.poolspa = nn.AdaptiveMaxPool3d((frames,1,1)) # pool only spatial space self.poolspa = nn.AdaptiveAvgPool3d((frames,1,1)) def forward(self, x): # x [3, T, 128,128] x_visual = x [batch,channel,length,width,height] = x.shape x = self.ConvBlock1(x) # x [3, T, 128,128] x = self.MaxpoolSpa(x) # x [16, T, 64,64] x = self.ConvBlock2(x) # x [32, T, 64,64] x_visual6464 = self.ConvBlock3(x) # x [32, T, 64,64] x = self.MaxpoolSpaTem(x_visual6464) # x [32, T/2, 32,32] Temporal halve x = self.ConvBlock4(x) # x [64, T/2, 32,32] x_visual3232 = self.ConvBlock5(x) # x [64, T/2, 32,32] x = self.MaxpoolSpaTem(x_visual3232) # x [64, T/4, 16,16] x = self.ConvBlock6(x) # x [64, T/4, 16,16] x_visual1616 = self.ConvBlock7(x) # x [64, T/4, 16,16] x = self.MaxpoolSpa(x_visual1616) # x [64, T/4, 8,8] x = self.ConvBlock8(x) # x [64, T/4, 8, 8] x = self.ConvBlock9(x) # x [64, T/4, 8, 8] x = self.upsample(x) # x [64, T/2, 8, 8] x = self.upsample2(x) # x [64, T, 8, 8] x = self.poolspa(x) # x [64, T, 1,1] --> groundtruth left and right - 7 x = self.ConvBlock10(x) # x [1, T, 1,1] rPPG = x.view(-1,length) return rPPG, x_visual, x_visual3232, x_visual1616 class Neg_Pearson(nn.Module): # Pearson range [-1, 1] so if < 0, abs|loss| ; if >0, 1- loss def __init__(self): super(Neg_Pearson,self).__init__() return def forward(self, preds, labels): # tensor [Batch, Temporal] loss = 0 for i in range(preds.shape[0]): sum_x = torch.sum(preds[i]) # x sum_y = torch.sum(labels[i]) # y sum_xy = torch.sum(preds[i]*labels[i]) # xy sum_x2 = torch.sum(torch.pow(preds[i],2)) # x^2 sum_y2 = torch.sum(torch.pow(labels[i],2)) # y^2 N = preds.shape[1] pearson = (N*sum_xy - sum_x*sum_y)/(torch.sqrt((N*sum_x2 - torch.pow(sum_x,2))*(N*sum_y2 - torch.pow(sum_y,2)))) #if (pearson>=0).data.cpu().numpy(): # torch.cuda.ByteTensor --> numpy # loss += 1 - pearson #else: # loss += 1 - torch.abs(pearson) loss += 1 - pearson loss = loss/preds.shape[0] return loss criterion_Pearson = Neg_Pearson() #LOAD DATA loss_val = [] mse_1 = [] mae_1 = [] l=[] face_img=[] target_l=[] target_a=[] NB = '/home/eng/s/sxs190123/steven/data' g=os.listdir(NB) print(len(g)) for i in range(0,len(g)): n = NB +"/" + g[i] + "/" u = n if os.path.isdir(n): li = os.listdir(n) for images in range(0,len(li)): if li[images] == 'rppg.mat': mat = scipy.io.loadmat(u+li[images]) target_l.append(np.array(mat['gtTrace'])) if '.jpg' in li[images]: mat = cv2.imread(u+li[images]) mat = cv2.resize(mat,(128,128)) l.append(np.array(mat)) face_img.append(l) face_img = np.array(face_img) face_img = face_img[0] print(face_img.shape) target_a.append(target_l) target_a = np.array(target_a) target = target_a[0] label = np.array(target[0]) for i in range(1,target.shape[0]): h = np.array(target[i]) label = np.append(label,h,axis=0) print(label.shape) full_data = [] face_img = torch.tensor(face_img) label_t = torch.tensor(label) for i in range(0,len(label)): full_data.append([face_img[i],label_t[i]]) print(len(full_data)) trainloader = torch.utils.data.DataLoader(full_data, shuffle=True, batch_size=128, drop_last = True) print((trainloader)) model = PhysNet_padding_Encoder_Decoder_MAX() model= model.cuda() optimizer = torch.optim.Adam(model.parameters(), lr =0.0001) count = 0 EPOCHS = 15 print("Starting Training......") for epoch in range(0,EPOCHS): print('Epoch:' + str(epoch + 1)) for data in trainloader: its,lbls = data its, lbls = its.cuda(), lbls.cuda() c_image = its.view(1,3,128,128,128) c_image = autograd.Variable(c_image.cuda()) rppg_label = lbls.view(1,128) rppg_label = autograd.Variable(rppg_label.cuda()) rPPG, x_visual, x_visual3232, x_visual1616 = model(c_image.float()) rPPG = (rPPG-torch.mean(rPPG)) /torch.std(rPPG) #normalize rppg_label = (rppg_label-torch.mean(rppg_label)) /torch.std(rppg_label) # normalize loss_ecg = criterion_Pearson(rPPG, rppg_label) optimizer.zero_grad() optimizer.step() print("The loss is: " + str(loss_ecg)) loss_num = loss_ecg.cpu().detach().numpy() loss_val.append(loss_num) mean_se = nn.MSELoss() mean_se1 = mean_se(rPPG,rppg_label) mean_se2 = mean_se1.cpu().detach().numpy() mse_1.append(mean_se2) mean_ae = nn.L1Loss() mean_ae1 = mean_ae(rPPG,rppg_label) mean_ae2 = mean_ae1.cpu().detach().numpy() mae_1.append(mean_ae2) if (epoch > 0): f1 = open('model-phys/loss.txt', 'a') else: if not os.path.exists('model-phys'): os.makedirs('model-phys') f1 = open('model-phys/loss.txt', 'w') f1.write(str(loss_val[epoch]) + '\t' + str(mse_1[epoch]) + '\t' + str(mae_1[epoch]) + '\n') f1.close() torch.save(model.state_dict(), 'model-phys/physnet.pt') print("Training ended....") plt.figure(1) plt.plot(loss_val) plt.title('Pearson Loss') plt.ylabel('loss_ecg') plt.xlabel('epoch') plt.tight_layout() plt.show() plt.savefig('model-phys/pearson_loss.png') # mse plot plt.figure(2) plt.subplot(211) plt.plot(mse_1) plt.title('Mean Square Error') plt.ylabel('Error') plt.xlabel('epoch') #plt.legend(['training', 'validation'], loc='upper left') #mae plot plt.subplot(212) plt.plot(mae_1) plt.title('Mean Absolute Error') plt.ylabel('Error') plt.xlabel('epoch') #plt.legend(['training', 'validation'], loc='upper left') plt.tight_layout() plt.show() plt.savefig('model-phys/error_physnet.png')
[ "noreply@github.com" ]
Nabeel-Idrees.noreply@github.com
00522ecd1c7f835b14bb46f0d942b106ca3063e3
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2858/60712/247048.py
f997899bee5b991da02d538ae22518f141c9be8c
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
221
py
n = int(input()) list1 =[[0]*n]*n for i in range(n): list1[0][i]==1 list1[i][0]==1 for i in range(1,n): for j in range(1,n): list1[i][j]=list1[i-1][j]+list1[i][j-1] print(list1[n-1][n-1])
[ "1069583789@qq.com" ]
1069583789@qq.com
a4135bfe3e7c5bb3709e4fb214b305f987be3e8c
2361f5cff20e21c21f1c6c9cfb006667a3a570ef
/examples/lce_unique_procs/lce_unique_procs.py
5313d83cc0232195493130f000682f62a695e3c9
[]
no_license
dmwoods38/pySecurityCenter
3461166c7adf1e1a8c9fca915618389b840a5b63
f1ece77dcd3ac3d2928bb43b0635a160715a3b61
refs/heads/master
2020-12-26T03:34:54.812497
2013-08-20T17:37:30
2013-08-20T17:37:30
18,523,682
1
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
import securitycenter import time import re username = 'USERNAME' password = 'PASSWORD' hostname = 'HOSTNAME' days = 7 sc = securitycenter.SecurityCenter(hostname, username, password) queries = [{ 'eventName': 'Unique_Windows_Executable', 'regex': re.compile(r'invoked \'(.*?)\''), 'regex_type': 'single', },{ 'eventName': 'Daily_Command_Summary', 'regex': re.compile(r'day: (.*?) \('), 'regex_type': 'multiple', } ] procs = set() for query in queries: data = sc.query('syslog', source='lce', eventName=query['eventName'], endtime=int(time.time()), starttime=(int(time.time()) - (86400 * days)) ) for item in data: values = query['regex'].findall(item['message']) for value in values: if query['regex_type'] == 'single': procs.add(value) if query['regex_type'] == 'multiple': for val in value.split(', '): procs.add(val) print '%s:\t%s' % (len(procs), ', '.join(procs))
[ "steve@chigeek.com" ]
steve@chigeek.com
090b124deb2c134c7b672e37da19181c8b1ebe3c
e34aa59a6e70e4030eaa5edf23e4e31dcec37ffd
/typeidea/config/models.py
bd817a30822834a851cb8476541ac24a933a4477
[ "MIT" ]
permissive
LastDanceG/typeblog
7d33117f51e201dfeba8ec1649da96b558e1ca82
fdd043546813866669c004bc8d8aedbfcfa326f2
refs/heads/master
2021-06-30T23:36:48.154669
2020-03-07T13:19:43
2020-03-07T13:19:43
241,825,538
1
0
MIT
2021-06-10T22:35:30
2020-02-20T07:57:42
Python
UTF-8
Python
false
false
1,974
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models # Create your models here. class Link(models.Model): STATUS_ITEMS = ( (1, '正常'), (2, '删除'), ) title = models.CharField(max_length=50, verbose_name="标题") href = models.URLField(verbose_name="链接") # 默认长度200 status = models.PositiveIntegerField(default=1, choices=STATUS_ITEMS, verbose_name="状态") weight = models.PositiveIntegerField(choices=zip(range(1, 6), range(1, 6)), verbose_name="权重", help_text="权重越高展示顺序越靠前") owner = models.ForeignKey(User, verbose_name="作者") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间") def __unicode__(self): return self.title def __str__(self): return self.title class Meta: verbose_name = verbose_name_plural = "友链" class SideBar(models.Model): STATUS_ITEMS = ( (1, "展示"), (2, "下线"), ) SIDE_TYPE = ( (1, "HTML"), (2, "最新文章"), (3, "最热文章"), (4, "最近评论"), ) title = models.CharField(max_length=50, verbose_name="标题") display_type = models.PositiveIntegerField(default=1, choices=SIDE_TYPE, verbose_name="展示类型") status = models.IntegerField(default=1, choices=STATUS_ITEMS, verbose_name="状态") content = models.CharField(max_length=500, blank=True, verbose_name="内容", help_text="如果设置的不是HTML,可为空") owner = models.ForeignKey(User, verbose_name="作者") create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间") def __unicode__(self): return self.title def __str__(self): return self.title class Meta: verbose_name = verbose_name_plural = "侧边栏"
[ "ail" ]
ail
5a89157056ad553cc49d533fa22f371d938b8839
6abc9b7e59aa2bc77d16bf0579bc2319db4fa20c
/miniverse/mock_token/views_write_api.py
0036de066f26a40dfd068360e41498f1e2dc79c3
[ "MIT" ]
permissive
IQSS/old-miniverse
b05823891fafd40a5b12f18894f3dff19404fe37
daabcad2fbd6cc29cc05f0091f51157e4fe9e46a
refs/heads/master
2021-01-21T03:15:54.392430
2014-06-27T16:05:55
2014-06-27T16:05:55
19,803,423
0
2
null
null
null
null
UTF-8
Python
false
false
1,205
py
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from django.views.decorators.csrf import csrf_exempt from miniverse_util.json_util import get_json_err, get_json_success_msg from mock_token.models import DataverseToken from metadata.forms import GeographicMetadataUpdateForm from metadata.models import GeographicMetadata import json @csrf_exempt def view_update_gis_metadata(request): """ Given a valid token, return metadata about a single datafile :rtype: JSON """ if request.method=='POST': geo_metadata_form = GeographicMetadataUpdateForm(request.POST) print request.POST if geo_metadata_form.is_valid(): if geo_metadata_form.save_metadata(): return HttpResponse(get_json_success_msg('The metadata was saved')) else: return HttpResponse(get_json_err('The metadata was not saved')) else: return HttpResponse(get_json_err('The form was not valid'), content_type="application/json") return HttpResponse(get_json_err('No updates were submitted'), content_type="application/json")
[ "raman_prasad@harvard.edu" ]
raman_prasad@harvard.edu
68e50a4844cf1bb309f743c78c6d073c42081a57
fee6a02b8612366aa4d80126988c11d00c78e929
/server.py
5d9910f1b2c7cddf9412f14d5c3d755660140f3b
[]
no_license
carriecarrieee/flask-intro
001ff051a9c2e44348f251db5fa5449238e3dee4
f4c0b269e9563c7157513ecd42c5b92d2209ea53
refs/heads/master
2021-01-19T21:33:39.252861
2017-04-18T20:02:22
2017-04-18T20:02:22
88,665,647
0
0
null
null
null
null
UTF-8
Python
false
false
1,955
py
"""Greeting Flask app.""" from random import choice from flask import Flask, request # "__name__" is a special Python variable for the name of the current module # Flask wants to know this to know what any imported things are relative to. app = Flask(__name__) AWESOMENESS = [ 'awesome', 'terrific', 'fantastic', 'neato', 'fantabulous', 'wowza', 'oh-so-not-meh', 'brilliant', 'ducky', 'coolio', 'incredible', 'wonderful', 'smashing', 'lovely'] @app.route('/') def start_here(): """Home page.""" return "<!doctype html><html>Hi! This is the home page. <a href=\"http://localhost:5000/hello\">Click here!</a></html>" @app.route('/hello') def say_hello(): """Say hello and prompt for user's name.""" return """ <!doctype html> <html> <head> <title>Hi There!</title> </head> <body> <h1>Hi There!</h1> <form action="/greet" method="GET"> What's your name? <input type="text" name="person"><br> May I compliment you? Pick one! <input type="radio" name="compliment" value="marvelous">Marvelous <input type="radio" name="compliment" value="supercalicodesexy">Supercalicodesexy <input type="submit" value="Submit"> </form> </body> </html> """ @app.route('/greet') def greet_person(): """Get user by name.""" player = request.args.get("person") compliment = request.args.get("compliment") return """ <!doctype html> <html> <head> <title>A Compliment</title> </head> <body> Hi, {player}! I think you're {compliment}! </body> </html> """.format(player=player, compliment=compliment) if __name__ == '__main__': # debug=True gives us error messages in the browser and also "reloads" # our web app if we change the code. app.run(debug=True, port=5001) # We broke it and Dennis cannot fix it. It's alright. Go to lunch.
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
26d70c2e075ff7509fb143a53f1293d16cc6fc4e
93ba48b23e5dbaca65596e220bad27ccaaa2bb12
/venv/bin/jupyter-kernelspec
492d8cbc16da53eb869b640f610a5362e8a7b2c3
[]
no_license
rachanachikka1998/django-project
840d644b3c434c0495f77aa6c6521b5c926b55c0
65cfab371cf1aa91c90b169b74c5e5fe85f2f074
refs/heads/master
2022-12-20T23:32:40.217508
2019-07-18T05:56:07
2019-07-18T05:56:07
194,211,197
0
1
null
2022-12-09T20:56:10
2019-06-28T05:23:15
Python
UTF-8
Python
false
false
297
#!/home/ib_admin/git/django-project/venv/bin/python # -*- coding: utf-8 -*- import re import sys from jupyter_client.kernelspecapp import KernelSpecApp if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(KernelSpecApp.launch_instance())
[ "rachanachikka1998@gmail.com" ]
rachanachikka1998@gmail.com
39846a662734e9bb893270768da2b0f5b64cfb9f
8923038046c75b03cfc2a727a1f3c3d8c2f8e451
/imageup/models.py
7eee08be7692b94aeaeaca4ef62fa70808a684a2
[ "MIT" ]
permissive
laucia/imageup
6a548be1751916f27113ed2c0b1dc0b3afa4c971
2636c661bccbf57543d2051f19f71301516a3198
refs/heads/master
2020-05-15T23:17:09.890095
2014-01-25T15:45:35
2014-01-25T15:45:35
16,109,919
0
1
null
2014-01-25T15:45:35
2014-01-21T17:01:14
Python
UTF-8
Python
false
false
1,338
py
import os from django.conf import settings from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.utils.translation import string_concat from django.utils.translation import ugettext_lazy as _ MEDIA_FILENAME = getattr(settings, 'IMAGEUP_MEDIA_FILENAME', 'imageup') def get_image_path(instance, filename): ''' Utility function for naming ''' ext = filename.split('.')[-1] name = u'%s.%s' % (instance.title, ext) return os.path.join(MEDIA_FILENAME, name) class UploadedImage(models.Model): ''' Simple class to upload images to the server ''' # Fields # - - - - - - - - - - - - - - - - - - - - - - title = models.CharField( max_length = 60, unique = True, verbose_name = _(u'title'), ) image = models.ImageField( upload_to = get_image_path, verbose_name = _(u'image'), ) description = models.TextField( blank=True, null=True, verbose_name = _(u'description') ) # Verbose # - - - - - - - - - - - - - - - - - - - - - - def __unicode__(self): return self.title # Meta # - - - - - - - - - - - - - - - - - - - - - - class Meta: ordering = ['title',] verbose_name=_(u'uploaded image') verbose_name_plural = _(u'uploaded images') # Functions # - - - - - - - - - - - - - - - - - - - - - - def url(self): return self.image.url
[ "lauris.jullien@telecom-paristech.org" ]
lauris.jullien@telecom-paristech.org