Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Cookiecutter template for a Python package.

Project description


The full documentation is at


Install greencard:

pip install greencard

Then you can use the GreenCard decorator on your unittests to provide them with each and every card in the library:

from unittest import TestCase
from greencard.decorator import GreenCard

class CardTests(TestCase):
    def execute(self, card):
        self.assertTrue(0 < card.code <= 1000)

The above will test each and every card in the database stored at mylibrary.lbr and ensure that their code is higher then 0 but no higher then 1000.


  • Unittest decorator that provides a database of cards one at a time on test.



  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for greencard, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size greencard-0.1.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page