Dynamic message prefixes providing execution context.
*Latest release 20241208*:
Pfx.prefixify_exception: record the original message as {attr}_without_prefix, useful in warnings which themselves recite the prefix.
The primary facility here is `Pfx`,
a context manager which maintains a per thread stack of context prefixes.
There are also decorators for functions.
This stack is used to prefix logging messages and exception text with context.
Usage is like this:
from cs.pfx import Pfx
...
def parser(filename):
with Pfx(filename):
with open(filename) as f:
for lineno, line in enumerate(f, 1):
with Pfx(lineno):
if line_is_invalid(line):
raise ValueError("problem!")
info("line = %r", line)
This produces log messages like:
datafile: 1: line = 'foo\n'
and exception messages like:
datafile: 17: problem!
which lets one put just the relevant complaint in exception and log
messages and get useful calling context on the output.
This does make for wordier logs and exceptions
but used with a little discretion produces far more debuggable results.
## <a name="Pfx"></a>Class `Pfx`
A context manager to maintain a per-thread stack of message prefixes.
*`Pfx.__init__(self, mark, *args, **kwargs)`*:
Initialise a new Pfx instance.
Parameters:
* `mark`: message prefix string
* `args`: if not empty, apply to the prefix string with `%`
* `absolute`: optional keyword argument, default `False`. If
true, this message forms the base of the message prefixes;
earlier prefixes will be suppressed.
* `loggers`: which loggers should receive log messages.
* `print`: if true, print the `mark` on entry to the `with` suite.
This may be a `bool`, implying `print()` if `True`,
a callable which works like `print()`,
or a file-like object which implies using `print(...,file=print)`.
*Note*:
the `mark` and `args` are only combined if the `Pfx` instance gets used,
for example for logging or to annotate an exception.
Otherwise, they are not combined.
Therefore the values interpolated are as they are when the `Pfx` is used,
not necessarily as they were when the `Pfx` was created.
If the `args` are subject to change and you require the original values,
apply them to `mark` immediately, for example:
with Pfx('message %s ...' % (arg1, arg2, ...)):
This is a bit more expensive as it incurs the formatting cost
whenever you enter the `with` clause.
The common usage is:
with Pfx('message %s ...', arg1, arg2, ...):
*`Pfx.critical(self, msg, *args, **kwargs)`*:
Emit a critical log message.
*`Pfx.debug(self, msg, *args, **kwargs)`*:
Emit a debug log message.
*`Pfx.error(self, msg, *args, **kwargs)`*:
Emit an error log message.
*`Pfx.exception(self, msg, *args, **kwargs)`*:
Log an exception message to this Pfx's loggers.
*`Pfx.info(self, msg, *args, **kwargs)`*:
Emit an info log message.
*`Pfx.log(self, level, msg, *args, **kwargs)`*:
Log a message at an arbitrary log level to this Pfx's loggers.
*`Pfx.loggers`*:
Return the loggers to use for this Pfx instance.
*`Pfx.logto(self, new_loggers)`*:
Define the Loggers anew.
*`Pfx.partial(self, func, *a, **kw)`*:
Return a function that will run the supplied function `func`
within a surrounding `Pfx` context with the current mark string.
This is intended for deferred call facilities like
`Later` and `futures`.
*`Pfx.prefixify(text)`*:
Return `text` with the current prefix prepended.
Return `text` unchanged if it is not a string.
*`Pfx.prefixify_exception(e)`*:
Modify the supplied exception `e` with the current prefix.
Return `True` if modified, `False` if unable to modify.
*`Pfx.push(msg, *a)`*:
A new `Pfx(msg,*a)` onto the `Thread` stack.
*`Pfx.scope(msg=None, *a)`*:
Context manager to save the current `Thread`'s stack state
and to restore it on exit.
This is to aid long suites which progressively add `Pfx` context
as the suite progresses, example:
for item in items:
with Pfx.scope("item %s", item):
db_row = db.get(item)
Pfx.push("db_row = %r", db_row)
matches = db.lookup(db_row.category)
if not matches:
continue
Pfx.push("%d matches", len(matches):
... etc etc ...
*`Pfx.umark`*:
Return the unicode message mark for use with this Pfx.
This is used by Pfx._state.prefix to compute the full prefix.
*`Pfx.warning(self, msg, *args, **kwargs)`*:
Emit a warning log message.
## <a name="pfx"></a>`pfx(*da, **dkw)`
General purpose @pfx for generators, methods etc.
Parameters:
* `func`: the function or generator function to decorate
* `message`: optional prefix to use instead of the function name
* `message_args`: optional arguments to embed in the preifx using `%`
Example usage:
@pfx
def f(....):
....
## <a name="pfx_call"></a>`pfx_call(func, *a, **kw)`
Call `func(*a,**kw)` within an enclosing `Pfx` context manager
reciting the function name and arguments.
Example:
>>> import os
>>> pfx_call(os.rename, "oldname", "newname")
## <a name="pfx_iter"></a>`pfx_iter(tag, iterable)`
Wrapper for iterables to prefix exceptions with `tag`.
## <a name="pfx_method"></a>`pfx_method(*da, **dkw)`
Decorator to provide a `Pfx` context for an instance method prefixing
*classname.methodname*.
If `use_str` is true (default `False`)
use `str(self)` instead of `classname`.
If `with_args` is true (default `False`)
include the specified arguments in the `Pfx` context.
If `with_args` is `True`, this includes all the arguments.
Otherwise `with_args` should be a sequence of argument references:
an `int` specifies one of the positional arguments
and a string specifies one of the keyword arguments.
Examples:
class O:
# just use "O.foo"
@pfx_method
def foo(self, .....):
....
# use the value of self instead of the class name
@pfx_method(use_str=True)
def foo2(self, .....):
....
# include all the arguments
@pfx_method(with_args=True)
def foo3(self, a, b, c, *, x=1, y):
....
# include the "b", "c" and "x" arguments
@pfx_method(with_args=[1,2,'x'])
def foo3(self, a, b, c, *, x=1, y):
....
## <a name="PfxCallInfo"></a>Class `PfxCallInfo(Pfx)`
Subclass of Pfx to insert current function and caller into messages.
## <a name="pfxprint"></a>`pfxprint(*a, print_func=None, **kw)`
Call `print()` with the current prefix.
The optional keyword parameter `print_func`
provides an alternative function to the builtin `print()`.
## <a name="PfxThread"></a>`PfxThread(target, **kw)`
Factory function returning a `Thread`
which presents the current prefix as context.
## <a name="prefix"></a>`prefix()`
Return the current Pfx prefix.
## <a name="PrePfx"></a>`PrePfx(tag, *args)`
Push a temporary value for Pfx._state._ur_prefix to enloundenify messages.
## <a name="unpfx"></a>`unpfx(s, sep=None)`
Strip the leading prefix from the string `s`
using the prefix delimiter `sep`
(default from `DEFAULT_SEPARATOR`: `': '`).
This is a simple hack to support reporting error messages
which have had a prefix applied,
and fails accordingly if the base message itself contains the separator.
## <a name="XP"></a>`XP(msg, *args, **kwargs)`
Variation on `cs.x.X`
which prefixes the message with the current Pfx prefix.
## <a name="XX"></a>`XX(prepfx, msg, *args, **kwargs)`
Trite wrapper for `XP()` to transiently insert a leading prefix string.
Example:
XX("NOTE!", "some message")
# Release Log
*Release 20241208*:
Pfx.prefixify_exception: record the original message as {attr}_without_prefix, useful in warnings which themselves recite the prefix.
*Release 20240630*:
@pfx_method: fix access to class name when the target is a class.
*Release 20240412*:
Pfx.prefixify_exception: bugfix prefixification of sequences.
*Release 20240326*:
* Pfx.prefixify_exception: sanity check the types of the prefixed attributes, aids debugging.
* Pfx.prefixify_exception: do not modify .message if it is not a string.
*Release 20230604*:
@pfx_method: handle methods with no __name__ (generally a misuse of the decorator).
*Release 20230331*:
PfxThread: use HasThreadState.Thread, make target mandatory.
*Release 20221118*:
pkg_tags: cs.py.func: update PyPI release: set pypi.release='20221118' [IGNORE]
*Release 20220918*:
* Drop _PfxThreadState.raise_needs_prefix, supplant with more reliable special exception attribute.
* Pfx.__exit__: include more detail in (suppressed) "message not prefixed" message.
* Pfx.__exit__: more elaborate logic for exc_value.args.
*Release 20220523*:
Pfx.umask: promote self.mark directly to ustr.
*Release 20220429*:
* New Pfx.scope() context manager and Pfx.push(msg,*a) nonindenting Pfx push.
* pfxprint: new optional print_func keyword parameter.
*Release 20220227*:
* Pfx.prefixify: change OSError.args action: prefixify the first string.
* XP: use DEFAULT_SEPARATOR on both paths.
*Release 20211031*:
Pfx.prefixify_exception: skip attributes which are None.
*Release 20210913*:
Pfx: do not fiddle with LookupError.args[0], it is the key.
*Release 20210906*:
* New pfxprint which calls print() with the current prefix.
* Pfx.prefixify_exception: catch unexpected OSError.args value and report.
* @pfx: use pfx_call if there is no presupplied message argument.
*Release 20210801*:
Bugfix for @pfx.
*Release 20210731*:
* Pfx.__exit__: special handling for some exception types.
* New pfx_call(func,*a,**kw) function to concisely wrap single function calls.
*Release 20210717*:
@pfx_method: new optional decorator argument "with_args" to include some or all arguments in the Pfx context.
*Release 20201227*:
* Pfx: new print=False option to issue a print() or other call on entry to the with-suite eg with Pfx(....,print=verbose).
* Pfx: print= now also accepts a file-like object.
*Release 20201105*:
@pfx: bugfix for generator functions.
*Release 20201025*:
* Refactor @pfx using @cs.deco.contextdecorator.
* New unpfx() function, a crude hack to strip an applpied cs.pfx prefix from a string.
* XP: just shim cs.x.X as callers expect, toss dubious extra functionality.
* exception(): plumb keyword arguments.
*Release 20200517*:
* @pfx: handle normal functions and also generators, improve behaviour with the wrapped docstring.
* @pfx_method: @pfx for methods.
* @pfxtag obsoleted by new @pfx.
*Release 20191004*:
@pfx_method: new optional `use_str` parameter to use str(self) instead of type(self).__name__; now requires @cs.deco.decorator
*Release 20190905*:
* Pfx.__exit__: simplify prefixify_exc() logic, prefixify all suitable attributes.
* New @pfx_method decorator for instance methods.
*Release 20190607*:
Pfx.__exit__ improved exception attribute handling.
*Release 20190403*:
Debugging aid: Pfx.umark: emit stack traceback on format conversion error.
*Release 20190327*:
* @pfx: set __name__ on the wrapper function.
* Bugfix some references to the internal prefixify function.
*Release 20190324*:
Pfx.__exit__: apply the prefix to all the standard attributes where present, improves some message behaviour for some exception types.
*Release 20181231*:
Bugfix for an infinite regress.
*Release 20181109*:
* Update @contextmanager formalism to use try/finally for the cleanup phase.
* New decorator @gen to manage Pfx state across generator iterations; pretty clunky.
* Better fallback handling.
* Some docstring updates.
*Release 20170910*:
Slight linting.
*Release 20170903.1*:
corrections to the module docstring
*Release 20170903*:
Initial release for PyPI.
Raw data
{
"_id": null,
"home_page": null,
"name": "cs-pfx",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python2, python3",
"author": null,
"author_email": "Cameron Simpson <cs@cskk.id.au>",
"download_url": "https://files.pythonhosted.org/packages/5f/b8/5d42e3507878ca83210f0f3435f17b1630e125cb7ac69565119e28915de5/cs_pfx-20241208.tar.gz",
"platform": null,
"description": "Dynamic message prefixes providing execution context.\n\n*Latest release 20241208*:\nPfx.prefixify_exception: record the original message as {attr}_without_prefix, useful in warnings which themselves recite the prefix.\n\nThe primary facility here is `Pfx`,\na context manager which maintains a per thread stack of context prefixes.\nThere are also decorators for functions.\nThis stack is used to prefix logging messages and exception text with context.\n\nUsage is like this:\n\n from cs.pfx import Pfx\n ...\n def parser(filename):\n with Pfx(filename):\n with open(filename) as f:\n for lineno, line in enumerate(f, 1):\n with Pfx(lineno):\n if line_is_invalid(line):\n raise ValueError(\"problem!\")\n info(\"line = %r\", line)\n\nThis produces log messages like:\n\n datafile: 1: line = 'foo\\n'\n\nand exception messages like:\n\n datafile: 17: problem!\n\nwhich lets one put just the relevant complaint in exception and log\nmessages and get useful calling context on the output.\nThis does make for wordier logs and exceptions\nbut used with a little discretion produces far more debuggable results.\n\n## <a name=\"Pfx\"></a>Class `Pfx`\n\nA context manager to maintain a per-thread stack of message prefixes.\n\n*`Pfx.__init__(self, mark, *args, **kwargs)`*:\nInitialise a new Pfx instance.\n\nParameters:\n* `mark`: message prefix string\n* `args`: if not empty, apply to the prefix string with `%`\n* `absolute`: optional keyword argument, default `False`. If\n true, this message forms the base of the message prefixes;\n earlier prefixes will be suppressed.\n* `loggers`: which loggers should receive log messages.\n* `print`: if true, print the `mark` on entry to the `with` suite.\n This may be a `bool`, implying `print()` if `True`,\n a callable which works like `print()`,\n or a file-like object which implies using `print(...,file=print)`.\n\n*Note*:\nthe `mark` and `args` are only combined if the `Pfx` instance gets used,\nfor example for logging or to annotate an exception.\nOtherwise, they are not combined.\nTherefore the values interpolated are as they are when the `Pfx` is used,\nnot necessarily as they were when the `Pfx` was created.\nIf the `args` are subject to change and you require the original values,\napply them to `mark` immediately, for example:\n\n with Pfx('message %s ...' % (arg1, arg2, ...)):\n\nThis is a bit more expensive as it incurs the formatting cost\nwhenever you enter the `with` clause.\nThe common usage is:\n\n with Pfx('message %s ...', arg1, arg2, ...):\n\n*`Pfx.critical(self, msg, *args, **kwargs)`*:\nEmit a critical log message.\n\n*`Pfx.debug(self, msg, *args, **kwargs)`*:\nEmit a debug log message.\n\n*`Pfx.error(self, msg, *args, **kwargs)`*:\nEmit an error log message.\n\n*`Pfx.exception(self, msg, *args, **kwargs)`*:\nLog an exception message to this Pfx's loggers.\n\n*`Pfx.info(self, msg, *args, **kwargs)`*:\nEmit an info log message.\n\n*`Pfx.log(self, level, msg, *args, **kwargs)`*:\nLog a message at an arbitrary log level to this Pfx's loggers.\n\n*`Pfx.loggers`*:\nReturn the loggers to use for this Pfx instance.\n\n*`Pfx.logto(self, new_loggers)`*:\nDefine the Loggers anew.\n\n*`Pfx.partial(self, func, *a, **kw)`*:\nReturn a function that will run the supplied function `func`\nwithin a surrounding `Pfx` context with the current mark string.\n\nThis is intended for deferred call facilities like\n`Later` and `futures`.\n\n*`Pfx.prefixify(text)`*:\nReturn `text` with the current prefix prepended.\nReturn `text` unchanged if it is not a string.\n\n*`Pfx.prefixify_exception(e)`*:\nModify the supplied exception `e` with the current prefix.\nReturn `True` if modified, `False` if unable to modify.\n\n*`Pfx.push(msg, *a)`*:\nA new `Pfx(msg,*a)` onto the `Thread` stack.\n\n*`Pfx.scope(msg=None, *a)`*:\nContext manager to save the current `Thread`'s stack state\nand to restore it on exit.\n\nThis is to aid long suites which progressively add `Pfx` context\nas the suite progresses, example:\n\n for item in items:\n with Pfx.scope(\"item %s\", item):\n db_row = db.get(item)\n Pfx.push(\"db_row = %r\", db_row)\n matches = db.lookup(db_row.category)\n if not matches:\n continue\n Pfx.push(\"%d matches\", len(matches):\n ... etc etc ...\n\n*`Pfx.umark`*:\nReturn the unicode message mark for use with this Pfx.\n\nThis is used by Pfx._state.prefix to compute the full prefix.\n\n*`Pfx.warning(self, msg, *args, **kwargs)`*:\nEmit a warning log message.\n\n## <a name=\"pfx\"></a>`pfx(*da, **dkw)`\n\nGeneral purpose @pfx for generators, methods etc.\n\nParameters:\n* `func`: the function or generator function to decorate\n* `message`: optional prefix to use instead of the function name\n* `message_args`: optional arguments to embed in the preifx using `%`\n\nExample usage:\n\n @pfx\n def f(....):\n ....\n\n## <a name=\"pfx_call\"></a>`pfx_call(func, *a, **kw)`\n\nCall `func(*a,**kw)` within an enclosing `Pfx` context manager\nreciting the function name and arguments.\n\nExample:\n\n >>> import os\n >>> pfx_call(os.rename, \"oldname\", \"newname\")\n\n## <a name=\"pfx_iter\"></a>`pfx_iter(tag, iterable)`\n\nWrapper for iterables to prefix exceptions with `tag`.\n\n## <a name=\"pfx_method\"></a>`pfx_method(*da, **dkw)`\n\nDecorator to provide a `Pfx` context for an instance method prefixing\n*classname.methodname*.\n\nIf `use_str` is true (default `False`)\nuse `str(self)` instead of `classname`.\n\nIf `with_args` is true (default `False`)\ninclude the specified arguments in the `Pfx` context.\nIf `with_args` is `True`, this includes all the arguments.\nOtherwise `with_args` should be a sequence of argument references:\nan `int` specifies one of the positional arguments\nand a string specifies one of the keyword arguments.\n\nExamples:\n\n class O:\n # just use \"O.foo\"\n @pfx_method\n def foo(self, .....):\n ....\n # use the value of self instead of the class name\n @pfx_method(use_str=True)\n def foo2(self, .....):\n ....\n # include all the arguments\n @pfx_method(with_args=True)\n def foo3(self, a, b, c, *, x=1, y):\n ....\n # include the \"b\", \"c\" and \"x\" arguments\n @pfx_method(with_args=[1,2,'x'])\n def foo3(self, a, b, c, *, x=1, y):\n ....\n\n## <a name=\"PfxCallInfo\"></a>Class `PfxCallInfo(Pfx)`\n\nSubclass of Pfx to insert current function and caller into messages.\n\n## <a name=\"pfxprint\"></a>`pfxprint(*a, print_func=None, **kw)`\n\nCall `print()` with the current prefix.\n\nThe optional keyword parameter `print_func`\nprovides an alternative function to the builtin `print()`.\n\n## <a name=\"PfxThread\"></a>`PfxThread(target, **kw)`\n\nFactory function returning a `Thread`\nwhich presents the current prefix as context.\n\n## <a name=\"prefix\"></a>`prefix()`\n\nReturn the current Pfx prefix.\n\n## <a name=\"PrePfx\"></a>`PrePfx(tag, *args)`\n\nPush a temporary value for Pfx._state._ur_prefix to enloundenify messages.\n\n## <a name=\"unpfx\"></a>`unpfx(s, sep=None)`\n\nStrip the leading prefix from the string `s`\nusing the prefix delimiter `sep`\n(default from `DEFAULT_SEPARATOR`: `': '`).\n\nThis is a simple hack to support reporting error messages\nwhich have had a prefix applied,\nand fails accordingly if the base message itself contains the separator.\n\n## <a name=\"XP\"></a>`XP(msg, *args, **kwargs)`\n\nVariation on `cs.x.X`\nwhich prefixes the message with the current Pfx prefix.\n\n## <a name=\"XX\"></a>`XX(prepfx, msg, *args, **kwargs)`\n\nTrite wrapper for `XP()` to transiently insert a leading prefix string.\n\nExample:\n\n XX(\"NOTE!\", \"some message\")\n\n# Release Log\n\n\n\n*Release 20241208*:\nPfx.prefixify_exception: record the original message as {attr}_without_prefix, useful in warnings which themselves recite the prefix.\n\n*Release 20240630*:\n@pfx_method: fix access to class name when the target is a class.\n\n*Release 20240412*:\nPfx.prefixify_exception: bugfix prefixification of sequences.\n\n*Release 20240326*:\n* Pfx.prefixify_exception: sanity check the types of the prefixed attributes, aids debugging.\n* Pfx.prefixify_exception: do not modify .message if it is not a string.\n\n*Release 20230604*:\n@pfx_method: handle methods with no __name__ (generally a misuse of the decorator).\n\n*Release 20230331*:\nPfxThread: use HasThreadState.Thread, make target mandatory.\n\n*Release 20221118*:\npkg_tags: cs.py.func: update PyPI release: set pypi.release='20221118' [IGNORE]\n\n*Release 20220918*:\n* Drop _PfxThreadState.raise_needs_prefix, supplant with more reliable special exception attribute.\n* Pfx.__exit__: include more detail in (suppressed) \"message not prefixed\" message.\n* Pfx.__exit__: more elaborate logic for exc_value.args.\n\n*Release 20220523*:\nPfx.umask: promote self.mark directly to ustr.\n\n*Release 20220429*:\n* New Pfx.scope() context manager and Pfx.push(msg,*a) nonindenting Pfx push.\n* pfxprint: new optional print_func keyword parameter.\n\n*Release 20220227*:\n* Pfx.prefixify: change OSError.args action: prefixify the first string.\n* XP: use DEFAULT_SEPARATOR on both paths.\n\n*Release 20211031*:\nPfx.prefixify_exception: skip attributes which are None.\n\n*Release 20210913*:\nPfx: do not fiddle with LookupError.args[0], it is the key.\n\n*Release 20210906*:\n* New pfxprint which calls print() with the current prefix.\n* Pfx.prefixify_exception: catch unexpected OSError.args value and report.\n* @pfx: use pfx_call if there is no presupplied message argument.\n\n*Release 20210801*:\nBugfix for @pfx.\n\n*Release 20210731*:\n* Pfx.__exit__: special handling for some exception types.\n* New pfx_call(func,*a,**kw) function to concisely wrap single function calls.\n\n*Release 20210717*:\n@pfx_method: new optional decorator argument \"with_args\" to include some or all arguments in the Pfx context.\n\n*Release 20201227*:\n* Pfx: new print=False option to issue a print() or other call on entry to the with-suite eg with Pfx(....,print=verbose).\n* Pfx: print= now also accepts a file-like object.\n\n*Release 20201105*:\n@pfx: bugfix for generator functions.\n\n*Release 20201025*:\n* Refactor @pfx using @cs.deco.contextdecorator.\n* New unpfx() function, a crude hack to strip an applpied cs.pfx prefix from a string.\n* XP: just shim cs.x.X as callers expect, toss dubious extra functionality.\n* exception(): plumb keyword arguments.\n\n*Release 20200517*:\n* @pfx: handle normal functions and also generators, improve behaviour with the wrapped docstring.\n* @pfx_method: @pfx for methods.\n* @pfxtag obsoleted by new @pfx.\n\n*Release 20191004*:\n@pfx_method: new optional `use_str` parameter to use str(self) instead of type(self).__name__; now requires @cs.deco.decorator\n\n*Release 20190905*:\n* Pfx.__exit__: simplify prefixify_exc() logic, prefixify all suitable attributes.\n* New @pfx_method decorator for instance methods.\n\n*Release 20190607*:\nPfx.__exit__ improved exception attribute handling.\n\n*Release 20190403*:\nDebugging aid: Pfx.umark: emit stack traceback on format conversion error.\n\n*Release 20190327*:\n* @pfx: set __name__ on the wrapper function.\n* Bugfix some references to the internal prefixify function.\n\n*Release 20190324*:\nPfx.__exit__: apply the prefix to all the standard attributes where present, improves some message behaviour for some exception types.\n\n*Release 20181231*:\nBugfix for an infinite regress.\n\n*Release 20181109*:\n* Update @contextmanager formalism to use try/finally for the cleanup phase.\n* New decorator @gen to manage Pfx state across generator iterations; pretty clunky.\n* Better fallback handling.\n* Some docstring updates.\n\n*Release 20170910*:\nSlight linting.\n\n*Release 20170903.1*:\ncorrections to the module docstring\n\n*Release 20170903*:\nInitial release for PyPI.\n",
"bugtrack_url": null,
"license": "GNU General Public License v3 or later (GPLv3+)",
"summary": "Easy context prefixes for messages.",
"version": "20241208",
"project_urls": {
"MonoRepo Commits": "https://bitbucket.org/cameron_simpson/css/commits/branch/main",
"Monorepo Git Mirror": "https://github.com/cameron-simpson/css",
"Monorepo Hg/Mercurial Mirror": "https://hg.sr.ht/~cameron-simpson/css",
"Source": "https://github.com/cameron-simpson/css/blob/main/lib/python/cs/pfx.py"
},
"split_keywords": [
"python2",
" python3"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "00b0cb9368544f00c7244e44c7ca48b3c01c435501cacfe1af5c18ab61155322",
"md5": "60214dab5fea8b60b3e811e1f4ff4a0a",
"sha256": "2855f2d57ea843867065a1860e8f28992a238bebfe3cfa17b2519552059a99dc"
},
"downloads": -1,
"filename": "cs_pfx-20241208-py3-none-any.whl",
"has_sig": false,
"md5_digest": "60214dab5fea8b60b3e811e1f4ff4a0a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 12638,
"upload_time": "2024-12-07T21:27:01",
"upload_time_iso_8601": "2024-12-07T21:27:01.414794Z",
"url": "https://files.pythonhosted.org/packages/00/b0/cb9368544f00c7244e44c7ca48b3c01c435501cacfe1af5c18ab61155322/cs_pfx-20241208-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5fb85d42e3507878ca83210f0f3435f17b1630e125cb7ac69565119e28915de5",
"md5": "d93c0275f3fac27c0a311cf97f1b4237",
"sha256": "60a6b6229f3579cdd5c83e046e5cf3ffb5a328c849b0a821e35edd7a8800a755"
},
"downloads": -1,
"filename": "cs_pfx-20241208.tar.gz",
"has_sig": false,
"md5_digest": "d93c0275f3fac27c0a311cf97f1b4237",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13786,
"upload_time": "2024-12-07T21:27:03",
"upload_time_iso_8601": "2024-12-07T21:27:03.430084Z",
"url": "https://files.pythonhosted.org/packages/5f/b8/5d42e3507878ca83210f0f3435f17b1630e125cb7ac69565119e28915de5/cs_pfx-20241208.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-07 21:27:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cameron-simpson",
"github_project": "css",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cs-pfx"
}