Skip to main content

A powerful Asynchronous Python library for getting bins database by country name or bank name, also supports bin lookup, supporting bots, MTProto API frameworks, and Python scripts

Project description

SmartBinDB

Python Version Version

A powerful asynchronous Python library for retrieving Bank Identification Number (BIN) database information, supporting lookups by country name, bank name, and individual BINs. Ideal for bots, MTProto API frameworks, and Python scripts. This is a closed-source project, and the source code is not available for public distribution.

Features

  • Asynchronous operations using asyncio for high-performance data retrieval.
  • Flexible lookups by country code, bank name, or specific BIN number.
  • Optional limit support for bank and country-based searches.
  • Compatible with Python 3.8 and all future versions.
  • Seamless integration for developers working with bots, APIs, and scripts.

Installation

Install SmartBinDB via pip:

pip install smartbindb

Usage

Basic Asyncio Example

import asyncio
from smartbindb import SmartBinDB

async def main():
    smartdb = SmartBinDB()
    print("What would you like to do?")
    print("1. BIN lookup")
    print("2. Bank based search")
    print("3. Country based search")
    choice = input("Enter your choice (1, 2, or 3): ")

    if choice == "1":
        bin_number = input("Enter BIN number: ")
        result = await smartdb.get_bin_info(bin_number)
        print("BIN info:", result)
    elif choice == "2":
        bank_name = input("Enter bank name: ")
        use_limit = input("Do you want to use a limit? (yes/no): ").lower()
        limit = None
        if use_limit == "yes":
            limit = int(input("Enter limit: "))
        result = await smartdb.get_bins_by_bank(bank_name, limit)
        print("Bank results:", result)
    elif choice == "3":
        country_code = input("Enter country code: ").upper()
        use_limit = input("Do you want to use a limit? (yes/no): ").lower()
        limit = None
        if use_limit == "yes":
            limit = int(input("Enter limit: "))
        result = await smartdb.get_bins_by_country(country_code, limit)
        print("Country results:", result)
    else:
        print("Invalid choice. Please select 1, 2, or 3.")

if __name__ == "__main__":
    asyncio.run(main())

Contributing

This is a closed-source project, and contributions are not accepted at this time.

License

This project is proprietary and not licensed for open-source use.

Contact

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

smartbindb-2.16.5.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartbindb-2.16.5-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

Details for the file smartbindb-2.16.5.tar.gz.

File metadata

  • Download URL: smartbindb-2.16.5.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for smartbindb-2.16.5.tar.gz
Algorithm Hash digest
SHA256 80405c463256a88f14362e1389aa0e2c2c4f23e0d0ff2eb37c949942f6a2cd60
MD5 d3e2ecf6e34dc78024ce4304e3450dc0
BLAKE2b-256 2165d2e55e66c8a82870a50e42c6c3bf8d408681612ab984f7f34a703fdfc349

See more details on using hashes here.

File details

Details for the file smartbindb-2.16.5-py3-none-any.whl.

File metadata

  • Download URL: smartbindb-2.16.5-py3-none-any.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for smartbindb-2.16.5-py3-none-any.whl
Algorithm Hash digest
SHA256 289685cf01b3564801c972f54991af88de6d5aae73fa345a12733926439b0ab9
MD5 cce3a6648dddacf5c941ba7da2f079f1
BLAKE2b-256 bf01ce35f8b2bc63812cb2c8a292ce9d891f10236e9119eb1cf6ae612aa8bddf

See more details on using hashes here.

Supported by

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