Skip to main content

Chromastone SMS App

Chromastone is a Python application designed to simplify the process of sending SMS messages. Utilizing a straightforward API, Chromastone ensures that destination numbers are validated and messages are efficiently delivered while adhering to specified constraints.

Features

  • Validation of destination numbers to ensure they are in international format without the '+' prefix.
  • Enforcement of message length to not exceed 100 characters.
  • Easy integration with existing Python applications.

Installation

To use Chromastone, you need to install the required dependencies first. It is recommended to use a virtual environment:

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

After activating the virtual environment, install the dependencies:

pip install requests pydantic

Configuration

Before you can start sending SMS messages, ensure you have an API key from the SMS service provider. You will need to replace 'your_api_key_here' in the code with your actual API key.

Usage

To send an SMS using Chromastone, instantiate the Chromastone class with your API key and call the send_sms method with the source number, destination number, and message:

from chromastone import Chromastone

chromastone = Chromastone(api_key='your_api_key_here')
chromastone.send_sms(source_number='1234567890', destination_number='263771123456', message='Hello, world!')

Ensure the destination number is in the correct format and the message does not exceed 100 characters.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributions

Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.

Acknowledgments

  • Thanks to the Pydantic library for providing robust data validation.
  • Gratitude to the Requests library for simplifying HTTP requests in Python.

Metadata

Release files for chromastone 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chromastone 0.2.6
File Size Uploaded Provenance Actions
chromastone-0.2.6.tar.gz 4.2 kB Without provenance Details for chromastone-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chromastone 0.2.6
File Interpreter ABI Platform Actions
chromastone-0.2.6-py3-none-any.whl Python 3 none any Details for chromastone-0.2.6-py3-none-any.whl

Total release size: 10.2 kB

Release files / chromastone-0.2.6.tar.gz

Download URL chromastone-0.2.6.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8de2cce1c363136163241c4de5a7accfb0f4eba4d9220d42f66c727488176aaa
BLAKE2b-256 checksum
How to use checksums
fd80fde3ec1bc91f8ed6e15880b821f02ceeb6b2b3cd3256eb6972ae76f79a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release files / chromastone-0.2.6-py3-none-any.whl

Download URL chromastone-0.2.6-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51621f07867027451453291215cb859755402d1619b3a56b9e2af538578c9fa0
BLAKE2b-256 checksum
How to use checksums
a9ae672648d99f452f74ab73e6b553609257f9098c855e86f1566cfd2e52fcef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Security for chromastone 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page