![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.
apex-lambda
Advanced tools
Node.js module that makes AWS Lambda's user experience a little nicer using promises.
The following example fetches some urls and reports the response status of each. The context is also passed, but is not shown here.
import λ from 'apex-lambda'
import axios from 'axios'
import 'babel-polyfill'
export default λ(e => {
console.log('fetching %d urls', e.urls.length)
return Promise.all(e.urls.map(async function(url){
console.log('fetching %s', url)
return {
status: (await axios.get(url)).status,
url
}
}))
})
Without apex-node it looks something like the following, as Lambda does not try/catch, and the Context provided has awkward method names that are not idiomatic.
import axios from 'axios'
import 'babel-polyfill'
// Vanilla Lambda function.
export default async function(e, ctx) {
console.log('fetching %d urls', e.urls.length)
try {
const res = await Promise.all(e.urls.map(async function(url){
console.log('fetching %s', url)
return {
status: (await axios.get(url)).status,
url
}
}))
ctx.succeed(res)
} catch (err) {
ctx.fail(err)
}
}
tjholowaychuk.com · GitHub @tj · Twitter @tjholowaychuk
FAQs
λ improves AWS Lambda's UX with promises
The npm package apex-lambda receives a total of 2 weekly downloads. As such, apex-lambda popularity was classified as not popular.
We found that apex-lambda 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.