atomicfile-1.0.1


توضیحات

Writeable file object that atomically updates a file.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل atomicfile-1.0.1
نام atomicfile
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Alexander Saltanov
ایمیل نویسنده asd@mokote.com
آدرس صفحه اصلی http://github.com/sashka/atomicfile-py
آدرس اینترنتی https://pypi.org/project/atomicfile/
مجوز MIT
AtomicFile ========== .. image:: https://travis-ci.org/sashka/atomicfile.svg?branch=master :target: https://travis-ci.org/sashka/atomicfile Writeable file object that atomically updates a file. All writes will go to a temporary file. Call ``close()`` explicitly when you are done writing, and AtomicFile will rename the temporary copy to the original name, making the changes visible. If the object is destroyed without being closed, all your writes are discarded. AtomicFile is friendly to ``with`` statement. :: from atomicfile import AtomicFile with AtomicFile("panic.txt", "w") as f: f.write(json.dumps(big_data_array_100MB, sort_keys=True, indent=4)) Install ------- To install AtomicFile, simply: :: pip install atomicfile


نحوه نصب


نصب پکیج whl atomicfile-1.0.1:

    pip install atomicfile-1.0.1.whl


نصب پکیج tar.gz atomicfile-1.0.1:

    pip install atomicfile-1.0.1.tar.gz