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
723,726
plexapi.config
__init__
null
def __init__(self, path): ConfigParser.__init__(self) self.read(path) self.data = self._asDict()
(self, path)
[ 0.03818497806787491, 0.00622976990416646, -0.0032059254590421915, -0.030034687370061874, -0.0460578128695488, 0.024416189640760422, 0.019092489033937454, 0.040404632687568665, 0.012086707167327404, 0.006160405930131674, 0.02006358653306961, 0.05458960682153702, -0.01578902080655098, 0.0442...
723,730
plexapi.config
_asDict
Returns all configuration values as a dictionary.
def _asDict(self): """ Returns all configuration values as a dictionary. """ config = defaultdict(dict) for section in self._sections: for name, value in self._sections[section].items(): if name != '__name__': config[section.lower()][name.lower()] = value return dict(...
(self)
[ 0.004228034522384405, -0.007343556731939316, 0.005611355882138014, -0.08650270849466324, -0.01617046259343624, 0.03690808266401291, -0.0631985068321228, -0.03825480863451958, 0.007528975605964661, -0.02023991569876671, -0.03813770040869713, -0.023167580366134644, 0.0051526883617043495, 0.0...
723,744
plexapi.config
get
Returns the specified configuration value or <default> if not found. Parameters: key (str): Configuration variable to load in the format '<section>.<variable>'. default: Default value to use if key not found. cast (func): Cast the value to the specified type...
def get(self, key, default=None, cast=None): """ Returns the specified configuration value or <default> if not found. Parameters: key (str): Configuration variable to load in the format '<section>.<variable>'. default: Default value to use if key not found. cast (func): C...
(self, key, default=None, cast=None)
[ 0.03902357071638107, -0.03399476036429405, 0.001896090223453939, -0.018423734232783318, 0.008457545191049576, 0.030264297500252724, 0.01453783456236124, -0.01889004185795784, 0.023571407422423363, -0.020170101895928383, -0.031654078513383865, -0.007950092665851116, -0.018350588157773018, -...
723,795
plexapi.utils
SecretsFilter
Logging filter to hide secrets.
class SecretsFilter(logging.Filter): """ Logging filter to hide secrets. """ def __init__(self, secrets=None): self.secrets = secrets or set() def add_secret(self, secret): if secret is not None and secret != '': self.secrets.add(secret) return secret def filter(se...
(secrets=None)
[ 0.008726784959435463, -0.03263704106211662, 0.003926835022866726, 0.019994335249066353, -0.006417396012693644, -0.040687162429094315, 0.01831795461475849, -0.02991292253136635, 0.0857049748301506, 0.017383720725774765, -0.05441253259778023, 0.04648464918136597, -0.002252636943012476, -0.01...
723,796
plexapi.utils
__init__
null
def __init__(self, secrets=None): self.secrets = secrets or set()
(self, secrets=None)
[ -0.014796181581914425, -0.05320918560028076, -0.02381824515759945, -0.0017215353436768055, -0.010482377372682095, -0.0036759658250957727, 0.022777559235692024, 0.020410841330885887, 0.042903054505586624, 0.02747742459177971, -0.030112706124782562, 0.07855488359928131, -0.039344582706689835, ...
723,797
plexapi.utils
add_secret
null
def add_secret(self, secret): if secret is not None and secret != '': self.secrets.add(secret) return secret
(self, secret)
[ -0.010567686520516872, -0.024988969787955284, -0.0019533243030309677, 0.05018165707588196, 0.03473331034183502, -0.0012053103419020772, 0.03639698028564453, 0.04597155749797821, 0.03741554915904999, -0.010856281965970993, -0.02397039905190468, 0.03765321895480156, -0.036091405898332596, -0...
723,798
plexapi.utils
filter
null
def filter(self, record): cleanargs = list(record.args) for i in range(len(cleanargs)): if isinstance(cleanargs[i], str): for secret in self.secrets: cleanargs[i] = cleanargs[i].replace(secret, '<hidden>') record.args = tuple(cleanargs) return True
(self, record)
[ 0.047261226922273636, -0.01229073666036129, -0.023683439940214157, 0.01970391720533371, -0.022697363048791885, -0.04430299997329712, 0.034970492124557495, 0.005713959690183401, 0.0852251648902893, 0.019105227664113045, -0.0670531839132309, 0.06106629595160484, -0.03481201454997063, -0.0061...
723,805
plexapi.config
reset_base_headers
Convenience function returns a dict of all base X-Plex-* headers for session requests.
def reset_base_headers(): """ Convenience function returns a dict of all base X-Plex-* headers for session requests. """ import plexapi return { 'X-Plex-Platform': plexapi.X_PLEX_PLATFORM, 'X-Plex-Platform-Version': plexapi.X_PLEX_PLATFORM_VERSION, 'X-Plex-Provides': plexapi.X_PLEX_P...
()
[ -0.0778324231505394, -0.022152842953801155, -0.049310196191072464, -0.03825127333402634, -0.03895120695233345, 0.019895562902092934, -0.07643255591392517, 0.022345323115587234, 0.03133944794535637, 0.029397137463092804, 0.010490228421986103, -0.027279842644929886, -0.011120166629552841, 0....
723,806
platform
uname
Fairly portable uname interface. Returns a tuple of strings (system, node, release, version, machine, processor) identifying the underlying platform. Note that unlike the os.uname function this also returns possible processor information as an additional tuple entry. Entries w...
def uname(): """ Fairly portable uname interface. Returns a tuple of strings (system, node, release, version, machine, processor) identifying the underlying platform. Note that unlike the os.uname function this also returns possible processor information as an additional tuple entr...
()
[ 0.09116251021623611, -0.005757198669016361, -0.03409434109926224, 0.01009456254541874, 0.031144749373197556, -0.016296032816171646, -0.013282319530844688, -0.032042451202869415, 0.015975425019860268, -0.054191865026950836, 0.0468270480632782, 0.04004848375916481, -0.02192956767976284, -0.0...
723,811
csv23.readers
DictReader
:func:`csv23.reader` yielding dicts of :func:`py:unicode` strings (PY3: :class:`py3:str`).
class DictReader(csv.DictReader): """:func:`csv23.reader` yielding dicts of :func:`py:unicode` strings (PY3: :class:`py3:str`).""" def __init__(self, f, fieldnames=None, restkey=None, restval=None, dialect=DIALECT, encoding=False, **kwds): # NOTE: csv.DictReader is an old-style class o...
(f, fieldnames=None, restkey=None, restval=None, dialect='excel', encoding=False, **kwds)
[ 0.009098864160478115, 0.01579761505126953, -0.03798928111791611, -0.005728393793106079, -0.036864228546619415, 0.002939200261607766, -0.002575902035459876, 0.10297983139753342, 0.05865275114774704, -0.04350204020738602, -0.012600591406226158, 0.040614403784275055, -0.0530649870634079, 0.06...
723,812
csv23.readers
__init__
null
def __init__(self, f, fieldnames=None, restkey=None, restval=None, dialect=DIALECT, encoding=False, **kwds): # NOTE: csv.DictReader is an old-style class on PY2 csv.DictReader.__init__(self, [], fieldnames, restkey, restval) self.reader = reader(f, dialect, encoding, **kwds)
(self, f, fieldnames=None, restkey=None, restval=None, dialect='excel', encoding=False, **kwds)
[ 0.027680056169629097, -0.015176432207226753, -0.027936352416872978, 0.03342842683196068, -0.03672367334365845, 0.004306701943278313, 0.0002462852280586958, 0.07081114500761032, 0.013391508720815182, -0.04653617739677429, -0.031231597065925598, 0.07348395884037018, -0.044119663536548615, 0....
723,815
csv23.writers
DictWriter
:func:`csv23.writer` for dicts where string values are :func:`py:unicode` strings (PY3: :class:`py3:str`).
class DictWriter(csv.DictWriter): """:func:`csv23.writer` for dicts where string values are :func:`py:unicode` strings (PY3: :class:`py3:str`).""" def __init__(self, f, fieldnames, restval='', extrasaction='raise', dialect=DIALECT, encoding=False, **kwds): # NOTE: csv.DictWrier is an o...
(f, fieldnames, restval='', extrasaction='raise', dialect='excel', encoding=False, **kwds)
[ 0.02281978167593479, 0.02698860689997673, -0.01568746753036976, -0.002598718274384737, -0.01300491951406002, -0.036830656230449677, -0.03871569037437439, 0.12977731227874756, -0.0134218018501997, -0.03099430352449417, 0.010703003033995628, 0.06220610812306404, -0.01577809453010559, 0.04694...
723,816
csv23.writers
__init__
null
def __init__(self, f, fieldnames, restval='', extrasaction='raise', dialect=DIALECT, encoding=False, **kwds): # NOTE: csv.DictWrier is an old-style class on PY2 csv.DictWriter.__init__(self, mock.mock_open()(), fieldnames, restval, extrasaction) self.writer = writer(...
(self, f, fieldnames, restval='', extrasaction='raise', dialect='excel', encoding=False, **kwds)
[ 0.014364359900355339, 0.0032688986975699663, -0.006663094274699688, 0.030196480453014374, -0.017067186534404755, -0.03830496221780777, -0.043531619012355804, 0.10166924446821213, -0.05287516489624977, -0.030822964385151863, -0.001204861095175147, 0.08097740262746811, -0.009343546815216541, ...
723,822
csv23.extras
NamedTupleReader
:func:`csv23.reader` yielding namedtuples of :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: Iterable of text (:func:`py:unicode`, PY3: :class:`py3:str`) lines. If an ``encoding`` is given, iterable of encoded (:class:`py:str`, PY3: :class:`py3:bytes`) lines in the...
class NamedTupleReader(object): r""":func:`csv23.reader` yielding namedtuples of :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: Iterable of text (:func:`py:unicode`, PY3: :class:`py3:str`) lines. If an ``encoding`` is given, iterable of encoded (:class:`py:str`, PY3: :cla...
(stream, dialect='excel', rename=False, row_name='Row', encoding=False, **kwargs)
[ 0.018307629972696304, 0.001979332882910967, -0.028103649616241455, -0.004622437059879303, -0.037401240319013596, -0.023272735998034477, 0.009498880244791508, 0.08534614741802216, 0.05846939608454704, -0.04577866196632385, 0.0055689699947834015, 0.035234998911619186, -0.028448715806007385, ...
723,823
csv23.extras
__init__
null
def __init__(self, stream, dialect=DIALECT, rename=False, row_name=ROW_NAME, encoding=False, **kwargs): self._reader = readers.reader(stream, dialect, encoding, **kwargs) self._rename = rename self._row_name = row_name self._row_cls = None
(self, stream, dialect='excel', rename=False, row_name='Row', encoding=False, **kwargs)
[ 0.00189301953651011, -0.071725033223629, 0.007824631407856941, -0.023451345041394234, -0.06562768667936325, -0.015532005578279495, 0.01283510122448206, 0.0915684774518013, 0.034689951688051224, -0.03627742454409599, -0.023739976808428764, 0.0415269210934639, -0.031136170029640198, 0.066204...
723,825
csv23.extras
__next__
Return the next row of the reader's iterable object as a namedtuple, parsed according to the current dialect. Usually you should call this as next(reader).
def __next__(self): """Return the next row of the reader's iterable object as a namedtuple, parsed according to the current dialect. Usually you should call this as next(reader).""" make_row = self._make_row return make_row(next(self._reader))
(self)
[ 0.019691351801156998, -0.03497806191444397, -0.016055362299084663, -0.009025203064084053, -0.033181656152009964, -0.012782106176018715, 0.022800512611865997, 0.044564638286828995, 0.03530624881386757, -0.06622512638568878, -0.012514372356235981, 0.029917037114501, -0.014466234482824802, 0....
723,826
csv23.extras
NamedTupleWriter
:func:`csv23.writer` for namedtuples where string values are :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: File-like object (in binary mode if ``encoding`` is given). dialect: Dialect argument for the func:`csv23.writer`. encoding: If not ``False`` (default): name of the...
class NamedTupleWriter(object): r""":func:`csv23.writer` for namedtuples where string values are :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: File-like object (in binary mode if ``encoding`` is given). dialect: Dialect argument for the func:`csv23.writer`. encoding:...
(stream, dialect='excel', encoding=False, **kwargs)
[ 0.02276596985757351, 0.025989947840571404, -0.014778068289160728, -0.0032217269763350487, -0.02528751641511917, -0.06981083750724792, -0.048521775752305984, 0.052412163466215134, -0.00471889553591609, -0.0189296156167984, 0.016354035586118698, 0.018362266942858696, -0.013958565890789032, 0...
723,827
csv23.extras
__init__
null
def __init__(self, stream, dialect=DIALECT, encoding=False, **kwargs): self._writer = writers.writer(stream, dialect, encoding, **kwargs)
(self, stream, dialect='excel', encoding=False, **kwargs)
[ -0.0263531394302845, -0.03881035000085831, 0.02558114379644394, -0.021756254136562347, -0.021580800414085388, -0.017036549746990204, -0.04379323497414589, 0.06130351126194, 0.012369482778012753, 0.00867618340998888, 0.007623461540788412, 0.04095088317990303, -0.029055126011371613, 0.044003...
723,828
csv23.extras
writerow
Write the row namedtuple to the writer's file object, formatted according to the current dialect.
def writerow(self, row): """Write the row namedtuple to the writer's file object, formatted according to the current dialect.""" self._writer.writerow(row._fields) self._writer.writerow(row) self.writerow = self._writer.writerow
(self, row)
[ 0.040123917162418365, 0.009078122675418854, 0.008753285743296146, 0.054849881678819656, -0.019455594941973686, -0.07345657050609589, -0.051281001418828964, 0.06902145594358444, -0.026194889098405838, 0.022972501814365387, 0.009121434763073921, -0.03340194746851921, 0.033020805567502975, 0....
723,829
csv23.extras
writerows
Write all the rows namedtuples to the writer's file object, formatted according to the current dialect.
def writerows(self, rows): """Write all the rows namedtuples to the writer's file object, formatted according to the current dialect.""" for r in rows: self.writerow(r)
(self, rows)
[ 0.0005609761574305594, 0.0004999660304747522, -0.008210746571421623, 0.01406349241733551, -0.027400145307183266, -0.04151434823870659, -0.06544932723045349, 0.06555075198411942, -0.01113923266530037, 0.05527358129620552, 0.005886551924049854, -0.009617941454052925, 0.02956376038491726, 0.0...
723,841
csv23
iterrows
Iterator yielding rows from a CSV file (closed on exaustion or error). Args: filename: File (name) argument for the :func:`py:io.open` call. encoding (str): Name of the encoding used to decode the file content. dialect: CSV dialect argument for :func:`csv23.reader`. rowtype (str): ...
def iterrows(filename, encoding=ENCODING, dialect=DIALECT, rowtype=ROWTYPE, **fmtparams): r"""Iterator yielding rows from a CSV file (closed on exaustion or error). Args: filename: File (name) argument for the :func:`py:io.open` call. encoding (str): Name of the encoding used to de...
(filename, encoding='utf-8', dialect='excel', rowtype='list', **fmtparams)
[ 0.019653920084238052, -0.039421554654836655, -0.02473323605954647, -0.010300776921212673, -0.03788638859987259, 0.027936236932873726, -0.02869434468448162, 0.009751149453222752, 0.04351533204317093, -0.004446770530194044, 0.02943349815905094, -0.018649429082870483, -0.0282205268740654, 0.0...
723,842
csv23
open_csv
Context manager returning a CSV reader/writer (closing the file on exit). Args: filename: File (name) argument for the :func:`py:io.open` call. mode (str): ``'r'`` for a :func:`csv23.reader`, ``'w'`` for a :func:`csv23.writer`. encoding (str): Name of the encoding used to de/encode the file...
def open_csv(filename, mode='r', encoding=ENCODING, dialect=DIALECT, rowtype=ROWTYPE, **fmtparams): r"""Context manager returning a CSV reader/writer (closing the file on exit). Args: filename: File (name) argument for the :func:`py:io.open` call. mode (str): ``'r'`` for a :func:`c...
(filename, mode='r', encoding='utf-8', dialect='excel', rowtype='list', **fmtparams)
[ 0.03972340747714043, -0.0034945590887218714, 0.003937319852411747, -0.011856986209750175, 0.009550627321004868, -0.017870530486106873, -0.016589775681495667, 0.02995765209197998, 0.006829023826867342, -0.012637446634471416, 0.0015721763484179974, -0.04894884303212166, -0.037822283804416656, ...
723,843
csv23.openers
open_reader
Context manager returning a CSV reader (closing the file on exit). Args: filename: File (name) argument for the :func:`py:io.open` call. encoding (str): Name of the encoding used to decode the file content. dialect: Dialect argument for the :func:`csv23.reader`. rowtype (str): ``'li...
def open_reader(filename, encoding=ENCODING, dialect=DIALECT, rowtype=ROWTYPE, **fmtparams): r"""Context manager returning a CSV reader (closing the file on exit). Args: filename: File (name) argument for the :func:`py:io.open` call. encoding (str): Name of the encoding used to decode the file ...
(filename, encoding='utf-8', dialect='excel', rowtype='list', **fmtparams)
[ 0.0229629036039114, -0.05343667417764664, 0.010835987515747547, 0.021359020844101906, 0.0012273613829165697, 0.02292378433048725, 0.002389931818470359, 0.0016698960680514574, 0.042874518781900406, -0.021046068519353867, 0.025310048833489418, -0.04623876139521599, -0.06137784942984581, 0.07...
723,844
csv23.openers
open_writer
Context manager returning a CSV writer (closing the file on exit). Args: filename: File (name) argument for the :func:`py:io.open` call. encoding (str): Name of the encoding used to encode the output lines. dialect: Dialect argument for the :func:`csv23.writer`. rowtype (str): ``'li...
def open_writer(filename, encoding=ENCODING, dialect=DIALECT, rowtype=ROWTYPE, **fmtparams): r"""Context manager returning a CSV writer (closing the file on exit). Args: filename: File (name) argument for the :func:`py:io.open` call. encoding (str): Name of the encoding used to encode the outpu...
(filename, encoding='utf-8', dialect='excel', rowtype='list', **fmtparams)
[ 0.04016430675983429, 0.009357808157801628, 0.005169074982404709, -0.0034237694926559925, 0.0006213782471604645, -0.03356928005814552, -0.03307415917515755, 0.04376879706978798, -0.023211324587464333, -0.011209565214812756, 0.024617472663521767, -0.040401965379714966, -0.02600381337106228, ...
723,846
csv23.shortcuts
read_csv
Iterator yielding rows from a file-like object with CSV data. Args: file: Source as readable file-like object or filename/:class:`py:os.PathLike`. dialect: CSV dialect argument for the :func:`csv23.reader`. encoding (str): Name of the encoding used to decode the file content...
def read_csv(file, dialect=DIALECT, encoding=ENCODING, as_list=False, autocompress=False): r"""Iterator yielding rows from a file-like object with CSV data. Args: file: Source as readable file-like object or filename/:class:`py:os.PathLike`. dialect: CSV dialect argument for the :fu...
(file, dialect='excel', encoding='utf-8', as_list=False, autocompress=False)
[ 0.027636315673589706, -0.033136747777462006, -0.031239384785294533, 0.008394386619329453, -0.016846269369125366, 0.04542168229818344, -0.01178663969039917, 0.03547491133213043, 0.07742767781019211, -0.027444662526249886, 0.0426618866622448, -0.023994915187358856, -0.04653326794505119, 0.05...
723,847
csv23.readers
reader
CSV reader yielding lists of :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: Iterable of text (:func:`py:unicode`, PY3: :class:`py3:str`) lines. If an ``encoding`` is given, iterable of encoded (:class:`py:str`, PY3: :class:`py3:bytes`) lines in the given (8-bit cl...
def reader(stream, dialect=DIALECT, encoding=False, **fmtparams): r"""CSV reader yielding lists of :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: Iterable of text (:func:`py:unicode`, PY3: :class:`py3:str`) lines. If an ``encoding`` is given, iterable of encoded (:class:`...
(stream, dialect='excel', encoding=False, **fmtparams)
[ -0.019758090376853943, -0.023949777707457542, -0.00967898778617382, -0.01895785890519619, -0.05929332599043846, 0.03993535041809082, 0.0023661600425839424, 0.02713165059685707, 0.11165131628513336, 0.012584589421749115, 0.0010324412724003196, 0.0018386265728622675, -0.05392034351825714, 0....
723,853
csv23.shortcuts
write_csv
Write rows into a file-like object using CSV format. Args: file: Target as writeable file-like object, or as filename or :class:`py:os.Pathlike`, or as updateable hash, or ``None`` for string output. rows: CSV values to write as iterable of row value iter...
def write_csv(file, rows, header=None, dialect=DIALECT, encoding=ENCODING, autocompress=False): r"""Write rows into a file-like object using CSV format. Args: file: Target as writeable file-like object, or as filename or :class:`py:os.Pathlike`, or as updateable hash, ...
(file, rows, header=None, dialect='excel', encoding='utf-8', autocompress=False)
[ -0.004143707919865847, -0.010084996931254864, -0.009750204160809517, 0.0228483397513628, -0.025938736274838448, -0.04821019992232323, -0.02731911465525627, 0.07919658720493317, -0.04363641142845154, -0.017460746690630913, 0.05480304732918739, 0.0015142947668209672, 0.0020267856307327747, 0...
723,854
csv23.writers
writer
CSV writer for rows where string values are :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: File-like object (in binary mode if ``encoding`` is given). dialect: Dialect argument for the underlying :func:`py:csv.writer`. encoding: If not ``False`` (default): name of the enc...
def writer(stream, dialect=DIALECT, encoding=False, **fmtparams): r"""CSV writer for rows where string values are :func:`py:unicode` strings (PY3: :class:`py3:str`). Args: stream: File-like object (in binary mode if ``encoding`` is given). dialect: Dialect argument for the underlying :func:`py:...
(stream, dialect='excel', encoding=False, **fmtparams)
[ 0.005315127782523632, 0.011639886535704136, 0.007358660455793142, -0.017629720270633698, -0.04795749858021736, -0.005552973598241806, -0.03333725780248642, 0.06345146149396896, 0.01586286537349224, 0.03976394981145859, 0.02813377045094967, 0.020813941955566406, 0.009368215687572956, 0.0426...
723,856
paginate
Page
A list/iterator representing the items on one page of a larger collection. An instance of the "Page" class is created from a _collection_ which is any list-like object that allows random access to its elements. The instance works as an iterator running from the first item to the last item on the given ...
class Page(list): """A list/iterator representing the items on one page of a larger collection. An instance of the "Page" class is created from a _collection_ which is any list-like object that allows random access to its elements. The instance works as an iterator running from the first item to the l...
(collection, page=1, items_per_page=20, item_count=None, wrapper_class=None, url_maker=None, **kwargs)
[ -0.011148476041853428, -0.028488406911492348, -0.08587026596069336, -0.001647920231334865, -0.013897018507122993, 0.04717849940061569, -0.011138832196593285, -0.04459390416741371, -0.025363747030496597, -0.023589249700307846, 0.013906662352383137, 0.03873034566640854, 0.023319216445088387, ...
723,857
paginate
__init__
Create a "Page" instance. Parameters: collection Sequence representing the collection of items to page through. page The requested page number - starts with 1. Default: 1. items_per_page The maximal number of items to be displayed per page. ...
def __init__(self, collection, page=1, items_per_page=20, item_count=None, wrapper_class=None, url_maker=None, **kwargs): """Create a "Page" instance. Parameters: collection Sequence representing the collection of items to page through. page The requested page number - start...
(self, collection, page=1, items_per_page=20, item_count=None, wrapper_class=None, url_maker=None, **kwargs)
[ -0.021303480491042137, -0.027662159875035286, -0.07744643092155457, 0.001150011899881065, -0.009019235149025917, 0.05208786576986313, -0.0039004026912152767, -0.03710499033331871, -0.028138108551502228, -0.011613157577812672, 0.010975385084748268, 0.06465291976928711, -0.0008590880897827446,...
723,858
paginate
__repr__
null
def __repr__(self): return("<paginate.Page: Page {0}/{1}>".format(self.page, self.page_count))
(self)
[ -0.024907948449254036, -0.04860801622271538, 0.033546119928359985, -0.009562383405864239, 0.025438683107495308, 0.012152004055678844, 0.024157598614692688, -0.04886423423886299, -0.010376786813139915, -0.052414670586586, 0.005925017409026623, 0.02569490112364292, 0.00041263512684963644, 0....
723,859
paginate
__str__
null
def __str__(self): return ("Page:\n" "Collection type: {0.collection_type}\n" "Current page: {0.page}\n" "First item: {0.first_item}\n" "Last item: {0.last_item}\n" "First page: {0.first_page}\n" "Last page: ...
(self)
[ -0.05117742344737053, -0.051067207008600235, 0.002718685893341899, -0.008431600406765938, 0.024413064122200012, 0.007568233646452427, 0.01943492889404297, -0.09001054614782333, 0.03339574858546257, -0.05790065973997116, -0.0025051403790712357, 0.026948055252432823, -0.015246683731675148, 0...
723,860
paginate
_default_url_maker
null
def _default_url_maker(self, page_number): if self.url is None: raise Exception( "You need to specify a 'url' parameter containing a '$page' placeholder.") if "$page" not in self.url: raise Exception("The 'url' parameter must contain a '$page' placeholder.") return self.url.repla...
(self, page_number)
[ -0.03293313458561897, -0.02076992392539978, -0.0030230197589844465, 0.02203247882425785, -0.04072185605764389, 0.04171767085790634, 0.013239048421382904, 0.013025658205151558, -0.04829718545079231, -0.018529333174228668, 0.020183103159070015, 0.07888302952051163, -0.021516786888241768, 0.0...
723,861
paginate
_range
Return range of linked pages to substiture placeholder in pattern
def _range(self, link_map, radius): """ Return range of linked pages to substiture placeholder in pattern """ leftmost_page = max(self.first_page, (self.page-radius)) rightmost_page = min(self.last_page, (self.page+radius)) nav_items = [] # Create a link to the first page (unless we are on t...
(self, link_map, radius)
[ 0.005055965390056372, -0.019373245537281036, -0.05124535784125328, -0.014825046062469482, -0.060897260904312134, 0.07006309926509857, -0.05478670448064804, -0.040065813809633255, -0.061626359820365906, -0.024164477363228798, 0.04503064230084419, 0.06548018008470535, 0.041385140269994736, 0...
723,862
paginate
default_link_tag
Create an A-HREF tag that points to another page.
@staticmethod def default_link_tag(item): """ Create an A-HREF tag that points to another page. """ text = item['value'] target_url = item['href'] if not item['href'] or item['type'] in ('span', 'current_page'): if item['attrs']: text = make_html_tag('span', **item['attrs']) ...
(item)
[ 0.012255347333848476, -0.07162044197320938, 0.001861961092799902, -0.008096100762486458, -0.0036766042467206717, 0.013419369235634804, 0.0004226083983667195, -0.02534349076449871, -0.006463631056249142, 0.01609756425023079, 0.02608165144920349, 0.007509357761591673, 0.047469362616539, 0.02...
723,863
paginate
link_map
Return map with links to other pages if default pager() function is not suitable solution. format: Format string that defines how the pager would be normally rendered rendered. Uses same arguments as pager() method, but returns a simple dictionary in form of: {'current_page'...
def link_map(self, format='~2~', url=None, show_if_single_page=False, separator=' ', symbol_first='&lt;&lt;', symbol_last='&gt;&gt;', symbol_previous='&lt;', symbol_next='&gt;', link_attr=dict(), curpage_attr=dict(), dotdot_attr=dict()): """ Return map with links to other pages if default pager(...
(self, format='~2~', url=None, show_if_single_page=False, separator=' ', symbol_first='&lt;&lt;', symbol_last='&gt;&gt;', symbol_previous='&lt;', symbol_next='&gt;', link_attr={}, curpage_attr={}, dotdot_attr={})
[ 0.00435347855091095, -0.01713545061647892, -0.016936548054218292, -0.004870625212788582, -0.03150615841150284, 0.07168446481227875, -0.042286671698093414, -0.028124814853072166, -0.08505070954561234, -0.024644020944833755, 0.035842232406139374, 0.022257190197706223, 0.06842246651649475, 0....
723,864
paginate
pager
Return string with links to other pages (e.g. '1 .. 5 6 7 [8] 9 10 11 .. 50'). format: Format string that defines how the pager is rendered. The string can contain the following $-tokens that are substituted by the string.Template module: - $first_page:...
def pager(self, format='~2~', url=None, show_if_single_page=False, separator=' ', symbol_first='&lt;&lt;', symbol_last='&gt;&gt;', symbol_previous='&lt;', symbol_next='&gt;', link_attr=dict(), curpage_attr=dict(), dotdot_attr=dict(), link_tag=None): """ Return string with links to other pages (e.g. '1 ....
(self, format='~2~', url=None, show_if_single_page=False, separator=' ', symbol_first='&lt;&lt;', symbol_last='&gt;&gt;', symbol_previous='&lt;', symbol_next='&gt;', link_attr={}, curpage_attr={}, dotdot_attr={}, link_tag=None)
[ -0.012161382474005222, -0.04018372669816017, -0.004314535763114691, -0.01495574600994587, -0.0141587620601058, 0.08918347209692001, -0.01991475559771061, -0.04211223125457764, -0.08989190310239792, -0.02353562042117119, 0.02957695536315441, 0.034162070602178574, 0.05620211735367775, 0.0551...
723,870
paginate
make_html_tag
Create an HTML tag string. tag The HTML tag to use (e.g. 'a', 'span' or 'div') text The text to enclose between opening and closing tag. If no text is specified then only the opening tag is returned. Example:: make_html_tag('a', text="Hello", href="/another/page") ...
def make_html_tag(tag, text=None, **params): """Create an HTML tag string. tag The HTML tag to use (e.g. 'a', 'span' or 'div') text The text to enclose between opening and closing tag. If no text is specified then only the opening tag is returned. Example:: make_html_t...
(tag, text=None, **params)
[ 0.06370284408330917, -0.016217926517128944, 0.006506347097456455, -0.06059806048870087, 0.013798021711409092, -0.023906830698251724, -0.02843616157770157, 0.003940335009247065, 0.00819114875048399, -0.027175983414053917, 0.04543941468000412, 0.0454028882086277, 0.01418155338615179, 0.02964...
723,874
asgi_correlation_id.log_filters
CeleryTracingIdsFilter
null
class CeleryTracingIdsFilter(Filter): def __init__(self, name: str = '', uuid_length: Optional[int] = None, default_value: Optional[str] = None): super().__init__(name=name) self.uuid_length = uuid_length self.default_value = default_value def filter(self, record: 'LogRecord') -> bool: ...
(name: str = '', uuid_length: Optional[int] = None, default_value: Optional[str] = None)
[ 0.013066111132502556, 0.002668587025254965, -0.04531947523355484, 0.0456029437482357, -0.0074720438569784164, -0.019665604457259178, -0.02870115265250206, 0.028860602527856827, 0.05152034014463425, -0.056799933314323425, -0.01837228052318096, -0.014040532521903515, 0.07540253549814224, 0.0...
723,875
asgi_correlation_id.log_filters
__init__
null
def __init__(self, name: str = '', uuid_length: Optional[int] = None, default_value: Optional[str] = None): super().__init__(name=name) self.uuid_length = uuid_length self.default_value = default_value
(self, name: str = '', uuid_length: Optional[int] = None, default_value: Optional[str] = None)
[ 0.039291512221097946, -0.000897365331184119, 0.015231951139867306, -0.022622909396886826, -0.0010499012423679233, -0.002114947885274887, 0.008204483427107334, 0.010870074853301048, 0.03273138776421547, -0.039637692272663116, -0.005811508744955063, 0.10814685374498367, -0.017984088510274887, ...
723,876
asgi_correlation_id.log_filters
filter
Append a parent- and current ID to the log record. The celery current ID is a unique ID generated for each new worker process. The celery parent ID is the current ID of the worker process that spawned the current process. If the worker process was spawned by a beat process or f...
def filter(self, record: 'LogRecord') -> bool: """ Append a parent- and current ID to the log record. The celery current ID is a unique ID generated for each new worker process. The celery parent ID is the current ID of the worker process that spawned the current process. If the worker process was s...
(self, record: 'LogRecord') -> bool
[ 0.06081268563866615, 0.06249496713280678, -0.04474152997136116, 0.08003364503383636, 0.004210177809000015, -0.05003892630338669, -0.016876503825187683, 0.05698281154036522, 0.038907233625650406, -0.032178107649087906, -0.028562990948557854, -0.029171476140618324, 0.097500741481781, 0.00480...
723,877
asgi_correlation_id.log_filters
CorrelationIdFilter
Logging filter to attached correlation IDs to log records
class CorrelationIdFilter(Filter): """Logging filter to attached correlation IDs to log records""" def __init__(self, name: str = '', uuid_length: Optional[int] = None, default_value: Optional[str] = None): super().__init__(name=name) self.uuid_length = uuid_length self.default_value = ...
(name: str = '', uuid_length: Optional[int] = None, default_value: Optional[str] = None)
[ -0.02335144206881523, 0.0013821795582771301, -0.01853061467409134, 0.027437496930360794, 0.0019130978034809232, -0.046523671597242355, -0.031971585005521774, 0.0051658120937645435, 0.061290815472602844, -0.019462522119283676, -0.03559168428182602, -0.0026008274871855974, 0.06139834225177765,...
723,879
asgi_correlation_id.log_filters
filter
Attach a correlation ID to the log record. Since the correlation ID is defined in the middleware layer, any log generated from a request after this point can easily be searched for, if the correlation ID is added to the message, or included as metadata.
def filter(self, record: 'LogRecord') -> bool: """ Attach a correlation ID to the log record. Since the correlation ID is defined in the middleware layer, any log generated from a request after this point can easily be searched for, if the correlation ID is added to the message, or included as m...
(self, record: 'LogRecord') -> bool
[ -0.0178214143961668, 0.04671769216656685, -0.018645020201802254, 0.06736039370298386, 0.011267620138823986, -0.04258214309811592, -0.020993171259760857, 0.05982528254389763, 0.033347249031066895, -0.005173817742615938, -0.044509727507829666, 0.002497100969776511, 0.07450998574495316, -0.00...
723,880
asgi_correlation_id.middleware
CorrelationIdMiddleware
CorrelationIdMiddleware(app: 'ASGIApp', header_name: str = 'X-Request-ID', update_request_header: bool = True, generator: Callable[[], str] = <function CorrelationIdMiddleware.<lambda> at 0x7f6195f38a60>, validator: Optional[Callable[[str], bool]] = <function is_valid_uuid4 at 0x7f6196234040>, transformer: Optional[Cal...
class CorrelationIdMiddleware: app: 'ASGIApp' header_name: str = 'X-Request-ID' update_request_header: bool = True # ID-generating callable generator: Callable[[], str] = field(default=lambda: uuid4().hex) # ID validator validator: Optional[Callable[[str], bool]] = field(default=is_valid_u...
(app: 'ASGIApp', header_name: str = 'X-Request-ID', update_request_header: bool = True, generator: Callable[[], str] = <function CorrelationIdMiddleware.<lambda> at 0x7f6195f38a60>, validator: Optional[Callable[[str], bool]] = <function is_valid_uuid4 at 0x7f6196234040>, transformer: Optional[Callable[[str], str]] = <f...
[ -0.010642691515386105, 0.024655407294631004, -0.05581844598054886, 0.02705703303217888, 0.038251712918281555, -0.006115431897342205, -0.021304750815033913, 0.04745149239897728, -0.013886824250221252, -0.029032565653324127, -0.02033635415136814, -0.007994123734533787, 0.05481131374835968, 0...
723,881
asgi_correlation_id.middleware
__call__
Load request ID from headers if present. Generate one otherwise.
transformer: Optional[Callable[[str], str]] = field(default=lambda a: a)
(self, scope: 'Scope', receive: 'Receive', send: 'Send') -> None
[ 0.0403936393558979, -0.005617086309939623, 0.08677884191274643, 0.02082231268286705, -0.019291503354907036, 0.01083089504390955, 0.04770202562212944, -0.06531457602977753, 0.020081598311662674, -0.017135199159383774, 0.05422031506896019, 0.016353333368897438, 0.019110439345240593, -0.01487...
723,882
asgi_correlation_id.middleware
__eq__
null
import logging from dataclasses import dataclass, field from typing import TYPE_CHECKING, Callable, Optional from uuid import UUID, uuid4 from starlette.datastructures import MutableHeaders from asgi_correlation_id.context import correlation_id from asgi_correlation_id.extensions.sentry import get_sentry_extension i...
(self, other)
[ 0.000028877875593025237, -0.011532668955624104, -0.07917620986700058, -0.02909041754901409, 0.05393001064658165, -0.008483164943754673, -0.0034260712563991547, 0.012179533019661903, -0.010414517484605312, -0.05367126688361168, -0.005530690774321556, 0.020311543717980385, 0.024155765771865845...
723,884
asgi_correlation_id.middleware
__post_init__
Load extensions on initialization. If Sentry is installed, propagate correlation IDs to Sentry events. If Celery is installed, propagate correlation IDs to spawned worker processes.
def __post_init__(self) -> None: """ Load extensions on initialization. If Sentry is installed, propagate correlation IDs to Sentry events. If Celery is installed, propagate correlation IDs to spawned worker processes. """ self.sentry_extension = get_sentry_extension() try: import ce...
(self) -> NoneType
[ 0.016908036544919014, 0.009694553911685944, 0.00040317399543710053, 0.05789164826273918, 0.02758583053946495, -0.008559693582355976, -0.0000748772217775695, 0.06950673460960388, 0.010870764963328838, -0.00576159730553627, 0.017845330759882927, 0.005003492813557386, 0.03767551854252815, -0....
723,886
asgi_correlation_id.middleware
<lambda>
null
generator: Callable[[], str] = field(default=lambda: uuid4().hex)
()
[ 0.04477468132972717, -0.028778815641999245, 0.0032880869694054127, 0.023401042446494102, -0.002600831678137183, 0.021631360054016113, 0.000769403763115406, -0.014595584012567997, 0.049482379108667374, -0.02535971999168396, 0.04697389900684357, 0.08123357594013214, 0.0274043045938015, 0.027...
723,887
asgi_correlation_id.middleware
<lambda>
null
transformer: Optional[Callable[[str], str]] = field(default=lambda a: a)
(a)
[ 0.0403936393558979, -0.005617086309939623, 0.08677884191274643, 0.02082231268286705, -0.019291503354907036, 0.01083089504390955, 0.04770202562212944, -0.06531457602977753, 0.020081598311662674, -0.017135199159383774, 0.05422031506896019, 0.016353333368897438, 0.019110439345240593, -0.01487...
723,888
asgi_correlation_id.middleware
is_valid_uuid4
Check whether a string is a valid v4 uuid.
def is_valid_uuid4(uuid_: str) -> bool: """ Check whether a string is a valid v4 uuid. """ try: return bool(UUID(uuid_, version=4)) except ValueError: return False
(uuid_: str) -> bool
[ 0.00860738568007946, 0.032574813812971115, -0.009525747038424015, -0.034141428768634796, 0.013172181323170662, 0.010516136884689331, 0.03639231622219086, 0.04361315444111824, -0.0012616212479770184, 0.006941730622202158, 0.02414749749004841, 0.0730007141828537, 0.03017987124621868, 0.04555...
723,893
fiscalyear
FiscalDate
A wrapper around the builtin datetime.date class that provides the following attributes.
class FiscalDate(datetime.date, _FiscalMixin): """A wrapper around the builtin datetime.date class that provides the following attributes.""" pass
null
[ 0.00230614747852087, -0.008102551102638245, 0.020435426384210587, 0.0733383521437645, -0.022307083010673523, -0.0577157586812973, -0.041825782507658005, 0.0044953166507184505, 0.02360578253865242, -0.011573709547519684, 0.04835747927427292, 0.004485767334699631, 0.06008397415280342, 0.0366...
723,894
fiscalyear
FiscalDateTime
A wrapper around the builtin datetime.datetime class that provides the following attributes.
class FiscalDateTime(datetime.datetime, _FiscalMixin): """A wrapper around the builtin datetime.datetime class that provides the following attributes.""" pass
null
[ 0.02138490602374077, -0.016437925398349762, 0.013748751021921635, 0.07988593727350235, -0.03137064725160599, -0.06575170159339905, -0.04159501940011978, 0.028800787404179573, 0.030948456376791, -0.024725724011659622, 0.034784890711307526, -0.01282176561653614, 0.04812980815768242, 0.027203...
723,895
fiscalyear
FiscalDay
A class representing a single fiscal day.
class FiscalDay(_Hashable): """A class representing a single fiscal day.""" __slots__ = ["_fiscal_year", "_fiscal_day"] __hash__ = _Hashable.__hash__ _fiscal_year: int _fiscal_day: int def __new__(cls, fiscal_year: int, fiscal_day: int) -> "FiscalDay": """Constructor. :param ...
(fiscal_year: int, fiscal_day: int) -> 'FiscalDay'
[ 0.055312201380729675, 0.008149839006364346, -0.04716780409216881, 0.028527159243822098, -0.05121822655200958, -0.06323882937431335, -0.04886636883020401, -0.030987897887825966, -0.010322040878236294, -0.025913983583450317, 0.031662967056035995, -0.00022099701163824648, 0.08919636905193329, ...
723,896
fiscalyear
__contains__
Returns True if item in self, else False. :param item: The item to check
def __contains__( self, item: Union["FiscalDay", datetime.datetime, datetime.date] ) -> bool: """Returns True if item in self, else False. :param item: The item to check """ if isinstance(item, FiscalDay): return self == item elif isinstance(item, datetime.datetime): return self....
(self, item: Union[fiscalyear.FiscalDay, datetime.datetime, datetime.date]) -> bool
[ 0.06518937647342682, -0.03276534378528595, -0.0652652233839035, 0.03955353423953056, -0.056618813425302505, -0.04008445143699646, 0.012211157940328121, -0.016790341585874557, -0.022488249465823174, -0.03562851622700691, 0.027323413640260696, -0.020686915144324303, 0.09109068661928177, -0.0...
723,897
fiscalyear
__eq__
null
def __eq__(self, other: object) -> bool: if isinstance(other, FiscalDay): return (self._fiscal_year, self._fiscal_day) == ( other._fiscal_year, other._fiscal_day, ) else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(other).__name_...
(self, other: object) -> bool
[ 0.04845689982175827, -0.00893882941454649, -0.015867799520492554, 0.049154385924339294, -0.06251674145460129, -0.0730157345533371, -0.030267206951975822, 0.027385490015149117, 0.01744631864130497, 0.018942242488265038, 0.039609845727682114, -0.07088656723499298, 0.09427069127559662, 0.0549...
723,898
fiscalyear
__ge__
null
def __ge__(self, other: "FiscalDay") -> bool: return (self._fiscal_year, self._fiscal_day) >= ( other._fiscal_year, other._fiscal_day, )
(self, other: fiscalyear.FiscalDay) -> bool
[ 0.04858662188053131, -0.004519843962043524, -0.036285750567913055, 0.07209978997707367, -0.062157489359378815, -0.05852891504764557, -0.023349881172180176, 0.010903867892920971, 0.019902734085917473, -0.02374902367591858, 0.04252690076828003, -0.060706060379743576, 0.0837475135922432, 0.00...
723,899
fiscalyear
__gt__
null
def __gt__(self, other: "FiscalDay") -> bool: return (self._fiscal_year, self._fiscal_day) > ( other._fiscal_year, other._fiscal_day, )
(self, other: fiscalyear.FiscalDay) -> bool
[ 0.031707193702459335, 0.008053844794631004, -0.05012894794344902, 0.05023784190416336, -0.044067010283470154, -0.06951262056827545, -0.03294136002659798, 0.02444739080965519, 0.018222108483314514, -0.03430257365107536, 0.04929406940937042, -0.03952963277697563, 0.08247137069702148, -0.0123...
723,900
fiscalyear
__hash__
Unique hash of an object instance based on __slots__ :returns: a unique hash
def __hash__(self) -> int: """Unique hash of an object instance based on __slots__ :returns: a unique hash """ return hash(tuple(map(lambda x: getattr(self, x), self.__slots__)))
(self) -> int
[ 0.05289096012711525, -0.026533866301178932, 0.01773049123585224, -0.019568948075175285, -0.03768834471702576, -0.02153114601969719, 0.003042732598260045, -0.02013462595641613, -0.030016325414180756, -0.005444657523185015, -0.016387004405260086, -0.008052082732319832, 0.007601307705044746, ...
723,901
fiscalyear
__le__
null
def __le__(self, other: "FiscalDay") -> bool: return (self._fiscal_year, self._fiscal_day) <= ( other._fiscal_year, other._fiscal_day, )
(self, other: fiscalyear.FiscalDay) -> bool
[ 0.01918429508805275, 0.007321279030293226, -0.03686073049902916, 0.07128709554672241, -0.05351982265710831, -0.05682620406150818, -0.021091824397444725, 0.014506305567920208, 0.007139609660953283, -0.02276318334043026, 0.04886908456683159, -0.04552636668086052, 0.09236074984073639, 0.00935...
723,902
fiscalyear
__lt__
null
def __lt__(self, other: "FiscalDay") -> bool: return (self._fiscal_year, self._fiscal_day) < ( other._fiscal_year, other._fiscal_day, )
(self, other: fiscalyear.FiscalDay) -> bool
[ 0.012698737904429436, 0.018389688804745674, -0.03143835440278053, 0.05013192817568779, -0.04707465320825577, -0.044238388538360596, 0.007785919588059187, 0.010847797617316246, 0.015986228361725807, -0.02517646737396717, 0.040002405643463135, -0.0703909769654274, 0.07230637222528458, 0.0214...
723,903
fiscalyear
__ne__
null
def __ne__(self, other: object) -> bool: if isinstance(other, FiscalDay): return (self._fiscal_year, self._fiscal_day) != ( other._fiscal_year, other._fiscal_day, ) else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(other).__name_...
(self, other: object) -> bool
[ 0.026737960055470467, 0.023985790088772774, -0.0006510200910270214, 0.053293656557798386, -0.10549373924732208, -0.0776439756155014, -0.04706026613712311, 0.029690617695450783, 0.03900425136089325, 0.02336609736084938, 0.04082687944173813, -0.0649220272898674, 0.06339102238416672, 0.006775...
723,904
fiscalyear
__new__
Constructor. :param fiscal_year: The fiscal year :param fiscal_day: The fiscal day :returns: A newly constructed FiscalDay object :raises ValueError: If fiscal_year or fiscal_day is out of range
def __new__(cls, fiscal_year: int, fiscal_day: int) -> "FiscalDay": """Constructor. :param fiscal_year: The fiscal year :param fiscal_day: The fiscal day :returns: A newly constructed FiscalDay object :raises ValueError: If fiscal_year or fiscal_day is out of range """ fiscal_year = _check_y...
(cls, fiscal_year: int, fiscal_day: int) -> fiscalyear.FiscalDay
[ 0.01802993007004261, 0.02725149691104889, 0.0060519687831401825, 0.0048375437036156654, -0.08139167726039886, -0.03767237439751625, -0.03940582647919655, -0.01443200558423996, 0.013252854347229004, -0.0010966359404847026, 0.04498915746808052, 0.043618518859148026, 0.019712992012500763, 0.0...
723,905
fiscalyear
__repr__
Convert to formal string, for repr(). >>> fd = FiscalDay(2017, 1) >>> repr(fd) 'FiscalDay(2017, 1)'
def __repr__(self) -> str: """Convert to formal string, for repr(). >>> fd = FiscalDay(2017, 1) >>> repr(fd) 'FiscalDay(2017, 1)' """ return f"{self.__class__.__name__}({self._fiscal_year}, {self._fiscal_day})"
(self) -> str
[ 0.02183797024190426, 0.004431654699146748, 0.05067479982972145, -0.013500531204044819, -0.027593862265348434, -0.07863198965787888, -0.0007099252543412149, -0.03011804074048996, 0.035185519605875015, -0.03612252697348595, -0.01606295444071293, -0.009518257342278957, 0.006472988519817591, 0...
723,906
fiscalyear
__str__
Convert to informal string, for str(). >>> fd = FiscalDay(2017, 1) >>> str(fd) 'FY2017 FD1'
def __str__(self) -> str: """Convert to informal string, for str(). >>> fd = FiscalDay(2017, 1) >>> str(fd) 'FY2017 FD1' """ return f"FY{self._fiscal_year} FD{self._fiscal_day}"
(self) -> str
[ 0.008654206991195679, -0.0054704840295016766, 0.013927556574344635, -0.007727674674242735, -0.018550362437963486, -0.08106172829866409, 0.018244802951812744, -0.02401098981499672, 0.023656146600842476, -0.055276528000831604, -0.016174890100955963, -0.009250539354979992, 0.0022362452000379562...
723,907
fiscalyear
FiscalMonth
A class representing a single fiscal month.
class FiscalMonth(_Hashable): """A class representing a single fiscal month.""" __slots__ = ["_fiscal_year", "_fiscal_month"] __hash__ = _Hashable.__hash__ _fiscal_year: int _fiscal_month: int def __new__(cls, fiscal_year: int, fiscal_month: int) -> "FiscalMonth": """Constructor. ...
(fiscal_year: int, fiscal_month: int) -> 'FiscalMonth'
[ 0.05548391491174698, 0.0214310921728611, -0.04893612116575241, 0.024941913783550262, -0.03248048946261406, -0.05621623247861862, -0.03650824353098869, -0.026428090408444405, -0.03420359268784523, -0.033858973532915115, 0.02481268160045147, -0.009094752371311188, 0.09106598794460297, 0.0344...
723,908
fiscalyear
__contains__
Returns True if item in self, else False. :param item: The item to check
def __contains__( self, item: Union["FiscalMonth", "FiscalDay", datetime.datetime, datetime.date] ) -> bool: """Returns True if item in self, else False. :param item: The item to check """ if isinstance(item, FiscalMonth): return self == item elif isinstance(item, FiscalDay): ret...
(self, item: Union[fiscalyear.FiscalMonth, fiscalyear.FiscalDay, datetime.datetime, datetime.date]) -> bool
[ 0.07071320712566376, -0.026372550055384636, -0.06580579280853271, 0.03429397568106651, -0.04834001511335373, -0.03632263094186783, 0.012181606143712997, -0.026643037796020508, -0.03400416672229767, -0.040573153644800186, 0.031782303005456924, -0.015920132398605347, 0.09011103957891464, -0....
723,909
fiscalyear
__eq__
null
def __eq__(self, other: object) -> bool: if isinstance(other, FiscalMonth): return (self._fiscal_year, self._fiscal_month) == ( other._fiscal_year, other._fiscal_month, ) else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(other)._...
(self, other: object) -> bool
[ 0.05236414819955826, 0.001583887729793787, -0.01440561842173338, 0.045973822474479675, -0.04889511689543724, -0.07241151481866837, -0.031294334679841995, 0.02565259113907814, 0.0010937725892290473, 0.01698913611471653, 0.037648145109415054, -0.07445641607046127, 0.08179616183042526, 0.0518...
723,910
fiscalyear
__ge__
null
def __ge__(self, other: "FiscalMonth") -> bool: return (self._fiscal_year, self._fiscal_month) >= ( other._fiscal_year, other._fiscal_month, )
(self, other: fiscalyear.FiscalMonth) -> bool
[ 0.05687600001692772, 0.011605876497924328, -0.034385111182928085, 0.06913065165281296, -0.048225659877061844, -0.055686578154563904, -0.02521214447915554, 0.009254064410924911, -0.0037912828847765923, -0.023986678570508957, 0.045053865760564804, -0.06386835873126984, 0.07197805494070053, 0...
723,911
fiscalyear
__gt__
null
def __gt__(self, other: "FiscalMonth") -> bool: return (self._fiscal_year, self._fiscal_month) > ( other._fiscal_year, other._fiscal_month, )
(self, other: fiscalyear.FiscalMonth) -> bool
[ 0.0363486185669899, 0.023660555481910706, -0.04732111096382141, 0.05003742873668671, -0.029093191027641296, -0.06637107580900192, -0.03104107640683651, 0.019175058230757713, -0.0020405889954417944, -0.03298896178603172, 0.05211041122674942, -0.044712018221616745, 0.06626385450363159, -0.01...
723,913
fiscalyear
__le__
null
def __le__(self, other: "FiscalMonth") -> bool: return (self._fiscal_year, self._fiscal_month) <= ( other._fiscal_year, other._fiscal_month, )
(self, other: fiscalyear.FiscalMonth) -> bool
[ 0.02780025079846382, 0.023061776533722878, -0.036610569804906845, 0.06741966307163239, -0.03999776765704155, -0.05325828865170479, -0.023440133780241013, 0.013134402222931385, -0.015044205822050571, -0.022142907604575157, 0.05044763535261154, -0.047636982053518295, 0.08028380572795868, 0.0...
723,914
fiscalyear
__lt__
null
def __lt__(self, other: "FiscalMonth") -> bool: return (self._fiscal_year, self._fiscal_month) < ( other._fiscal_year, other._fiscal_month, )
(self, other: fiscalyear.FiscalMonth) -> bool
[ 0.019636012613773346, 0.03461851179599762, -0.03098694235086441, 0.050075482577085495, -0.030804451555013657, -0.0405859611928463, 0.00751862209290266, 0.007463875226676464, -0.00963551551103592, -0.02620568312704563, 0.04416278004646301, -0.07270434498786926, 0.06036796793341637, 0.017044...
723,915
fiscalyear
__ne__
null
def __ne__(self, other: object) -> bool: if isinstance(other, FiscalMonth): return (self._fiscal_year, self._fiscal_month) != ( other._fiscal_year, other._fiscal_month, ) else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(other)._...
(self, other: object) -> bool
[ 0.030691128224134445, 0.035148344933986664, 0.000708947773091495, 0.051922041922807693, -0.09380169212818146, -0.07662776112556458, -0.05108517408370972, 0.026888849213719368, 0.02268632873892784, 0.022431630641222, 0.03936905786395073, -0.0711335614323616, 0.05421432480216026, 0.007095163...
723,916
fiscalyear
__new__
Constructor. :param fiscal_year: The fiscal year :param fiscal_month: The fiscal month :returns: A newly constructed FiscalMonth object :raises ValueError: If fiscal_year or fiscal_month is out of range
def __new__(cls, fiscal_year: int, fiscal_month: int) -> "FiscalMonth": """Constructor. :param fiscal_year: The fiscal year :param fiscal_month: The fiscal month :returns: A newly constructed FiscalMonth object :raises ValueError: If fiscal_year or fiscal_month is out of range """ fiscal_yea...
(cls, fiscal_year: int, fiscal_month: int) -> fiscalyear.FiscalMonth
[ 0.019241221249103546, 0.03543296456336975, 0.0006492436514236033, -0.004975075367838144, -0.050955791026353836, -0.029078247025609016, -0.018729696050286293, -0.01492276694625616, -0.026500945910811424, -0.006880999077111483, 0.03877755254507065, 0.04170898720622063, 0.02034296840429306, 0...
723,917
fiscalyear
__repr__
Convert to formal string, for repr(). >>> fm = FiscalMonth(2017, 1) >>> repr(fm) 'FiscalMonth(2017, 1)'
def __repr__(self) -> str: """Convert to formal string, for repr(). >>> fm = FiscalMonth(2017, 1) >>> repr(fm) 'FiscalMonth(2017, 1)' """ return f"{self.__class__.__name__}({self._fiscal_year}, {self._fiscal_month})"
(self) -> str
[ 0.029255563393235207, 0.014270300045609474, 0.049158621579408646, -0.006057872902601957, -0.01822192594408989, -0.07211477309465408, 0.005777684040367603, -0.03764190152287483, 0.01686929166316986, -0.031651660799980164, -0.003847763640806079, -0.013555335812270641, 0.006700374186038971, 0...
723,918
fiscalyear
__str__
Convert to informal string, for str(). >>> fm = FiscalMonth(2017, 1) >>> str(fm) 'FY2017 FM1'
def __str__(self) -> str: """Convert to informal string, for str(). >>> fm = FiscalMonth(2017, 1) >>> str(fm) 'FY2017 FM1' """ return f"FY{self._fiscal_year} FM{self._fiscal_month}"
(self) -> str
[ 0.018036819994449615, 0.0029937350191175938, 0.007460774853825569, 0.0015067887725308537, -0.00820486806333065, -0.07282192260026932, 0.020398076623678207, -0.028692234307527542, 0.004623299464583397, -0.04901093989610672, -0.0014571825740858912, -0.015387848019599915, 0.002135547576472163, ...
723,919
fiscalyear
FiscalQuarter
A class representing a single fiscal quarter.
class FiscalQuarter(_Hashable): """A class representing a single fiscal quarter.""" __slots__ = ["_fiscal_year", "_fiscal_quarter"] __hash__ = _Hashable.__hash__ _fiscal_year: int _fiscal_quarter: int def __new__(cls, fiscal_year: int, fiscal_quarter: int) -> "FiscalQuarter": """Const...
(fiscal_year: int, fiscal_quarter: int) -> 'FiscalQuarter'
[ 0.035581547766923904, 0.02133663184940815, -0.07735297828912735, 0.023755192756652832, -0.04373906925320625, -0.03861499950289726, -0.039762791246175766, -0.039434850215911865, -0.0009780570399016142, -0.01874385215342045, 0.04734641686081886, -0.0065383147448301315, 0.08542851358652115, 0...
723,920
fiscalyear
__contains__
Returns True if item in self, else False. :param item: The item to check
def __contains__( self, item: Union[ "FiscalQuarter", "FiscalMonth", "FiscalDay", datetime.datetime, datetime.date, ], ) -> bool: """Returns True if item in self, else False. :param item: The item to check """ if isinstance(item, FiscalQuarter): ...
(self, item: Union[fiscalyear.FiscalQuarter, fiscalyear.FiscalMonth, fiscalyear.FiscalDay, datetime.datetime, datetime.date]) -> bool
[ 0.05689200758934021, -0.03042301908135414, -0.07992520928382874, 0.03263036906719208, -0.04767872765660286, -0.018522532656788826, 0.010643258690834045, -0.02838842011988163, -0.03136354312300682, -0.038369473069906235, 0.04391663521528244, -0.017284497618675232, 0.08982948213815689, -0.01...
723,921
fiscalyear
__eq__
null
def __eq__(self, other: object) -> bool: if isinstance(other, FiscalQuarter): return (self._fiscal_year, self._fiscal_quarter) == ( other._fiscal_year, other._fiscal_quarter, ) else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(ot...
(self, other: object) -> bool
[ 0.02010796219110489, -0.0022219116799533367, -0.04021592438220978, 0.05269298702478409, -0.05602020397782326, -0.04603855311870575, -0.028480252251029015, 0.019113413989543915, 0.024447809904813766, 0.01671745628118515, 0.0579008050262928, -0.07768327742815018, 0.08101049810647964, 0.05974...
723,922
fiscalyear
__ge__
null
def __ge__(self, other: "FiscalQuarter") -> bool: return (self._fiscal_year, self._fiscal_quarter) >= ( other._fiscal_year, other._fiscal_quarter, )
(self, other: fiscalyear.FiscalQuarter) -> bool
[ 0.016203423961997032, 0.005772469565272331, -0.06611701101064682, 0.07347900420427322, -0.05428146943449974, -0.02904287539422512, -0.0186163242906332, 0.0012713962933048606, 0.02324838936328888, -0.01972590759396553, 0.06446144729852676, -0.06731465458869934, 0.06720898300409317, 0.017242...
723,923
fiscalyear
__gt__
null
def __gt__(self, other: "FiscalQuarter") -> bool: return (self._fiscal_year, self._fiscal_quarter) > ( other._fiscal_year, other._fiscal_quarter, )
(self, other: fiscalyear.FiscalQuarter) -> bool
[ -0.0002792906598187983, 0.01511184498667717, -0.07760278880596161, 0.057570602744817734, -0.03753842040896416, -0.03583691269159317, -0.025277037173509598, 0.012217527255415916, 0.025943608954548836, -0.029697449877858162, 0.0694986954331398, -0.04781762883067131, 0.06725341081619263, -0.0...
723,925
fiscalyear
__le__
null
def __le__(self, other: "FiscalQuarter") -> bool: return (self._fiscal_year, self._fiscal_quarter) <= ( other._fiscal_year, other._fiscal_quarter, )
(self, other: fiscalyear.FiscalQuarter) -> bool
[ -0.00994669646024704, 0.016276411712169647, -0.06723328679800034, 0.07241053134202957, -0.04691436514258385, -0.02533659338951111, -0.01822674460709095, 0.0036058989353477955, 0.015957266092300415, -0.019130989909172058, 0.06815525889396667, -0.05297812446951866, 0.07758777588605881, 0.019...
723,926
fiscalyear
__lt__
null
def __lt__(self, other: "FiscalQuarter") -> bool: return (self._fiscal_year, self._fiscal_quarter) < ( other._fiscal_year, other._fiscal_quarter, )
(self, other: fiscalyear.FiscalQuarter) -> bool
[ -0.017920026555657387, 0.027591293677687645, -0.06670580059289932, 0.055683594197034836, -0.04015231132507324, -0.013106758706271648, 0.011854236014187336, -0.0024558398872613907, 0.022402269765734673, -0.023905297741293907, 0.06083683297038078, -0.07729856669902802, 0.058546505868434906, ...
723,927
fiscalyear
__ne__
null
def __ne__(self, other: object) -> bool: if isinstance(other, FiscalQuarter): return (self._fiscal_year, self._fiscal_quarter) != ( other._fiscal_year, other._fiscal_quarter, ) else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(ot...
(self, other: object) -> bool
[ 0.0022494217846542597, 0.030528835952281952, -0.02298705466091633, 0.057114966213703156, -0.09932722896337509, -0.05027853325009346, -0.04760183393955231, 0.02085293084383011, 0.046408168971538544, 0.022715767845511436, 0.05537872761487961, -0.07277727127075195, 0.05389569327235222, 0.0139...
723,928
fiscalyear
__new__
Constructor. :param fiscal_year: The fiscal year :param fiscal_quarter: The fiscal quarter :returns: A newly constructed FiscalQuarter object :raises ValueError: If fiscal_year or fiscal_quarter is out of range
def __new__(cls, fiscal_year: int, fiscal_quarter: int) -> "FiscalQuarter": """Constructor. :param fiscal_year: The fiscal year :param fiscal_quarter: The fiscal quarter :returns: A newly constructed FiscalQuarter object :raises ValueError: If fiscal_year or fiscal_quarter is out of range """ ...
(cls, fiscal_year: int, fiscal_quarter: int) -> fiscalyear.FiscalQuarter
[ -0.003930846694856882, 0.04729502648115158, -0.04241568595170975, 0.010613526217639446, -0.054402727633714676, -0.00563333323225379, -0.029544983059167862, -0.035269562155008316, 0.013283716514706612, 0.014906961470842361, 0.06546768546104431, 0.02222597226500511, 0.02520352229475975, 0.02...
723,929
fiscalyear
__repr__
Convert to formal string, for repr(). >>> q3 = FiscalQuarter(2017, 3) >>> repr(q3) 'FiscalQuarter(2017, 3)'
def __repr__(self) -> str: """Convert to formal string, for repr(). >>> q3 = FiscalQuarter(2017, 3) >>> repr(q3) 'FiscalQuarter(2017, 3)' """ return f"{self.__class__.__name__}({self._fiscal_year}, {self._fiscal_quarter})"
(self) -> str
[ 0.0074726277962327, 0.0021861912682652473, 0.02915549837052822, 0.0020377752371132374, -0.019298791885375977, -0.05548402667045593, 0.0010554026812314987, -0.04960392415523529, 0.040633004158735275, -0.023181166499853134, 0.014229089953005314, -0.014982949011027813, 0.001077782828360796, 0...
723,930
fiscalyear
__str__
Convert to informal string, for str(). >>> q3 = FiscalQuarter(2017, 3) >>> str(q3) 'FY2017 Q3'
def __str__(self) -> str: """Convert to informal string, for str(). >>> q3 = FiscalQuarter(2017, 3) >>> str(q3) 'FY2017 Q3' """ return f"FY{self._fiscal_year} Q{self._fiscal_quarter}"
(self) -> str
[ -0.0026759442407637835, -0.007150355260819197, -0.003560673678293824, 0.006459008902311325, -0.012376544065773487, -0.05890461429953575, 0.012618273496627808, -0.04633468762040138, 0.03848331794142723, -0.04111333191394806, 0.0208274032920599, -0.01579943299293518, -0.003560673678293824, 0...
723,931
fiscalyear
FiscalYear
A class representing a single fiscal year.
class FiscalYear(_Hashable): """A class representing a single fiscal year.""" __slots__ = ["_fiscal_year"] __hash__ = _Hashable.__hash__ _fiscal_year: int def __new__(cls, fiscal_year: int) -> "FiscalYear": """Constructor. :param fiscal_year: The fiscal year :returns: A n...
(fiscal_year: int) -> 'FiscalYear'
[ 0.04483654350042343, 0.014871840365231037, -0.08226348459720612, 0.023554973304271698, -0.025575775653123856, -0.05494055524468422, -0.0541827529668808, -0.04323674365878105, -0.00537828030064702, -0.03224863111972809, 0.02288137376308441, -0.0322696827352047, 0.09784049540758133, 0.039195...
723,932
fiscalyear
__contains__
:param item: The item to check :returns: True if item in self, else False
def __contains__( self, item: Union[ "FiscalYear", "FiscalQuarter", "FiscalMonth", "FiscalDay", datetime.datetime, datetime.date, ], ) -> bool: """:param item: The item to check :returns: True if item in self, else False """ if isinstance(item,...
(self, item: Union[fiscalyear.FiscalYear, fiscalyear.FiscalQuarter, fiscalyear.FiscalMonth, fiscalyear.FiscalDay, datetime.datetime, datetime.date]) -> bool
[ 0.064163438975811, -0.02789129503071308, -0.07842624932527542, 0.03371559828519821, -0.03805979713797569, -0.025257864966988564, 0.004771891050040722, -0.045325759798288345, -0.025373198091983795, -0.03363870829343796, 0.04121222347021103, -0.026372749358415604, 0.10018569231033325, -0.007...
723,933
fiscalyear
__eq__
null
def __eq__(self, other: object) -> bool: if isinstance(other, FiscalYear): return self._fiscal_year == other._fiscal_year else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(other).__name__}'" )
(self, other: object) -> bool
[ 0.03648962080478668, -0.005640536546707153, -0.030474252998828888, 0.047111351042985916, -0.05000162124633789, -0.06008142605423927, -0.03582124784588814, -0.00041124210110865533, 0.018371259793639183, 0.005794082302600145, 0.04642491415143013, -0.10180965811014175, 0.08678026497364044, 0....
723,934
fiscalyear
__ge__
null
def __ge__(self, other: "FiscalYear") -> bool: return self._fiscal_year >= other._fiscal_year
(self, other: fiscalyear.FiscalYear) -> bool
[ 0.03270340710878372, 0.009387421421706676, -0.05923229455947876, 0.0609913133084774, -0.05158594250679016, -0.04659607261419296, -0.0334034226834774, -0.022113390266895294, 0.020121030509471893, -0.04641658067703247, 0.04099592566490173, -0.09111003577709198, 0.07373522967100143, -0.001002...
723,935
fiscalyear
__gt__
null
def __gt__(self, other: "FiscalYear") -> bool: return self._fiscal_year > other._fiscal_year
(self, other: fiscalyear.FiscalYear) -> bool
[ 0.01596834696829319, 0.02227305993437767, -0.07130971550941467, 0.046054940670728683, -0.030571572482585907, -0.05514378845691681, -0.03976818919181824, -0.011899921111762524, 0.018285464495420456, -0.05313202738761902, 0.04652195796370506, -0.07156118750572205, 0.07245929539203644, -0.013...
723,937
fiscalyear
__le__
null
def __le__(self, other: "FiscalYear") -> bool: return self._fiscal_year <= other._fiscal_year
(self, other: fiscalyear.FiscalYear) -> bool
[ 0.008929641917347908, 0.015742827206850052, -0.059080637991428375, 0.06185454502701759, -0.04463469982147217, -0.04539122059941292, -0.03397136554121971, -0.015193450264632702, 0.007177936844527721, -0.04214899241924286, 0.04416637867689133, -0.07651662826538086, 0.08609922230243683, 0.005...
723,938
fiscalyear
__lt__
null
def __lt__(self, other: "FiscalYear") -> bool: return self._fiscal_year < other._fiscal_year
(self, other: fiscalyear.FiscalYear) -> bool
[ 0.0068093035370111465, 0.02714630216360092, -0.05214708298444748, 0.04378318786621094, -0.03331013023853302, -0.03287375345826149, -0.0043251351453363895, -0.0186005812138319, 0.013291324488818645, -0.044583212584257126, 0.03445562347769737, -0.09869399666786194, 0.06694754958152771, 0.014...
723,939
fiscalyear
__ne__
null
def __ne__(self, other: object) -> bool: if isinstance(other, FiscalYear): return self._fiscal_year != other._fiscal_year else: raise TypeError( f"can't compare '{type(self).__name__}' to '{type(other).__name__}'" )
(self, other: object) -> bool
[ 0.014609064906835556, 0.030944248661398888, -0.013925810344517231, 0.0499495193362236, -0.09371378272771835, -0.06584417819976807, -0.05412096902728081, 0.0030476758256554604, 0.04264948144555092, 0.007996778003871441, 0.044375598430633545, -0.09234727174043655, 0.056134771555662155, -0.00...
723,940
fiscalyear
__new__
Constructor. :param fiscal_year: The fiscal year :returns: A newly constructed FiscalYear object :raises ValueError: If ``fiscal_year`` is out of range
def __new__(cls, fiscal_year: int) -> "FiscalYear": """Constructor. :param fiscal_year: The fiscal year :returns: A newly constructed FiscalYear object :raises ValueError: If ``fiscal_year`` is out of range """ fiscal_year = _check_year(fiscal_year) self = super(FiscalYear, cls).__new__(cls)...
(cls, fiscal_year: int) -> fiscalyear.FiscalYear
[ -0.001158997998572886, 0.02890648879110813, -0.02886771410703659, 0.0014903999399393797, -0.04718872904777527, -0.027103468775749207, -0.04187660291790962, -0.022780098021030426, 0.017148081213235855, -0.007730692625045776, 0.0394144169986248, 0.0018199844053015113, 0.029488109052181244, 0...
723,941
fiscalyear
__repr__
Convert to formal string, for repr(). >>> fy = FiscalYear(2017) >>> repr(fy) 'FiscalYear(2017)'
def __repr__(self) -> str: """Convert to formal string, for repr(). >>> fy = FiscalYear(2017) >>> repr(fy) 'FiscalYear(2017)' """ return f"{self.__class__.__name__}({self._fiscal_year})"
(self) -> str
[ 0.014500238001346588, 0.0034904482308775187, 0.03153211623430252, -0.003365283366292715, -0.01256372407078743, -0.07723384350538254, -0.006721120327711105, -0.041186343878507614, 0.040279489010572433, -0.03514064475893974, -0.0075476812198758125, -0.03015293926000595, 0.009366114623844624, ...
723,942
fiscalyear
__str__
Convert to informal string, for str(). >>> fy = FiscalYear(2017) >>> str(fy) 'FY2017'
def __str__(self) -> str: """Convert to informal string, for str(). >>> fy = FiscalYear(2017) >>> str(fy) 'FY2017' """ return f"FY{self._fiscal_year}"
(self) -> str
[ 0.000679534743539989, -0.009939247742295265, -0.004745918791741133, 0.0004062174411956221, -0.007173000369220972, -0.07889819145202637, 0.01499065663665533, -0.029827365651726723, 0.03225203976035118, -0.0570761077105999, -0.006331098731607199, -0.026652194559574127, 0.0028071398846805096, ...
723,943
fiscalyear
_FiscalMixin
Mixin for FiscalDate and FiscalDateTime that provides the following common attributes in addition to those provided by datetime.date and datetime.datetime:
class _FiscalMixin: """Mixin for FiscalDate and FiscalDateTime that provides the following common attributes in addition to those provided by datetime.date and datetime.datetime: """ @property def fiscal_year(self) -> int: """:returns: The fiscal year""" fiscal_self = cast(Unio...
()
[ -0.014964835718274117, -0.0034725035075098276, -0.03462168574333191, 0.06787917017936707, -0.023129353299736977, -0.028937527909874916, -0.060892827808856964, -0.024266185238957405, -0.012432802468538284, 0.018282316625118256, 0.06461336463689804, -0.000721500429790467, 0.10434045642614365, ...
723,944
fiscalyear
_Hashable
A class to make Fiscal objects hashable
class _Hashable: """A class to make Fiscal objects hashable""" def __hash__(self) -> int: """Unique hash of an object instance based on __slots__ :returns: a unique hash """ return hash(tuple(map(lambda x: getattr(self, x), self.__slots__)))
()
[ 0.06130022928118706, -0.0195063054561615, -0.02681189775466919, -0.022324705496430397, -0.018755348399281502, -0.04654070734977722, -0.01920963078737259, -0.013044377788901329, -0.034395623952150345, 0.012135813944041729, -0.009210795164108276, -0.023956412449479103, 0.03094678930938244, 0...
723,946
fiscalyear
_check_day
Check if ``day`` is a valid day of month. :param month: The month to test :param day: The day to test :return: The day :raises ValueError: If ``month`` or ``day`` is out of range
def _check_day(month: int, day: int) -> int: """Check if ``day`` is a valid day of month. :param month: The month to test :param day: The day to test :return: The day :raises ValueError: If ``month`` or ``day`` is out of range """ month = _check_month(month) # Find the last day of the ...
(month: int, day: int) -> int
[ 0.010584352537989616, 0.07046235352754593, -0.002772650448605418, 0.04072491452097893, -0.055912382900714874, -0.010987477377057076, 0.0008841778035275638, 0.03952491655945778, -0.017868712544441223, -0.04421240836381912, 0.03427492827177048, 0.0424124114215374, -0.011099976487457752, -0.0...