Skip to content
tboy1337Public

About

A cross-platform Python application with PySide GUI that allows sending free SMS messages to mobile phones worldwide.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

FreeSMS

FreeSMS Logo

A cross-platform Python application with PySide GUI that allows sending free SMS messages to mobile phones worldwide.

Python License Platform

Features

  • Free SMS Messaging: Send text messages to mobile phones around the world
  • Multiple API Integrations: Support for Twilio and TextBelt SMS gateways
  • Contact Management: Organize recipients with CSV import/export capability
  • Message Scheduling: Set up recurring messages with flexible scheduling options
  • Message Templates: Save and reuse common message formats
  • Message History: Track all sent messages with delivery status
  • Secure Storage: API credentials encrypted in SQLite using Fernet + OS keyring
  • Modern UI: Clean, intuitive PySide6 interface
  • Notifications: Desktop alerts via plyer with safe fallbacks
  • CLI Support: Command-line interface for scripting and automation
  • System Tray Integration: Run in the background with quick access
  • Cross-Platform: Works on Windows, macOS, and Linux

Setup Instructions

Prerequisites

  • Python 3.12 or higher
  • Git (for cloning the repository)

Installation

  1. Clone the repository

    git clone https://github.com/tboy1337/FreeSMS.git
    cd FreeSMS
  2. Install dependencies

    Recommended (editable install with console scripts):

    pip install -e .

    Or install from requirements files:

    pip install -r requirements.txt

    For development and testing:

    pip install -e ".[dev]"

    (or pip install -r requirements-dev.txt)

    After editable install, these commands are available:

    • freesms — launch GUI or CLI with optional --cli flag
    • freesms-cli — CLI only
    • freesms-gui — GUI only
  3. Register for SMS API services

  4. Configure the application

    You can configure the application in one of these ways:

    • Through the UI: Launch the app and enter your API keys in the Settings tab
    • Using environment variables:
      TWILIO_ACCOUNT_SID=your_account_sid
      TWILIO_AUTH_TOKEN=your_auth_token
      TWILIO_PHONE_NUMBER=your_twilio_phone_number
      TEXTBELT_API_KEY=your_textbelt_api_key
      
    • Using a .env file: Create a .env file in the project root with the above variables

    Twilio credentials stored in the app database use the from_number field (the TWILIO_PHONE_NUMBER environment variable maps to this automatically).

    Application data is stored under ~/.freesms/ (config, database, logs).

  5. Run the application

    freesms-gui

Command Line Interface

FreeSMS provides a CLI for automation and integration with other tools:

Basic Usage

Get help with available commands:

freesms-cli --help

Send a message directly from the command line:

freesms-cli send "+1234567890" "Hello from FreeSMS"

CLI Commands

  • Send Messages

    freesms-cli send RECIPIENT MESSAGE [--service SERVICE]
  • Manage Contacts

    freesms-cli contacts list
    freesms-cli contacts add NAME PHONE [--country COUNTRY] [--notes NOTES]
    freesms-cli contacts delete ID
  • View Message History

    freesms-cli history list [--limit LIMIT]
    freesms-cli history export OUTPUT_FILE [--limit LIMIT]
  • Schedule Messages

    freesms-cli schedule list [--all]
    freesms-cli schedule add RECIPIENT MESSAGE TIME [--service SERVICE] [--recurring {daily,weekly,monthly}] [--interval INTERVAL]
    freesms-cli schedule cancel ID
  • Manage Templates

    freesms-cli templates list
    freesms-cli templates add NAME CONTENT
    freesms-cli templates delete ID
  • Configure SMS Services

    freesms-cli services list
    freesms-cli services configure NAME CREDENTIALS
    freesms-cli services activate NAME
    freesms-cli services test [--name SERVICE]
  • Export/Import Contacts

    freesms-cli contacts export FILENAME
    freesms-cli contacts import FILENAME

Command Line Options

freesms --help
usage: freesms [-h] [--minimized] [--debug] [--config CONFIG] [--cli]

FreeSMS - Free SMS Messaging Application

optional arguments:
  -h, --help       Show this help message and exit
  --minimized      Start application minimized to system tray
  --debug          Enable debug logging
  --config CONFIG  Path to custom config file
  --cli            Run in command line mode

System Requirements

  • Python: 3.12 or higher
  • Disk Space: ~50MB for installation and databases
  • Memory: 100MB+ recommended

System Tray Support

  • Windows: No additional requirements
  • macOS: System tray via PySide6
  • Linux: May require additional packages for system tray integration

Usage Limitations

  • Twilio Free Trial:

    • Limited credits ($15-$20) for testing
    • Recipient phone numbers must be verified before messaging
    • Twilio branding on messages
  • TextBelt:

    • Free tier: 1 free SMS per day with API key
    • $0.05 per message after free quota
  • Rate Limiting:

    • Local daily send limits enforced per service based on daily_limit
    • Successful sends today are counted from message history before each send

Project Structure

FreeSMS/
├── .github/          # GitHub configuration (funding)
├── scripts/          # Development verification scripts
├── src/
│   ├── api/          # SMS service interfaces and implementations
│   ├── automation/   # Message scheduling and automation
│   ├── cli/          # Command line interface
│   ├── gui/          # User interface components
│   │   └── assets/   # Images and UI resources
│   ├── models/       # Data models and database interaction
│   ├── security/     # Encryption and input validation
│   ├── services/     # Application services
│   └── utils/        # Utility functions and helpers
├── tests/            # Unit and integration tests
├── LICENSE.md        # Commercial Restricted License
├── README.md         # This file
├── pyproject.toml    # Package metadata, console scripts, and tool configuration
├── requirements.txt  # Python dependencies
├── requirements-dev.txt
├── pytest.ini
├── mypy.ini
├── .coveragerc

Testing

Run the full local verification pipeline (formatting, security audit, lint, type check, tests):

py scripts/verify.py

Run the test suite with coverage:

pytest --cov=src tests/

GUI tests are marked with @pytest.mark.gui and can be selected or excluded:

pytest -m gui
pytest -m "not gui"

Run linting and type checks individually:

pylint src
mypy src

GUI icon assets (sms_icon.png, sms_icon.ico) are shipped in src/gui/assets/. To regenerate them after design changes, install dev dependencies and run:

py src/utils/icon_generator.py

Customization

  • Application Settings: ~/.freesms/config.json
  • Logs: ~/.freesms/logs/
  • Database: SQLite database at ~/.freesms/freesms.db

Legacy data from ~/.sms_sender/ or ~/.message_master/ is migrated automatically on first launch.

Security

API credentials are encrypted with Fernet before storage in SQLite. The encryption key is stored in the OS keyring (service: freesms).

  • No message content is sent to third-party servers except your configured SMS providers
  • Input validation on phone numbers and messages in GUI and CLI

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License note: This project uses the Commercial Restricted License (CRL). Contributions are accepted for non-commercial use under the same license terms. Commercial use requires a separate license — see LICENSE.md.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Acknowledgements

  • Twilio - SMS API provider
  • TextBelt - SMS API provider
  • All open-source packages listed in requirements.txt

License

This project is licensed under the Commercial Restricted License (CRL) - see the LICENSE.md file for details.

Contact

Project maintained by tboy1337

GitHub: https://github.com/tboy1337/FreeSMS

About

A cross-platform Python application with PySide GUI that allows sending free SMS messages to mobile phones worldwide.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Contributors

Languages