Skip to main content

Adds hang protection and retries to mechanize

Project description

Copyright (C) 2018 Cisco Systems Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Description: # mechanizeretry

Add hang protection and retries to mechanize operations

## Getting Started

Install using pip or easy_install:

pip install mechanizeretry

easy_install mechanizeretry

## Prerequisites

This project requires mechanize.

## Usage Example

python import mechanize from mechanizeretry import RetryBrowser

browser = RetryBrowser() browser.set_handle_equiv(True) browser.set_handle_redirect(True) browser.set_handle_referer(True) browser.set_handle_robots(False) browser.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1) browser.open(’http://server:8080/v1/api/endpoint’, retries=5, delay=15, timeout=30)

Keywords: mechanize,retry Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Description-Content-Type: text/markdown

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

mechanizeretry-1.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distributions

mechanizeretry-1.6-py2.7.egg (3.9 kB view details)

Uploaded Source

mechanizeretry-1.6-py2-none-any.whl (4.7 kB view details)

Uploaded Python 2

File details

Details for the file mechanizeretry-1.6.tar.gz.

File metadata

  • Download URL: mechanizeretry-1.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/0.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.11

File hashes

Hashes for mechanizeretry-1.6.tar.gz
Algorithm Hash digest
SHA256 ee4063a6b2a5e6f98d8b741a9e25c1501eeee7b58dba7f7f3f7d874c18cafd06
MD5 8d07a5f8b9050dc49b6a3ca1625c5a1b
BLAKE2b-256 eef1d66f59e5434ef6feafe2234427ff8a0e9327e2aa8b0c2efe9af2c9d0661f

See more details on using hashes here.

File details

Details for the file mechanizeretry-1.6-py2.7.egg.

File metadata

  • Download URL: mechanizeretry-1.6-py2.7.egg
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/0.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.11

File hashes

Hashes for mechanizeretry-1.6-py2.7.egg
Algorithm Hash digest
SHA256 229446dba717659a2e44c8a9e948422444de3a221e316d4d94e887da6c8f21b3
MD5 00acb6779c6f2b76919380aa3ee1c18f
BLAKE2b-256 42912bff21c3a595a889ccfbc85cd31479654d2472f3b44712870f602b6221b1

See more details on using hashes here.

File details

Details for the file mechanizeretry-1.6-py2-none-any.whl.

File metadata

  • Download URL: mechanizeretry-1.6-py2-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/0.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.11

File hashes

Hashes for mechanizeretry-1.6-py2-none-any.whl
Algorithm Hash digest
SHA256 8178e1f45693276550136319587c63fa69cceae62acbe3c05c84e76b9e095587
MD5 edb43fa9a20f0ce035892aa39f84ce82
BLAKE2b-256 2bba0b31cdfa0e367dc9c1fb629a351f5e1b504ac973b673dba5ba0bb1e58584

See more details on using hashes here.

Supported by

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