logxpy 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.
- logxpy/__init__.py +126 -0
- logxpy/_action.py +958 -0
- logxpy/_async.py +186 -0
- logxpy/_base.py +80 -0
- logxpy/_compat.py +71 -0
- logxpy/_config.py +45 -0
- logxpy/_dest.py +88 -0
- logxpy/_errors.py +58 -0
- logxpy/_fmt.py +68 -0
- logxpy/_generators.py +136 -0
- logxpy/_mask.py +23 -0
- logxpy/_message.py +195 -0
- logxpy/_output.py +517 -0
- logxpy/_pool.py +93 -0
- logxpy/_traceback.py +126 -0
- logxpy/_types.py +71 -0
- logxpy/_util.py +56 -0
- logxpy/_validation.py +486 -0
- logxpy/_version.py +21 -0
- logxpy/cli.py +61 -0
- logxpy/dask.py +172 -0
- logxpy/decorators.py +268 -0
- logxpy/filter.py +124 -0
- logxpy/journald.py +88 -0
- logxpy/json.py +149 -0
- logxpy/loggerx.py +253 -0
- logxpy/logwriter.py +84 -0
- logxpy/parse.py +191 -0
- logxpy/prettyprint.py +173 -0
- logxpy/serializers.py +36 -0
- logxpy/stdlib.py +23 -0
- logxpy/tai64n.py +45 -0
- logxpy/testing.py +472 -0
- logxpy/tests/__init__.py +9 -0
- logxpy/tests/common.py +36 -0
- logxpy/tests/strategies.py +231 -0
- logxpy/tests/test_action.py +1751 -0
- logxpy/tests/test_api.py +86 -0
- logxpy/tests/test_async.py +67 -0
- logxpy/tests/test_compat.py +13 -0
- logxpy/tests/test_config.py +21 -0
- logxpy/tests/test_coroutines.py +105 -0
- logxpy/tests/test_dask.py +211 -0
- logxpy/tests/test_decorators.py +54 -0
- logxpy/tests/test_filter.py +122 -0
- logxpy/tests/test_fmt.py +42 -0
- logxpy/tests/test_generators.py +292 -0
- logxpy/tests/test_journald.py +246 -0
- logxpy/tests/test_json.py +208 -0
- logxpy/tests/test_loggerx.py +44 -0
- logxpy/tests/test_logwriter.py +262 -0
- logxpy/tests/test_message.py +334 -0
- logxpy/tests/test_output.py +921 -0
- logxpy/tests/test_parse.py +309 -0
- logxpy/tests/test_pool.py +55 -0
- logxpy/tests/test_prettyprint.py +303 -0
- logxpy/tests/test_pyinstaller.py +35 -0
- logxpy/tests/test_serializers.py +36 -0
- logxpy/tests/test_stdlib.py +73 -0
- logxpy/tests/test_tai64n.py +66 -0
- logxpy/tests/test_testing.py +1051 -0
- logxpy/tests/test_traceback.py +251 -0
- logxpy/tests/test_twisted.py +814 -0
- logxpy/tests/test_util.py +45 -0
- logxpy/tests/test_validation.py +989 -0
- logxpy/twisted.py +265 -0
- logxpy-0.1.0.dist-info/METADATA +100 -0
- logxpy-0.1.0.dist-info/RECORD +72 -0
- logxpy-0.1.0.dist-info/WHEEL +5 -0
- logxpy-0.1.0.dist-info/entry_points.txt +2 -0
- logxpy-0.1.0.dist-info/licenses/LICENSE +201 -0
- logxpy-0.1.0.dist-info/top_level.txt +1 -0
logxpy/twisted.py
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"""
|
|
2
|
+
APIs for using Eliot from Twisted.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import sys
|
|
7
|
+
|
|
8
|
+
from twisted.logger import Logger as TwistedLogger
|
|
9
|
+
from twisted.python.failure import Failure
|
|
10
|
+
from twisted.internet.defer import inlineCallbacks
|
|
11
|
+
|
|
12
|
+
from ._action import current_action
|
|
13
|
+
from . import addDestination
|
|
14
|
+
from ._generators import eliot_friendly_generator_function
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"AlreadyFinished",
|
|
18
|
+
"DeferredContext",
|
|
19
|
+
"redirectLogsForTrial",
|
|
20
|
+
"inline_callbacks",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _passthrough(result):
|
|
25
|
+
return result
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AlreadyFinished(Exception):
|
|
29
|
+
"""
|
|
30
|
+
L{DeferredContext.addCallbacks} or similar method was called after
|
|
31
|
+
L{DeferredContext.addActionFinish}.
|
|
32
|
+
|
|
33
|
+
This indicates a programming bug, e.g. forgetting to unwrap the
|
|
34
|
+
underlying L{Deferred} when passing on to some other piece of code that
|
|
35
|
+
doesn't care about the action context.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DeferredContext(object):
|
|
40
|
+
"""
|
|
41
|
+
A L{Deferred} equivalent of L{eliot.Action.context} and
|
|
42
|
+
L{eliot.action.finish}.
|
|
43
|
+
|
|
44
|
+
Makes a L{Deferred}'s callbacks run in a L{eliot.Action}'s context, and
|
|
45
|
+
allows indicating which callbacks to wait for before the action is
|
|
46
|
+
finished.
|
|
47
|
+
|
|
48
|
+
The action to use will be taken from the call context.
|
|
49
|
+
|
|
50
|
+
@ivar result: The wrapped L{Deferred}.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def __init__(self, deferred):
|
|
54
|
+
"""
|
|
55
|
+
@param deferred: L{twisted.internet.defer.Deferred} to wrap.
|
|
56
|
+
"""
|
|
57
|
+
self.result = deferred
|
|
58
|
+
self._action = current_action()
|
|
59
|
+
self._finishAdded = False
|
|
60
|
+
if self._action is None:
|
|
61
|
+
raise RuntimeError(
|
|
62
|
+
"DeferredContext() should only be created in the context of "
|
|
63
|
+
"an eliot.Action."
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
def addCallbacks(
|
|
67
|
+
self,
|
|
68
|
+
callback,
|
|
69
|
+
errback=None,
|
|
70
|
+
callbackArgs=None,
|
|
71
|
+
callbackKeywords=None,
|
|
72
|
+
errbackArgs=None,
|
|
73
|
+
errbackKeywords=None,
|
|
74
|
+
):
|
|
75
|
+
"""
|
|
76
|
+
Add a pair of callbacks that will be run in the context of an eliot
|
|
77
|
+
action.
|
|
78
|
+
|
|
79
|
+
@return: C{self}
|
|
80
|
+
@rtype: L{DeferredContext}
|
|
81
|
+
|
|
82
|
+
@raises AlreadyFinished: L{DeferredContext.addActionFinish} has been
|
|
83
|
+
called. This indicates a programmer error.
|
|
84
|
+
"""
|
|
85
|
+
if self._finishAdded:
|
|
86
|
+
raise AlreadyFinished()
|
|
87
|
+
|
|
88
|
+
if errback is None:
|
|
89
|
+
errback = _passthrough
|
|
90
|
+
|
|
91
|
+
def callbackWithContext(*args, **kwargs):
|
|
92
|
+
return self._action.run(callback, *args, **kwargs)
|
|
93
|
+
|
|
94
|
+
def errbackWithContext(*args, **kwargs):
|
|
95
|
+
return self._action.run(errback, *args, **kwargs)
|
|
96
|
+
|
|
97
|
+
self.result.addCallbacks(
|
|
98
|
+
callbackWithContext,
|
|
99
|
+
errbackWithContext,
|
|
100
|
+
callbackArgs,
|
|
101
|
+
callbackKeywords,
|
|
102
|
+
errbackArgs,
|
|
103
|
+
errbackKeywords,
|
|
104
|
+
)
|
|
105
|
+
return self
|
|
106
|
+
|
|
107
|
+
def addCallback(self, callback, *args, **kw):
|
|
108
|
+
"""
|
|
109
|
+
Add a success callback that will be run in the context of an eliot
|
|
110
|
+
action.
|
|
111
|
+
|
|
112
|
+
@return: C{self}
|
|
113
|
+
@rtype: L{DeferredContext}
|
|
114
|
+
|
|
115
|
+
@raises AlreadyFinished: L{DeferredContext.addActionFinish} has been
|
|
116
|
+
called. This indicates a programmer error.
|
|
117
|
+
"""
|
|
118
|
+
return self.addCallbacks(
|
|
119
|
+
callback, _passthrough, callbackArgs=args, callbackKeywords=kw
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
def addErrback(self, errback, *args, **kw):
|
|
123
|
+
"""
|
|
124
|
+
Add a failure callback that will be run in the context of an eliot
|
|
125
|
+
action.
|
|
126
|
+
|
|
127
|
+
@return: C{self}
|
|
128
|
+
@rtype: L{DeferredContext}
|
|
129
|
+
|
|
130
|
+
@raises AlreadyFinished: L{DeferredContext.addActionFinish} has been
|
|
131
|
+
called. This indicates a programmer error.
|
|
132
|
+
"""
|
|
133
|
+
return self.addCallbacks(
|
|
134
|
+
_passthrough, errback, errbackArgs=args, errbackKeywords=kw
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
def addBoth(self, callback, *args, **kw):
|
|
138
|
+
"""
|
|
139
|
+
Add a single callback as both success and failure callbacks.
|
|
140
|
+
|
|
141
|
+
@return: C{self}
|
|
142
|
+
@rtype: L{DeferredContext}
|
|
143
|
+
|
|
144
|
+
@raises AlreadyFinished: L{DeferredContext.addActionFinish} has been
|
|
145
|
+
called. This indicates a programmer error.
|
|
146
|
+
"""
|
|
147
|
+
return self.addCallbacks(callback, callback, args, kw, args, kw)
|
|
148
|
+
|
|
149
|
+
def addActionFinish(self):
|
|
150
|
+
"""
|
|
151
|
+
Indicates all callbacks that should run within the action's context
|
|
152
|
+
have been added, and that the action should therefore finish once
|
|
153
|
+
those callbacks have fired.
|
|
154
|
+
|
|
155
|
+
@return: The wrapped L{Deferred}.
|
|
156
|
+
|
|
157
|
+
@raises AlreadyFinished: L{DeferredContext.addActionFinish} has been
|
|
158
|
+
called previously. This indicates a programmer error.
|
|
159
|
+
"""
|
|
160
|
+
if self._finishAdded:
|
|
161
|
+
raise AlreadyFinished()
|
|
162
|
+
self._finishAdded = True
|
|
163
|
+
|
|
164
|
+
def done(result):
|
|
165
|
+
if isinstance(result, Failure):
|
|
166
|
+
exception = result.value
|
|
167
|
+
else:
|
|
168
|
+
exception = None
|
|
169
|
+
self._action.finish(exception)
|
|
170
|
+
return result
|
|
171
|
+
|
|
172
|
+
self.result.addBoth(done)
|
|
173
|
+
return self.result
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
class TwistedDestination(object):
|
|
177
|
+
"""
|
|
178
|
+
An Eliot logging destination that forwards logs to Twisted's logging.
|
|
179
|
+
|
|
180
|
+
Do not use if you're also redirecting Twisted's logs to Eliot, since then
|
|
181
|
+
you'll have an infinite loop.
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
def __init__(self):
|
|
185
|
+
self._logger = TwistedLogger(namespace="eliot")
|
|
186
|
+
|
|
187
|
+
def __call__(self, message):
|
|
188
|
+
"""
|
|
189
|
+
Log an Eliot message to Twisted's log.
|
|
190
|
+
|
|
191
|
+
@param message: A rendered Eliot message.
|
|
192
|
+
@type message: L{dict}
|
|
193
|
+
"""
|
|
194
|
+
if message.get("message_type") == "eliot:traceback":
|
|
195
|
+
method = self._logger.critical
|
|
196
|
+
else:
|
|
197
|
+
method = self._logger.info
|
|
198
|
+
method(format="Eliot message: {eliot}", eliot=message)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
class _RedirectLogsForTrial(object):
|
|
202
|
+
"""
|
|
203
|
+
When called inside a I{trial} process redirect Eliot log messages to
|
|
204
|
+
Twisted's logging system, otherwise do nothing.
|
|
205
|
+
|
|
206
|
+
This allows reading Eliot logs output by running unit tests with
|
|
207
|
+
I{trial} in its normal log location: C{_trial_temp/test.log}.
|
|
208
|
+
|
|
209
|
+
The way you use it is by calling it a module level in some module that will
|
|
210
|
+
be loaded by trial, typically the top-level C{__init__.py} of your package.
|
|
211
|
+
|
|
212
|
+
This function can usually be safely called in all programs since it will
|
|
213
|
+
have no side-effects if used outside of trial. The only exception is you
|
|
214
|
+
are redirecting Twisted logs to Eliot; you should make sure not call
|
|
215
|
+
this function in that case so as to prevent infinite loops. In addition,
|
|
216
|
+
calling the function multiple times has the same effect as calling it
|
|
217
|
+
once.
|
|
218
|
+
|
|
219
|
+
(This is not thread-safe at the moment, so in theory multiple threads
|
|
220
|
+
calling this might result in multiple destinatios being added - see
|
|
221
|
+
https://github.com/itamarst/eliot/issues/78).
|
|
222
|
+
|
|
223
|
+
Currently this works by checking if C{sys.argv[0]} is called C{trial};
|
|
224
|
+
the ideal mechanism would require
|
|
225
|
+
https://twistedmatrix.com/trac/ticket/6939 to be fixed, but probably
|
|
226
|
+
there are better solutions even without that -
|
|
227
|
+
https://github.com/itamarst/eliot/issues/76 covers those.
|
|
228
|
+
|
|
229
|
+
@ivar _sys: An object similar to, and typically identical to, Python's
|
|
230
|
+
L{sys} module.
|
|
231
|
+
|
|
232
|
+
@ivar _redirected: L{True} if trial logs have been redirected once already.
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
def __init__(self, sys):
|
|
236
|
+
self._sys = sys
|
|
237
|
+
self._redirected = False
|
|
238
|
+
|
|
239
|
+
def __call__(self):
|
|
240
|
+
"""
|
|
241
|
+
Do the redirect if necessary.
|
|
242
|
+
|
|
243
|
+
@return: The destination added to Eliot if any, otherwise L{None}.
|
|
244
|
+
"""
|
|
245
|
+
if os.path.basename(self._sys.argv[0]) == "trial" and not self._redirected:
|
|
246
|
+
self._redirected = True
|
|
247
|
+
destination = TwistedDestination()
|
|
248
|
+
addDestination(destination)
|
|
249
|
+
return destination
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
redirectLogsForTrial = _RedirectLogsForTrial(sys)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def inline_callbacks(original, debug=False):
|
|
256
|
+
"""
|
|
257
|
+
Decorate a function like ``inlineCallbacks`` would but in a more
|
|
258
|
+
Eliot-friendly way. Use it just like ``inlineCallbacks`` but where you
|
|
259
|
+
want Eliot action contexts to Do The Right Thing inside the decorated
|
|
260
|
+
function.
|
|
261
|
+
"""
|
|
262
|
+
f = eliot_friendly_generator_function(original)
|
|
263
|
+
if debug:
|
|
264
|
+
f.debug = True
|
|
265
|
+
return inlineCallbacks(f)
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: logxpy
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Logging library that tells you why it happened
|
|
5
|
+
Home-page: https://github.com/itamarst/eliot/
|
|
6
|
+
Maintainer: Itamar Turner-Trauring
|
|
7
|
+
Maintainer-email: itamar@itamarst.org
|
|
8
|
+
License: Apache 2.0
|
|
9
|
+
Keywords: logging
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
22
|
+
Classifier: Topic :: System :: Logging
|
|
23
|
+
Requires-Python: >=3.9.0
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: zope.interface
|
|
26
|
+
Requires-Dist: pyrsistent>=0.11.8
|
|
27
|
+
Requires-Dist: boltons>=19.0.1
|
|
28
|
+
Requires-Dist: orjson; implementation_name == "cpython"
|
|
29
|
+
Provides-Extra: journald
|
|
30
|
+
Requires-Dist: cffi>=1.1.2; extra == "journald"
|
|
31
|
+
Provides-Extra: test
|
|
32
|
+
Requires-Dist: hypothesis>=1.14.0; extra == "test"
|
|
33
|
+
Requires-Dist: testtools; extra == "test"
|
|
34
|
+
Requires-Dist: pytest; extra == "test"
|
|
35
|
+
Requires-Dist: pytest-xdist; extra == "test"
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: setuptools>=40; extra == "dev"
|
|
38
|
+
Requires-Dist: twine>=1.12.1; extra == "dev"
|
|
39
|
+
Requires-Dist: coverage; extra == "dev"
|
|
40
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
41
|
+
Requires-Dist: sphinx_rtd_theme; extra == "dev"
|
|
42
|
+
Requires-Dist: flake8; extra == "dev"
|
|
43
|
+
Requires-Dist: black; extra == "dev"
|
|
44
|
+
Dynamic: classifier
|
|
45
|
+
Dynamic: description
|
|
46
|
+
Dynamic: home-page
|
|
47
|
+
Dynamic: keywords
|
|
48
|
+
Dynamic: license
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
Dynamic: maintainer
|
|
51
|
+
Dynamic: maintainer-email
|
|
52
|
+
Dynamic: provides-extra
|
|
53
|
+
Dynamic: requires-dist
|
|
54
|
+
Dynamic: requires-python
|
|
55
|
+
Dynamic: summary
|
|
56
|
+
|
|
57
|
+
Eliot: Logging that tells you *why* it happened
|
|
58
|
+
================================================
|
|
59
|
+
|
|
60
|
+
Python's built-in ``logging`` and other similar systems output a stream of factoids: they're interesting, but you can't really tell what's going on.
|
|
61
|
+
|
|
62
|
+
* Why is your application slow?
|
|
63
|
+
* What caused this code path to be chosen?
|
|
64
|
+
* Why did this error happen?
|
|
65
|
+
|
|
66
|
+
Standard logging can't answer these questions.
|
|
67
|
+
|
|
68
|
+
But with a better model you could understand what and why things happened in your application.
|
|
69
|
+
You could pinpoint performance bottlenecks, you could understand what happened when, who called what.
|
|
70
|
+
|
|
71
|
+
That is what Eliot does.
|
|
72
|
+
``logxpy`` is a Python logging system that outputs causal chains of **actions**: actions can spawn other actions, and eventually they either **succeed or fail**.
|
|
73
|
+
The resulting logs tell you the story of what your software did: what happened, and what caused it.
|
|
74
|
+
|
|
75
|
+
Eliot supports a range of use cases and 3rd party libraries:
|
|
76
|
+
|
|
77
|
+
* Logging within a single process.
|
|
78
|
+
* Causal tracing across a distributed system.
|
|
79
|
+
* Scientific computing, with `built-in support for NumPy and Dask <https://logxpy.readthedocs.io/en/stable/scientific-computing.html>`_.
|
|
80
|
+
* `Asyncio and Trio coroutines <https://logxpy.readthedocs.io/en/stable/generating/asyncio.html>`_ and the `Twisted networking framework <https://logxpy.readthedocs.io/en/stable/generating/twisted.html>`_.
|
|
81
|
+
|
|
82
|
+
Eliot is only used to generate your logs; you will might need tools like Logstash and ElasticSearch to aggregate and store logs if you are using multiple processes across multiple machines.
|
|
83
|
+
|
|
84
|
+
Eliot supports Python 3.9-3.13, as well as PyPy3.
|
|
85
|
+
It is maintained by Itamar Turner-Trauring, and released under the Apache 2.0 License.
|
|
86
|
+
|
|
87
|
+
* `Read the documentation <https://logxpy.readthedocs.io>`_.
|
|
88
|
+
* Download from `PyPI`_ or `conda-forge <https://anaconda.org/conda-forge/logxpy>`_.
|
|
89
|
+
* Need help or have any questions? `File an issue <https://github.com/itamarst/logxpy/issues/new>`_ on GitHub.
|
|
90
|
+
* **Commercial support** is available from `Python⇒Speed <https://pythonspeed.com/services/#logxpy>`_.
|
|
91
|
+
|
|
92
|
+
Testimonials
|
|
93
|
+
------------
|
|
94
|
+
|
|
95
|
+
"Eliot has made tracking down causes of failure (in complex external integrations and internal uses) tremendously easier. Our errors are logged to Sentry with the Eliot task UUID. That means we can go from a Sentry notification to a high-level trace of operations—with important metadata at each operation—in a few seconds. We immediately know which user did what in which part of the system."
|
|
96
|
+
|
|
97
|
+
—Jonathan Jacobs
|
|
98
|
+
|
|
99
|
+
.. _Github: https://github.com/itamarst/logxpy
|
|
100
|
+
.. _PyPI: https://pypi.python.org/pypi/logxpy
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
logxpy/__init__.py,sha256=QbfKBfkGtkP-nR0xIkMjMBzJLv7or99fImpjXGrcfB4,2974
|
|
2
|
+
logxpy/_action.py,sha256=CKGDJZHsLXbTDNc9t37jHnIHPjbgA4ukDpOFKlOOx34,31454
|
|
3
|
+
logxpy/_async.py,sha256=ISCLMdF-bgj7iYaxTcdiW89zgvLZC1PTKhVfW7HijQg,5675
|
|
4
|
+
logxpy/_base.py,sha256=n7C_08v0RomZSoPJjXIeI7TaSTYHouX7Q1f9W0-GaBg,2522
|
|
5
|
+
logxpy/_compat.py,sha256=4-mupFXAOCH2LNqTLSpXyvNegr1-DIRIwqKF7NQblwU,1754
|
|
6
|
+
logxpy/_config.py,sha256=wSr1UsedJlamRf8RPtov4NTyperN868gJu8sqZFSkyg,1683
|
|
7
|
+
logxpy/_dest.py,sha256=4A1DTpxoHULQzUeOluOnL5P-93a2Kb9ydCGmlUfI8qQ,2510
|
|
8
|
+
logxpy/_errors.py,sha256=C-nqvcjRCK-bWKj-q29XhcG6gTvR_dNtMMItJfhIiuU,1843
|
|
9
|
+
logxpy/_fmt.py,sha256=gvBOnd3H-iXmBbX4Ldl8wl5jhXWC0_peUujO9Y0VIuw,2223
|
|
10
|
+
logxpy/_generators.py,sha256=K9C_SPYN0704lEVgsOiBN_w2Id7AygRmkEi2hAmy_rY,5795
|
|
11
|
+
logxpy/_mask.py,sha256=8KqKGZtpauELVpopkwBOBD7heF1F4K8mvkvBc2svWo4,799
|
|
12
|
+
logxpy/_message.py,sha256=0ljgRd2wpek0fJFTrR6P49EeHCbMyvONSLGzzH0w-9U,5746
|
|
13
|
+
logxpy/_output.py,sha256=KBPyybke0HIQzYa21mEx3YGz9E1AnUNQTg7XROnzcvo,16432
|
|
14
|
+
logxpy/_pool.py,sha256=ytoZUi9FkXjWVkCmK1mCFckxgzsIbQfonuQ_D_LRQAY,2630
|
|
15
|
+
logxpy/_traceback.py,sha256=lhXMZ_sRuQOGKHe53frboH_2v_hc7vAiBkHjmDODb7k,3853
|
|
16
|
+
logxpy/_types.py,sha256=Om02jkHawnn0cR-K9kjo2FWtumoP9-mzsWEQbpyUqzU,1938
|
|
17
|
+
logxpy/_util.py,sha256=22cNbNxnFZI4H0pFAoHE6irKR1JKmRKp68MaG3icGQo,1375
|
|
18
|
+
logxpy/_validation.py,sha256=0m0C0c7JXbN0Jbib3F-x07g1YhPOJu6IjOKRdROs0VE,16268
|
|
19
|
+
logxpy/_version.py,sha256=iE9p9sOBSwVumCZlmZHMKMwrJfHv7bADOosGyzsl_HI,497
|
|
20
|
+
logxpy/cli.py,sha256=g-62dHr2jfUQwgLmzvBDT5I0A7fj6iaeQ1YJ-u8cxGw,1726
|
|
21
|
+
logxpy/dask.py,sha256=wev4JQoiUYTd0FBpKCM2JgbKwWa_oZBvdlPhIm-ewRo,5440
|
|
22
|
+
logxpy/decorators.py,sha256=GSO81ueF25zNezd5eOpeMkkgvcA8hhQdWdHDjEru8qY,9012
|
|
23
|
+
logxpy/filter.py,sha256=JrgScmpUC1Sa-VpiBtoacLxSrC7URvi90mQlt18izI8,3372
|
|
24
|
+
logxpy/journald.py,sha256=fOPP9v_tM2FkrUZdLGhZyUyNeezwbL2SasgvpLfr7QY,2647
|
|
25
|
+
logxpy/json.py,sha256=H4XN9-YewHBJmt0wygGF570IjxNfrTA97aUA2J2_M9I,4222
|
|
26
|
+
logxpy/loggerx.py,sha256=GC1iqOJunrFqYekTDzjOzl5pBCB5Tw6MDeYSM1dWMLg,8682
|
|
27
|
+
logxpy/logwriter.py,sha256=ATT74rMlkyIsM4OWrAv_hdEICy8aEbo0WGmeCU4RR_Y,2357
|
|
28
|
+
logxpy/parse.py,sha256=y40YjiK7d9KJhIA_dv9WRSIhiaR7GxhJCVkIaoe8Nbw,6085
|
|
29
|
+
logxpy/prettyprint.py,sha256=fGwBB74WFs6w8eqk1AqfR0_8HdgapZVRjChXAXqdcBk,5050
|
|
30
|
+
logxpy/serializers.py,sha256=NSWPRWJTaWEFiM0g5ddiBwNoLxozCb_LLGW_QhISKYg,574
|
|
31
|
+
logxpy/stdlib.py,sha256=6RBM5TR6H-EL19hXRFfkaxrutqEz9iYAumpJ0we4gOw,590
|
|
32
|
+
logxpy/tai64n.py,sha256=DgdmRVaw78j9h83DjHNnnWepDDyM5USTFPSiV0CJ1eU,1301
|
|
33
|
+
logxpy/testing.py,sha256=XJ11S9XMKVpbV_3LZMHicrXbtNOaul1Dd2PKyKFogW0,14988
|
|
34
|
+
logxpy/twisted.py,sha256=ftPGHLipT4RHruPUoIiAp7i2cpTl2Nxuub5ADbZyEn8,8185
|
|
35
|
+
logxpy/tests/__init__.py,sha256=8P5CJNIN6SC1RnnK8P5GJZVQMldP_qVbISzzQJ1ooi0,214
|
|
36
|
+
logxpy/tests/common.py,sha256=XKXbF0JGq3kWwrAs-e36oTKwaGoK0t_ztAziZ-tZpzE,770
|
|
37
|
+
logxpy/tests/strategies.py,sha256=4aupXfcrx-YgHv2AgtjE_kmkXIlxvDhAK5qCfRNVQFM,7255
|
|
38
|
+
logxpy/tests/test_action.py,sha256=luankNP3RpZBfNtERbetKShWPiToww7MJa3AY-g3UPo,59108
|
|
39
|
+
logxpy/tests/test_api.py,sha256=sT_zA0e5rnol8lOG_blekiE26iu6PjLTaD6J9VK3bk0,2537
|
|
40
|
+
logxpy/tests/test_async.py,sha256=wzia7pT8Wnj9qMnADQcQsjmUxNo-j2te5jN5Rhk2_1Y,2184
|
|
41
|
+
logxpy/tests/test_compat.py,sha256=CWaTuaInUxrxUqg4gWLRkQaZRMEFZdHSBIFqN2OwunA,444
|
|
42
|
+
logxpy/tests/test_config.py,sha256=P7hVcrJDw0LEIQtaOpQCvaOqELpiwPZShJwzXx0h25o,663
|
|
43
|
+
logxpy/tests/test_coroutines.py,sha256=r44fGA2Cqy-Lb2ryx4C7zlLTytOuqIdkMrP_Mwwe4KQ,3006
|
|
44
|
+
logxpy/tests/test_dask.py,sha256=RT3u1xsSOEguCMnVUSKspi46isLNY0S_IDCIhD2awNs,6737
|
|
45
|
+
logxpy/tests/test_decorators.py,sha256=1rOsPfGeqbNGC5oEmfy5eUnLy7pZISpg__NpvPdv8Kc,1627
|
|
46
|
+
logxpy/tests/test_filter.py,sha256=f6Qo4ssi3LgGMKO-J5pWxM51CG3fDqDoYy0e2V88vyg,3569
|
|
47
|
+
logxpy/tests/test_fmt.py,sha256=izWi2NjSusU2ts6IJ7PLiE7Q9wGZ5v8igIjXlI1732U,1406
|
|
48
|
+
logxpy/tests/test_generators.py,sha256=k5E-fzodxQlLUlu87BIwW-WQbK41-tT4pdUwTXf5TcI,8906
|
|
49
|
+
logxpy/tests/test_journald.py,sha256=yXk26CgGC0sTkbUkUHQbW1kQ3k0GOWHCFVz8_Mq5gQE,7850
|
|
50
|
+
logxpy/tests/test_json.py,sha256=A8YbOUEVrr2GbhUvurZb1r9PEyYWa8MT7A6YnBhlO6I,7088
|
|
51
|
+
logxpy/tests/test_loggerx.py,sha256=HyLp8B4xjMMxrfvrpguv7nOFmxbtHYgUZFRfbnHJRe4,1344
|
|
52
|
+
logxpy/tests/test_logwriter.py,sha256=Om22VtOHKc_iyGprwyR3agpzps9xRuoq3UfUrCo2Fx4,8148
|
|
53
|
+
logxpy/tests/test_message.py,sha256=lkVuktceq8C7IgAe9qLT3A1sVSY6Sy8iBBnv0ZeiSYM,11211
|
|
54
|
+
logxpy/tests/test_output.py,sha256=BvWJKpxNKl2m4om0tvkv-VGBoO0-ZXXSyJYzKICFsgU,29958
|
|
55
|
+
logxpy/tests/test_parse.py,sha256=_9mjKd3MO2YQRRgIDuoRe_D4MXI8njFn0xtQFFmsW18,10512
|
|
56
|
+
logxpy/tests/test_pool.py,sha256=qpsiEW0rSv3kAzP8iyIPik-G9pw6WkVzeCkgK4-QG78,1702
|
|
57
|
+
logxpy/tests/test_prettyprint.py,sha256=RMMpqUdIFVY1HMfQYo3lUN_T7xWTtbm1apcDjTlkeww,8916
|
|
58
|
+
logxpy/tests/test_pyinstaller.py,sha256=vmM8unDx0yqWxfduBOW6FecXwNx0zY4ejoJYRb8Mg5s,1115
|
|
59
|
+
logxpy/tests/test_serializers.py,sha256=GuDOAXaEu0AQWhI3F-Zw2rEGL9U-P8Bs3hhrVhd19S0,885
|
|
60
|
+
logxpy/tests/test_stdlib.py,sha256=vB5wYoUXe-wXq5WVZBWG5vyw3wI_xoS60y_Qus-Oe-Q,2253
|
|
61
|
+
logxpy/tests/test_tai64n.py,sha256=BDLVX3FI7SsAJOSVdZOSdVUZ29jSuEYkCI7t_1DadWQ,1819
|
|
62
|
+
logxpy/tests/test_testing.py,sha256=J4viBe7nUrkbqRLAXeL3OBHHxJmt94Tr4vqCjvEPsoc,32676
|
|
63
|
+
logxpy/tests/test_traceback.py,sha256=BLXu7vR5LeLPqL29qlLF3pv5aCTu2TIbaUCVCvmzwrQ,7168
|
|
64
|
+
logxpy/tests/test_twisted.py,sha256=MA1Bzsxdl6T-4Eqn73CGwp_dtffAPpPpGQrzs7A0WRw,25486
|
|
65
|
+
logxpy/tests/test_util.py,sha256=LEnd_XFmLoda1c0P4sP4e9N0iRofzp1eJuIs6teMVKE,1242
|
|
66
|
+
logxpy/tests/test_validation.py,sha256=IngOrd2hFZxrfJYRIEKYc471VebmV57AdotORAUxzMM,31592
|
|
67
|
+
logxpy-0.1.0.dist-info/licenses/LICENSE,sha256=bcDgaNzzpbyOBUIFuFt3IOHUkmW7xkv1FdLPeRl99po,11323
|
|
68
|
+
logxpy-0.1.0.dist-info/METADATA,sha256=laS0rJg2l7HBQANrNdtUGJY1c--6DuynCoIdJlsWpKI,4589
|
|
69
|
+
logxpy-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
70
|
+
logxpy-0.1.0.dist-info/entry_points.txt,sha256=R7c7zxySnkiKL5C0DnzBy-C-5OYwKLYq6BTEEkdayOs,64
|
|
71
|
+
logxpy-0.1.0.dist-info/top_level.txt,sha256=n05i6Vgx1oErlSFt28A57kUktP8baPLiNCXtqamL6ro,7
|
|
72
|
+
logxpy-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
logxpy
|