![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.
@venzee/dynamo_streams
Advanced tools
NodeJs Stream wrappers around DynamoDB requests.
npm i -S @venzee/dynamo_streams
You can inject DocumentClient instances or DynamoDB instances. The stream uses calls the query method of the injected client with the provided params. The stream handles pagination and will emit all items found that match the provided query.
See the documentation for DynamoDB and DocumentClient for more info;
const client = new AWS.DynamoDB.DocumentClient();
const queryStream = require( '@venzee/dynamo_streams/query' )( client, params );
queryStream
.on( 'data', doStuffWithData)
.on( 'error', handleError);
Same behavior as a QueryStream, except we are streaming scan
results, not query
results.
When query or scan return errors, the 'error' event raised by the stream includes the error raised by the method as well as the parameters used to last invoke the method. This allows client code to retry using custom retry logic, for example.
function runQuery( params, doStuffWithData, onQueryRun ){
const client = new AWS.DynamoDB.DocumentClient();
const queryStream = require( '@venzee/dynamo_streams/query' )( client, params );
queryStream
.on( 'data', doStuffWithData)
.on( 'error', onQueryRun )
.on( 'finish', onQueryRun );
}
function onQueryRun( err ){
if( err ){
const { error, queryParameters } = err;
if( error.code === 'ProvisionedThroughputExceededException' ) return setTimeout( runQuery, 1000, queryParameters, doStuffWithData, onQueryRun );
return handleError( error );
}
}
FAQs
Venzee Streaming tools for DynamoDB access
The npm package @venzee/dynamo_streams receives a total of 1 weekly downloads. As such, @venzee/dynamo_streams popularity was classified as not popular.
We found that @venzee/dynamo_streams 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.