Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
aws-lambda-tensorflow
Advanced tools
A gulp plugin to deploy python tensorflow in aws lambda.
This plugin assumes you have aws-cli installed and configured with proper access rights to use aws lambda.
npm install --save-dev aws-lambda-tensorflow
'use strict';
//npm install --save gulp gulp-zip gulp-awslambda
const gulp = require('gulp');
const zip = require('gulp-zip');
const path = require('path');
const lambda = require('gulp-awslambda');
const aws_lamda_tensorflow = require('aws-lambda-tensorflow');
const lambda_params = {
FunctionName: 'mylambdafunction', /* Lambda function name */
Description: 'My tensorflow lambda function that adds two numbers', //Description for your lambda function
Handler: 'main.handler', //Assuming you will provide main.py file with a function called handler.
MemorySize: 128,
Runtime: 'python2.7',
Role : 'ROLE_STRING',//eg:'arn:aws:iam::[Account]:role/lambda_basic_execution'
Timeout: 10
};
gulp.task('default', () => {
return gulp.src(['main.py'])
.pipe(aws_lamda_tensorflow()) //Adds all the required files needed to run tensor flow in aws lambda
.pipe(zip('archive.zip'))
.pipe(lambda(lambda_params, {}))
.pipe(gulp.dest('dist'));
});
sample-tensorflow-aws-lambda
FAQs
A gulp plugin to deploy python tensorflow in aws lambda.
The npm package aws-lambda-tensorflow receives a total of 0 weekly downloads. As such, aws-lambda-tensorflow popularity was classified as not popular.
We found that aws-lambda-tensorflow 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.