2021-03-04T10:17:37,946 DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality. 2021-03-04T10:17:38,785 Created temporary directory: /tmp/pip-ephem-wheel-cache-ky2jiue4 2021-03-04T10:17:38,790 Created temporary directory: /tmp/pip-req-tracker-s6529yc_ 2021-03-04T10:17:38,791 Initialized build tracking at /tmp/pip-req-tracker-s6529yc_ 2021-03-04T10:17:38,792 Created build tracker: /tmp/pip-req-tracker-s6529yc_ 2021-03-04T10:17:38,793 Entered build tracker: /tmp/pip-req-tracker-s6529yc_ 2021-03-04T10:17:38,795 Created temporary directory: /tmp/pip-wheel-vogradjh 2021-03-04T10:17:38,930 1 location(s) to search for versions of fedex-python: 2021-03-04T10:17:38,930 * https://pypi.org/simple/fedex-python/ 2021-03-04T10:17:38,931 Fetching project page and analyzing links: https://pypi.org/simple/fedex-python/ 2021-03-04T10:17:38,933 Getting page https://pypi.org/simple/fedex-python/ 2021-03-04T10:17:38,938 Found index url https://pypi.org/simple 2021-03-04T10:17:39,353 Found link https://files.pythonhosted.org/packages/5c/3a/a352b372c4601166a9d99a1a2d0ebd923b13039643e553330885b52d2522/fedex-python-0.0.3.tar.gz#sha256=bf7cf66123b8a525347ecf2fee3285cfafd41bb4f6c72202798d761b16729d4b (from https://pypi.org/simple/fedex-python/), version: 0.0.3 2021-03-04T10:17:39,355 Found link https://files.pythonhosted.org/packages/b6/7d/3d391bf27ebdfd1613b5d34fc74eeea34dd4f7277152375a251fe55ee172/fedex-python-0.0.5.tar.gz#sha256=6bbdbb846687f9b4a3dcbcdb94d3527c6a94ff4db10af68a6c6499ece1e33c37 (from https://pypi.org/simple/fedex-python/), version: 0.0.5 2021-03-04T10:17:39,385 Given no hashes to check 1 links for project 'fedex-python': discarding no candidates 2021-03-04T10:17:39,413 Collecting fedex-python==0.0.5 2021-03-04T10:17:39,416 Created temporary directory: /tmp/pip-unpack-x2t5hemw 2021-03-04T10:17:39,634 Downloading fedex-python-0.0.5.tar.gz (228 kB) 2021-03-04T10:17:39,992 Added fedex-python==0.0.5 from https://files.pythonhosted.org/packages/b6/7d/3d391bf27ebdfd1613b5d34fc74eeea34dd4f7277152375a251fe55ee172/fedex-python-0.0.5.tar.gz#sha256=6bbdbb846687f9b4a3dcbcdb94d3527c6a94ff4db10af68a6c6499ece1e33c37 to build tracker '/tmp/pip-req-tracker-s6529yc_' 2021-03-04T10:17:39,994 Running setup.py (path:/tmp/pip-wheel-vogradjh/fedex-python_c5ee089f7e32469ca64d344928098533/setup.py) egg_info for package fedex-python 2021-03-04T10:17:39,995 Created temporary directory: /tmp/pip-pip-egg-info-9u1oildl 2021-03-04T10:17:39,996 Running command python setup.py egg_info 2021-03-04T10:17:41,855 # Fedex Python 2021-03-04T10:17:41,857 NOT official FedEx python library to use its web services. 2021-03-04T10:17:41,858 This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. 2021-03-04T10:17:41,859 ## Installation 2021-03-04T10:17:41,861 Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. 2021-03-04T10:17:41,862 ```bash 2021-03-04T10:17:41,863 pip install fedex-python 2021-03-04T10:17:41,864 ``` 2021-03-04T10:17:41,866 ## Usage 2021-03-04T10:17:41,867 ```python 2021-03-04T10:17:41,868 import fedex-python as fedex 2021-03-04T10:17:41,869 client = fedex.Client( 2021-03-04T10:17:41,870 key, password, account_number, meter_number, 2021-03-04T10:17:41,871 localization=( 2021-03-04T10:17:41,872 fedex.components.auth.Localization.get( 2021-03-04T10:17:41,872 fedex.components.auth.Localization.SPANISH_LATINOAMERICAN 2021-03-04T10:17:41,873 ) 2021-03-04T10:17:41,874 ), 2021-03-04T10:17:41,874 test_mode=True 2021-03-04T10:17:41,875 ) 2021-03-04T10:17:41,876 ``` 2021-03-04T10:17:41,878 ### Make a Rate 2021-03-04T10:17:41,879 ```python 2021-03-04T10:17:41,880 from fedex_python.components import enums, common, rate_components 2021-03-04T10:17:41,882 response = client.rate.get_rates( 2021-03-04T10:17:41,882 rate_components.RequestedShipment( 2021-03-04T10:17:41,883 dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, 2021-03-04T10:17:41,884 rate_request_types=enums.RateRequestTypeEnum.PREFERRED, 2021-03-04T10:17:41,885 preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, 2021-03-04T10:17:41,886 shipping_charges_payment=common.ShippingChargesPayment( 2021-03-04T10:17:41,887 payment_type=enums.PaymentTypeEnum.SENDER, 2021-03-04T10:17:41,887 payor=common.Payor( 2021-03-04T10:17:41,888 responsible_party=common.ContactAddress( 2021-03-04T10:17:41,889 account_number=client.account_number 2021-03-04T10:17:41,890 ) 2021-03-04T10:17:41,890 ) 2021-03-04T10:17:41,891 ), 2021-03-04T10:17:41,892 requested_package_line_items=rate_components.RequestedPackageLineItem( 2021-03-04T10:17:41,893 weight=common.Weight(units=enums.WeightUnits.KG,value=20), 2021-03-04T10:17:41,893 dimensions=common.Dimensions( 2021-03-04T10:17:41,894 length=22, height=22,width=22, units=enums.LinearUnits.CM 2021-03-04T10:17:41,895 ) 2021-03-04T10:17:41,896 ), 2021-03-04T10:17:41,896 shipper=common.ContactAddress( 2021-03-04T10:17:41,897 contact=None, 2021-03-04T10:17:41,898 address=common.Address( 2021-03-04T10:17:41,899 postal_code='06040', 2021-03-04T10:17:41,900 country_code='MX', 2021-03-04T10:17:41,901 ) 2021-03-04T10:17:41,901 ) 2021-03-04T10:17:41,902 recipient=common.ContactAddress( 2021-03-04T10:17:41,903 contact=None, 2021-03-04T10:17:41,904 address=common.Address( 2021-03-04T10:17:41,905 postal_code='15530', 2021-03-04T10:17:41,905 country_code='MX', 2021-03-04T10:17:41,906 ) 2021-03-04T10:17:41,907 ) 2021-03-04T10:17:41,907 ), 'Custom id to send FedEx service') 2021-03-04T10:17:41,908 ``` 2021-03-04T10:17:41,909 ### Make a ship 2021-03-04T10:17:41,909 ```python 2021-03-04T10:17:41,909 from fedex_python.components import enums, common, ship_components 2021-03-04T10:17:41,910 response = self.client.ship.process_shipment( 2021-03-04T10:17:41,910 ship_components.RequestedShipment( 2021-03-04T10:17:41,911 ship_timestamp='2020-02-15T12:00:00', 2021-03-04T10:17:41,911 dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, 2021-03-04T10:17:41,911 service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, 2021-03-04T10:17:41,912 packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, 2021-03-04T10:17:41,912 rate_request_types=enums.RateRequestTypeEnum.PREFERRED, 2021-03-04T10:17:41,912 shipping_charges_payment=common.ShippingChargesPayment( 2021-03-04T10:17:41,913 payment_type=enums.PaymentTypeEnum.SENDER, 2021-03-04T10:17:41,913 payor=common.Payor( 2021-03-04T10:17:41,914 responsible_party=common.ContactAddress( 2021-03-04T10:17:41,914 account_number=client.account_number 2021-03-04T10:17:41,914 ) 2021-03-04T10:17:41,915 ) 2021-03-04T10:17:41,916 ), 2021-03-04T10:17:41,916 requested_package_line_items=common.RequestedPackageLineItemBase( 2021-03-04T10:17:41,917 weight=common.Weight(units=enums.WeightUnits.KG,value=20), 2021-03-04T10:17:41,918 dimensions=common.Dimensions( 2021-03-04T10:17:41,918 length=22, height=22,width=22, units=enums.LinearUnits.CM 2021-03-04T10:17:41,919 ) 2021-03-04T10:17:41,919 ), 2021-03-04T10:17:41,919 shipper=common.ContactAddress( 2021-03-04T10:17:41,920 contact=common.Contact( 2021-03-04T10:17:41,920 contact_id='Custom id', 2021-03-04T10:17:41,920 person_name='Sergio Alvarado', 2021-03-04T10:17:41,921 company_name='Costomit', 2021-03-04T10:17:41,921 phone_number='55523423324', 2021-03-04T10:17:41,921 eMail_address='sergioal18v@gmail.com' 2021-03-04T10:17:41,922 ), 2021-03-04T10:17:41,922 address=common.Address( 2021-03-04T10:17:41,922 postal_code='06040', 2021-03-04T10:17:41,923 country_code='MX', 2021-03-04T10:17:41,923 street_lines='complete street 209', 2021-03-04T10:17:41,923 city='Mexico', 2021-03-04T10:17:41,924 ) 2021-03-04T10:17:41,924 ) 2021-03-04T10:17:41,925 recipient=common.ContactAddress( 2021-03-04T10:17:41,925 contact=common.Contact( 2021-03-04T10:17:41,925 contact_id='Custom id', 2021-03-04T10:17:41,926 person_name='Sergio Alvarado 2', 2021-03-04T10:17:41,926 company_name='Costomit client', 2021-03-04T10:17:41,926 phone_number='55523423324', 2021-03-04T10:17:41,927 eMail_address='sergioal18v2@gmail.com' 2021-03-04T10:17:41,927 ), 2021-03-04T10:17:41,928 address=common.Address( 2021-03-04T10:17:41,929 postal_code='15530', 2021-03-04T10:17:41,929 country_code='MX', 2021-03-04T10:17:41,930 street_lines='another street 209', 2021-03-04T10:17:41,930 city='Mexico', 2021-03-04T10:17:41,930 ) 2021-03-04T10:17:41,931 ) 2021-03-04T10:17:41,931 label_specification=ship_components.LabelSpecification( 2021-03-04T10:17:41,932 label_format_type=enums.LabelFormatTypeEnum.COMMON2D, 2021-03-04T10:17:41,932 label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, 2021-03-04T10:17:41,932 label_printing_orientation= 2021-03-04T10:17:41,933 enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, 2021-03-04T10:17:41,933 image_type=enums.ImageTypeEnum.PDF 2021-03-04T10:17:41,933 ), 2021-03-04T10:17:41,934 package_count=1, 2021-03-04T10:17:41,934 total_weight=common.Weight( 2021-03-04T10:17:41,934 units=enums.WeightUnits.KG, value=20) 2021-03-04T10:17:41,935 ) 2021-03-04T10:17:41,935 ) 2021-03-04T10:17:41,935 , 'Custom id to send FedEx service') 2021-03-04T10:17:41,936 ``` 2021-03-04T10:17:41,936 ### Cancel a ship 2021-03-04T10:17:41,937 ```python 2021-03-04T10:17:41,937 from fedex_python.components import common, enums 2021-03-04T10:17:41,938 response = client.ship.delete_shipment( 2021-03-04T10:17:41,939 ship_timestamp='2020-02-15T12:00:00', 2021-03-04T10:17:41,939 tracking_id=common.TrackingId( 2021-03-04T10:17:41,940 tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, 2021-03-04T10:17:41,940 tracking_number='the track id number' 2021-03-04T10:17:41,941 ), 2021-03-04T10:17:41,942 deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, 2021-03-04T10:17:41,942 custom_id='Custom id to send FedEx service' 2021-03-04T10:17:41,943 ) 2021-03-04T10:17:41,943 ``` 2021-03-04T10:17:41,944 ### Create a pickup 2021-03-04T10:17:41,945 ```python 2021-03-04T10:17:41,945 from fedex_python.components import common, enums, pickup_components 2021-03-04T10:17:41,946 response = client.pickup.create_pickup( 2021-03-04T10:17:41,946 origin_detail=pickup_components.OriginDetail( 2021-03-04T10:17:41,946 buildin_part_description='reference building, 2021-03-04T10:17:41,947 package_location=enums.PackageLocationEnum.FRONT, 2021-03-04T10:17:41,947 building_part_code=enums.BuildingPartCodeEnum.BUILDING, 2021-03-04T10:17:41,947 ready_timestamp='2020-02-15T12:00:00', 2021-03-04T10:17:41,948 company_close_time='19:00:00', 2021-03-04T10:17:41,948 pickup_location=common.ContactAddress( 2021-03-04T10:17:41,949 contact=common.Contact( 2021-03-04T10:17:41,949 contact_id='Custom id', 2021-03-04T10:17:41,949 person_name='Sergio Alvarado', 2021-03-04T10:17:41,950 company_name='Costomit', 2021-03-04T10:17:41,950 phone_number='55523423324', 2021-03-04T10:17:41,950 eMail_address='sergioal18v@gmail.com' 2021-03-04T10:17:41,951 ), 2021-03-04T10:17:41,952 address=common.Address( 2021-03-04T10:17:41,952 postal_code='06040', 2021-03-04T10:17:41,953 country_code='MX', 2021-03-04T10:17:41,953 street_lines='complete street 209', 2021-03-04T10:17:41,954 city='Mexico', 2021-03-04T10:17:41,954 ) 2021-03-04T10:17:41,954 ) 2021-03-04T10:17:41,955 ), 2021-03-04T10:17:41,955 total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), 2021-03-04T10:17:41,956 carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:41,956 package_count=1, 2021-03-04T10:17:41,956 country_relationship=enums.CountryRelationshipEnum.DOMESTIC, 2021-03-04T10:17:41,957 custom_id='Custom id to send FedEx service' 2021-03-04T10:17:41,957 ) 2021-03-04T10:17:41,957 ``` 2021-03-04T10:17:41,958 ### Cancel a pickup 2021-03-04T10:17:41,958 ```python 2021-03-04T10:17:41,959 from fedex_python.components import enums 2021-03-04T10:17:41,960 response = client.pickup.cancel_pickup( 2021-03-04T10:17:41,960 scheduled_date='2020-02-15T12:00:00', 2021-03-04T10:17:41,960 pickup_confirmation_number='1', 2021-03-04T10:17:41,961 location='branch office code given in pickup, 2021-03-04T10:17:41,961 carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:41,961 custom_id='Custom id to send FedEx service' 2021-03-04T10:17:41,962 ) 2021-03-04T10:17:41,962 ``` 2021-03-04T10:17:41,963 ### Pickup availables 2021-03-04T10:17:41,964 ```python 2021-03-04T10:17:41,965 from fedex_python.components import enums, pickup_components 2021-03-04T10:17:41,966 response = self.client.pickup.availability( 2021-03-04T10:17:41,967 pickup_components.Availability( 2021-03-04T10:17:41,967 pickup_address=address=common.Address( 2021-03-04T10:17:41,968 postal_code='06040', 2021-03-04T10:17:41,968 country_code='MX', 2021-03-04T10:17:41,969 street_lines='complete street 209', 2021-03-04T10:17:41,969 city='Mexico', 2021-03-04T10:17:41,970 ), 2021-03-04T10:17:41,970 pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, 2021-03-04T10:17:41,970 dispatch_date='2020-02-15', 2021-03-04T10:17:41,971 package_ready_time='12:00:00', 2021-03-04T10:17:41,971 customer_close_time='19:00:00', 2021-03-04T10:17:41,971 carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:41,972 number_of_business_days=3, 2021-03-04T10:17:41,972 shipment_attributes=pickup_components.ShipmentAttributes( 2021-03-04T10:17:41,973 service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, 2021-03-04T10:17:41,973 packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING 2021-03-04T10:17:41,973 ) 2021-03-04T10:17:41,974 ), 'Custom id to send FedEx service' 2021-03-04T10:17:41,974 ) 2021-03-04T10:17:41,975 ``` 2021-03-04T10:17:41,976 ### Do a Tracking 2021-03-04T10:17:41,977 ```python 2021-03-04T10:17:41,977 from fedex_python.components import track_components, enums 2021-03-04T10:17:41,978 response = client.track.track( 2021-03-04T10:17:41,978 selection_details=track_components.SelectionDetails( 2021-03-04T10:17:41,978 carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:41,979 package_identifier=track_components.PackageIdentifier( 2021-03-04T10:17:41,979 type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, 2021-03-04T10:17:41,979 value='yor track', 2021-03-04T10:17:41,980 account_number=clinet.account_number 2021-03-04T10:17:41,980 ) 2021-03-04T10:17:41,980 ), 2021-03-04T10:17:41,981 processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, 2021-03-04T10:17:41,981 custom_id='Custom id to send FedEx service') 2021-03-04T10:17:41,981 ``` 2021-03-04T10:17:41,982 ## Contributing 2021-03-04T10:17:41,982 Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. 2021-03-04T10:17:41,983 Please make sure to update tests as appropriate. 2021-03-04T10:17:41,984 ## License 2021-03-04T10:17:42,453 [MIT](https://choosealicense.com/licenses/mit/) 2021-03-04T10:17:42,527 running egg_info 2021-03-04T10:17:42,533 creating /tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info 2021-03-04T10:17:42,534 writing dependency_links to /tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/dependency_links.txt 2021-03-04T10:17:42,538 writing /tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/PKG-INFO 2021-03-04T10:17:42,543 writing top-level names to /tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/top_level.txt 2021-03-04T10:17:42,546 writing requirements to /tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/requires.txt 2021-03-04T10:17:42,552 writing manifest file '/tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/SOURCES.txt' 2021-03-04T10:17:42,925 reading manifest file '/tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/SOURCES.txt' 2021-03-04T10:17:42,933 writing manifest file '/tmp/pip-pip-egg-info-9u1oildl/fedex_python.egg-info/SOURCES.txt' 2021-03-04T10:17:42,935 /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'description_content_type' 2021-03-04T10:17:42,936 warnings.warn(msg) 2021-03-04T10:17:43,061 Source in /tmp/pip-wheel-vogradjh/fedex-python_c5ee089f7e32469ca64d344928098533 has version 0.0.5, which satisfies requirement fedex-python==0.0.5 from https://files.pythonhosted.org/packages/b6/7d/3d391bf27ebdfd1613b5d34fc74eeea34dd4f7277152375a251fe55ee172/fedex-python-0.0.5.tar.gz#sha256=6bbdbb846687f9b4a3dcbcdb94d3527c6a94ff4db10af68a6c6499ece1e33c37 2021-03-04T10:17:43,062 Removed fedex-python==0.0.5 from https://files.pythonhosted.org/packages/b6/7d/3d391bf27ebdfd1613b5d34fc74eeea34dd4f7277152375a251fe55ee172/fedex-python-0.0.5.tar.gz#sha256=6bbdbb846687f9b4a3dcbcdb94d3527c6a94ff4db10af68a6c6499ece1e33c37 from build tracker '/tmp/pip-req-tracker-s6529yc_' 2021-03-04T10:17:43,073 Created temporary directory: /tmp/pip-unpack-dplw5faw 2021-03-04T10:17:43,074 Building wheels for collected packages: fedex-python 2021-03-04T10:17:43,081 Created temporary directory: /tmp/pip-wheel-xxui8ain 2021-03-04T10:17:43,082 Building wheel for fedex-python (setup.py): started 2021-03-04T10:17:43,083 Destination directory: /tmp/pip-wheel-xxui8ain 2021-03-04T10:17:43,083 Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-vogradjh/fedex-python_c5ee089f7e32469ca64d344928098533/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-vogradjh/fedex-python_c5ee089f7e32469ca64d344928098533/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xxui8ain 2021-03-04T10:17:44,715 # Fedex Python 2021-03-04T10:17:44,716 NOT official FedEx python library to use its web services. 2021-03-04T10:17:44,717 This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. 2021-03-04T10:17:44,718 ## Installation 2021-03-04T10:17:44,719 Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. 2021-03-04T10:17:44,720 ```bash 2021-03-04T10:17:44,721 pip install fedex-python 2021-03-04T10:17:44,721 ``` 2021-03-04T10:17:44,722 ## Usage 2021-03-04T10:17:44,724 ```python 2021-03-04T10:17:44,724 import fedex-python as fedex 2021-03-04T10:17:44,725 client = fedex.Client( 2021-03-04T10:17:44,726 key, password, account_number, meter_number, 2021-03-04T10:17:44,726 localization=( 2021-03-04T10:17:44,726 fedex.components.auth.Localization.get( 2021-03-04T10:17:44,727 fedex.components.auth.Localization.SPANISH_LATINOAMERICAN 2021-03-04T10:17:44,727 ) 2021-03-04T10:17:44,728 ), 2021-03-04T10:17:44,728 test_mode=True 2021-03-04T10:17:44,728 ) 2021-03-04T10:17:44,729 ``` 2021-03-04T10:17:44,730 ### Make a Rate 2021-03-04T10:17:44,731 ```python 2021-03-04T10:17:44,732 from fedex_python.components import enums, common, rate_components 2021-03-04T10:17:44,733 response = client.rate.get_rates( 2021-03-04T10:17:44,733 rate_components.RequestedShipment( 2021-03-04T10:17:44,734 dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, 2021-03-04T10:17:44,734 rate_request_types=enums.RateRequestTypeEnum.PREFERRED, 2021-03-04T10:17:44,735 preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, 2021-03-04T10:17:44,736 shipping_charges_payment=common.ShippingChargesPayment( 2021-03-04T10:17:44,736 payment_type=enums.PaymentTypeEnum.SENDER, 2021-03-04T10:17:44,737 payor=common.Payor( 2021-03-04T10:17:44,737 responsible_party=common.ContactAddress( 2021-03-04T10:17:44,738 account_number=client.account_number 2021-03-04T10:17:44,738 ) 2021-03-04T10:17:44,739 ) 2021-03-04T10:17:44,739 ), 2021-03-04T10:17:44,740 requested_package_line_items=rate_components.RequestedPackageLineItem( 2021-03-04T10:17:44,740 weight=common.Weight(units=enums.WeightUnits.KG,value=20), 2021-03-04T10:17:44,741 dimensions=common.Dimensions( 2021-03-04T10:17:44,742 length=22, height=22,width=22, units=enums.LinearUnits.CM 2021-03-04T10:17:44,742 ) 2021-03-04T10:17:44,743 ), 2021-03-04T10:17:44,743 shipper=common.ContactAddress( 2021-03-04T10:17:44,744 contact=None, 2021-03-04T10:17:44,744 address=common.Address( 2021-03-04T10:17:44,745 postal_code='06040', 2021-03-04T10:17:44,745 country_code='MX', 2021-03-04T10:17:44,746 ) 2021-03-04T10:17:44,746 ) 2021-03-04T10:17:44,747 recipient=common.ContactAddress( 2021-03-04T10:17:44,747 contact=None, 2021-03-04T10:17:44,748 address=common.Address( 2021-03-04T10:17:44,748 postal_code='15530', 2021-03-04T10:17:44,749 country_code='MX', 2021-03-04T10:17:44,750 ) 2021-03-04T10:17:44,750 ) 2021-03-04T10:17:44,751 ), 'Custom id to send FedEx service') 2021-03-04T10:17:44,751 ``` 2021-03-04T10:17:44,752 ### Make a ship 2021-03-04T10:17:44,753 ```python 2021-03-04T10:17:44,753 from fedex_python.components import enums, common, ship_components 2021-03-04T10:17:44,755 response = self.client.ship.process_shipment( 2021-03-04T10:17:44,755 ship_components.RequestedShipment( 2021-03-04T10:17:44,756 ship_timestamp='2020-02-15T12:00:00', 2021-03-04T10:17:44,756 dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, 2021-03-04T10:17:44,757 service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, 2021-03-04T10:17:44,757 packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, 2021-03-04T10:17:44,758 rate_request_types=enums.RateRequestTypeEnum.PREFERRED, 2021-03-04T10:17:44,758 shipping_charges_payment=common.ShippingChargesPayment( 2021-03-04T10:17:44,759 payment_type=enums.PaymentTypeEnum.SENDER, 2021-03-04T10:17:44,759 payor=common.Payor( 2021-03-04T10:17:44,760 responsible_party=common.ContactAddress( 2021-03-04T10:17:44,760 account_number=client.account_number 2021-03-04T10:17:44,761 ) 2021-03-04T10:17:44,761 ) 2021-03-04T10:17:44,762 ), 2021-03-04T10:17:44,763 requested_package_line_items=common.RequestedPackageLineItemBase( 2021-03-04T10:17:44,763 weight=common.Weight(units=enums.WeightUnits.KG,value=20), 2021-03-04T10:17:44,764 dimensions=common.Dimensions( 2021-03-04T10:17:44,764 length=22, height=22,width=22, units=enums.LinearUnits.CM 2021-03-04T10:17:44,765 ) 2021-03-04T10:17:44,765 ), 2021-03-04T10:17:44,765 shipper=common.ContactAddress( 2021-03-04T10:17:44,766 contact=common.Contact( 2021-03-04T10:17:44,767 contact_id='Custom id', 2021-03-04T10:17:44,767 person_name='Sergio Alvarado', 2021-03-04T10:17:44,768 company_name='Costomit', 2021-03-04T10:17:44,768 phone_number='55523423324', 2021-03-04T10:17:44,769 eMail_address='sergioal18v@gmail.com' 2021-03-04T10:17:44,769 ), 2021-03-04T10:17:44,770 address=common.Address( 2021-03-04T10:17:44,770 postal_code='06040', 2021-03-04T10:17:44,771 country_code='MX', 2021-03-04T10:17:44,771 street_lines='complete street 209', 2021-03-04T10:17:44,772 city='Mexico', 2021-03-04T10:17:44,772 ) 2021-03-04T10:17:44,773 ) 2021-03-04T10:17:44,773 recipient=common.ContactAddress( 2021-03-04T10:17:44,774 contact=common.Contact( 2021-03-04T10:17:44,775 contact_id='Custom id', 2021-03-04T10:17:44,775 person_name='Sergio Alvarado 2', 2021-03-04T10:17:44,776 company_name='Costomit client', 2021-03-04T10:17:44,776 phone_number='55523423324', 2021-03-04T10:17:44,777 eMail_address='sergioal18v2@gmail.com' 2021-03-04T10:17:44,777 ), 2021-03-04T10:17:44,778 address=common.Address( 2021-03-04T10:17:44,778 postal_code='15530', 2021-03-04T10:17:44,779 country_code='MX', 2021-03-04T10:17:44,779 street_lines='another street 209', 2021-03-04T10:17:44,780 city='Mexico', 2021-03-04T10:17:44,780 ) 2021-03-04T10:17:44,781 ) 2021-03-04T10:17:44,781 label_specification=ship_components.LabelSpecification( 2021-03-04T10:17:44,782 label_format_type=enums.LabelFormatTypeEnum.COMMON2D, 2021-03-04T10:17:44,782 label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, 2021-03-04T10:17:44,783 label_printing_orientation= 2021-03-04T10:17:44,783 enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, 2021-03-04T10:17:44,784 image_type=enums.ImageTypeEnum.PDF 2021-03-04T10:17:44,784 ), 2021-03-04T10:17:44,784 package_count=1, 2021-03-04T10:17:44,785 total_weight=common.Weight( 2021-03-04T10:17:44,785 units=enums.WeightUnits.KG, value=20) 2021-03-04T10:17:44,786 ) 2021-03-04T10:17:44,786 ) 2021-03-04T10:17:44,787 , 'Custom id to send FedEx service') 2021-03-04T10:17:44,788 ``` 2021-03-04T10:17:44,789 ### Cancel a ship 2021-03-04T10:17:44,789 ```python 2021-03-04T10:17:44,790 from fedex_python.components import common, enums 2021-03-04T10:17:44,790 response = client.ship.delete_shipment( 2021-03-04T10:17:44,791 ship_timestamp='2020-02-15T12:00:00', 2021-03-04T10:17:44,791 tracking_id=common.TrackingId( 2021-03-04T10:17:44,792 tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, 2021-03-04T10:17:44,792 tracking_number='the track id number' 2021-03-04T10:17:44,793 ), 2021-03-04T10:17:44,793 deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, 2021-03-04T10:17:44,793 custom_id='Custom id to send FedEx service' 2021-03-04T10:17:44,794 ) 2021-03-04T10:17:44,794 ``` 2021-03-04T10:17:44,795 ### Create a pickup 2021-03-04T10:17:44,796 ```python 2021-03-04T10:17:44,797 from fedex_python.components import common, enums, pickup_components 2021-03-04T10:17:44,798 response = client.pickup.create_pickup( 2021-03-04T10:17:44,799 origin_detail=pickup_components.OriginDetail( 2021-03-04T10:17:44,799 buildin_part_description='reference building, 2021-03-04T10:17:44,799 package_location=enums.PackageLocationEnum.FRONT, 2021-03-04T10:17:44,800 building_part_code=enums.BuildingPartCodeEnum.BUILDING, 2021-03-04T10:17:44,800 ready_timestamp='2020-02-15T12:00:00', 2021-03-04T10:17:44,801 company_close_time='19:00:00', 2021-03-04T10:17:44,801 pickup_location=common.ContactAddress( 2021-03-04T10:17:44,802 contact=common.Contact( 2021-03-04T10:17:44,802 contact_id='Custom id', 2021-03-04T10:17:44,803 person_name='Sergio Alvarado', 2021-03-04T10:17:44,803 company_name='Costomit', 2021-03-04T10:17:44,804 phone_number='55523423324', 2021-03-04T10:17:44,804 eMail_address='sergioal18v@gmail.com' 2021-03-04T10:17:44,805 ), 2021-03-04T10:17:44,805 address=common.Address( 2021-03-04T10:17:44,805 postal_code='06040', 2021-03-04T10:17:44,806 country_code='MX', 2021-03-04T10:17:44,806 street_lines='complete street 209', 2021-03-04T10:17:44,807 city='Mexico', 2021-03-04T10:17:44,807 ) 2021-03-04T10:17:44,808 ) 2021-03-04T10:17:44,808 ), 2021-03-04T10:17:44,809 total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), 2021-03-04T10:17:44,809 carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:44,810 package_count=1, 2021-03-04T10:17:44,810 country_relationship=enums.CountryRelationshipEnum.DOMESTIC, 2021-03-04T10:17:44,811 custom_id='Custom id to send FedEx service' 2021-03-04T10:17:44,811 ) 2021-03-04T10:17:44,812 ``` 2021-03-04T10:17:44,812 ### Cancel a pickup 2021-03-04T10:17:44,813 ```python 2021-03-04T10:17:44,813 from fedex_python.components import enums 2021-03-04T10:17:44,814 response = client.pickup.cancel_pickup( 2021-03-04T10:17:44,815 scheduled_date='2020-02-15T12:00:00', 2021-03-04T10:17:44,816 pickup_confirmation_number='1', 2021-03-04T10:17:44,816 location='branch office code given in pickup, 2021-03-04T10:17:44,816 carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:44,817 custom_id='Custom id to send FedEx service' 2021-03-04T10:17:44,818 ) 2021-03-04T10:17:44,818 ``` 2021-03-04T10:17:44,819 ### Pickup availables 2021-03-04T10:17:44,820 ```python 2021-03-04T10:17:44,820 from fedex_python.components import enums, pickup_components 2021-03-04T10:17:44,821 response = self.client.pickup.availability( 2021-03-04T10:17:44,822 pickup_components.Availability( 2021-03-04T10:17:44,822 pickup_address=address=common.Address( 2021-03-04T10:17:44,823 postal_code='06040', 2021-03-04T10:17:44,823 country_code='MX', 2021-03-04T10:17:44,824 street_lines='complete street 209', 2021-03-04T10:17:44,824 city='Mexico', 2021-03-04T10:17:44,824 ), 2021-03-04T10:17:44,825 pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, 2021-03-04T10:17:44,825 dispatch_date='2020-02-15', 2021-03-04T10:17:44,826 package_ready_time='12:00:00', 2021-03-04T10:17:44,826 customer_close_time='19:00:00', 2021-03-04T10:17:44,827 carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:44,827 number_of_business_days=3, 2021-03-04T10:17:44,828 shipment_attributes=pickup_components.ShipmentAttributes( 2021-03-04T10:17:44,828 service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, 2021-03-04T10:17:44,829 packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING 2021-03-04T10:17:44,829 ) 2021-03-04T10:17:44,829 ), 'Custom id to send FedEx service' 2021-03-04T10:17:44,830 ) 2021-03-04T10:17:44,830 ``` 2021-03-04T10:17:44,831 ### Do a Tracking 2021-03-04T10:17:44,832 ```python 2021-03-04T10:17:44,833 from fedex_python.components import track_components, enums 2021-03-04T10:17:44,833 response = client.track.track( 2021-03-04T10:17:44,834 selection_details=track_components.SelectionDetails( 2021-03-04T10:17:44,834 carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, 2021-03-04T10:17:44,834 package_identifier=track_components.PackageIdentifier( 2021-03-04T10:17:44,835 type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, 2021-03-04T10:17:44,835 value='yor track', 2021-03-04T10:17:44,836 account_number=clinet.account_number 2021-03-04T10:17:44,836 ) 2021-03-04T10:17:44,837 ), 2021-03-04T10:17:44,837 processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, 2021-03-04T10:17:44,838 custom_id='Custom id to send FedEx service') 2021-03-04T10:17:44,838 ``` 2021-03-04T10:17:44,839 ## Contributing 2021-03-04T10:17:44,839 Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. 2021-03-04T10:17:44,840 Please make sure to update tests as appropriate. 2021-03-04T10:17:44,841 ## License 2021-03-04T10:17:44,842 [MIT](https://choosealicense.com/licenses/mit/) 2021-03-04T10:17:44,842 /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'description_content_type' 2021-03-04T10:17:44,843 warnings.warn(msg) 2021-03-04T10:17:45,084 running bdist_wheel 2021-03-04T10:17:45,100 running build 2021-03-04T10:17:45,100 running build_py 2021-03-04T10:17:45,395 creating build 2021-03-04T10:17:45,396 creating build/lib 2021-03-04T10:17:45,397 creating build/lib/fedex_python 2021-03-04T10:17:45,399 copying fedex_python/base.py -> build/lib/fedex_python 2021-03-04T10:17:45,402 copying fedex_python/__init__.py -> build/lib/fedex_python 2021-03-04T10:17:45,405 copying fedex_python/client.py -> build/lib/fedex_python 2021-03-04T10:17:45,410 creating build/lib/fedex_python/services 2021-03-04T10:17:45,411 copying fedex_python/services/__init__.py -> build/lib/fedex_python/services 2021-03-04T10:17:45,539 copying fedex_python/services/rate.py -> build/lib/fedex_python/services 2021-03-04T10:17:45,544 copying fedex_python/services/pickup.py -> build/lib/fedex_python/services 2021-03-04T10:17:45,550 copying fedex_python/services/ship.py -> build/lib/fedex_python/services 2021-03-04T10:17:45,555 copying fedex_python/services/track.py -> build/lib/fedex_python/services 2021-03-04T10:17:45,561 creating build/lib/fedex_python/components 2021-03-04T10:17:45,563 copying fedex_python/components/base.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,566 copying fedex_python/components/pickup_components.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,570 copying fedex_python/components/__init__.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,572 copying fedex_python/components/enums.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,577 copying fedex_python/components/ship_components.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,581 copying fedex_python/components/track_components.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,586 copying fedex_python/components/authentication.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,591 copying fedex_python/components/common.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,597 copying fedex_python/components/rate_components.py -> build/lib/fedex_python/components 2021-03-04T10:17:45,605 creating build/lib/fedex_python/wsdl 2021-03-04T10:17:45,607 copying fedex_python/wsdl/rate_28.wsdl -> build/lib/fedex_python/wsdl 2021-03-04T10:17:45,625 copying fedex_python/wsdl/pickup_17.wsdl -> build/lib/fedex_python/wsdl 2021-03-04T10:17:45,640 copying fedex_python/wsdl/ship_25.wsdl -> build/lib/fedex_python/wsdl 2021-03-04T10:17:45,657 copying fedex_python/wsdl/track_16.wsdl -> build/lib/fedex_python/wsdl 2021-03-04T10:17:45,669 creating build/lib/fedex_python/wsdl/test 2021-03-04T10:17:45,671 copying fedex_python/wsdl/test/rate_28.wsdl -> build/lib/fedex_python/wsdl/test 2021-03-04T10:17:45,692 copying fedex_python/wsdl/test/pickup_17.wsdl -> build/lib/fedex_python/wsdl/test 2021-03-04T10:17:45,705 copying fedex_python/wsdl/test/ship_25.wsdl -> build/lib/fedex_python/wsdl/test 2021-03-04T10:17:45,722 copying fedex_python/wsdl/test/track_16.wsdl -> build/lib/fedex_python/wsdl/test 2021-03-04T10:17:45,741 installing to build/bdist.linux-armv7l/wheel 2021-03-04T10:17:45,742 running install 2021-03-04T10:17:45,744 running install_lib 2021-03-04T10:17:45,753 creating build/bdist.linux-armv7l 2021-03-04T10:17:45,754 creating build/bdist.linux-armv7l/wheel 2021-03-04T10:17:45,756 creating build/bdist.linux-armv7l/wheel/fedex_python 2021-03-04T10:17:45,758 copying build/lib/fedex_python/base.py -> build/bdist.linux-armv7l/wheel/fedex_python 2021-03-04T10:17:45,762 copying build/lib/fedex_python/__init__.py -> build/bdist.linux-armv7l/wheel/fedex_python 2021-03-04T10:17:45,766 creating build/bdist.linux-armv7l/wheel/fedex_python/wsdl 2021-03-04T10:17:45,767 copying build/lib/fedex_python/wsdl/rate_28.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl 2021-03-04T10:17:45,783 copying build/lib/fedex_python/wsdl/pickup_17.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl 2021-03-04T10:17:45,792 copying build/lib/fedex_python/wsdl/ship_25.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl 2021-03-04T10:17:45,810 copying build/lib/fedex_python/wsdl/track_16.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl 2021-03-04T10:17:45,820 creating build/bdist.linux-armv7l/wheel/fedex_python/wsdl/test 2021-03-04T10:17:45,821 copying build/lib/fedex_python/wsdl/test/rate_28.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl/test 2021-03-04T10:17:45,837 copying build/lib/fedex_python/wsdl/test/pickup_17.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl/test 2021-03-04T10:17:45,846 copying build/lib/fedex_python/wsdl/test/ship_25.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl/test 2021-03-04T10:17:45,863 copying build/lib/fedex_python/wsdl/test/track_16.wsdl -> build/bdist.linux-armv7l/wheel/fedex_python/wsdl/test 2021-03-04T10:17:45,872 copying build/lib/fedex_python/client.py -> build/bdist.linux-armv7l/wheel/fedex_python 2021-03-04T10:17:45,876 creating build/bdist.linux-armv7l/wheel/fedex_python/services 2021-03-04T10:17:45,877 copying build/lib/fedex_python/services/__init__.py -> build/bdist.linux-armv7l/wheel/fedex_python/services 2021-03-04T10:17:45,880 copying build/lib/fedex_python/services/rate.py -> build/bdist.linux-armv7l/wheel/fedex_python/services 2021-03-04T10:17:45,883 copying build/lib/fedex_python/services/pickup.py -> build/bdist.linux-armv7l/wheel/fedex_python/services 2021-03-04T10:17:45,886 copying build/lib/fedex_python/services/ship.py -> build/bdist.linux-armv7l/wheel/fedex_python/services 2021-03-04T10:17:45,890 copying build/lib/fedex_python/services/track.py -> build/bdist.linux-armv7l/wheel/fedex_python/services 2021-03-04T10:17:45,895 creating build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,896 copying build/lib/fedex_python/components/base.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,900 copying build/lib/fedex_python/components/pickup_components.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,903 copying build/lib/fedex_python/components/__init__.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,906 copying build/lib/fedex_python/components/enums.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,909 copying build/lib/fedex_python/components/ship_components.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,913 copying build/lib/fedex_python/components/track_components.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,915 copying build/lib/fedex_python/components/authentication.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,918 copying build/lib/fedex_python/components/common.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,922 copying build/lib/fedex_python/components/rate_components.py -> build/bdist.linux-armv7l/wheel/fedex_python/components 2021-03-04T10:17:45,925 running install_egg_info 2021-03-04T10:17:45,968 running egg_info 2021-03-04T10:17:45,970 writing requirements to fedex_python.egg-info/requires.txt 2021-03-04T10:17:45,972 writing top-level names to fedex_python.egg-info/top_level.txt 2021-03-04T10:17:45,974 writing dependency_links to fedex_python.egg-info/dependency_links.txt 2021-03-04T10:17:45,976 writing fedex_python.egg-info/PKG-INFO 2021-03-04T10:17:45,988 reading manifest file 'fedex_python.egg-info/SOURCES.txt' 2021-03-04T10:17:45,999 writing manifest file 'fedex_python.egg-info/SOURCES.txt' 2021-03-04T10:17:46,001 Copying fedex_python.egg-info to build/bdist.linux-armv7l/wheel/fedex_python-0.0.5-py3.5.egg-info 2021-03-04T10:17:46,018 running install_scripts 2021-03-04T10:17:46,335 creating build/bdist.linux-armv7l/wheel/fedex_python-0.0.5.dist-info/WHEEL 2021-03-04T10:17:46,780 Building wheel for fedex-python (setup.py): finished with status 'done' 2021-03-04T10:17:46,787 Created wheel for fedex-python: filename=fedex_python-0.0.5-py3-none-any.whl size=243791 sha256=6509e9f316cc4cfc87e5de25d3ea417cd457682b9727e23088d477e848de9098 2021-03-04T10:17:46,788 Stored in directory: /tmp/pip-ephem-wheel-cache-ky2jiue4/wheels/86/c1/df/27b93a2b9c2e011ed1059e7180f89986547552753eb52bdc03 2021-03-04T10:17:46,812 Successfully built fedex-python 2021-03-04T10:17:46,957 Removed build tracker: '/tmp/pip-req-tracker-s6529yc_'