psnotify

1.0.0 • Public • Published

Paperspace SMS Notification

A small library that uses Twilio to send an SMS when a job finishes running in Paperspace.

Usage

  1. Install the package. You should also have the Paperpsace API installed.
npm install -g psnotify
  1. Sign up for Twilio. You will need to get a number(cost = $1) and Token and Auth Keys for your account.

  2. Config psnotify, run:

psnotify config

  1. Run a Paperspace Job and enable psnotify
paperspace jobs create --container Test-Container --machineType C2 --command 'ls' --project 'Traininig takes time'

Once your job is running you will get a jobId, use that as the argument to enable the notification.

psnotify YOUR_JOB_ID
  1. Get an SMS when your job is ready!

If you have not set up your Paperspace account, psnotify will prompt you to do so. You can also set up Twilio credentials like this:

psnotify twilio --accountSid XXX --authToken YYY --toNumber +123456789 --fromNumber +123456789

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i psnotify

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

121 kB

Total Files

7

Last publish

Collaborators

  • cvalenzuela