semvec/pypi-packages huggingface dataset:
ratelim 0.1.6
Makes it easy to respect rate limits.
License: MIT

Ratelim
=======

Ratelim is a simple Python library that limits the number of times a function can be called during a time interval. It is particularly useful when using online APIs, which commonly enforce rate limits.

Features
--------

- Works in Py2 and Py3.
- Greedy and patient rate limiting.
- Preserves function signature.

Installation
------------

.. code-block:: bash

    $ pip install ratelim

Usage
-----

Say you want to call a function at most for ``n_calls`` during a ``n_seconds`` time interval.

.. code-block:: python

    # 10 times in 5 seconds
    @ratelim.greedy(10, 5)
    def hello():
        print("hello")


The ``greedy`` rate limiter calls does not delay any function call until it's really necessary.

In some scenarios, for example when crawling data from an API, you want to maximize the number
of calls you make and you want to avoid sending them in short sequence. To this aim, we can
use the ``patient`` rate limiter. It distributes calls evenly between each other.

.. code-block:: python

    # 10 times in 5 seconds
    # Gets called at most every 0.5 seconds
    @ratelim.patient(10, 5)
    def hello():
        print("hello")

LICENSE
-------

MIT.
PythonPi 1.0.2
Get the Value of Pi upto as many decimal places as needed
License: MIT
Keywords: pi maths

PythonPi
--------

Get the Value of Pi upto n decimal digits using this Python Script. Uses
the chudnovsky algorithm implemented using the Pyton Decimal Data Type.

Installation
^^^^^^^^^^^^

If you want to use this as a module, then you can use pip or just
download the script to your computer from here.

Using pip
'''''''''

::

    pip install PythonPi

Usage
^^^^^

Console Usage
'''''''''''''

Just run the file (if not installed using pip) or enter the following
command (if installed using pip):

::

    pythonpi

You can then use the Interactive Shell to do your calculations

API Usage
'''''''''

If you for some reason need the value of pi in your program then you can
use the module in the following way:

.. code:: python

    import PythonPi

    print(PythonPi.getValueOfPi(12)) #Upto 12 decimal places

About
^^^^^

Created By Pradipta Bora (geekpradd) using the Chudnovsky Algorithm. MIT
Licensed.