• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux urllib3 Download

urllib3

November 25, 2008
A HTTP library featuring file post capability and a connection pooling system that ensures thread safety.
Version 0.2
License MIT/X Consortium License
Platform Linux
Supported Languages English
Homepage code.google.com
Developed by Andrey Petrov
If you're looking for a Python HTTP library that supports thread-safe connection pooling and file post support, look no further than urllib3. This library has many highlights, including re-using the same socket connection for multiple requests through HTTPConnectionPool. Additionally, urllib3 supports file posting with its encode_multipart_formdata functionality, and has built-in redirection and retries (optional). Perhaps most importantly, urllib3 is thread-safe, allowing you to run concurrent requests without worrying about data races or other concurrency issues.

So why choose urllib3 over Python's standard libraries urllib and urllib2? There are two main reasons: connection re-using/pooling and file posting. These features are missing from the standard libraries, making it much easier to use a module like urllib3 instead of implementing these functionalities yourself. Moreover, the standard libraries were designed to be independent and standalone, whereas urllib3 follows in a similar vein, meaning you can use it for a variety of situations where being able to post files, handle redirection, and retrying is useful.

One key benefit of re-using connections is improved performance. When you use a separate socket connection for each urllib call, you significantly increase the amount of resources required on the server's end, and decrease response times at the client's end. However, by reusing existing sockets (supported since HTTP 1.1), you can reduce the number of requests and use resources more efficiently. With some simple benchmarks conducted in the test/benchmark.py script, you can see that downloading 15 URLs from Google.com is about twice as fast when using HTTPConnectionPool with 1 connection, compared to using plain urllib with 15 connections.

Overall, this library is perfect for anyone who needs to talk to an API, crawl a website, or any situation where reusing connections, handling file posting, redirections, and retries is useful. It's also relatively lightweight, so it can be used for anything you need! If you need help getting started, you can go to the Examples wiki for even more syntax-highlighted examples. But to give you a taste, here's a short snippet:

from urllib3 import HTTPConnectionPool
API_URL = ''
http_pool = HTTPConnectionPool.from_url(API_URL)
fields = {'v': '1.0', 'q': 'urllib3'}
r = http_pool.get_url(API_URL, fields)
print(r.status, r.data)

This code shows you how easy it is to make a request to an API with urllib3. By creating an HTTPConnectionPool with the desired URL, you can then specify fields to send to the server and retrieve a response. It's that simple!
What's New

Version 0.2: N/A

Free Download 7.9K
326
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

bMotion
bMotion is a software that uses AI to enhance eggdrop bots on ...
Timer Applet
Timer Applet for GNOME panel is a countdown timer software with translations ...
Mures
Mures is a multi-platform replica of the popular "Chu Chu Rocket" game ...
amaroK Now-Webing
Amarok's Now-Webing feature launches a web server on a customizable port (default ...
ScaleDir
ScaleDir is a handy Kommander Script that allows for quick batch resizing ...
Scriptio
Scriptio is an open-source platform that enables the creation of dynamic educational ...
Net::Google::PicasaWeb
The Picasa Web API, provided by Google, enables developers to access and ...
Mai App
My AI is a software designed to simulate human intelligence, including natural ...
Rsync Vault Manager
This software employs rsync to handle archives of clients stored in more ...
KDVD-RAM Extended Properties
KDVD-RAM Extended Properties is a Kommander script that simplifies the process of ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.