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. (sent from cronjob)"

Python API

Example:

from najdisi_sms import SMSSender

sms = SMSSender('username', 'password')
sms.send(
    '031123456',
    'Pikica, rad te mam. (sent 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.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file najdisi-sms-0.3.2.tar.gz.

File metadata

  • Download URL: najdisi-sms-0.3.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for najdisi-sms-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e8c7f3e73e3851be164d6ced2ceea1430494480929b74a2f3d02141d66bca60f
MD5 62cfc993a1c4b54a1ca1c3a913f80614
BLAKE2b-256 fa97a57ada11030fa681c6c060b3e21943995bc93beb8d8d70801cfc2d314a6e

See more details on using hashes here.

Supported by

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