summaryrefslogtreecommitdiffstats
path: root/third_party/python/binaryornot/binaryornot-0.4.4.dist-info
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/python/binaryornot/binaryornot-0.4.4.dist-info
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/python/binaryornot/binaryornot-0.4.4.dist-info')
-rw-r--r--third_party/python/binaryornot/binaryornot-0.4.4.dist-info/DESCRIPTION.rst152
-rw-r--r--third_party/python/binaryornot/binaryornot-0.4.4.dist-info/METADATA175
-rw-r--r--third_party/python/binaryornot/binaryornot-0.4.4.dist-info/RECORD9
-rw-r--r--third_party/python/binaryornot/binaryornot-0.4.4.dist-info/WHEEL6
-rw-r--r--third_party/python/binaryornot/binaryornot-0.4.4.dist-info/metadata.json1
-rw-r--r--third_party/python/binaryornot/binaryornot-0.4.4.dist-info/top_level.txt1
6 files changed, 344 insertions, 0 deletions
diff --git a/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/DESCRIPTION.rst b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/DESCRIPTION.rst
new file mode 100644
index 0000000000..4ef0073431
--- /dev/null
+++ b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/DESCRIPTION.rst
@@ -0,0 +1,152 @@
+=============================
+BinaryOrNot
+=============================
+
+.. image:: https://img.shields.io/pypi/v/binaryornot.svg?style=flat
+ :target: https://pypi.python.org/pypi/binaryornot
+
+.. image:: https://readthedocs.org/projects/binaryornot/badge/?version=latest
+ :target: http://binaryornot.readthedocs.io/en/latest/?badge=latest
+ :alt: Documentation Status
+
+
+.. image:: https://pyup.io/repos/github/audreyr/binaryornot/shield.svg
+ :target: https://pyup.io/repos/github/audreyr/binaryornot/
+ :alt: Updates
+
+Ultra-lightweight pure Python package to guess whether a file is binary or text,
+using a heuristic similar to Perl's `pp_fttext` and its analysis by @eliben.
+
+* Free software: BSD license
+* Documentation: https://binaryornot.readthedocs.io
+
+Status
+------
+
+It works, and people are using this package in various places. But it doesn't cover all edge cases yet.
+
+The code could be improved. Pull requests welcome! As of now, it is based on these snippets, but that may change:
+
+* http://stackoverflow.com/questions/898669/how-can-i-detect-if-a-file-is-binary-non-text-in-python
+* http://stackoverflow.com/questions/1446549/how-to-identify-binary-and-text-files-using-python
+* http://code.activestate.com/recipes/173220/
+* http://eli.thegreenplace.net/2011/10/19/perls-guess-if-file-is-text-or-binary-implemented-in-python/
+
+Features
+--------
+
+Has tests for these file types:
+
+* Text: .txt, .css, .json, .svg, .js, .lua, .pl, .rst
+* Binary: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf, .woff, .rgb
+
+Has tests for numerous encodings.
+
+Why?
+----
+
+You may be thinking, "I can write this in 2 lines of code?!"
+
+It's actually not that easy. Here's a great article about how Perl's
+heuristic to guess file types works: http://eli.thegreenplace.net/2011/10/19/perls-guess-if-file-is-text-or-binary-implemented-in-python/
+
+And that's just where we started. Over time, we've found more edge cases and
+our heuristic has gotten more complex.
+
+Also, this package saves you from having to write and thoroughly test
+your code with all sorts of weird file types and encodings, cross-platform.
+
+Builds
+------
+
+Linux (Ubuntu 12.04 LTS Server Edition 64 bit):
+
+.. image:: https://img.shields.io/travis/audreyr/binaryornot/master.svg
+ :target: https://travis-ci.org/audreyr/binaryornot
+
+Windows (Windows Server 2012 R2 (x64)):
+
+.. image:: https://img.shields.io/appveyor/ci/audreyr/binaryornot/master.svg
+ :target: https://ci.appveyor.com/project/audreyr/binaryornot
+
+Credits
+-------
+
+* Special thanks to Eli Bendersky (@eliben) for his writeup explaining the heuristic and his implementation, which this is largely based on.
+* Source code from the portion of Perl's `pp_fttext` that checks for textiness: https://github.com/Perl/perl5/blob/v5.23.1/pp_sys.c#L3527-L3587
+
+
+
+
+History
+-------
+
+0.4.4 (2017-04-13)
+~~~~~~~~~~~~~~~~~~
+
+* Notify users for file i/o issues. Thanks @lukehinds!
+
+
+0.4.3 (2017-04-13)
+~~~~~~~~~~~~~~~~~~
+
+* Restricted chardet to anything 3.0.2 or higher due to https://github.com/chardet/chardet/issues/113. Thanks @dan-blanchard for the quick fix!
+
+0.4.2 (2017-04-12)
+~~~~~~~~~~~~~~~~~~
+
+* Restricted chardet to anything under 3.0 due to https://github.com/chardet/chardet/issues/113
+* Added pyup badge
+* Added utilities for pushing new versions up
+
+0.4.0 (2015-08-21)
+~~~~~~~~~~~~~~~~~~
+
+* Enhanced detection for some binary streams and UTF texts. (#10, 11) Thanks `@pombredanne`_.
+* Set up Appveyor for continuous testing on Windows. Thanks `@pydanny`_.
+* Update link to Perl source implementation. (#9) Thanks `@asmeurer`_ `@pombredanne`_ `@audreyr`_.
+* Handle UnicodeDecodeError in check. (#12) Thanks `@DRMacIver`_.
+* Add very simple Hypothesis based tests. (#13) Thanks `@DRMacIver`_.
+* Use setup to determine requirements and remove redundant requirements.txt. (#14) Thanks `@hackebrot`_.
+* Add documentation status badge to README.rst. (#15) Thanks `@hackebrot`_.
+* Run tox in travis.yml. Add pypy and Python 3.4 to tox environments. (#16) Thanks `@hackebrot`_ `@pydanny`_.
+* Handle LookupError when detecting encoding. (#17) Thanks `@DRMacIver`_.
+
+
+.. _`@pombredanne`: https://github.com/pombredanne
+.. _`@pydanny`: https://github.com/pydanny
+.. _`@asmeurer`: https://github.com/asmeurer
+.. _`@audreyr`: https://github.com/audreyr
+.. _`@DRMacIver`: https://github.com/DRMacIver
+.. _`@hackebrot`: https://github.com/hackebrot
+
+0.3.0 (2014-05-05)
+~~~~~~~~~~~~~~~~~~
+
+* Include tests, docs in source package. (#6) Thanks `@vincentbernat`_.
+* Drop unnecessary shebangs and executable bits. (#8) Thanks `@scop`_.
+* Generate string of printable extended ASCII bytes only once. (#7) Thanks `@scop`_.
+* Make number of bytes to read parametrizable. (#7) Thanks `@scop`_.
+
+.. _`@vincentbernat`: https://github.com/vincentbernat
+.. _`@scop`: https://github.com/scop
+
+0.2.0 (2013-09-22)
+~~~~~~~~~~~~~~~~~~
+
+* Complete rewrite of everything. Thanks `@ncoghlan`_.
+
+.. _`@ncoghlan`: https://github.com/ncoghlan
+
+0.1.1 (2013-08-17)
+~~~~~~~~~~~~~~~~~~
+
+* Tests pass under Python 2.6, 2.7, 3.3, PyPy.
+
+
+0.1.0 (2013-08-17)
+~~~~~~~~~~~~~~~~~~
+
+* First release on PyPI.
+
+
diff --git a/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/METADATA b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/METADATA
new file mode 100644
index 0000000000..cabfe74587
--- /dev/null
+++ b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/METADATA
@@ -0,0 +1,175 @@
+Metadata-Version: 2.0
+Name: binaryornot
+Version: 0.4.4
+Summary: Ultra-lightweight pure Python package to check if a file is binary or text.
+Home-page: https://github.com/audreyr/binaryornot
+Author: Audrey Roy Greenfeld
+Author-email: aroy@alum.mit.edu
+License: BSD
+Keywords: binaryornot
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: BSD License
+Classifier: Natural Language :: English
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Requires-Dist: chardet (>=3.0.2)
+
+=============================
+BinaryOrNot
+=============================
+
+.. image:: https://img.shields.io/pypi/v/binaryornot.svg?style=flat
+ :target: https://pypi.python.org/pypi/binaryornot
+
+.. image:: https://readthedocs.org/projects/binaryornot/badge/?version=latest
+ :target: http://binaryornot.readthedocs.io/en/latest/?badge=latest
+ :alt: Documentation Status
+
+
+.. image:: https://pyup.io/repos/github/audreyr/binaryornot/shield.svg
+ :target: https://pyup.io/repos/github/audreyr/binaryornot/
+ :alt: Updates
+
+Ultra-lightweight pure Python package to guess whether a file is binary or text,
+using a heuristic similar to Perl's `pp_fttext` and its analysis by @eliben.
+
+* Free software: BSD license
+* Documentation: https://binaryornot.readthedocs.io
+
+Status
+------
+
+It works, and people are using this package in various places. But it doesn't cover all edge cases yet.
+
+The code could be improved. Pull requests welcome! As of now, it is based on these snippets, but that may change:
+
+* http://stackoverflow.com/questions/898669/how-can-i-detect-if-a-file-is-binary-non-text-in-python
+* http://stackoverflow.com/questions/1446549/how-to-identify-binary-and-text-files-using-python
+* http://code.activestate.com/recipes/173220/
+* http://eli.thegreenplace.net/2011/10/19/perls-guess-if-file-is-text-or-binary-implemented-in-python/
+
+Features
+--------
+
+Has tests for these file types:
+
+* Text: .txt, .css, .json, .svg, .js, .lua, .pl, .rst
+* Binary: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf, .woff, .rgb
+
+Has tests for numerous encodings.
+
+Why?
+----
+
+You may be thinking, "I can write this in 2 lines of code?!"
+
+It's actually not that easy. Here's a great article about how Perl's
+heuristic to guess file types works: http://eli.thegreenplace.net/2011/10/19/perls-guess-if-file-is-text-or-binary-implemented-in-python/
+
+And that's just where we started. Over time, we've found more edge cases and
+our heuristic has gotten more complex.
+
+Also, this package saves you from having to write and thoroughly test
+your code with all sorts of weird file types and encodings, cross-platform.
+
+Builds
+------
+
+Linux (Ubuntu 12.04 LTS Server Edition 64 bit):
+
+.. image:: https://img.shields.io/travis/audreyr/binaryornot/master.svg
+ :target: https://travis-ci.org/audreyr/binaryornot
+
+Windows (Windows Server 2012 R2 (x64)):
+
+.. image:: https://img.shields.io/appveyor/ci/audreyr/binaryornot/master.svg
+ :target: https://ci.appveyor.com/project/audreyr/binaryornot
+
+Credits
+-------
+
+* Special thanks to Eli Bendersky (@eliben) for his writeup explaining the heuristic and his implementation, which this is largely based on.
+* Source code from the portion of Perl's `pp_fttext` that checks for textiness: https://github.com/Perl/perl5/blob/v5.23.1/pp_sys.c#L3527-L3587
+
+
+
+
+History
+-------
+
+0.4.4 (2017-04-13)
+~~~~~~~~~~~~~~~~~~
+
+* Notify users for file i/o issues. Thanks @lukehinds!
+
+
+0.4.3 (2017-04-13)
+~~~~~~~~~~~~~~~~~~
+
+* Restricted chardet to anything 3.0.2 or higher due to https://github.com/chardet/chardet/issues/113. Thanks @dan-blanchard for the quick fix!
+
+0.4.2 (2017-04-12)
+~~~~~~~~~~~~~~~~~~
+
+* Restricted chardet to anything under 3.0 due to https://github.com/chardet/chardet/issues/113
+* Added pyup badge
+* Added utilities for pushing new versions up
+
+0.4.0 (2015-08-21)
+~~~~~~~~~~~~~~~~~~
+
+* Enhanced detection for some binary streams and UTF texts. (#10, 11) Thanks `@pombredanne`_.
+* Set up Appveyor for continuous testing on Windows. Thanks `@pydanny`_.
+* Update link to Perl source implementation. (#9) Thanks `@asmeurer`_ `@pombredanne`_ `@audreyr`_.
+* Handle UnicodeDecodeError in check. (#12) Thanks `@DRMacIver`_.
+* Add very simple Hypothesis based tests. (#13) Thanks `@DRMacIver`_.
+* Use setup to determine requirements and remove redundant requirements.txt. (#14) Thanks `@hackebrot`_.
+* Add documentation status badge to README.rst. (#15) Thanks `@hackebrot`_.
+* Run tox in travis.yml. Add pypy and Python 3.4 to tox environments. (#16) Thanks `@hackebrot`_ `@pydanny`_.
+* Handle LookupError when detecting encoding. (#17) Thanks `@DRMacIver`_.
+
+
+.. _`@pombredanne`: https://github.com/pombredanne
+.. _`@pydanny`: https://github.com/pydanny
+.. _`@asmeurer`: https://github.com/asmeurer
+.. _`@audreyr`: https://github.com/audreyr
+.. _`@DRMacIver`: https://github.com/DRMacIver
+.. _`@hackebrot`: https://github.com/hackebrot
+
+0.3.0 (2014-05-05)
+~~~~~~~~~~~~~~~~~~
+
+* Include tests, docs in source package. (#6) Thanks `@vincentbernat`_.
+* Drop unnecessary shebangs and executable bits. (#8) Thanks `@scop`_.
+* Generate string of printable extended ASCII bytes only once. (#7) Thanks `@scop`_.
+* Make number of bytes to read parametrizable. (#7) Thanks `@scop`_.
+
+.. _`@vincentbernat`: https://github.com/vincentbernat
+.. _`@scop`: https://github.com/scop
+
+0.2.0 (2013-09-22)
+~~~~~~~~~~~~~~~~~~
+
+* Complete rewrite of everything. Thanks `@ncoghlan`_.
+
+.. _`@ncoghlan`: https://github.com/ncoghlan
+
+0.1.1 (2013-08-17)
+~~~~~~~~~~~~~~~~~~
+
+* Tests pass under Python 2.6, 2.7, 3.3, PyPy.
+
+
+0.1.0 (2013-08-17)
+~~~~~~~~~~~~~~~~~~
+
+* First release on PyPI.
+
+
diff --git a/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/RECORD b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/RECORD
new file mode 100644
index 0000000000..ce88709fdf
--- /dev/null
+++ b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/RECORD
@@ -0,0 +1,9 @@
+binaryornot/__init__.py,sha256=XfSXEYNIhIlBmsiUBzn8nDNSUA-2P5iseHo6sD1ZlyE,80
+binaryornot/check.py,sha256=Doh9gd_DUYWdGpJ8CCMmu4A-bul3_kV3qnl4OsgDp10,756
+binaryornot/helpers.py,sha256=p6aDimVStPQKZeQNHKkQNneeD8jfT4qpm9hCiV_8jYU,4737
+binaryornot-0.4.4.dist-info/DESCRIPTION.rst,sha256=QGOp8ciWl3QJXmtUSCWTYNLFy4exWZ4IIieSuJ1YWmQ,5120
+binaryornot-0.4.4.dist-info/METADATA,sha256=ZbKKAHfl5XQchYqQmoQ6sE7ya3RfAyNBECqYmmtany8,5995
+binaryornot-0.4.4.dist-info/RECORD,,
+binaryornot-0.4.4.dist-info/WHEEL,sha256=o2k-Qa-RMNIJmUdIc7KU6VWR_ErNRbWNlxDIpl7lm34,110
+binaryornot-0.4.4.dist-info/metadata.json,sha256=MDiTh918QrO8YioOU2Rjh-6NO2xehibwl5nSc0NJWWg,1022
+binaryornot-0.4.4.dist-info/top_level.txt,sha256=xSk7ScGP__GIh_D2caJfJk0oRzgpyyqjWiozi5_nvms,12
diff --git a/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/WHEEL b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/WHEEL
new file mode 100644
index 0000000000..8b6dd1b5a8
--- /dev/null
+++ b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/WHEEL
@@ -0,0 +1,6 @@
+Wheel-Version: 1.0
+Generator: bdist_wheel (0.29.0)
+Root-Is-Purelib: true
+Tag: py2-none-any
+Tag: py3-none-any
+
diff --git a/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/metadata.json b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/metadata.json
new file mode 100644
index 0000000000..ac09fa3963
--- /dev/null
+++ b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/metadata.json
@@ -0,0 +1 @@
+{"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6"], "extensions": {"python.details": {"contacts": [{"email": "aroy@alum.mit.edu", "name": "Audrey Roy Greenfeld", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/audreyr/binaryornot"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "keywords": ["binaryornot"], "license": "BSD", "metadata_version": "2.0", "name": "binaryornot", "run_requires": [{"requires": ["chardet (>=3.0.2)"]}], "summary": "Ultra-lightweight pure Python package to check if a file is binary or text.", "version": "0.4.4"} \ No newline at end of file
diff --git a/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/top_level.txt b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/top_level.txt
new file mode 100644
index 0000000000..62c9ba1d6a
--- /dev/null
+++ b/third_party/python/binaryornot/binaryornot-0.4.4.dist-info/top_level.txt
@@ -0,0 +1 @@
+binaryornot