This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
# Fedex Commercial Invoice #

Fedex Commercial Invoice Generation using Python (using reportlab)

### What is this repository for? ###

* A way to generate a commercial fedex invoice
* https://github.com/radzhome/fedex-commercial-invoice

### How do I get set up? ###

* download repo, install requirements.txt using pip
* to install globally, use `[sudo] python setup.py install`

### Usage ###

Generate Commercial Invoice
<pre><code>
# generate_invoice test
from fedex_invoice.invoice import generate_commercial_invoice


# Includes company info.
export_data = {'company': 'Radtek Inc.', 'address': '123 Main St.',
'city': 'Toronto', 'state_code': 'ON', 'postal_code': 'L8J 1V4', 'country_code': 'CA',
'waybill_no': '9999 9999 9999', 'export_date': '12/20/2015', 'export_refs': '999432423, 14314321423',
'export_country': 'USA', 'manufacture_country': 'CHINA',
'destination_country': 'CANADA'}

importer_data = {'first_name': 'Real First Name',
'last_name': 'Real Last Name',
'postal_code': 'M5A 3C6', 'country_code': 'CA', 'state_code': 'ON',
'city': 'North York', 'address': '123 Import St.'}

exporter_data = {'first_name': 'Real First Name',
'last_name': 'Real Last Name',
'postal_code': 'M5A 3C6', 'country_code': 'CA', 'state_code': 'ON',
'city': 'North York', 'address': '123 Export St.'}

cosignee_data = {'first_name': 'Real First Name',
'last_name': 'Real Last Name',
'postal_code': 'M5A 3C6', 'country_code': 'CA', 'state_code': 'ON',
'city': 'North York', 'address': '123 Cosignee St.'}

product1 = {'marks_nos': '1234', 'no_packages': 1, 'package_type': 'BOX',
'description': 'a description of the goods in a full and up to date way', 'quantity': 1,
'measure_unit': 'lbs', 'weight': 25, 'unit_value': 23.24, 'total_value': 23.24}

product2 = {'marks_nos': '12', 'no_packages': 1, 'package_type': 'OWN_PACKAGING',
'description': 'a description of the goods, another product to describe', 'quantity': 2,
'measure_unit': 'lbs', 'weight': 5, 'unit_value': 43.44, 'total_value': 43.44}

flags = {'fob': True, 'caf': True, 'cif': False}

products = [product1, product2, product1, product2, product1, product2]

generate_commercial_invoice(export_data, exporter_data, cosignee_data, products, flags, importer_data)
</code></pre>
See Sample for output example.


This repository can be used as a starting point for generating your own invoice. If you have a useful script, don't
hesitate to add it to the project.
Release History

Release History

1.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fedex-invoice-1.0.1.tar.gz (6.2 kB) Copy SHA256 Checksum SHA256 Source Apr 28, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting