معرفی شرکت ها


cdifflib-1.2.6


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

C implementation of parts of difflib
ویژگی مقدار
سیستم عامل -
نام فایل cdifflib-1.2.6
نام cdifflib
نسخه کتابخانه 1.2.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Matthew Duggan
ایمیل نویسنده Matthew Duggan <mgithub@guarana.org>
آدرس صفحه اصلی https://github.com/mduggan/cdifflib
آدرس اینترنتی https://pypi.org/project/cdifflib/
مجوز Copyright (c) 2013, Matthew Duggan All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the {organization} nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cdifflib ======== [<img src="https://travis-ci.org/mduggan/cdifflib.svg?branch=master">](https://travis-ci.org/mduggan/cdifflib/) Python [difflib](http://docs.python.org/2/library/difflib.html) sequence matcher reimplemented in C. Actually only contains reimplemented parts. Creates a `CSequenceMatcher` type which inherets most functions from `difflib.SequenceMatcher`. `cdifflib` is about 4x the speed of the pure python `difflib` when diffing large streams. Limitations ----------- The C part of the code can only work on `list` rather than generic iterables, so anything that isn't a `list` will be converted to `list` in the `CSequenceMatcher` constructor. This may cause undesirable behavior if you're not expecting it. Works with Python 2.7 and 3.6 (Should work on all 3.3+) Usage ----- Can be used just like the `difflib.SequenceMatcher` as long as you pass lists. These examples are right out of the [difflib docs](http://docs.python.org/2/library/difflib.html): ```Python >>> from cdifflib import CSequenceMatcher >>> s = CSequenceMatcher(None, ' abcd', 'abcd abcd') >>> s.find_longest_match(0, 5, 0, 9) Match(a=1, b=0, size=4) >>> s = CSequenceMatcher(lambda x: x == " ", ... "private Thread currentThread;", ... "private volatile Thread currentThread;") >>> print round(s.ratio(), 3) 0.866 ``` It's completely compatible, so you can replace the difflib version on startup and then other libraries will use CSequenceMatcher too, eg: ```Python from cdifflib import CSequenceMatcher import difflib difflib.SequenceMatcher = CSequenceMatcher import library_that_uses_difflib # Now the library will transparantely be using the C SequenceMatcher - other # things remain the same library_that_uses_difflib.do_some_diffing() ``` Making ------ To install: ``` python setup.py install ``` To test: ``` python setup.py test ``` License etc ----------- This code lives at https://github.com/mduggan. See LICENSE for the license. Changelog --------- * 1.2.6 - Clear state correctly when replacing seq1 (#10) * 1.2.5 - Fix some memory leaks (#7) * 1.2.4 - Repackage yet again using twine for pypi upload (no binary changes) * 1.2.3 - Repackage again with changelog update and corrected src package (no binary changes) * 1.2.2 - Repackage to add README.md in a way pypi supports (no binary changes) * 1.2.1 - Fix bug for longer sequences with "autojunk" * 1.2.0 - Python 3 support for other versions * 1.1.0 - Added Python 3.6 support (thanks Bclavie) * 1.0.4 - Changes to make it compile on MSVC++ compiler, no change for other platforms * 1.0.2 - Bugfix - also replace set_seq1 implementation so `difflib.compare` works with a `CSequenceMatcher` * 1.0.1 - Implement more bits in c to squeeze a bit more speed out * 1.0.0 - First release


زبان مورد نیاز

مقدار نام
>=3.4 Python


نحوه نصب


نصب پکیج whl cdifflib-1.2.6:

    pip install cdifflib-1.2.6.whl


نصب پکیج tar.gz cdifflib-1.2.6:

    pip install cdifflib-1.2.6.tar.gz