Metadata-Version: 1.1
Name: Passbook
Version: 0.1.0dev
Summary: Passbook file generator
Home-page: http://github.com/devartis/passbook/
Author: Fernando Aramendi
Author-email: fernando@devartis.com
License: Copyright (c) 2012 devartis

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice
shall be included in all copies or substantial portions of
the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download-URL: http://pypi.python.org/packages/source/P/Passbook/Passbook-0.1.0dev.tar.gz
Description: ========
        Passbook
        ========
        
        Python library to read/write Apple Passbook (.pkpass) files
        
        Typical usage often looks like this::
        
            #!/usr/bin/env python
        
            from passbook.models import Pass, Barcode, BoardingPass
        
            cardInfo = BoardingPass()
            cardInfo.addPrimaryField('origin', 'EZE', 'Buenos Aires')
            cardInfo.addPrimaryField('destination', 'MDQ', 'Mar del Plata')
            cardInfo.addSecondaryField('gate', 'F12', 'Gate')
            cardInfo.addSecondaryField('date', '08/11/2012 10:22', 'Departure date')
            cardInfo.addBackField('passenger-name', 'Fernando Aramendi', 'Passenger')
            
            passfile = Pass(cardInfo)
            passfile.description = 'Demo pass' 
            passfile.organizationName = 'devartis' 
            passfile.passTypeIdentifier = 'pass.com.devartis.test' 
            passfile.serialNumber = '12345678' 
            passfile.teamIdentifier = 'AGK5BZEN3E'
            passfile.backgroundColor = 'rgb(107,156,196)', 
            passfile.logoText = 'devartis', 
            passfile.locations.append(Location(-34.602569, -58.436011))
            passfile.barcode = Barcode(message = 'Flight-GateF12-ID6643679AH7B')    
            
            passfile.addFile('images/icon.png')
            passfile.addFile('images/icon@2x.png')
            passfile.addFile('images/logo.png')
            passfile.create('certificate.pem', 'key.pem', 'wwdr.pem', '123456') # Create and output the Passbook file (.pkpass) 
        
        
        Creating Pass Certificates
        ==========================
        
        1. First
        
        iOS Provisioning Portal -> Pass Type IDs -> New Pass Type ID
        Select pass type id -> Configure (Follow steps and download generated pass.cer file)
        Use Keychain tool to export a p12 file (need Apple Root Certificate installed)
        
        2. Second. 
        
        openssl pkcs12 -in "Certificates.p12" -clcerts -nokeys -out certificate.pem 
        openssl pkcs12 -in "Certificates.p12" -nocerts -out key.pem 
        
        
        Developed by `devartis <http://www.devartis.com>`.
        
        
        Getting WWDR Certificate
        ==========================
        
        Certificate is available @ http://developer.apple.com/certificationauthority/AppleWWDRCA.cer
        It can be easily exported from KeyChain right to .pem
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 2 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
