A Docker and AWS utility package
Project description
mypackage
A testing package for Digital Kites processes.
Installation
Make sure you have python and pip installed.
pip install mypackage
Usage
import mypackage obj = { app_ip:"x.x.x.x", // optional app_name:"your pm2 app name", // optional app_id: 1, // pm2 process id (optional) date: Math.floor(new Date().setHours(0, 0, 0, 0) / 1000), // your date epoch in seconds time: Math.floor(Date.now() / 1000), // your time epoch in seconds message: "some message",//your message status: "online", log_level:"info" //["fatal", "error", "warn","info","debug"] } mypackage.printMessage(obj)
How to include in your process:
//Note:Must include this in the first line of your file(which is started with pm2). //Note:Make sure this snippet runs in production envirnoment. const dk_logger = require('dk-logger'); dk_logger.setApiKey('YOUR API KEY'); });
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size way2package-19.2.3-py3-none-any.whl (2.0 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Close
Hashes for way2package-19.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21b8706bf542a0bf00b759ad60e685abcde4f90dfd4b0ad5d792f56cbfbcca87 |
|
MD5 | 1909b9161db62d3781c54a31c1b2fa28 |
|
BLAKE2-256 | a9e391b43fab9b004c1b346fa7b2d9459263da8684694b0d4ddcd9a5e74d3594 |