Skip to main content

Python API client for 5sim.net

Project description

5sim

At the moment this is the most advanced FiveSim API library, and tries to map responses to Python objects as much as possible.

This library is unofficial and is not directly linked to the website in question.

It was created out of need to use their API easily, without having to handle all possible cases in the application.

Install

pip install fivesim

Introduction

5SIM is a service for receiving SMS and activating accounts on any site that require SMS verification, without using your personal number to avoid spam in future.

When registering on social networks, messengers and on other sites, an SMS verification of account is required. 5SIM provides the opportunity to bypass SMS verification procedure with the help of a temporary virtual phone number without using the personal one. By purchasing virtual numbers for SMS receiving and for activating any site or app, you will register many profiles on websites by receiving a confirmation code online.

5SIM Features

  • You can get SMS online 24/7. This is a fully automated service: the receipt of a text message with a verification code happens instantaneously.
  • Receive an unlimited quantity of messages from the selected site or app. Herewith, the cost of one SMS number starts from 0,014$, and you’ll not have to pay monthly rates of mobile operators.
  • Use foreign virtual numbers from more than 180 countries all over the world. Practically you can find mobile numbers for registration of almost any country, including the UK, Russia, Sweden, Germany, Ukraine, France, India, Indonesia, Malaysia, Cambodia, Mongolia, Nicaragua, Canada, the USA, Thailand, the Philippines, Ethiopia and others.
  • Top up the balance with a minimum commission on the website (Visa/MasterCard/MIR, Alipay, Apple Pay, Google Play, Samsung Pay and others).
  • Register accounts automatically via the API.

Rating System

Actual rating is displayed in account settings, tab "General".

Initial rating for new users is 96 points.

Highest possible rating is 96 points.

Action Rating (points)
Add money into account +8.0
Receive sms and finish the order before timeout +0.5
Automatic completed order after timeout +0.4
Cancel -0.1
Ban number -0.1
Timeout -0.15

If rating drops to zero, you will not be able order within 24 hours. After 24 hours, rating will return to initial value of 96 points.

Examples

Buy a number

from fivesim import FiveSim, Country, Operator, FiveSimError

if __name__ == "__main__":
    client = FiveSim(api_key="YOUR_5SIM_API_KEY")
    try:
        result = client.user.buy_number(
            country=Country.ARMENIA,
            operator=Operator.ANY_OPERATOR,
            product=ActivationProduct.EBAY
        )
        code = result.sms[0].activation_code
        print(code)
    except FiveSimError as e:
        print(e)

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

fivesim-1.2.0.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

fivesim-1.2.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file fivesim-1.2.0.tar.gz.

File metadata

  • Download URL: fivesim-1.2.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for fivesim-1.2.0.tar.gz
Algorithm Hash digest
SHA256 98bda68c3fdbfcc1dae1165deb1198e0e86a204a7a61680b5cccf4193c608cf8
MD5 3a0a7e331144c795df060e814e744f60
BLAKE2b-256 98d485f1ba473c92c94d8a84035c6ee27aeb1c52df1251a92036bb4fcd66f05a

See more details on using hashes here.

File details

Details for the file fivesim-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: fivesim-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for fivesim-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 792db8c35ba9be8cf86da664a40b59cd9037da94a72d3428d1c05c0cafc39391
MD5 9b77ef993b6a1822ab25a22c696fca91
BLAKE2b-256 74baf95cab9c98eceed8e9e35e2d287f74cab8dd603156e73bedcc886e25f7de

See more details on using hashes here.

Supported by

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