![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.
@liteflow/service
Advanced tools
- [Installation](#installation) - [Service](#service) - [Task](#task) - [Event](#event)
npm install @liteflow/service
const Service = require('@liteflow/service')
const liteflow = new Service()
The service have to call liteflow.listenTask
to start listening for task to execute by passing an object containing the tasks' key and function.
liteflow.listenTask({
'TASK_1_KEY': (inputs) => {
// Function of the task 1
// Can directly throw error
if (inputs.foo === undefined) {
throw new Error('foo is undefined')
}
// Return an object
return { foo: inputs.a + 'bar' }
},
'TASK_2_KEY': async (inputs) => {
// Function of the task 2
// Return an Promise containing an object
const response = await fetch('...')
return response.json()
},
})
The task functions accept inputs
as parameter and returns the outputs
as object or Promise of object.
The task function can throw an Error in case of error. The lib will catch it and send it to the MESG Engine.
To emit an event, the service should call the liteflow.emitEvent
function with the event's key and event's data as parameters. This function returns a Promise
.
liteflow.emitEvent('EVENT_KEY', { foo: 'bar' })
FAQs
- [Installation](#installation) - [Service](#service) - [Task](#task)
The npm package @liteflow/service receives a total of 0 weekly downloads. As such, @liteflow/service popularity was classified as not popular.
We found that @liteflow/service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.