{"id":19293985,"url":"https://github.com/igrishaev/littlesms-python","last_synced_at":"2026-03-02T11:02:32.576Z","repository":{"id":3981575,"uuid":"5077355","full_name":"igrishaev/littlesms-python","owner":"igrishaev","description":"API client class for LittleSMS.ru service","archived":false,"fork":false,"pushed_at":"2012-07-18T03:40:14.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T00:26:02.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igrishaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-17T04:40:06.000Z","updated_at":"2017-03-09T19:42:31.000Z","dependencies_parsed_at":"2022-09-16T20:21:39.097Z","dependency_job_id":null,"html_url":"https://github.com/igrishaev/littlesms-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/igrishaev/littlesms-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrishaev%2Flittlesms-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrishaev%2Flittlesms-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrishaev%2Flittlesms-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrishaev%2Flittlesms-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrishaev","download_url":"https://codeload.github.com/igrishaev/littlesms-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrishaev%2Flittlesms-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29999224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T09:59:02.300Z","status":"ssl_error","status_checked_at":"2026-03-02T09:59:02.001Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:36:46.143Z","updated_at":"2026-03-02T11:02:32.532Z","avatar_url":"https://github.com/igrishaev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# API client class for LittleSMS.ru service\n\n## Sample usage:\n\n    import littlesms\n\n    # Class init.\n    api = littlesms.Api(\"user\", \"API_key\")\n\n    # Balance check.\n    print api.balance()\n    \u003e\u003e\u003e {u'status': u'success', u'balance': 0.5}\n\n    # Send sms.\n    print api.send(u\"Hello, World!\", \"7xxxxxxxxxx\")\n    \u003e\u003e\u003e {u'count': 1, u'status': u'success', u'recipients': [u'7xxxxxxxxxx'], u'price': 0.5, u'parts': 1, u'test': 0, u'balance': 0.5, u'messages_id': [u'xxxxxx']}\n\n    # Send sms to multiple recipients with custom sender name.\n    print api.send(u\"Hello, World!\", [\"7xxxxxxxxx1\", \"7xxxxxxxxx2\", \"7xxxxxxxxx3\"], sender=\"Anonym\")\n    \u003e\u003e\u003e {u'count': 1, u'status': u'success', u'recipients': [u'7xxxxxxxxx1', u'7xxxxxxxxx2', u'7xxxxxxxxx3'], u'price': 0.5, u'parts': 1, u'test': 0, u'balance': 0.5, u'messages_id': [u'xxxxxx1', u'xxxxxx2', u'xxxxxx3']}\n\n    # Using behind proxy.\n    PROXY = {\n        \"proxy\": \"172.27.86.8\",\n        \"port\": 3128,\n        \"user\": \"ivan\",\n        \"passw\": \"secret\"\n    }\n    opener = littlesms.curl_opener(**PROXY)\n    api = littlesms.Api(\"user\", \"API_key\", opener=opener)\n\n    # Using App Engine.\n    opener = littlesms.gae_opener()\n    api = littlesms.Api(\"user\", \"API_key\", opener=opener)\n\n    # Exception example.\n    try:\n        print api.send(u\"Hello, World!\", \"7xxxxxxxxxx\", sender=\"TooLongSender!!!111\")\n    except littlesms.ApiError, e:\n        print e\n        \u003e\u003e\u003e Error 7: incorrect sender","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrishaev%2Flittlesms-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrishaev%2Flittlesms-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrishaev%2Flittlesms-python/lists"}