index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
listlengths
768
768
3,636
meshio._mesh
__init__
null
def __init__( self, points: ArrayLike, cells: dict[str, ArrayLike] | list[tuple[str, ArrayLike] | CellBlock], point_data: dict[str, ArrayLike] | None = None, cell_data: dict[str, list[ArrayLike]] | None = None, field_data=None, point_sets: dict[str, ArrayLike] | None = None, cell_sets: d...
(self, points: Union[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]], numpy._typing._nested_sequence._NestedSequence[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]]], bool, int, float, complex, str, bytes, numpy._typing._nested_sequence._NestedSequence[Union[bool, int, float, complex, str, bytes]]...
[ 0.06581895798444748, -0.03063187375664711, -0.0112336166203022, 0.039201848208904266, -0.08068130165338516, -0.051651474088430405, -0.04740509018301964, 0.03470453992486, -0.04103551432490349, 0.02578713372349739, -0.003715586382895708, 0.01743912883102894, -0.05585925653576851, 0.04045646...
3,637
meshio._mesh
__repr__
null
def __repr__(self): lines = ["<meshio mesh object>", f" Number of points: {len(self.points)}"] special_cells = [ "polygon", "polyhedron", "VTK_LAGRANGE_CURVE", "VTK_LAGRANGE_TRIANGLE", "VTK_LAGRANGE_QUADRILATERAL", "VTK_LAGRANGE_TETRAHEDRON", "VTK_LAGRANG...
(self)
[ 0.03757414594292641, -0.03751867264509201, -0.02930857427418232, 0.007770932745188475, -0.015615830197930336, -0.04874283820390701, -0.027274539694190025, 0.021394334733486176, -0.05991153419017792, -0.004900171421468258, 0.006111346185207367, 0.003263699123635888, -0.08890575915575027, 0....
3,638
meshio._mesh
cell_data_to_sets
Convert point_data to cell_sets.
def cell_data_to_sets(self, key: str): """Convert point_data to cell_sets.""" data = self.cell_data[key] # handle all int and uint data if not all(v.dtype.kind in ["i", "u"] for v in data): raise RuntimeError(f"cell_data['{key}'] is not int data.") tags = np.unique(np.concatenate(data)) ...
(self, key: str)
[ 0.04540562629699707, -0.0255922619253397, -0.025394845753908157, 0.002766063902527094, -0.06432164460420609, 0.004515885375440121, 0.001181129482574761, 0.033847831189632416, 0.045800454914569855, 0.01527280081063509, -0.028732966631650925, -0.010543796233832836, -0.033686306327581406, 0.0...
3,639
meshio._mesh
cell_sets_to_data
null
def cell_sets_to_data(self, data_name: str | None = None): # If possible, convert cell sets to integer cell data. This is possible if all # cells appear exactly in one group. default_value = -1 if len(self.cell_sets) > 0: intfun = [] for k, c in enumerate(zip(*self.cell_sets.values())): ...
(self, data_name: Optional[str] = None)
[ 0.04343298077583313, -0.022768180817365646, 0.025185223668813705, 0.01196528784930706, -0.05649608373641968, 0.006697609089314938, -0.029963959008455276, -0.010378526523709297, -0.009981836192309856, 0.01062761154025793, 0.0054060593247413635, -0.021273672580718994, -0.024982266128063202, ...
3,640
meshio._mesh
copy
null
def copy(self): return copy.deepcopy(self)
(self)
[ -0.002211194019764662, -0.008359547704458237, 0.016191303730010986, -0.005260896869003773, -0.09302763640880585, 0.013288445770740509, -0.022729117423295975, 0.009704566560685635, 0.0832890197634697, 0.015467717312276363, -0.04225742816925049, -0.05369860306382179, -0.035208847373723984, 0...
3,641
meshio._mesh
get_cell_data
null
def get_cell_data(self, name: str, cell_type: str): return np.concatenate( [d for c, d in zip(self.cells, self.cell_data[name]) if c.type == cell_type] )
(self, name: str, cell_type: str)
[ 0.0700475201010704, 0.014559037052094936, -0.02581731230020523, -0.04107218608260155, -0.022819863632321358, -0.014282486401498318, -0.0010404090862721205, -0.0044537982903420925, 0.021927764639258385, 0.003994368016719818, 0.06294642388820648, -0.02683430351316929, -0.05259808897972107, -...
3,642
meshio._mesh
get_cells_type
null
def get_cells_type(self, cell_type: str): if not any(c.type == cell_type for c in self.cells): return np.empty((0, num_nodes_per_cell[cell_type]), dtype=int) return np.concatenate([c.data for c in self.cells if c.type == cell_type])
(self, cell_type: str)
[ 0.04256416857242584, 0.04102305322885513, -0.009196246042847633, -0.04634357616305351, 0.0011879439698532224, 0.012980237603187561, -0.0002552760997787118, 0.022126030176877975, -0.04715082794427872, -0.03608781099319458, 0.023300213739275932, 0.00976040493696928, -0.05426931753754616, -0....
3,643
meshio._mesh
point_data_to_sets
Convert point_data to point_sets.
def point_data_to_sets(self, key: str): """Convert point_data to point_sets.""" data = self.point_data[key] # handle all int and uint data if not all(v.dtype.kind in ["i", "u"] for v in data): raise RuntimeError(f"point_data['{key}'] is not int data.") tags = np.unique(data) # try and ge...
(self, key: str)
[ 0.02532760053873062, -0.052379634231328964, -0.0047287167981266975, 0.028740540146827698, -0.046990782022476196, 0.011029182001948357, 0.01896875724196434, 0.02795017510652542, 0.06542065739631653, 0.03102182038128376, -0.06355252116918564, -0.019004682078957558, -0.010202891193330288, 0.0...
3,644
meshio._mesh
point_sets_to_data
null
def point_sets_to_data(self, join_char: str = "-") -> None: # now for the point sets # Go for -1 as the default value. (NaN is not int.) default_value = -1 if len(self.point_sets) > 0: intfun = np.full(len(self.points), default_value, dtype=int) for i, cc in enumerate(self.point_sets.val...
(self, join_char: str = '-') -> NoneType
[ 0.005946627818048, -0.027121754363179207, 0.008741267956793308, 0.0726056694984436, -0.02521590143442154, 0.008232735097408295, -0.019186807796359062, 0.021990612149238586, -0.0023571187630295753, 0.024134695529937744, -0.07278892397880554, -0.023420000448822975, -0.0033146266359835863, 0....
3,645
meshio._mesh
write
null
def write(self, path_or_buf, file_format: str | None = None, **kwargs): # avoid circular import from ._helpers import write write(path_or_buf, self, file_format, **kwargs)
(self, path_or_buf, file_format: Optional[str] = None, **kwargs)
[ 0.003483711276203394, -0.03994889184832573, -0.06078113242983818, 0.05626456439495087, -0.01951928623020649, -0.02524377778172493, -0.017418555915355682, 0.09243214130401611, -0.007107471115887165, -0.007588888518512249, 0.05276334658265114, -0.033454131335020065, 0.020131999626755714, -0....
3,646
meshio._exceptions
ReadError
null
class ReadError(Exception): pass
null
[ -0.026849331334233284, -0.01698290929198265, -0.03996567055583, 0.04389890655875206, -0.016599586233496666, -0.02468271739780903, -0.006912327837198973, 0.02313275635242462, 0.05999850481748581, -0.09526429325342178, 0.06879828125238419, 0.05243202671408653, 0.012866346165537834, 0.0026707...
3,647
meshio._exceptions
WriteError
null
class WriteError(Exception): pass
null
[ -0.04557821899652481, -0.008938194252550602, -0.030840056017041206, 0.05905123054981232, -0.0009005970205180347, -0.047779906541109085, -0.05776965245604515, 0.04377086088061333, 0.012347524054348469, -0.08326978981494904, 0.07761769741773605, 0.023955674842000008, 0.030281418934464455, 0....
3,660
meshio._helpers
deregister_format
null
def deregister_format(format_name: str): for value in extension_to_filetypes.values(): if format_name in value: value.remove(format_name) if format_name in reader_map: reader_map.pop(format_name) if format_name in _writer_map: _writer_map.pop(format_name)
(format_name: str)
[ 0.0813492015004158, -0.0017526171868667006, -0.020823175087571144, -0.023669008165597916, -0.05382790416479111, 0.009674099273979664, -0.05438318848609924, 0.02920450270175934, 0.022020507603883743, 0.01567811518907547, 0.011027606204152107, -0.009196901693940163, -0.01583428867161274, -0....
3,677
meshio._helpers
read
Reads an unstructured mesh with added data. :param filenames: The files/PathLikes to read from. :type filenames: str :returns mesh{2,3}d: The mesh data.
def read(filename, file_format: str | None = None): """Reads an unstructured mesh with added data. :param filenames: The files/PathLikes to read from. :type filenames: str :returns mesh{2,3}d: The mesh data. """ if is_buffer(filename, "r"): return _read_buffer(filename, file_format) ...
(filename, file_format: Optional[str] = None)
[ -0.0021618905011564493, 0.004588048905134201, -0.04967351257801056, -0.0035243143793195486, 0.005094377789646387, 0.0403997041285038, -0.017001986503601074, 0.012569388374686241, 0.013830768875777721, 0.027306219562888145, -0.018458791077136993, 0.029864512383937836, -0.12258484959602356, ...
3,678
meshio._helpers
register_format
null
def register_format( format_name: str, extensions: list[str], reader, writer_map ) -> None: for ext in extensions: if ext not in extension_to_filetypes: extension_to_filetypes[ext] = [] extension_to_filetypes[ext].append(format_name) if reader is not None: reader_map[for...
(format_name: str, extensions: list[str], reader, writer_map) -> NoneType
[ 0.019113456830382347, -0.03936166316270828, -0.0028058483731001616, 0.01614360138773918, -0.014858141541481018, 0.05276590585708618, -0.025177281349897385, 0.050567325204610825, -0.01406027004122734, 0.025301393121480942, 0.04340421408414841, 0.022269481793045998, 0.014086865819990635, 0.0...
3,688
meshio._helpers
write
Writes mesh together with data to a file. :params filename: File to write to. :type filename: str :params point_data: Named additional point data to write to the file. :type point_data: dict
def write(filename, mesh: Mesh, file_format: str | None = None, **kwargs): """Writes mesh together with data to a file. :params filename: File to write to. :type filename: str :params point_data: Named additional point data to write to the file. :type point_data: dict """ if is_buffer(file...
(filename, mesh: meshio._mesh.Mesh, file_format: Optional[str] = None, **kwargs)
[ 0.019859442487359047, 0.019086414948105812, -0.04557180404663086, 0.014889979735016823, -0.01559858862310648, -0.01150338351726532, -0.07137619704008102, 0.043252721428871155, -0.018755117431282997, -0.020466819405555725, 0.03364509716629982, -0.04365764185786247, -0.052124131470918655, 0....
3,689
meshio._helpers
write_points_cells
null
def write_points_cells( filename, points: ArrayLike, cells: dict[str, ArrayLike] | list[tuple[str, ArrayLike] | CellBlock], point_data: dict[str, ArrayLike] | None = None, cell_data: dict[str, list[ArrayLike]] | None = None, field_data=None, point_sets: dict[str, ArrayLike] | None = None, ...
(filename, points: Union[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]], numpy._typing._nested_sequence._NestedSequence[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]]], bool, int, float, complex, str, bytes, numpy._typing._nested_sequence._NestedSequence[Union[bool, int, float, complex, str, byt...
[ 0.019013792276382446, -0.0059981923550367355, 0.005447382107377052, 0.006705137435346842, -0.04656297340989113, -0.02007204107940197, -0.06380723416805267, 0.056867893785238266, -0.07251610606908798, 0.03408950939774513, 0.0027562191244214773, -0.0335170142352581, -0.05825576186180115, 0.0...
3,694
logging_tree.format
printout
Print a tree of loggers, given a `Node` from `logging_tree.nodes`. If no `node` argument is provided, then the entire tree of currently active `logging` loggers is printed out.
def printout(node=None): """Print a tree of loggers, given a `Node` from `logging_tree.nodes`. If no `node` argument is provided, then the entire tree of currently active `logging` loggers is printed out. """ print(build_description(node)[:-1])
(node=None)
[ 0.006500253453850746, -0.0027593732811510563, 0.009931067004799843, -0.013196808286011219, 0.02621516026556492, -0.0003923239710275084, -0.0021124708000570536, -0.016034254804253578, 0.022182058542966843, -0.03542347997426987, 0.010314746759831905, -0.011376558803021908, 0.015927182510495186...
3,695
logging_tree.nodes
tree
Return a tree of tuples representing the logger layout. Each tuple looks like ``('logger-name', <Logger>, [...])`` where the third element is a list of zero or more child tuples that share the same layout.
def tree(): """Return a tree of tuples representing the logger layout. Each tuple looks like ``('logger-name', <Logger>, [...])`` where the third element is a list of zero or more child tuples that share the same layout. """ root = ('', logging.root, []) nodes = {} items = list(logging...
()
[ 0.009969728998839855, 0.01160502526909113, 0.03335631638765335, -0.017291394993662834, 0.035437602549791336, 0.02843184769153595, -0.0114842364564538, 0.03632958233356476, -0.0018850036431103945, -0.009375076740980148, 0.04125405475497246, 0.004297296982258558, 0.0010743242455646396, -0.00...
3,696
mllabreva
list
null
def list(): print("1.linear regression\n2.kmeans\n3.knn\n4.housePriceLinear regression\n5.decision tree\n6.svm\n7.perceptron\n8.nbc\n9.comparision\n10.tensor flow")
()
[ 0.003301571821793914, 0.006804578471928835, -0.004667400382459164, -0.029773103073239326, 0.044296085834503174, 0.012046806514263153, -0.03238684684038162, -0.0466543510556221, -0.013176808133721352, 0.05805263668298721, -0.01318663451820612, -0.01881699450314045, 0.006485230289399624, 0.0...
3,697
mllabreva
make
null
def make(int1): if (int1==1): print("import numpy as np \nimport pandas as pd\nimport pandas as pd\ndf = pd.read_csv('Salary.csv')\nprint(df.to_string())\nimport matplotlib.pyplot as plt\nfrom sklearn.linear_model import LinearRegression\nX = df.iloc[:, :-1].values # Features => Years of experience => In...
(int1)
[ 0.02565348520874977, -0.026258112862706184, 0.03986223414540291, -0.006208229809999466, -0.01975836604833603, -0.03718459978699684, -0.032541923224925995, -0.02299744263291359, -0.015633942559361458, -0.009188179858028889, -0.054502859711647034, -0.010300262831151485, -0.0020946029108017683,...
3,698
springserve
API
Get the raw API object. This is rarely used directly by a client of this library, but it used as an internal function
def API(reauth=False): """ Get the raw API object. This is rarely used directly by a client of this library, but it used as an internal function """ global _API, _ACCOUNT, _CONFIG_OVERRIDE, _TOKEN_OVERRIDE if _API is None or reauth: _msg.debug("authenticating to springserve") t...
(reauth=False)
[ 0.015218102373182774, -0.07250760495662689, -0.04310564324259758, 0.025135723873972893, 0.029919084161520004, -0.0031442740000784397, 0.0023293483536690474, 0.0713994950056076, 0.003894559806212783, 0.04096328839659691, -0.012189256027340889, -0.025542031973600388, -0.024674009531736374, 0...
3,699
requests_toolbelt.multipart.encoder
MultipartEncoder
The ``MultipartEncoder`` object is a generic interface to the engine that will create a ``multipart/form-data`` body for you. The basic usage is: .. code-block:: python import requests from requests_toolbelt import MultipartEncoder encoder = MultipartEncoder({'field': 'valu...
class MultipartEncoder(object): """ The ``MultipartEncoder`` object is a generic interface to the engine that will create a ``multipart/form-data`` body for you. The basic usage is: .. code-block:: python import requests from requests_toolbelt import MultipartEncoder en...
(fields, boundary=None, encoding='utf-8')
[ 0.020453806966543198, 0.03209478780627251, -0.12143057584762573, 0.07516323775053024, -0.020210184156894684, -0.014839867129921913, -0.025103844702243805, -0.005841675214469433, -0.03565381467342377, -0.016577010974287987, 0.07257870584726334, 0.041288938373327255, -0.018706072121858597, 0...
3,700
requests_toolbelt.multipart.encoder
__init__
null
def __init__(self, fields, boundary=None, encoding='utf-8'): #: Boundary value either passed in by the user or created self.boundary_value = boundary or uuid4().hex # Computed boundary self.boundary = '--{}'.format(self.boundary_value) #: Encoding of the data being passed in self.encoding = enco...
(self, fields, boundary=None, encoding='utf-8')
[ 0.009124305099248886, 0.05234469845890999, -0.12242083996534348, 0.07003919780254364, -0.04133642837405205, -0.03308022394776344, -0.024934841319918633, 0.012310423888266087, -0.029404643923044205, -0.01580130122601986, 0.0492047555744648, 0.06073019281029701, -0.05858764424920082, 0.00363...
3,701
requests_toolbelt.multipart.encoder
__repr__
null
def __repr__(self): return '<MultipartEncoder: {!r}>'.format(self.fields)
(self)
[ 0.032563306391239166, 0.01826888509094715, 0.014251776970922947, 0.0516168475151062, -0.0023219904396682978, -0.05741649493575096, 0.00008422279643127695, -0.04629481956362724, 0.033365022391080856, 0.026268983259797096, 0.0052324747666716576, -0.01593196764588356, -0.03314327076077461, 0....
3,702
requests_toolbelt.multipart.encoder
_calculate_length
This uses the parts to calculate the length of the body. This returns the calculated length so __len__ can be lazy.
def _calculate_length(self): """ This uses the parts to calculate the length of the body. This returns the calculated length so __len__ can be lazy. """ boundary_len = len(self.boundary) # Length of --{boundary} # boundary length + header length + body length + len('\r\n') * 2 self._len = s...
(self)
[ -0.014568290673196316, 0.04051075503230095, -0.050101764500141144, 0.06938765197992325, -0.007708296645432711, -0.025085506960749626, -0.005314872600138187, 0.011685795150697231, -0.03220085799694061, -0.012473504059016705, 0.04189573973417282, 0.012412911280989647, -0.016654422506690025, ...
3,703
requests_toolbelt.multipart.encoder
_calculate_load_amount
This calculates how many bytes need to be added to the buffer. When a consumer read's ``x`` from the buffer, there are two cases to satisfy: 1. Enough data in the buffer to return the requested amount 2. Not enough data This function uses the amount of unread bytes in ...
def _calculate_load_amount(self, read_size): """This calculates how many bytes need to be added to the buffer. When a consumer read's ``x`` from the buffer, there are two cases to satisfy: 1. Enough data in the buffer to return the requested amount 2. Not enough data This function uses t...
(self, read_size)
[ -0.06366712599992752, -0.026817472651600838, -0.05998038873076439, 0.0709342509508133, 0.07260037213563919, 0.07143054157495499, 0.0374700166285038, -0.040447767823934555, -0.040057823061943054, -0.06448246538639069, 0.05512382090091705, -0.0030929602216929197, 0.02364475093781948, 0.00830...
3,704
requests_toolbelt.multipart.encoder
_iter_fields
null
def _iter_fields(self): _fields = self.fields if hasattr(self.fields, 'items'): _fields = list(self.fields.items()) for k, v in _fields: file_name = None file_type = None file_headers = None if isinstance(v, (list, tuple)): if len(v) == 2: ...
(self)
[ 0.0317622609436512, 0.006607650779187679, -0.112704798579216, 0.033545807003974915, -0.06667418777942657, -0.010207943618297577, 0.020055383443832397, 0.006925463210791349, 0.015795748680830002, 0.04637214541435242, 0.003578946692869067, 0.007950052618980408, 0.006479577161371708, 0.041552...
3,705
requests_toolbelt.multipart.encoder
_load
Load ``amount`` number of bytes into the buffer.
def _load(self, amount): """Load ``amount`` number of bytes into the buffer.""" self._buffer.smart_truncate() part = self._current_part or self._next_part() while amount == -1 or amount > 0: written = 0 if part and not part.bytes_left_to_write(): written += self._write(b'\r\n...
(self, amount)
[ -0.02241278439760208, 0.02128046192228794, -0.11761768907308578, 0.08203043043613434, 0.01881811022758484, 0.04284849762916565, -0.029638076201081276, 0.02974591590464115, -0.05791017413139343, -0.08023308962583542, 0.024120252579450607, -0.0048483144491910934, -0.017533015459775925, 0.016...
3,706
requests_toolbelt.multipart.encoder
_next_part
null
def _next_part(self): try: p = self._current_part = next(self._iter_parts) except StopIteration: p = None return p
(self)
[ 0.05062626674771309, 0.021548528224229813, -0.08694363385438919, 0.05747409909963608, -0.011489709839224815, 0.0077676912769675255, 0.10663540661334991, 0.022025492042303085, -0.028430430218577385, 0.009828854352235794, 0.04299485310912132, -0.009445580653846264, -0.03219503536820412, 0.01...
3,707
requests_toolbelt.multipart.encoder
_prepare_parts
This uses the fields provided by the user and creates Part objects. It populates the `parts` attribute and uses that to create a generator for iteration.
def _prepare_parts(self): """This uses the fields provided by the user and creates Part objects. It populates the `parts` attribute and uses that to create a generator for iteration. """ enc = self.encoding self.parts = [Part.from_field(f, enc) for f in self._iter_fields()] self._iter_parts ...
(self)
[ 0.034590620547533035, 0.056840989738702774, -0.10616752505302429, 0.016450796276330948, -0.041743140667676926, -0.007484293542802334, 0.0379859134554863, 0.0287307258695364, 0.03326352685689926, 0.012185136787593365, 0.04332876205444336, 0.0604948066174984, -0.031178094446659088, 0.0311953...
3,708
requests_toolbelt.multipart.encoder
_write
Write the bytes to the end of the buffer. :param bytes bytes_to_write: byte-string (or bytearray) to append to the buffer :returns: int -- the number of bytes written
def _write(self, bytes_to_write): """Write the bytes to the end of the buffer. :param bytes bytes_to_write: byte-string (or bytearray) to append to the buffer :returns: int -- the number of bytes written """ return self._buffer.append(bytes_to_write)
(self, bytes_to_write)
[ -0.09181394428014755, -0.05870899558067322, -0.0453299805521965, 0.08727012574672699, 0.003782006213441491, -0.007311577908694744, -0.04821494221687317, 0.07158314436674118, -0.022953486070036888, -0.08972235023975372, 0.049837734550237656, -0.019743965938687325, -0.0022121805232018232, -0...
3,709
requests_toolbelt.multipart.encoder
_write_boundary
Write the boundary to the end of the buffer.
def _write_boundary(self): """Write the boundary to the end of the buffer.""" return self._write(self._encoded_boundary)
(self)
[ -0.03266838192939758, 0.05528240278363228, -0.11361761391162872, 0.09888449311256409, -0.017337968572974205, -0.03792784363031387, -0.070944644510746, 0.04997316747903824, -0.006221759133040905, -0.060160260647535324, 0.04008471965789795, -0.04791583865880966, -0.018316859379410744, -0.022...
3,710
requests_toolbelt.multipart.encoder
_write_closing_boundary
Write the bytes necessary to finish a multipart/form-data body.
def _write_closing_boundary(self): """Write the bytes necessary to finish a multipart/form-data body.""" with reset(self._buffer): self._buffer.seek(-2, 2) self._buffer.write(b'--\r\n') return 2
(self)
[ -0.03365325182676315, 0.06904048472642899, -0.07756880670785904, 0.08889271318912506, -0.026381177827715874, -0.04133228212594986, -0.04299548268318176, 0.06139684095978737, -0.006688185967504978, -0.07374697923660278, 0.06281232833862305, -0.042818546295166016, -0.025461111217737198, -0.0...
3,711
requests_toolbelt.multipart.encoder
_write_headers
Write the current part's headers to the buffer.
def _write_headers(self, headers): """Write the current part's headers to the buffer.""" return self._write(encode_with(headers, self.encoding))
(self, headers)
[ -0.08638811111450195, 0.018245765939354897, -0.12585854530334473, -0.007874622009694576, 0.006190527230501175, -0.019870620220899582, -0.04989658296108246, 0.09112726897001266, -0.03727010637521744, 0.007929629646241665, 0.007785762660205364, -0.051250629127025604, 0.04590214788913727, -0....
3,712
requests_toolbelt.multipart.encoder
read
Read data from the streaming encoder. :param int size: (optional), If provided, ``read`` will return exactly that many bytes. If it is not provided, it will return the remaining bytes. :returns: bytes
def read(self, size=-1): """Read data from the streaming encoder. :param int size: (optional), If provided, ``read`` will return exactly that many bytes. If it is not provided, it will return the remaining bytes. :returns: bytes """ if self.finished: return self._buffer.read(...
(self, size=-1)
[ -0.03922230005264282, -0.05193452909588814, -0.09301288425922394, 0.01751871034502983, 0.025599556043744087, 0.06650280952453613, 0.003974759951233864, -0.020644238218665123, 0.035492680966854095, -0.04437022656202316, 0.019103361293673515, -0.0007545696571469307, -0.01705469749867916, 0.0...
3,713
requests_toolbelt.multipart.encoder
to_string
Return the entirety of the data in the encoder. .. note:: This simply reads all of the data it can. If you have started streaming or reading data from the encoder, this method will only return whatever data is left in the encoder. .. note:: This method...
def to_string(self): """Return the entirety of the data in the encoder. .. note:: This simply reads all of the data it can. If you have started streaming or reading data from the encoder, this method will only return whatever data is left in the encoder. .. note:: This method...
(self)
[ 0.006244639866054058, 0.012566906400024891, -0.03230997547507286, 0.041262924671173096, 0.007702297531068325, -0.054476723074913025, 0.014662828296422958, -0.051233649253845215, 0.059996843338012695, -0.0099275978282094, 0.022856762632727623, -0.010729740373790264, -0.04733506217598915, 0....
3,714
link.wrappers.springservewrappers
SpringAuth
Does the authentication for Spring requests.
class SpringAuth(AuthBase): """ Does the authentication for Spring requests. """ def __init__(self, token): # setup any auth-related data here self.token = token def __call__(self, r): # modify and return the request r.headers['Authorization'] = self.token ...
(token)
[ -0.019237585365772247, -0.017080865800380707, -0.04542763903737068, 0.03767436370253563, 0.041387200355529785, -0.03274211660027504, -0.0382203683257103, 0.053836122155189514, -0.004945897962898016, -0.013277028687298298, 0.05842256546020508, -0.0037742615677416325, 0.02255001850426197, 0....
3,715
link.wrappers.springservewrappers
__call__
null
def __call__(self, r): # modify and return the request r.headers['Authorization'] = self.token return r
(self, r)
[ -0.051889289170503616, -0.01269904151558876, -0.07030162215232849, 0.026986530050635338, 0.013655525632202625, -0.015090253204107285, -0.039318349212408066, 0.04642366245388985, -0.01374946627765894, -0.020359458401799202, 0.07433252036571503, -0.02073522098362446, 0.020444858819246292, 0....
3,716
link.wrappers.springservewrappers
__init__
null
def __init__(self, token): # setup any auth-related data here self.token = token
(self, token)
[ -0.007486938964575529, 0.013997508212924004, -0.02834063395857811, 0.05547160655260086, 0.03347305580973625, -0.03238435834646225, 0.002229232806712389, 0.04292569309473038, 0.008951492607593536, 0.02561025694012642, 0.027442028746008873, 0.026007715612649918, 0.005326829385012388, 0.01944...
3,717
link.wrappers.springservewrappers
SpringServeAPI
Wrap the Spring API
class SpringServeAPI(APIRequestWrapper): """ Wrap the Spring API """ headers = { "Content-Type": "application/json" } def __init__(self, wrap_name=None, base_url=None, user=None, password=None): self._token = None super(SpringServeAPI, self).__init__(wrap_name = wrap_name, ...
(wrap_name=None, base_url=None, user=None, password=None)
[ 0.0037890218663960695, -0.01570100523531437, -0.028963735327124596, 0.06040268763899803, 0.07647312432527542, -0.00509359035640955, -0.030090512707829475, 0.06029185652732849, -0.007143957074731588, 0.012911766767501831, 0.05146235227584839, -0.034172773361206055, 0.006843790877610445, -0....
3,718
link.link
__call__
When you call this Callable it will run the command. The command can either be a string to run on the shell or a function to run in python Right now it only supports string commands for the shell
def __call__(self, command=None, wait=True): """ When you call this Callable it will run the command. The command can either be a string to run on the shell or a function to run in python Right now it only supports string commands for the shell """ cmd = command or self.command if cmd: ...
(self, command=None, wait=True)
[ 0.053388047963380814, -0.09492016583681107, -0.01894766464829445, 0.01644737459719181, 0.04360508918762207, 0.008928314782679081, 0.02454831823706627, 0.019875045865774155, 0.025293860584497452, -0.05269705876708031, 0.03902273625135422, 0.009041964076459408, 0.016474649310112, -0.03785896...
3,719
link.link
__getattr__
wrap a special object if it exists
def __getattr__(self, name): """ wrap a special object if it exists """ # first look if the Wrapper object itself has it try: return self.__getattribute__(name) except AttributeError as e: pass if self._wrapped is not None: # if it has a getattr then try that out othe...
(self, name)
[ 0.05140573903918266, -0.04110356420278549, 0.01306168269366026, 0.0837489515542984, -0.01766962744295597, -0.019377896562218666, -0.019885996356606483, 0.03544437885284424, 0.02917196787893772, -0.013052922673523426, -0.026263531297445297, 0.04870755225419998, -0.016767311841249466, 0.0278...
3,720
link.link
__getitem__
null
def __getitem__(self, name): return self.__getattr__(name)
(self, name)
[ 0.06287403404712677, -0.05389203131198883, -0.02684767171740532, -0.0278147142380476, 0.006433279253542423, 0.0049089607782661915, 0.012514162808656693, -0.01085052452981472, 0.08005130290985107, -0.0015868073096498847, -0.01601353846490383, 0.027732761576771736, 0.03304328769445419, 0.002...
3,721
link.wrappers.springservewrappers
__init__
null
def __init__(self, wrap_name=None, base_url=None, user=None, password=None): self._token = None super(SpringServeAPI, self).__init__(wrap_name = wrap_name, base_url=base_url, user=user, ...
(self, wrap_name=None, base_url=None, user=None, password=None)
[ -0.010763908736407757, -0.04667437821626663, 0.01355181634426117, 0.029596133157610893, 0.006586662959307432, 0.015167325735092163, -0.014539585448801517, 0.07976000756025314, -0.005040389485657215, 0.03939996659755707, 0.03225480020046234, 0.008299103006720543, -0.024851150810718536, -0.0...
3,722
link.wrappers.springservewrappers
authenticate
Write a custom auth property where we grab the auth token and put it in the headers
def authenticate(self): """ Write a custom auth property where we grab the auth token and put it in the headers """ #it's weird i have to do this here, but the code makes this not simple auth_json={'email':self.user, 'password':self.password} #send a post with no auth. prevents an infinite ...
(self)
[ 0.019067447632551193, -0.008852086029946804, -0.012306333519518375, 0.07663824409246445, 0.07545919716358185, -0.01160627231001854, -0.03334500640630722, 0.02772609516978264, -0.01029826421290636, -0.013255100697278976, 0.0673900693655014, -0.027376065030694008, 0.0014093330828472972, -0.0...
3,723
link.wrappers.apiwrappers
clear_session
clears the session and reauths
def clear_session(self): """ clears the session and reauths """ sess = requests.session() sess.headers = self.headers self._wrapped = sess self._wrapped = self.authenticate()
(self)
[ -0.029284223914146423, -0.013017194345593452, 0.014999235980212688, 0.006696087773889303, -0.04117647558450699, -0.036051735281944275, -0.10135198384523392, 0.08692414313554764, 0.024248765781521797, 0.018213357776403427, -0.005816668272018433, -0.04867609217762947, 0.023213103413581848, 0...
3,724
link.link
config
null
def config(self): return self.__link_config__
(self)
[ 0.012710683979094028, -0.040618736296892166, 0.018628472462296486, -0.019754845649003983, 0.02581993117928505, 0.04713436961174011, -0.013490480370819569, -0.004873728379607201, 0.024173693731427193, 0.015535280108451843, -0.06896867603063583, -0.051466573029756546, 0.011948215775191784, 0...
3,725
link.wrappers.apiwrappers
delete
Make a delete call
def delete(self, url_params='', data='', **kwargs): """ Make a delete call """ return self.request('delete', url_params = url_params, data = data, **kwargs)
(self, url_params='', data='', **kwargs)
[ -0.023722978308796883, -0.012925108894705772, -0.03144911304116249, -0.015639467164874077, -0.02329752966761589, -0.00010576370550552383, -0.07099875807762146, 0.040026143193244934, 0.0023697451688349247, 0.04165986552834511, 0.01252518780529499, -0.029917500913143158, 0.013937675394117832, ...
3,726
link.wrappers.apiwrappers
get
Make a get call
def get(self, url_params = '', **kwargs): """ Make a get call """ return self.request('get', url_params = url_params, **kwargs)
(self, url_params='', **kwargs)
[ -0.015458955429494381, -0.05493418872356415, -0.0008234899723902345, 0.015319528058171272, -0.025201408192515373, 0.014761820435523987, -0.04810227453708649, -0.037226974964141846, 0.02832108549773693, -0.01537181343883276, 0.009925451129674911, -0.014997103251516819, 0.019781189039349556, ...
3,727
link.wrappers.apiwrappers
patch
Make a patch call
def patch(self, url_params='', data='', **kwargs): """ Make a patch call """ return self.request('patch', url_params = url_params, data = data, **kwargs)
(self, url_params='', data='', **kwargs)
[ 0.04594211280345917, -0.04618121683597565, -0.03062238171696663, 0.03386736288666725, -0.0537642240524292, -0.038598205894231796, -0.07576178759336472, 0.017019076272845268, 0.03263768553733826, 0.01389364618808031, -0.02920483611524105, -0.10677698254585266, 0.009786182083189487, 0.017241...
3,728
link.wrappers.apiwrappers
post
Make a post call
def post(self, url_params='', data='', **kwargs): """ Make a post call """ return self.request('post', url_params = url_params, data = data, **kwargs)
(self, url_params='', data='', **kwargs)
[ -0.028036613017320633, -0.012824686244130135, -0.03525218367576599, 0.022418521344661713, -0.051155153661966324, 0.005061667878180742, -0.086443230509758, 0.013354186899960041, 0.024446777999401093, -0.014476010575890541, 0.019403059035539627, 0.019241517409682274, 0.01291443221271038, -0....
3,729
link.wrappers.apiwrappers
put
Make a put call
def put(self, url_params='', data='', **kwargs): """ Make a put call """ return self.request('put', url_params = url_params, data = data, **kwargs)
(self, url_params='', data='', **kwargs)
[ -0.03712020441889763, -0.028808431699872017, -0.08212374150753021, 0.014961190521717072, -0.017463291063904762, -0.009562822990119457, -0.04801976680755615, -0.0069107674062252045, 0.03487516939640045, 0.0062938109040260315, -0.019571224227547646, -0.0755428746342659, -0.0000999474577838555,...
3,730
link.wrappers.apiwrappers
request
Make a request. This is taken care af by the request decorator
def request(self, method='get', url_params = '' , data = '', allow_reauth = True, **kwargs): """ Make a request. This is taken care af by the request decorator """ if isinstance(url_params, dict): #tricky, if its a dictonary turn it into a & delimited key=value url_params = ...
(self, method='get', url_params='', data='', allow_reauth=True, **kwargs)
[ 0.01021593902260065, -0.02865697257220745, 0.012356332503259182, 0.0528649166226387, 0.008412026800215244, -0.009024235419929028, -0.04849066212773323, -0.020357105880975723, -0.004215360153466463, 0.00558932451531291, 0.027890542522072792, 0.022432072088122368, 0.03824668377637863, -0.006...
3,731
link.wrappers.apiwrappers
set_session_headers
null
def set_session_headers(self, name, value): self._wrapped.headers[name]=value
(self, name, value)
[ -0.02755337581038475, -0.0029485004488378763, -0.1000022441148758, -0.028999971225857735, -0.03924526646733284, 0.03339081257581711, -0.03191018104553223, 0.09190131723880768, -0.00514817563816905, 0.011623814702033997, -0.00028665977879427373, -0.05139666050672531, 0.02220948413014412, 0....
3,732
springserve
SpringServeAPITokenOverride
Used to inject a token instead of having the SDK do auth
class SpringServeAPITokenOverride(SpringServeAPI): """ Used to inject a token instead of having the SDK do auth """ def __init__(self, base_url=None, user=None, password=None, token=None): self._token = token super(SpringServeAPI, self).__init__(base_url=base_url, ...
(base_url=None, user=None, password=None, token=None)
[ 0.019237332046031952, -0.07055484503507614, -0.023638028651475906, 0.05474826321005821, 0.05022183060646057, 0.008567887358367443, 0.012321951799094677, 0.0650225430727005, -0.009241463616490364, 0.028793131932616234, 0.05280836299061775, -0.0457313247025013, -0.029475688934326172, -0.0297...
3,736
springserve
__init__
null
def __init__(self, base_url=None, user=None, password=None, token=None): self._token = token super(SpringServeAPI, self).__init__(base_url=base_url, user=user, password=password)
(self, base_url=None, user=None, password=None, token=None)
[ -0.00872028712183237, -0.042196422815322876, 0.0010036621242761612, 0.035249676555395126, 0.01746821403503418, 0.007918738760054111, 0.014354154467582703, 0.06209691986441612, -0.0400221087038517, 0.049051038920879364, 0.031140591949224472, 0.00612216629087925, -0.02120876871049404, -0.012...
3,737
springserve
authenticate
null
def authenticate(self): self._wrapped.auth = SpringAuth(self._token)
(self)
[ 0.03693562000989914, -0.04319358989596367, -0.006053904537111521, 0.07768043875694275, 0.058498404920101166, 0.0013211030745878816, 0.022685136646032333, 0.032412197440862656, -0.028160858899354935, 0.032735299319028854, 0.043703749775886536, -0.057171985507011414, -0.01709887944161892, -0...
3,747
springserve
VDAuthError
null
class VDAuthError(Exception): pass
null
[ -0.013970937579870224, -0.03447328880429268, -0.017550989985466003, 0.10359450429677963, 0.0057280841283500195, -0.06304385513067245, -0.010818745009601116, -0.0001749095827108249, 0.04138890281319618, -0.031120263040065765, 0.03202837333083153, 0.033757276833057404, 0.0052652969025075436, ...
3,748
springserve._account
_AccountAPI
null
class _AccountAPI(_VDAPIService): __API__ = "accounts"
()
[ -0.03855643793940544, -0.058038756251335144, -0.053140345960855484, 0.015706460922956467, 0.008994337171316147, -0.008920119144022465, -0.006090544164180756, -0.005524629261344671, 0.021300669759511948, -0.018610253930091858, 0.023378783836960793, -0.06323404610157013, 0.014574630185961723, ...
3,749
springserve
__init__
null
def __init__(self): self.account_id = None
(self)
[ -0.03609097748994827, 0.020983126014471054, -0.0189722441136837, 0.021367816254496574, -0.01744222454726696, -0.029708608984947205, 0.00851128064095974, 0.02615896426141262, 0.009573551826179028, -0.005136494524776936, -0.03070530854165554, 0.00874296948313713, -0.02689337357878685, 0.0219...
3,750
springserve._decorators
wrapped
null
def raw_response_retry(api_call, limit=4, sleep_duration=5, backoff_factor=2): """ Decorator for SpringServe API to handle retries (with exponential backoff) in the case of a rate-limit or 5XX error. Sleep duration and backoff factor control wait time between successive failures, e.g. sleep_duratio...
(*args, **kwargs)
[ 0.013184978626668453, -0.08120812475681305, -0.06098170951008797, 0.051567915827035904, -0.01190901268273592, 0.007868454791605473, -0.0435151569545269, -0.027012666687369347, -0.005278717260807753, -0.014933524653315544, 0.028241373598575592, 0.027598664164543152, 0.04884585738182068, 0.0...
3,752
springserve
_raw_bulk_delete
null
def _raw_bulk_delete(self, data, path_param="", reauth=False, files=None, **query_params): params = _format_params(query_params) if not files: return API(reauth=reauth).delete( _format_url(self.endpoint, path_param), params=params, data=_json.dumps(data) ...
(self, data, path_param='', reauth=False, files=None, **query_params)
[ -0.00431438023224473, -0.01768939010798931, -0.0640549436211586, 0.03755540773272514, -0.06046178564429283, -0.002889209659770131, -0.03194109722971916, -0.017516642808914185, -0.00980344694107771, 0.016177846118807793, 0.028192466124892235, -0.024823881685733795, -0.02119617350399494, -0....
3,753
springserve
build_response
null
def build_response(self, api_response, path_params, query_params, payload=''): is_ok = api_response.ok if not is_ok and api_response.status_code == 401: raise VDAuthError("Need to Re-Auth") if api_response.status_code == 204: # this means empty resp_json = {} else: try: ...
(self, api_response, path_params, query_params, payload='')
[ 0.0027147806249558926, -0.03123416379094124, -0.055430710315704346, -0.004937684629112482, -0.02029936946928501, 0.027639681473374367, -0.04040955379605293, 0.035736728459596634, -0.018908871337771416, 0.02073449082672596, 0.10957497358322144, 0.04105277732014656, 0.03526376932859421, -0.0...
3,754
springserve
bulk_delete
Delete an object.
def bulk_delete(self, data, path_param="", reauth=False, files=None, **query_params): """ Delete an object. """ global API try: return self.build_response( self._raw_bulk_delete(data, path_param=path_param, reauth=reauth, files=files, ...
(self, data, path_param='', reauth=False, files=None, **query_params)
[ 0.01026664674282074, 0.010969603434205055, -0.06623418629169464, 0.014397604390978813, -0.021296998485922813, -0.025410600006580353, -0.0384630411863327, -0.034314725548028946, -0.00946822576224804, 0.012557766400277615, 0.007233516313135624, -0.023084767162799835, -0.018502527847886086, -...
3,755
springserve
delete
null
def delete(self, path_param="", reauth=False, **query_params): global API try: params = _format_params(query_params) return self.build_response( API(reauth=reauth).delete( _format_url(self.endpoint, path_param), params=params, ...
(self, path_param='', reauth=False, **query_params)
[ 0.043016012758016586, 0.02616807445883751, -0.011596400290727615, 0.029179194942116737, -0.006322457920759916, -0.03943134471774101, -0.027691558003425598, 0.02460874430835247, -0.007326164748519659, 0.04384048655629158, 0.02618599869310856, 0.005211210809648037, 0.00448083458468318, -0.03...
3,756
springserve
get
Make a get request to this api service. Allows you to pass in arbitrary query paramaters. Examples:: # get all supply_tags tags = springserve.supply_tags.get() for tag in tags: print tag.id, tag.name # get one supply tag ...
def get(self, path_param=None, reauth=False, **query_params): """ Make a get request to this api service. Allows you to pass in arbitrary query paramaters. Examples:: # get all supply_tags tags = springserve.supply_tags.get() for tag in tags: print tag.id, tag.name ...
(self, path_param=None, reauth=False, **query_params)
[ 0.027727119624614716, -0.024348119273781776, -0.0304110124707222, 0.03471682593226433, 0.019038259983062744, -0.00726968003436923, -0.013641511090099812, -0.06858407706022263, 0.01827557012438774, -0.02357577532529831, 0.005613969638943672, -0.0360105000436306, -0.016479872167110443, 0.002...
3,758
springserve
new
Create a new object. You need to pass in the required fields as a dictionary. For instance:: resp = springserve.domain_lists.new({'name':'My Domain List'}) print resp.ok
def new(self, data, path_param="", reauth=False, **query_params): """ Create a new object. You need to pass in the required fields as a dictionary. For instance:: resp = springserve.domain_lists.new({'name':'My Domain List'}) print resp.ok """ return self.post(data, path_param, rea...
(self, data, path_param='', reauth=False, **query_params)
[ 0.010673780925571918, 0.03166617453098297, -0.018235154449939728, -0.045910343527793884, 0.006383706349879503, -0.008598842658102512, -0.027721920982003212, -0.006528577767312527, 0.036376845091581345, 0.010570968501269817, -0.0143095962703228, -0.000017634345567785203, -0.01523490622639656,...
3,759
springserve
post
null
def post(self, data, path_param="", files=None, reauth=False, **query_params): global API try: return self.build_response( self._post_raw(data, path_param, reauth=reauth, files=files, **query_params), path_param, query_params, payload=data ) ex...
(self, data, path_param='', files=None, reauth=False, **query_params)
[ 0.02547275647521019, 0.019788159057497978, -0.043749820441007614, 0.08102351427078247, -0.018600868061184883, -0.013105157762765884, -0.025796562433242798, -0.037201736122369766, 0.013491925783455372, -0.00238132500089705, 0.03608640655875206, 0.01843896508216858, -0.005081959068775177, -0...
3,760
springserve
put
null
def put(self, path_param, data, reauth=False, **query_params): global API try: return self.build_response( self._put_raw(path_param, data, reauth=reauth, **query_params), path_param, query_params, payload=data ) except VDAuthErr...
(self, path_param, data, reauth=False, **query_params)
[ 0.022857006639242172, 0.012927323579788208, -0.08357706665992737, 0.07119395583868027, 0.016040943562984467, -0.027924446389079094, -0.009920761920511723, -0.03045816719532013, 0.03177855536341667, -0.011419582180678844, 0.020127013325691223, -0.05606301128864288, 0.0011464189738035202, -0...
3,761
springserve._common
_AdvertiserDomainListAPI
null
class _AdvertiserDomainListAPI(_VDAPIService): __API__ = "advertiser_domain_lists" __RESPONSE_OBJECT__ = _AdvertiserDomainListResponse
()
[ -0.022159229964017868, -0.01898079924285412, -0.07369650155305862, -0.01980683207511902, 0.01610764116048813, 0.04083475470542908, -0.005288406275212765, -0.03921860456466675, 0.020812436938285828, 0.014796762727200985, -0.03244872763752937, -0.06575939804315567, 0.015209779143333435, -0.0...
3,774
springserve._common
_AppBundleListAPI
null
class _AppBundleListAPI(_VDAPIService): __API__ = "app_bundle_lists" __RESPONSE_OBJECT__ = _AppBundleListResponse
()
[ -0.008616921491920948, -0.08748334646224976, -0.11489228904247284, -0.028760619461536407, 0.020650574937462807, 0.015140626579523087, 0.02761545032262802, -0.009536811150610447, 0.018923435360193253, -0.009419478476047516, -0.03867289423942566, -0.046332381665706635, -0.045205987989902496, ...
3,787
springserve._common
_AppNameListAPI
null
class _AppNameListAPI(_VDAPIService): __API__ = "app_name_lists" __RESPONSE_OBJECT__ = _AppNameListResponse
()
[ -0.0031817927956581116, -0.07074755430221558, -0.09295083582401276, -0.056413326412439346, 0.028040416538715363, 0.008266196586191654, 0.021852312609553337, -0.03180869296193123, 0.0552680641412735, -0.002828516997396946, -0.023052990436553955, -0.06358043849468231, 0.0054954043589532375, ...
3,800
springserve._demand
_AudioCreativeAPI
null
class _AudioCreativeAPI(_VDAPIService): __API__ = "audio_creatives"
()
[ -0.05529191344976425, -0.05822104588150978, -0.0801353007555008, 0.016743071377277374, 0.019907258450984955, -0.0003997611638624221, -0.02712160535156727, 0.025783605873584747, 0.050193049013614655, 0.018505975604057312, -0.010487020947039127, 0.017529597505927086, 0.017186056822538376, 0....
3,813
springserve._common
_BillAPI
null
class _BillAPI(_VDAPIService): __API__ = "bills" __RESPONSE_OBJECT__ = _BillResponse def bulk_sync(self, ids, reauth=False, **query_params): query_params['ids'] = ','.join(str(x) for x in ids) return self.get('bulk_sync', reauth, **query_params)
()
[ -0.00762346712872386, -0.03821993246674538, -0.10520295053720474, -0.017102617770433426, -0.06641203910112381, -0.0014430611627176404, -0.031314652413129807, -0.008694053627550602, -0.02514093555510044, -0.025230152532458305, -0.0668402761220932, -0.07708221673965454, -0.036310721188783646, ...
3,820
springserve._common
bulk_sync
null
def bulk_sync(self, ids, reauth=False, **query_params): query_params['ids'] = ','.join(str(x) for x in ids) return self.get('bulk_sync', reauth, **query_params)
(self, ids, reauth=False, **query_params)
[ -0.02179752103984356, 0.008803494274616241, -0.08955570310354233, 0.009504732675850391, -0.04234464094042778, 0.056335605680942535, -0.008837289176881313, -0.02369001880288124, -0.007861469872295856, -0.013086960650980473, -0.04366263002157211, -0.06417595595121384, -0.014278220944106579, ...
3,827
springserve._demand
_CampaignAPI
null
class _CampaignAPI(_VDAPIService): __API__ = "campaigns"
()
[ -0.0419706255197525, -0.02885027602314949, -0.08365130424499512, 0.005504567176103592, -0.02315995655953884, -0.009595615789294243, 0.004036682657897472, 0.004272269085049629, 0.04055710881948471, 0.0011824625544250011, -0.06697902828454971, -0.05476478114724159, 0.027309902012348175, -0.0...
3,840
springserve._common
_ChannelIdListAPI
null
class _ChannelIdListAPI(_VDAPIService): __API__ = "channel_id_lists" __RESPONSE_OBJECT__ = _ChannelIdListResponse
()
[ -0.03392661362886429, -0.0734281912446022, -0.08127716183662415, -0.0035302015021443367, -0.006881600711494684, 0.05340231955051422, 0.0073079755529761314, 0.03280794993042946, 0.03788777440786362, 0.0038006973918527365, -0.03212941810488701, -0.04746057838201523, -0.01622975803911686, -0....
3,853
springserve._demand
_ConnectedDemandAPI
null
class _ConnectedDemandAPI(_VDAPIService): __RESPONSE_OBJECT__ = _DemandTagResponse __API__ = "connected_demand"
()
[ 0.018829749897122383, -0.08121480792760849, -0.0664752796292305, -0.026033693924546242, 0.00530623085796833, -0.0013277091784402728, 0.0095254210755229, 0.03559596464037895, 0.009645179845392704, -0.010428217239677906, -0.017355795949697495, -0.0020819585770368576, 0.04193396121263504, -0....
3,866
springserve._supply
_ConnectedSupplyAPI
null
class _ConnectedSupplyAPI(_VDAPIService): __API__ = "connected_supply"
()
[ -0.0166031327098608, -0.10397222638130188, -0.0526418574154377, 0.003016888629645109, 0.014599463902413845, -0.019417377188801765, 0.00738625368103385, 0.024754423648118973, 0.040984146296978, -0.05173109844326973, -0.049545276910066605, -0.03502778336405754, 0.015410038642585278, 0.005970...
3,879
springserve._demand
_CreativeAPI
null
class _CreativeAPI(_VDAPIService): __API__ = "creatives"
()
[ -0.04081832990050316, -0.08352842181921005, -0.06675725430250168, 0.01597990281879902, 0.0069394800812006, -0.00670755747705698, 0.0023646983318030834, 0.020736584439873695, 0.04169144853949547, 0.013296880759298801, -0.027976199984550476, 0.02761239930987358, 0.011723446659743786, -0.0058...
3,892
springserve._common
_DealIdListAPI
null
class _DealIdListAPI(_VDAPIService): __API__ = "deal_id_lists" __RESPONSE_OBJECT__ = _DealIdListResponse
()
[ -0.021605821326375008, -0.06039894372224808, -0.07380428910255432, 0.0016920503694564104, -0.005925686564296484, 0.021924104541540146, 0.0000015769725223435671, 0.0026328584644943476, 0.0013620654353871942, 0.003278786316514015, -0.04557068273425102, -0.05115000158548355, -0.0319032222032547...
3,905
springserve._demand
_DemandLabelAPI
null
class _DemandLabelAPI(_VDAPIService): __API__ = "demand_labels"
()
[ 0.02878287248313427, -0.0669083222746849, -0.04295479506254196, -0.0293272715061903, -0.02713211625814438, 0.0022697902750223875, 0.009518192149698734, 0.0042564054019749165, 0.052367620170116425, -0.025832584127783775, -0.04228746518492699, -0.015506574884057045, 0.06764589995145798, -0.0...
3,918
springserve._demand
_DemandPartnerAPI
null
class _DemandPartnerAPI(_VDAPIService): __API__ = "demand_partners"
()
[ -0.004454541485756636, -0.03501306101679802, -0.058880604803562164, 0.009211551398038864, -0.012923669070005417, -0.027698814868927002, 0.02966027893126011, 0.014930962584912777, 0.00808416772633791, 0.013748584315180779, -0.001771276001818478, -0.029476964846253395, 0.018899720162153244, ...
3,931
springserve._demand
_DemandTagAPI
null
class _DemandTagAPI(_VDAPIService): __RESPONSE_OBJECT__ = _DemandTagResponse __API__ = "demand_tags"
()
[ 0.038988545536994934, -0.04860718920826912, -0.06868886202573776, -0.05477486923336983, -0.011867276392877102, 0.014905225485563278, 0.003606991143897176, 0.00011006542627001181, 0.02494606003165245, -0.021054549142718315, -0.010352890938520432, 0.0021373487543314695, 0.019329067319631577, ...
3,944
springserve._direct_connect
_DirectConnectionAPI
null
class _DirectConnectionAPI(_VDAPIService): __API__ = "direct_connections"
()
[ -0.03384213149547577, -0.08678780496120453, -0.05285435914993286, 0.01710369996726513, -0.0011528788600116968, 0.013761492446064949, -0.01123200822621584, 0.039996907114982605, 0.040983133018016815, -0.01870175078511238, -0.03647206351161003, -0.004775886423885822, 0.026865502819418907, 0....
3,957
springserve._common
_DomainListAPI
null
class _DomainListAPI(_VDAPIService): __API__ = "domain_lists" __RESPONSE_OBJECT__ = _DomainListResponse
()
[ -0.01419289130717516, -0.015768883749842644, -0.0770803838968277, -0.02783060260117054, 0.016879243776202202, 0.04316071793437004, -0.022708626464009285, -0.021043088287115097, 0.04111908748745918, -0.0022061662748456, -0.013010896742343903, -0.06475898623466492, 0.016771789640188217, -0.0...
3,970
springserve._common
_IpListAPI
null
class _IpListAPI(_VDAPIService): __API__ = "ip_lists" __RESPONSE_OBJECT__ = _IpListResponse
()
[ -0.0014855115441605449, -0.09137988835573196, -0.05144644156098366, -0.039933446794748306, -0.027207601815462112, 0.01691650226712227, 0.021378694102168083, -0.021831249818205833, 0.03117198310792446, 0.0005365604301914573, -0.02317081205546856, -0.06335768848657608, 0.00024706669501028955, ...
3,983
springserve._common
_KeyAPI
null
class _KeyAPI(_VDAPIService): __API__ = "keys" __RESPONSE_OBJECT__ = _KeyResponse
()
[ -0.004229522310197353, -0.08211199939250946, -0.10043095052242279, 0.017878936603665352, 0.01635235734283924, -0.00006556011794600636, -0.01294898334890604, 0.03221980109810829, 0.08412349224090576, 0.006079377140849829, -0.0037288940511643887, -0.03633258491754532, 0.038397956639528275, -...
3,996
springserve._object_change_messages
_ObjectChangeMessagesAPI
null
class _ObjectChangeMessagesAPI(_VDAPIService): __API__ = "object_change_messages"
()
[ -0.006619696505367756, -0.05295757204294205, -0.10643469542264938, -0.023287229239940643, -0.01391667127609253, -0.06390535086393356, 0.01632889360189438, 0.05158445984125137, 0.04720534756779671, -0.02766634151339531, -0.043382901698350906, -0.06906379759311676, 0.02208111807703972, -0.01...
4,009
springserve._common
_ParameterListAPI
null
class _ParameterListAPI(_VDAPIService): __API__ = "parameter_lists" __RESPONSE_OBJECT__ = _ParameterListResponse
()
[ 0.015224726870656013, -0.05081779509782791, -0.05973714217543602, -0.029568761587142944, -0.002993415342643857, 0.028650593012571335, -0.01146773248910904, -0.018007338047027588, 0.029081569984555244, 0.008207298815250397, -0.022897988557815552, -0.025296468287706375, -0.02868806943297386, ...
4,022
springserve._common
_PlacementIdListAPI
null
class _PlacementIdListAPI(_VDAPIService): __API__ = "placement_id_lists" __RESPONSE_OBJECT__ = _PlacementIdListResponse
()
[ 0.013964764773845673, -0.05007799342274666, -0.09161327034235, -0.04234536364674568, 0.012850897386670113, 0.03407881036400795, 0.004427852109074593, -0.017775846645236015, -0.0071204649284482, 0.008855704218149185, -0.07894648611545563, -0.07154525071382523, -0.0059835840947926044, -0.044...
4,035
springserve._demand
_ProgrammaticGuaranteedAPI
null
class _ProgrammaticGuaranteedAPI(_VDAPIService): __RESPONSE_OBJECT__ = _DemandTagResponse __API__ = "programmatic_guaranteed"
()
[ 0.05616239085793495, -0.009669636376202106, -0.09084463119506836, -0.03602028638124466, 0.017849577590823174, -0.02622576616704464, -0.003110964549705386, 0.012006762437522411, 0.006904334295541048, -0.0117123918607831, 0.005066746845841408, 0.024031365290284157, 0.009981847368180752, -0.0...
4,048
springserve._common
_PublisherIdListAPI
null
class _PublisherIdListAPI(_VDAPIService): __API__ = "publisher_id_lists" __RESPONSE_OBJECT__ = _PublisherIdListResponse
()
[ -0.04921229928731918, -0.041658103466033936, -0.08089592307806015, 0.00187938183080405, 0.00872766599059105, 0.0455818846821785, 0.0002538311528041959, -0.015374260023236275, 0.024954523891210556, 0.03283875808119774, -0.05031242594122887, -0.04429840296506882, -0.0071737379767000675, -0.0...
4,061
springserve._reporting
_ReportingAPI
null
class _ReportingAPI(_VDAPIService): __API__ = "report" __RESPONSES_OBJECT__ = _ReportingResponse INTERVALS = ("hour", "day", "cumulative") def _format_date(self, date): if isinstance(date, datetime): return date.strftime("%Y-%m-%d") return date def _get_report(self, ...
()
[ 0.021796075627207756, -0.037918128073215485, -0.1155935525894165, 0.030620161443948746, -0.029817970469594002, -0.01731555350124836, -0.056114133447408676, -0.0018183777574449778, -0.06104466691613197, -0.032537590712308884, -0.012130670249462128, 0.0013084493111819029, 0.02324393019080162, ...
4,063
springserve._reporting
_format_date
null
def _format_date(self, date): if isinstance(date, datetime): return date.strftime("%Y-%m-%d") return date
(self, date)
[ -0.0265461727976799, 0.0015719352522864938, 0.053315579891204834, 0.05536188557744026, -0.045948877930641174, -0.04107494652271271, 0.004664648324251175, -0.0001979452499654144, 0.04695342853665352, -0.03601498901844025, 0.018212126567959785, -0.028983138501644135, -0.015012446790933609, -...
4,064
springserve._reporting
_get_report
null
def _get_report(self, payload): response = self.post(data=payload) #something bad happened if not response.ok: return response if 'report_id' not in response.raw: raise('report_id field not in response: {}'.format(response.raw)) self._report_id = response.raw['report_id'] payload...
(self, payload)
[ 0.0085203992202878, -0.011366712860763073, -0.09849914908409119, 0.06389835476875305, -0.0053217727690935135, -0.015928233042359352, -0.023808905854821205, 0.018579848110675812, -0.037159696221351624, -0.011032943613827229, -0.003822126891463995, -0.027943942695856094, 0.03233857825398445, ...
4,068
springserve._reporting
build_response
null
def build_response(self, api_response, path_params, query_params, payload): is_ok = api_response.ok if not is_ok and api_response.status_code == 401: raise VDAuthError("Need to Re-Auth") if api_response.status_code == 204: # this means empty resp_json = {} else: resp_json = api_...
(self, api_response, path_params, query_params, payload)
[ -0.006387724541127682, -0.03299931436777115, -0.062415849417448044, -0.0010247465688735247, -0.007165565621107817, 0.012945160269737244, -0.040466587990522385, 0.05113951116800308, -0.018309906125068665, 0.021798405796289444, 0.10620122402906418, 0.03418729081749916, 0.04461507499217987, -...
4,076
springserve._reporting
run
parameter options (if applicable) notes =================================================== start_date: "2015-12-01 00:00:00" or "2015-12-01" end_date: "2015-12-02 00:00:00" or "2015-12-01" interval: "hour", "day", "cumulative" timezone: "UTC", "America/Ne...
def run(self, start_date=None, end_date=None, interval=None, dimensions=None, account_id=None, **kwargs): """ parameter options (if applicable) notes =================================================== start_date: "2015-12-01 00:00:00" or "2015-12-01" end_date: "2015-12-02 00:00:00"...
(self, start_date=None, end_date=None, interval=None, dimensions=None, account_id=None, **kwargs)
[ 0.037045907229185104, -0.026606032624840736, -0.07464419305324554, 0.008032443933188915, -0.047982919961214066, -0.004718197509646416, -0.06057705730199814, -0.05439046397805214, -0.08234060555696487, -0.014996964484453201, -0.012189061380922794, 0.03601481020450592, 0.0032405962701886892, ...
4,077
springserve._common
_SegmentListAPI
null
class _SegmentListAPI(_VDAPIService): __API__ = "segments" __RESPONSE_OBJECT__ = _SegmentListResponse
()
[ -0.016421539708971977, -0.0012420397251844406, -0.0816197544336319, -0.030376743525266647, 0.0029897671192884445, 0.03511423617601395, 0.004608854651451111, 0.02487628161907196, 0.0012398217804729939, -0.012358294799923897, -0.015560983680188656, -0.026473188772797585, 0.002390926470980048, ...