Metadata-Version: 2.1
Name: nfiparcel
Version: 0.0.0
Summary: Python package for parcel analysis and rating.
Home-page: https://github.com/NFI-Industries/nfiparcel
Author: Chris Pryer
Author-email: chris.pryer@nfiindustries.com
License: PUBLIC
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: atomicwrites (==1.4.0)
Requires-Dist: attrs (==19.3.0)
Requires-Dist: colorama (==0.4.3)
Requires-Dist: more-itertools (==8.3.0)
Requires-Dist: numpy (==1.18.4)
Requires-Dist: packaging (==20.4)
Requires-Dist: pandas (==1.0.3)
Requires-Dist: pluggy (==0.13.1)
Requires-Dist: py (==1.8.1)
Requires-Dist: pyparsing (==2.4.7)
Requires-Dist: pytest (==5.4.2)
Requires-Dist: python-dateutil (==2.8.1)
Requires-Dist: pytz (==2020.1)
Requires-Dist: six (==1.15.0)
Requires-Dist: wcwidth (==0.1.9)

# nfiparcel

Python package for parcel analysis and rating.


## features


- contract definitions
  - zoning
  - rates
- safe-guard functions
  - use [python-fedex](https://github.com/python-fedex-devs/python-fedex) if does not exist
  - override with python-fedex for lanes
  - [python-fedex](https://github.com/python-fedex-devs/python-fedex) usa-all


## python package development


### shipments.csv

origin_zip  |  dest_zip  |  weight
------------|------------|---------|
07981       |   19106    |  10.2   |
19106       |   07981    |  5.6    |


### zones.csv

*ziprange*: destination zip 3 or 5-digit.

*filename*: origin zip 5-digit. 


ziprange    |  zipzone |  filename
------------|----------|--------------|
716-725     |   7      |  99400-99499 |
72611-72752 |   6      |  99400-99499 |


### groundrates.csv

weight  | zones |       |       |
--------|-------|-------|-------|
lbs.    |   2   |   3   |   4   |
1.0     | $7.37 | $7.37 | $7.37 | 
2.0     | $7.37 | $7.37 | $7.37 |
3.0     | $7.37 | $7.37 | $7.37 |


### python script

```python
from nfiparcel import RateHelper

rh = RateHelper(zones='zones.csv', groundrates='groundrates.csv')
df = rh.ratecsv('shipments.csv')
```

