How to Run
from apirlpy import ratelimiter as APIRL
#Import the Function
# Checking rate limit for a specific IP
CoolDown=APIRL(IP_Adrs="127.0.0.1", #IP address ofthe Client
#_______________________________________________________________
Cleaning=False, #To Enable the Ip Address Cleaning
CleaningFreq=80,# The Frequency at which the cleaning shoudl occur
AutoUpdate=False, #If you want to update the Data only after a certain time to reduce I/O operations
UpdateFreq=70, #(value in sec) of auto update
CooldownTime=20, #Amount of time differnce the Clients last vist shoudld
# exced for the IP address cleaner to remove the data
# *** FOR JSON AND SQL Format only ***
#If passed to "no stograge" option then this arguments will not be passed to the ratelimiter
#_______________________________________________________________
AllowedFreq=8, #The Number of Fair attempts the Client can send the request to the server
ResetTime=8, # After the Client is denied the access , how much time
#they need to wait to get the access again
Filename="Test", # The file name to store the data
Format="sql", # The File extenstion type which the ratelimiter is going to use to store the data
# Extensions available are : sql to use sqllite , json to use json format and "None" for No storage option
# If nothing is mentioned then the data will not be stored
FolderPath=None # The path at which u want to store this results
)
if CoolDown == 1: #The Client can access the API
print( "You are a Valid user")
else: # the Request is denied
print( f"You need to wait {CoolDown}")
**This is a test code **
The Code Return
- 1 : Means the Client Can Access the API
- other than 1: Means the Client Need to wait for the access of the API
Metadata
Release files for apirlpy 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apirlpy-0.1.5.tar.gz | 8.2 kB | Without provenance | Details for apirlpy-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apirlpy-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for apirlpy-0.1.5-py3-none-any.whl |
Total release size: 18.7 kB
Release files / apirlpy-0.1.5.tar.gz
| Download URL | apirlpy-0.1.5.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad2e3fd144b9d6913cc387635729cbf5c423fd965a07d4a817a74507e9733392
|
|
BLAKE2b-256 checksum How to use checksums |
408fc20bee761d2b3b90704376841336937c93eafcc787ac7628260b96b764bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Release files / apirlpy-0.1.5-py3-none-any.whl
| Download URL | apirlpy-0.1.5-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
493d36dd3007e371af912df7edff72e402f099397dc8af75a1a9f2b7879d8af4
|
|
BLAKE2b-256 checksum How to use checksums |
c7a194ecd6ed869ca110311bf634ce2f98d94b949e4c993b46bae1dbebd50896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for apirlpy 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.