Python wrapper for Prompt API's BIN Checker API
Project description
Prompt API - BIN Checker - Python Package
pa-bin-checker is a simple python wrapper for bincheck-api.
Requirements
- You need to signup for Prompt API
- You need to subscribe bincheck-api, test drive is free!!!
- You need to set
PROMPTAPI_TOKENenvironment variable after subscription.
then;
$ pip install pa-bin-checker
Example Usage
from bin_checker import get_bin
bin_information = get_bin('302596') # example BIN
if bin_information.get('error', False):
print(bin_information['bank_name']) # you have a dict!
You’ll have a dict of data:
{
'bank_name': 'Diners Club International',
'country': 'United States Of America',
'url': 'www.dinersclub.com',
'type': 'Credit',
'scheme': 'Discover',
'bin': '302596',
}
If you receive an error, payload will contain error key. Example error
response:
{
'error': 'You need to set PROMPTAPI_TOKEN environment variable',
}
Development
Create your virtual environment, then use rake tasks:
$ rake -T
rake build # Build package
rake bump[revision] # Bump version
rake clean # Remove/Delete build..
rake default # Default task => :install
rake install # Install package for local development purpose
rake test # Run test
rake upload:main # Upload package to main distro (release)
rake upload:test # Upload package to test distro
To install and test package locally, just call rake or rake install.
Tests are available under tests/ folder. Run rake test to run tests.
License
This project is licensed under MIT
Contributer(s)
- Prompt API - Creator, maintainer
Contribute
All PR’s are welcome!
fork(https://github.com/promptapi/bin-checker-py/fork)- Create your
branch(git checkout -b my-feature) commityours (git commit -am 'Add awesome features...')pushyourbranch(git push origin my-feature)- Than create a new Pull Request!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pa-bin-checker-0.0.2.tar.gz.
File metadata
- Download URL: pa-bin-checker-0.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860ccb9abc5759d42b5246004fc7683ec13da7bf3e368f021292df9d6dbc6e2a
|
|
| MD5 |
a4f7f8f4b0d023baf205fc38b01d8d79
|
|
| BLAKE2b-256 |
62451f0485d2528880c164a8f826528f0332534c22360d095a2effe6c1eddc73
|
File details
Details for the file pa_bin_checker-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pa_bin_checker-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
874223ed7340a87f78b71ddd3f2b7a8fbba4c96c613e6a34f9168edc3b052c8e
|
|
| MD5 |
90a1288762ca9081620fee8b20ab19b4
|
|
| BLAKE2b-256 |
54d041d64fdcceb85bb55638ebc41d19a53f2ccc211691b57094344aacd2e86e
|