All Projects → orokusaki → Pycard

orokusaki / Pycard

Licence: mit
A simple credit card validation Python library with no dependencies

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pycard

frames-android
Checkout API Client, Payment Form UI and Utilities
Stars: ✭ 26 (-35%)
Mutual labels:  validation, credit-card
Credit card validations
💳 ruby gem for validating credit card numbers, generating valid numbers, luhn checks
Stars: ✭ 140 (+250%)
Mutual labels:  validation, credit-card
Creditcard.js
A simple credit cards validation library in JavaScript
Stars: ✭ 259 (+547.5%)
Mutual labels:  validation, credit-card
Credit Card
Credit Card Validation
Stars: ✭ 150 (+275%)
Mutual labels:  validation, credit-card
Mfcard
Easily integrate Credit Card payments module in iOS App. Swift 4.0
Stars: ✭ 356 (+790%)
Mutual labels:  validation, credit-card
Sequelize Joi
Joi schema validation for Sequelize models
Stars: ✭ 13 (-67.5%)
Mutual labels:  validation
Restless
Express.js api, type safe validations and more
Stars: ✭ 32 (-20%)
Mutual labels:  validation
Kubevious
Kubevious - application centric Kubernetes UI and continuous assurance provider
Stars: ✭ 869 (+2072.5%)
Mutual labels:  validation
Openapi3 Validator
Validator for OpenAPI v3 specs
Stars: ✭ 11 (-72.5%)
Mutual labels:  validation
Vuelidation
simple, powerful, vuejs validation.
Stars: ✭ 38 (-5%)
Mutual labels:  validation
Ok
✔️ A tiny TypeScript library for form validation
Stars: ✭ 34 (-15%)
Mutual labels:  validation
Checkout Sdk Node
Checkout.com SDK for Node.js. Documentation here:
Stars: ✭ 28 (-30%)
Mutual labels:  credit-card
Cymbology
Identifies and validates financial security ids such as Sedol, Cusip, Isin numbers.
Stars: ✭ 13 (-67.5%)
Mutual labels:  validation
Laravel Vue Validator
Simple package to display error in vue from laravel validation
Stars: ✭ 32 (-20%)
Mutual labels:  validation
Mintype
🍵 minimal composable type abstraction
Stars: ✭ 12 (-70%)
Mutual labels:  validation
Validator
Client-side javascript validator library ports from Laravel 5.2
Stars: ✭ 35 (-12.5%)
Mutual labels:  validation
In App Purchase
A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
Stars: ✭ 868 (+2070%)
Mutual labels:  validation
Quiver
Validation, searching and filtering made easy for swift.
Stars: ✭ 27 (-32.5%)
Mutual labels:  validation
Govalidator
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.
Stars: ✭ 969 (+2322.5%)
Mutual labels:  validation
Swagger2
Loading, parsing and validating requests to HTTP services based on Swagger v2.0 documents
Stars: ✭ 20 (-50%)
Mutual labels:  validation

pycard (pronounced picard)

pycard is a payment card validation library with a simple interface and no external dependencies.

Installation

pip install captain-pycard  # pycard was taken in PyPi

That's it, and there are no dependencies!

Usage

import pycard

# Create a card
card = pycard.Card(
    number='4444333322221111',
    month=1,
    year=2020,
    cvc=123
)

# Validate the card (checks that the card isn't expired and is mod10 valid)
assert card.is_valid

# Perform validation checks individually
assert not card.is_expired
assert card.is_mod10_valid

# The card is a visa
assert card.brand == 'visa'
assert card.friendly_brand == 'Visa'
assert card.mask == 'XXXX-XXXX-XXXX-1111'

# The card is a known test card
assert card.is_test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].