[![PanjSim](https://img.shields.io/badge/PanjSim%20-Version%201.0.4-green?style=plastic&logo=codemagic)](https://python.org)
[![python](https://img.shields.io/badge/Python%20-3.7+-green?style=plastic&logo=Python)](https://python.org)
# What is PanjSim ? ([فارسی](https://github.com/abbas-bachari/PanjSim/blob/main/README-fa.md))
A simple Python API for [5sim.net](https://5sim.net)
#
# About [5sim.net](https://5sim.net)
Virtual numbers for receiving SMS and activation of any service
Upon registration on social networks, messengers, C2C platforms and on other websites, an SMS activation of account is required. 5SIM provides the opportunity to bypass verification procedure with the help of a temporary virtual phone number, without using the personal one. Register many profiles on websites, by receiving a confirmation code online.
#
## Installation guide
Before proceeding, you should register an account on [5sim.net](https://5sim.net/) and [generate a personal API key](https://5sim.net/settings/security) to use.
#
Install from source:
``` bash
pip install git+https://github.com/abbas-bachari/PanjSim.git
```
Alternatively, install from [PyPI](https://pypi.org/project/PanjSim/):
```bash
# Install:
pip install PanjSim
# Update:
pip install -U PanjSim
```
<hr>
## user manual
### Client
```python
from PanjSim import PanjSim
# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....'
client = PanjSim(API_KEY)
```
### Endpoints
Official docs [here](https://docs.5sim.net/)
#
### Account Information
```python
from PanjSim import PanjSim
# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....'
client = PanjSim(API_KEY)
user=client.User()
# Get account balance
balance=user.get_balance()
# Get Orders history
order_history=user.get_orders_history()
# Get payments history
pyment_history=user.get_payments_history()
```
#
### Price and products
```python
from PanjSim import PanjSim
from PanjSim.Countrys import usa
# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....'
client = PanjSim(API_KEY)
country=usa
product=client.Products()
# Receive the name, the price, quantity of all products, available to buy.
operator=country.Operator.virtual23
product.get_products(country=country.name,operator=operator)
# Get all product prices
product.get_prices()
# Get product prices by country
product.get_prices(country=usa.name)
# Get product prices for a specific product
product.get_prices(product="telegram")
# Get product prices by country and specific product
product.get_prices(country=usa.name,product="telegram")
```
#
### Purchase
```python
from PanjSim import PanjSim
from PanjSim.Countrys import usa
# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....'
client = PanjSim(API_KEY)
country=usa
Purchase=client.Purchase()
# Buy activation number
operator=country.Operator.virtual23
order=Purchase.buy_activation_number(country=country.name,operator=operator,product='telegram')
# Check order (Get SMS)
Purchase.check_order(order_id=order['id'])
# Ban order
Purchase.ban_order(order_id=order['id'])
# Cancel order
Purchase.cancel_order(order_id=order['id'])
# Finish order
Purchase.finish_order(order_id=order['id'])
# Get SMS inbox list
Purchase.get_sms_inbox(order_id=order['id'])
# Re-buy number
Purchase.rebuy_number(product="telegram",number='+177777')
# Buy hosting number
Purchase.buy_hosting_number(country=country.name,operator='any',product='1day')
```
#
### More features
```python
from PanjSim import PanjSim
from PanjSim.Countrys import usa
# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....'
client = PanjSim(API_KEY)
# Get notifications
client.get_notification(lang='en')
# Get countries list
client.get_countries_list()
# Find the cheapest price
client.find_low_price(product='telegram',limit=5)
```
Powered by [Abbas Bachari](https://github.com/abbas-bachari).
Raw data
{
"_id": null,
"home_page": "https://github.com/abbas-bachari/PanjSim",
"name": "PanjSim",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "5sim,5sim-sdk,5sim-pythom,PanjSim,virtual numbers,api,5sim-api,abbas bachari",
"author": "Abbas Bachari",
"author_email": "abbas-bachari@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/45/c0/8b62fe6ff2074f6a8faa32b6337a1688f53866b3f709f51b051ade97fc21/PanjSim-1.0.4.tar.gz",
"platform": null,
"description": "[![PanjSim](https://img.shields.io/badge/PanjSim%20-Version%201.0.4-green?style=plastic&logo=codemagic)](https://python.org)\r\n[![python](https://img.shields.io/badge/Python%20-3.7+-green?style=plastic&logo=Python)](https://python.org)\r\n\r\n\r\n\r\n\r\n# What is PanjSim ? ([\u0641\u0627\u0631\u0633\u06cc](https://github.com/abbas-bachari/PanjSim/blob/main/README-fa.md))\r\nA simple Python API for [5sim.net](https://5sim.net)\r\n#\r\n\r\n# About [5sim.net](https://5sim.net)\r\nVirtual numbers for receiving SMS and activation of any service\r\n\r\nUpon registration on social networks, messengers, C2C platforms and on other websites, an SMS activation of account is required. 5SIM provides the opportunity to bypass verification procedure with the help of a temporary virtual phone number, without using the personal one. Register many profiles on websites, by receiving a confirmation code online.\r\n#\r\n\r\n## Installation guide\r\nBefore proceeding, you should register an account on [5sim.net](https://5sim.net/) and [generate a personal API key](https://5sim.net/settings/security) to use. \r\n\r\n\r\n#\r\n\r\nInstall from source:\r\n``` bash\r\npip install git+https://github.com/abbas-bachari/PanjSim.git\r\n```\r\n\r\nAlternatively, install from [PyPI](https://pypi.org/project/PanjSim/):\r\n\r\n```bash\r\n# Install:\r\npip install PanjSim\r\n\r\n# Update:\r\npip install -U PanjSim\r\n```\r\n<hr>\r\n\r\n## user manual\r\n\r\n### Client \r\n\r\n```python\r\nfrom PanjSim import PanjSim\r\n\r\n# Replace your API key...\r\nAPI_KEY = 'eyJhbGciOiJSUzUx.....' \r\n\r\nclient = PanjSim(API_KEY) \r\n```\r\n \r\n\r\n### Endpoints \r\nOfficial docs [here](https://docs.5sim.net/)\r\n#\r\n\r\n\r\n### Account Information\r\n\r\n```python\r\nfrom PanjSim import PanjSim\r\n\r\n# Replace your API key...\r\nAPI_KEY = 'eyJhbGciOiJSUzUx.....' \r\n\r\nclient = PanjSim(API_KEY) \r\n\r\nuser=client.User()\r\n\r\n# Get account balance\r\nbalance=user.get_balance()\r\n\r\n\r\n# Get Orders history\r\norder_history=user.get_orders_history()\r\n\r\n\r\n# Get payments history\r\npyment_history=user.get_payments_history()\r\n\r\n```\r\n#\r\n### Price and products\r\n\r\n```python\r\nfrom PanjSim import PanjSim\r\nfrom PanjSim.Countrys import usa\r\n\r\n# Replace your API key...\r\nAPI_KEY = 'eyJhbGciOiJSUzUx.....' \r\n\r\nclient = PanjSim(API_KEY) \r\n\r\ncountry=usa\r\n\r\n\r\nproduct=client.Products()\r\n\r\n# Receive the name, the price, quantity of all products, available to buy.\r\noperator=country.Operator.virtual23\r\nproduct.get_products(country=country.name,operator=operator)\r\n\r\n\r\n# Get all product prices\r\nproduct.get_prices()\r\n\r\n# Get product prices by country\r\nproduct.get_prices(country=usa.name)\r\n\r\n# Get product prices for a specific product\r\nproduct.get_prices(product=\"telegram\")\r\n\r\n# Get product prices by country and specific product\r\nproduct.get_prices(country=usa.name,product=\"telegram\")\r\n\r\n```\r\n#\r\n### Purchase\r\n\r\n```python\r\nfrom PanjSim import PanjSim\r\nfrom PanjSim.Countrys import usa\r\n# Replace your API key...\r\nAPI_KEY = 'eyJhbGciOiJSUzUx.....' \r\n\r\nclient = PanjSim(API_KEY) \r\n\r\ncountry=usa\r\n\r\nPurchase=client.Purchase()\r\n\r\n\r\n# Buy activation number\r\noperator=country.Operator.virtual23\r\norder=Purchase.buy_activation_number(country=country.name,operator=operator,product='telegram')\r\n\r\n# Check order (Get SMS)\r\nPurchase.check_order(order_id=order['id'])\r\n\r\n# Ban order\r\nPurchase.ban_order(order_id=order['id'])\r\n\r\n# Cancel order\r\nPurchase.cancel_order(order_id=order['id'])\r\n\r\n# Finish order\r\nPurchase.finish_order(order_id=order['id'])\r\n\r\n# Get SMS inbox list\r\nPurchase.get_sms_inbox(order_id=order['id'])\r\n\r\n# Re-buy number\r\nPurchase.rebuy_number(product=\"telegram\",number='+177777')\r\n\r\n# Buy hosting number\r\nPurchase.buy_hosting_number(country=country.name,operator='any',product='1day')\r\n```\r\n#\r\n### More features\r\n\r\n```python\r\nfrom PanjSim import PanjSim\r\nfrom PanjSim.Countrys import usa\r\n\r\n# Replace your API key...\r\nAPI_KEY = 'eyJhbGciOiJSUzUx.....' \r\n\r\nclient = PanjSim(API_KEY) \r\n\r\n# Get notifications\r\nclient.get_notification(lang='en')\r\n\r\n# Get countries list\r\nclient.get_countries_list()\r\n\r\n# Find the cheapest price\r\nclient.find_low_price(product='telegram',limit=5)\r\n```\r\nPowered by [Abbas Bachari](https://github.com/abbas-bachari).\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple Python API for 5sim.net",
"version": "1.0.4",
"project_urls": {
"Documentation": "https://github.com/abbas-bachari/PanjSim",
"Homepage": "https://github.com/abbas-bachari/PanjSim",
"Source": "https://github.com/abbas-bachari/PanjSim/",
"Tracker": "https://github.com/abbas-bachari/PanjSim/issues"
},
"split_keywords": [
"5sim",
"5sim-sdk",
"5sim-pythom",
"panjsim",
"virtual numbers",
"api",
"5sim-api",
"abbas bachari"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c539a8ce44c7b0e191bd325b83913108ec6f359fb7e3a31643f8133b72f88097",
"md5": "af91105133ea11474300cead68fc822f",
"sha256": "49a48a8425167e6efcb90c00f48a84633c796bcc00977dba1984b9c00517ed63"
},
"downloads": -1,
"filename": "PanjSim-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "af91105133ea11474300cead68fc822f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 21172,
"upload_time": "2023-06-09T05:58:21",
"upload_time_iso_8601": "2023-06-09T05:58:21.367475Z",
"url": "https://files.pythonhosted.org/packages/c5/39/a8ce44c7b0e191bd325b83913108ec6f359fb7e3a31643f8133b72f88097/PanjSim-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "45c08b62fe6ff2074f6a8faa32b6337a1688f53866b3f709f51b051ade97fc21",
"md5": "e683a04348dd905646b520278157eb73",
"sha256": "ca39a442b07cc76a35696f4beef8059839516feb7c4a19135336b9ecdcd54b94"
},
"downloads": -1,
"filename": "PanjSim-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "e683a04348dd905646b520278157eb73",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 20688,
"upload_time": "2023-06-09T05:58:24",
"upload_time_iso_8601": "2023-06-09T05:58:24.781474Z",
"url": "https://files.pythonhosted.org/packages/45/c0/8b62fe6ff2074f6a8faa32b6337a1688f53866b3f709f51b051ade97fc21/PanjSim-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-09 05:58:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "abbas-bachari",
"github_project": "PanjSim",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "panjsim"
}