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

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.2.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for najdisi-sms-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cc3c2590ba46a8cc235196675ca6dc23880af6ce4c56ee33f049c54e099b2817
MD5 38f3b9c9e35e62dce7b921847491e90d
BLAKE2b-256 92ce0d6cdedb08f8e894d735596a9e84a1b684b200dc15a0b1cdef355f9bdfd7

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