meterline-copilot 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meterline_copilot/__init__.py +21 -0
- meterline_copilot/cli.py +700 -0
- meterline_copilot/client.py +234 -0
- meterline_copilot/fetch.py +363 -0
- meterline_copilot/normalise.py +910 -0
- meterline_copilot/testing.py +465 -0
- meterline_copilot-0.1.0.dist-info/METADATA +241 -0
- meterline_copilot-0.1.0.dist-info/RECORD +12 -0
- meterline_copilot-0.1.0.dist-info/WHEEL +5 -0
- meterline_copilot-0.1.0.dist-info/entry_points.txt +2 -0
- meterline_copilot-0.1.0.dist-info/licenses/LICENSE +202 -0
- meterline_copilot-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""meterline-copilot: reads GitHub Copilot usage reports, billing and seats and emits meterline records."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError as _NotInstalled, version as _version
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
__version__ = _version("meterline-copilot") # the one source is pyproject.toml
|
|
7
|
+
except _NotInstalled: # a source tree that is not installed
|
|
8
|
+
__version__ = "0+unknown"
|
|
9
|
+
|
|
10
|
+
from meterline import RunResult
|
|
11
|
+
|
|
12
|
+
from .cli import StateError, run
|
|
13
|
+
from .client import ApiError, UnusableBody
|
|
14
|
+
from .fetch import BadShape, PaginationError, RawFileExists
|
|
15
|
+
|
|
16
|
+
# The public interface is the command line, ``run``, the records they write and the documented ``testing``
|
|
17
|
+
# module (README, "Public interface"); every other module of this package is internal.
|
|
18
|
+
__all__ = [
|
|
19
|
+
"ApiError", "BadShape", "PaginationError", "RawFileExists", "RunResult", "StateError", "UnusableBody",
|
|
20
|
+
"__version__", "run",
|
|
21
|
+
]
|