/usr/lib/python3/dist-packages/librecaptcha-0.4.0.egg-info/PKG-INFO is in python3-librecaptcha 0.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | Metadata-Version: 1.1
Name: librecaptcha
Version: 0.4.0
Summary: A free/libre interface for solving reCAPTCHA challenges.
Home-page: https://github.com/nickolas360/librecaptcha
Author: nickolas360
Author-email: contact@nickolas360.com
License: GNU General Public License v3 or later (GPLv3+)
Description-Content-Type: UNKNOWN
Description: librecaptcha
============
Version 0.4.0
librecaptcha is a free/libre program and library that allows you to solve
`reCAPTCHA`_ challenges.
*This does not automatically solve challenges. It provides an interface through
which a human can solve them.*
.. _reCAPTCHA: https://en.wikipedia.org/wiki/ReCAPTCHA
Installation
------------
From PyPI
~~~~~~~~~
Install with `pip`_::
sudo pip3 install librecaptcha
To install locally, run without ``sudo`` and add the ``--user`` option.
From the Git repository
~~~~~~~~~~~~~~~~~~~~~~~
Clone the repository with the following commands (you’ll need to have `Git`_
installed)::
git clone https://github.com/nickolas360/librecaptcha
cd librecaptcha
Then install with `pip`_::
sudo pip3 install .
Alternatively, you can run::
sudo ./setup.py install
With either command, to install locally, run without ``sudo`` and add the
``--user`` option.
Run without installing
~~~~~~~~~~~~~~~~~~~~~~
Run the first set of commands in the previous section to clone the repository.
Then, install the required dependencies by running::
sudo pip3 install -r requirements.txt
To install the dependencies locally, run without ``sudo`` and add the
``--user`` option.
.. _pip: https://pip.pypa.io
.. _Git: https://git-scm.com
Usage
-----
If you installed librecaptcha, you can simply run ``librecaptcha``.
Otherwise, run ``./librecaptcha.py``. This will show usage information.
To use librecaptcha programmatically, import it::
from librecaptcha import get_token
and then call the ``get_token()`` function. Its signature is::
get_token(api_key, site_url, debug=False, user_agent=None)
Parameters:
* ``api_key`` (str): The reCAPTCHA API key to use.
* ``site_url`` (str): The base URL of the site that contains the reCAPTCHA
challenge. This should start with ``http://`` or ``https://`` and include the
hostname, but nothing else. For example, ``https://example.com``.
* ``debug`` (bool): Whether or not to print debug information.
* ``user_agent`` (str): The user-agent string to use. If not specified, a
random one will be used.
Returns (str): A reCAPTCHA token. This should usually be submitted with the
form as the value of the ``g-recaptcha-response`` field. (Note: These tokens
usually expire after a couple of minutes.)
What’s new
----------
Version 0.4.0:
* Image windows are now automatically closed when questions are answered.
Version 0.3.x:
* Fixed possible encoding issue in ``setup.py``.
* librecaptcha can now be installed from PyPI, or from the Git repository with
pip or ``setup.py``.
Version 0.2.x:
* Updated user-agent list.
* The current reCAPTCHA version is now fetched during initialization and no
longer needs to be manually updated.
Dependencies
------------
* `Python`_ ≥ 3.4
* The following Python packages (the installation instructions above handle
installing these):
- `Pillow`_ ≥ 4.1.1
- `requests`_ ≥ 2.18.1
- `slimit`_ ≥ 0.8.1
.. _Python: https://www.python.org/
.. _Pillow: https://pypi.python.org/pypi/Pillow/
.. _requests: https://pypi.python.org/pypi/requests/
.. _slimit: https://pypi.python.org/pypi/slimit/
License
-------
librecaptcha is licensed under the GNU General Public License, version 3 or
any later version. See `LICENSE`_.
This README file has been released to the public domain using `CC0`_.
.. _LICENSE: https://github.com/nickolas360/librecaptcha/blob/master/LICENSE
.. _CC0: https://creativecommons.org/publicdomain/zero/1.0/
Keywords: captcha recaptcha
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Internet
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
|