![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
needle-retries
Advanced tools
A module based on Needle and Retry to attempt a new request whenever it fails
Based on needle and retry, it allows to retry a fail attempt.
npm install needle-retries
Needle is a dependency of needle-retries so that by using this module, this should still work with the latest version of Needle.
var _needle = require('needle');
var needle = require('needle-retries')(_needle);
needle.get('http://stackoverflow.com/feeds', {needleRetry: {retries: 1, maxTimeout: 30*1000}}, function(err, response) {
console.log('response', response.body);
});
It's working with Promises too:
var _needle = require('needle');
var Promise = require('bluebird');
var needle = Promise.promisifyAll( require('needle-retries')(_needle) );
needle.requestAsync('get', 'http://stackoverflow.com/feeds', {needleRetry: {retries: 3}}).then(function(response) {
console.log('response', response.body);
}).catch(e => console.error('error', e));
Have a look at the respective doc pages for needle and retry for a list of available options.
It's not working with Streams, Pipes, ... and might never work. While a stream starts to send data at the beginning, a stream may fail also at any time, so that when it fails a full new request should be restarted. Obviously, this is not possible with this module.
Therefore, for Streams and Pipes, please use directly Needle (in the example above, you can access Needle through _needle
).
FAQs
A module based on Needle and Retry to attempt a new request whenever it fails
The npm package needle-retries receives a total of 0 weekly downloads. As such, needle-retries popularity was classified as not popular.
We found that needle-retries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.