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.3.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.3-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartbindb-2.16.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b76638e67263f944ea227eb7c90242b4f17b9f4a02ca806516cc35368e55bc7e
MD5 9ef8b117e8dbebae7476a5b66124eb72
BLAKE2b-256 10d944c4852fac4b8081862e4fff0a429d2e3d82d872bd90b2668c7217ed117f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smartbindb-2.16.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04f29e03a47737757822f390081d3ae3512db624807c53adfb6e9d624a8e8112
MD5 d34a38d871cdc00a547ba26d1fed9542
BLAKE2b-256 84f29236e22e528abad081ae9cb95961f409e2dd4fff5635324d572ab20bc974

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