Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

Tiny HTTP server and proxy. Written to test GWT apps such as samples/JSON. By default the JSON sample java reads JSON data from a local file (search-results.js) instead of actually hitting the 3rd party yahoo site. This server can serve the JSON sample and redirect requests to 3rd party sites ... [More] such as http://api.search.yahoo.com/. Based on code from http://effbot.org/librarybook/simplehttpserver.htm [Less]

0
 
  0 reviews  |  0 users  |  42 lines of code  |  0 current contributors  |  Analyzed 9 days ago
 
 

HighlightsHTTPConnectionPool and HTTPSConnectionPool - Thread-safe connection pooling and re-using. filepost - File posting! Supported implicitly by HTTPConnectionPool.post_url. (Optional) Automatically handles redirection and retries! New in 0.3: HTTP and HTTPS (SSL) support. For a description of ... [More] what's new in the latest version, visit the Downloads tab. What's wrong with urllib and urllib2?There are two critical features missing from the Python standard library: Connection re-using/pooling and file posting. It's not terribly hard to implement these yourself, but it's much easier to use a module that already did the work for you. The Python standard libraries urllib and urllib2 have little to do with each other. They were designed to be independent and standalone, each solving a different scope of problems, and urllib3 follows in a similar vein. Why do I want to reuse connections?Performance. When you normally do a urllib call, a separate socket connection is created with each request. By reusing existing sockets (supported since HTTP 1.1), the requests will take up less resources on the server's end, and also provide a faster response time at the client's end. With some simple benchmarks (see test/benchmark.py), downloading 15 URLs from google.com is about twice as fast when using HTTPConnectionPool (which uses 1 connection) than using plain urllib (which uses 15 connections). This library is perfect for... Talking to an API Crawling a website Any situation where being able to post files, handle redirection, and retrying is useful. It's relatively lightweight, so it can be used for anything! ExamplesGo to the Examples wiki for more nice syntax-highlighted examples. But, long story short, import urllib3 # (Version 0.3) API_URL = 'http://ajax.googleapis.com/ajax/services/search/web' http_pool = urllib3.connection_from_url(API_URL) fields = {'v': '1.0', 'q': 'urllib3'} r = http_pool.get_url(API_URL, fields) print r.status, r.data [Less]

0
 
  0 reviews  |  0 users  |  341 lines of code  |  0 current contributors  |  Analyzed about 1 month ago
 
 

pygtk-download-lib is a downloader library that fills a gtk.ProgressBar_ when it is downloading.

0
 
  0 reviews  |  0 users  |  0 current contributors
 
 

方便脚本,机器人模拟用户登录时处理验证码的小工具,用户手工输入验证码,而非破解验证码,达到机器人登录的工具。 代码见downloads下的autoloadinglogin.py,代码的main函数是测试方法,模拟用户注册鲜果。

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed 7 days ago
 
 

e-Allert is an application that send information about Climatic catastrophes to an appengine site, wich can be monitored to take some action. The server is based on Google App Engine and is in the eallert directory. The site is: http://eallert.appspot.com The client is based on Nokia S60 using ... [More] the Python programming language and is in the eallertS60_3rdEd. It sends the GPS position if possible, take a photo or send an picture stored in the phone. (At this moment you need to know where the picture is and type the location in the appropriated field). To test the client with the local appengine server is necessary to change the server and port configurations in the client. [Less]

0
 
  0 reviews  |  0 users  |  2,927 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 

Shotscreens allows you share your desktop content easily. Just press hotkey, snap picture or video and get a link to result in your clipboard. Shotscreens can send captured content to our own image/video hosting (simple registration at start needed), Youtube, Picasa, your local filesystem. Or you ... [More] can develop your own plugin. Shotscreens is open-source program and distributed under GPL license. All its modules (except video recording) implemented on Python programming language. We use some 3rdparty libraries, install them if you want to play with sources. Video recording is implemented with help of ffmpeg and there is python bindings to video functionality. Technologies: Python, Google App Engine, wxPython, ffmpeg, gdata API. For UsersNow only Windows platform is supported. To start work you need following: Download binary from http://shotscreens.googlecode.com/files/Shotscreens.exe Run shotscreens.exe, you may use shotscreens hosting or Youtube/picasa/local filesystem storage. Select appropriate hoster in Settings menu. Press F11 (this key is used by default) and capture interesting piece of your desktop by mouse. Then just press Send button in menu. You can also get a trick from video on main page of http://shotscreens.appspot.com For developersShotscreens has plugin system which allows to implement your own plugin for uploading content to your image/video hosting or on FTP for instance. Get the sources here: http://code.google.com/p/shotscreens/source/checkout Plugin interface is in uploader.py. Subclass from Uploader and override functions needed. For example you can look at Shotscreens hosting plugin [Less]

0
 
  0 reviews  |  0 users  |  2,177 lines of code  |  0 current contributors  |  Analyzed about 12 hours ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.