Skip to main content

Najdi.si sms command line sender

Project description

Command line utility to send automated sms through Slovenian Najdi.si service (40 sms per day for free).

How to use

Installation

From pypi

You need the python-pip package and super user access to install system wide:

pip install najdisi-sms

You can also install the package in virtualenv:

virtualenv venv
source venv/bin/activate
pip install najdisi-sms

The CLI command can be found in “venv/bin/najdisi-sms” and you can add it to you PATH or call it directly.

From source

You can install the package systemwide with (you need su access):

make install
#or
pip install .

You can also install the requirements with:

pip install -r requirements.txt

If you dont want/have super user access, you can install it in a python virtual env in the root folder call:

virtualenv venv
source venv/bin/activate
pip install .

The CLI command can be found in “venv/bin/najdisi-sms” and you can add it to you PATH or call it directly.

Standalone CLI command

Usage: najdisi-sms -u username -p password  RECEIVER_NUM  MESSAGE

Options:
  -h, --help            show this help message and exit
  -u USERNAME, --username=USERNAME
                        Username
  -p PASSWORD, --password=PASSWORD
                        Password
  -A USERAGENT, --useragent=USERAGENT
                        HTTP User Agent

Example:

najdisi-sms -u brodul -p FUBAR_PASS 031123456 "Pikica, rad te mam. (send from cronjob)"

Python API

Example:

from najdisi_sms import SMSSender

sms = SMSSender('username', 'password')
sms.send(
    '031123456',
    'Pikica, rad te mam. (send from cronjob)'
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

najdisi-sms-0.3.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page