Python package for parcel analysis and rating.
Project description
nfiparcel
Python package for parcel analysis and rating.
features
- contract definitions
- zoning
- rates
- safe-guard functions
- use python-fedex if does not exist
- override with python-fedex for lanes
- 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
from nfiparcel import RateHelper
rh = RateHelper(zones='zones.csv', groundrates='groundrates.csv')
df = rh.ratecsv('shipments.csv')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nfiparcel-0.0.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nfiparcel-0.0.0.tar.gz.
File metadata
- Download URL: nfiparcel-0.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7979e9706b8976aa30eee64d803efbc6c77aa8a3ffdde6874a77dcc5cfa1461
|
|
| MD5 |
2d06bac40a131d533ab4f6a7648fdda9
|
|
| BLAKE2b-256 |
f3f4833bfffda749ee9dc0ad75c3329f80160a83fbd1012189b1ac504bed7ebd
|
File details
Details for the file nfiparcel-0.0.0-py3-none-any.whl.
File metadata
- Download URL: nfiparcel-0.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12537389f55e8d7a626b0924dfb7cf33a5ed065bda6a265113c5f53b8d7e9b59
|
|
| MD5 |
48a126d9a6e7f5a3da1cb941769825f2
|
|
| BLAKE2b-256 |
508d51851eb4ea7c5e15f02232d78e12ea33a472fd5dc2763d65652b3165f235
|