Observed since 20 Oct, 20:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
aegisblade
Deploy & run your code in a single function call.
Deploy & run your code in a single function call.
Read the docs »
Examples
·
Sign Up for an API Key
·
Report Bug
We recommend using virtualenv to create an isolated environment for your python application.
Install the python package as a dependency of your application.
$ pip install aegisblade
Or for python3:
pip3 install aegisblade
const {aegisblade} = require('aegisblade');
const os = require("os");
/**
* In this example the `helloWorld()` function will be run on a
* server using AegisBlade.
*/
async function helloWorld() {
console.log(`The server's hostname is ${os.hostname()}`);
return `Hello World from ${os.hostname()}`;
}
// Any target function to be run on AegisBlade must be exported.
module.exports = {helloWorld};
/**
* The `main()` function will run on your local machine
* and start the job running the `helloWorld()` function
* on a server using AegisBlade.
*/
async function main() {
let job = await aegisblade.run(helloWorld);
console.log(`Job Id: ${job.id}`);
console.log("Waiting for the job to finish running...");
let jobReturnValue = await job.getReturnValue();
let jobLogs = await job.getLogs();
console.log(`Job Return Value: ${jobReturnValue}`);
console.log(`Job Logs: ${jobLogs}`);
}
// Using the `require.main === module` idiom to only run main when this script
// is called directly is especially important when using AegisBlade to prevent
// infinite loops of jobs creating jobs.
if (require.main === module) {
(async () => {
try {
await main();
} catch (err) {
console.error(err);
}
})();
}
The official python organization will no longer support Python 2 following January 2020.
Due to it's popular usage though, we will likely continue to support a Python 2.7 client for the forseeable future.
AegisBlade - @aegisbladehq - welovedevs@aegisblade.com
Project Link: https://github.com/aegisblade/aegis-nodejs
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
requestsEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=2.7",
"evaluation": "NOT_EVALUATED"
} | requests (==2.20.1) | runtime |
typingEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=2.7",
"evaluation": "NOT_EVALUATED"
} | typing (==3.6.4) | runtime |
cloudpickleEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=2.7",
"evaluation": "NOT_EVALUATED"
} | cloudpickle (==1.2.2) | runtime |
bdist_wheel · 47.61 KB · Python py2
sdist · 23.47 KB · Python source
Observed since 20 Oct, 20:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:1ff69cb190fe6ced4dd98d9c322f65ead9b488f8e23fd5e7a3901233d23a4c60