معرفی شرکت ها


cs.ndjson-20211208


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

utilities for working with newline delimited JSON (NDJSON) files
ویژگی مقدار
سیستم عامل -
نام فایل cs.ndjson-20211208
نام cs.ndjson
نسخه کتابخانه 20211208
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Cameron Simpson
ایمیل نویسنده cs@cskk.id.au
آدرس صفحه اصلی https://bitbucket.org/cameron_simpson/css/commits/all
آدرس اینترنتی https://pypi.org/project/cs.ndjson/
مجوز GNU General Public License v3 or later (GPLv3+)
Utilities for working with newline delimited JSON (NDJSON) files. *Latest release 20211208*: Initial PyPI release. ## Function `append_ndjson(arg, *a, **kw)` Append an iterable of objects to a file as newline delimited JSON. ## Function `scan_ndjson(arg, *a, **kw)` Read a newline delimited JSON file, yield instances of `dictclass` (default `dict`, otherwise a class which can be instantiated by `dictclass(a_dict)`). `error_list` is an optional list to accrue `(lineno,exception)` tuples for errors encountered during the scan. ## Class `UUIDNDJSONMapping(cs.obj.SingletonMixin,cs.mappings.IndexedSetMixin)` A subclass of `IndexedSetMixin` which maintains records from a newline delimited JSON file. ### Method `UUIDNDJSONMapping.__init__(self, filename, dictclass=<class 'cs.mappings.UUIDedDict'>, create=False)` Initialise the mapping. Parameters: * `filename`: the file containing the newline delimited JSON data; this need not yet exist * `dictclass`: a optional `dict` subclass to hold each record, default `UUIDedDict` * `create`: if true, ensure the file exists by transiently opening it for append if it is missing; default `False` ### Method `UUIDNDJSONMapping.add_backend(self, record)` Append `record` to the backing file. ### Method `UUIDNDJSONMapping.rewrite_backend(self)` Rewrite the backing file. Because the record updates are normally written in append mode, a rewrite will be required every so often. ### Method `UUIDNDJSONMapping.scan(self)` Scan the backing file, yield records. ## Function `write_ndjson(arg, *a, **kw)` Transcribe an iterable of objects to a file as newline delimited JSON. # Release Log *Release 20211208*: Initial PyPI release.


نحوه نصب


نصب پکیج whl cs.ndjson-20211208:

    pip install cs.ndjson-20211208.whl


نصب پکیج tar.gz cs.ndjson-20211208:

    pip install cs.ndjson-20211208.tar.gz