• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vinci1it2000 / formulas / 6877546872

15 Nov 2023 10:57AM UTC coverage: 98.951% (-0.2%) from 99.173%
6877546872

push

github

vinci1it2000
fix(setup): Correct setup config file.

3113 of 3146 relevant lines covered (98.95%)

0.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/formulas/__init__.py
1
#!/usr/bin/env python
2
# -*- coding: UTF-8 -*-
3
#
4
# Copyright 2016-2023 European Commission (JRC);
5
# Licensed under the EUPL (the 'Licence');
6
# You may not use this work except in compliance with the Licence.
7
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl
8
"""
1✔
9
It contains a comprehensive list of all modules and classes within formulas.
10

11
Modules:
12

13
.. currentmodule:: formulas
14

15
.. autosummary::
16
    :nosignatures:
17
    :toctree: toctree/formulas
18

19
    ~parser
20
    ~builder
21
    ~errors
22
    ~tokens
23
    ~functions
24
    ~ranges
25
    ~cell
26
    ~excel
27
"""
28
import os
1✔
29
import sys
1✔
30
import functools
1✔
31
from ._version import *
1✔
32

33
_all = {
1✔
34
    'ExcelModel': '.excel',
35
    'BOOK': '.excel',
36
    'SHEETS': '.excel',
37
    'CIRCULAR': '.excel',
38
    'ERR_CIRCULAR': '.excel',
39
    'Parser': '.parser',
40
    'get_functions': '.functions',
41
    'SUBMODULES': '.functions',
42
    'CELL': '.cell',
43
    'Ranges': '.ranges',
44
    'XlError': '.tokens.operand',
45
    'VALUE': '.tokens.operand',
46
    'REF': '.tokens.operand',
47
    'DIV': '.tokens.operand',
48
    'NA': '.tokens.operand',
49
    'NAME': '.tokens.operand',
50
    'NULL': '.tokens.operand',
51
    'NUM': '.tokens.operand',
52
}
53

54
__all__ = tuple(_all)
1✔
55

56

57
@functools.lru_cache(None)
1✔
58
def __dir__():
1✔
59
    return __all__ + (
×
60
        '__doc__', '__author__', '__updated__', '__title__', '__version__',
61
        '__license__', '__copyright__'
62
    )
63

64

65
def __getattr__(name):
1✔
66
    if name in _all:
1✔
67
        import importlib
1✔
68
        obj = getattr(importlib.import_module(_all[name], __name__), name)
1✔
69
        globals()[name] = obj
1✔
70
        return obj
1✔
71
    raise AttributeError("module %s has no attribute %s" % (__name__, name))
×
72

73

74
if sys.version_info[:2] < (3, 7) or os.environ.get('IMPORT_ALL') == 'True':
1✔
75
    from .excel import ExcelModel, BOOK, SHEETS, CIRCULAR, ERR_CIRCULAR
1✔
76
    from .parser import Parser
1✔
77
    from .functions import get_functions, SUBMODULES
1✔
78
    from .cell import CELL
1✔
79
    from .ranges import Ranges
1✔
80
    from .tokens.operand import XlError, VALUE, REF, DIV, NA, NAME, NULL, NUM
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc