Skip to main content

Class used to manage a specific request to a endpoint, and try again if specific errors appear

Project description

Goal 🎯

Project Request Manager🚀

This project has the primary goal of manage requisitions to a specific endpoint and treat different errors from the lib requests. The class will try a couple of times until the result is the wanted response or it hits the maximum number of tries

Used technologies 💻

* Requests
* Python

Installation ⚙

To run the project, follow the next steps

  • Intall virtualenv
pip install virtualenv
  • Create a virtual enviroment
virtualenv venv 
  • Enter the virtual enviroment
venv/Scripts/activate

Implementing the class

Import the class to your project and add it as a super class or create a object from the class

from request_manager.manager import RequestManager

class my_class(RequestManager):
    def __init__(self):
        super(my_class, self).__init__()
from request_manager.manager import RequestManager

object = RequestManager()
object.send_requisitons_request()

Files Structure

Librarys📚

request

Class used to make requests using the urllib as a basic manager

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

request_manager_attenuare-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

request_manager_attenuare-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file request_manager_attenuare-0.0.1.tar.gz.

File metadata

File hashes

Hashes for request_manager_attenuare-0.0.1.tar.gz
Algorithm Hash digest
SHA256 50530b6f680f918ed774e240b46e282574e7fb142f85e6d18b2fb2fe8ff10ced
MD5 e2c364fbfc7667a6126448d6c6ba12dd
BLAKE2b-256 b123a8cd7317340cf589ba34d21ae5ff9e0506477a83ad3dd934d4c38d3a0068

See more details on using hashes here.

File details

Details for the file request_manager_attenuare-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for request_manager_attenuare-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9a3ce1580b113a0f3160837d0934fd56f4dc5e1831bc8cb64898290c4251c1
MD5 331b91e53d2b43cee2548dfe367cb625
BLAKE2b-256 e7a1e6bde1589690bb7b477e43e950764647509304acd15d26a95a9863530ab4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page