Skip to main content

A python package for SCM3 Rateware integrations.

Project description

python_SMCRateware

Python project for SMC3 Rateware SOAP API integrations.

Package Development

Examples:

Sample CsvDataFrame Integration

tests/shipments.csv

```csv
ship_id,ship_date,origin_zip,origin_country,dest_zip,dest_country,freight_class,weight
0,1/01/19,19106,USA,07981,USA,125,456.2
0,1/01/19,19106,USA,07981,USA,125,500.41
1,1/01/19,07981,USA,07981,USA,200,201.0
2,1/01/19,07981,USA,07981,USA,200,502.1
```

.env

```dotenv
API_LICENSE_KEY=
API_USERNAME=
API_PASSWORD=
```

install

pip install smc3rateware

.py

```python
import smcrateware as smc
import pandas as pd

df = smc.rate_usingLTLRateShipmentMultipleRequest_fromdf('shipments.csv')
```

Under Development Usage

Prior to packaging this python up for python-smcrateware the code will be finalized for a specific scope. From there contributions will be allowed on a feature improvement/addition/deletion basis. Until then this project is to be used with the following steps:

Setup .env

```dotenv
API_LICENSE_KEY=
API_USERNAME=
API_PASSWORD=
```

For windows CMD (need bash configured):

  1. git clone https://github.com/NFI-Industries/python_SMCRateware.git
  2. cd python_SMCRateware
  3. start .
  4. drop .env in python_SMCRateware
  5. bash
  6. /run.sh

else:

  1. git clone https://github.com/NFI-Industries/python_SMCRateware.git
  2. cd python_SMCRateware
  3. start .
  4. drop .env in python_SMCRateware
  5. pip install -r requirements.txt
  6. python main.py -T='TariffNAme' -F='Full/Filepath.csv

or use the ./run.sh method if you'd like.

NOTE: you may need to restart & re-run the notebook after the initial run if you're trying to use examples/notebooks/example_csv_to_pddataframe.ipynb. The kernel needs to know the package exists.

TODO:

  • design (rate_usingLTLRateShipmentMultipleRequest_fromdf is too explicit)
  • non-LTLRateShipmentMultiple usage

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smc3rateware-1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file smc3rateware-1.0-py3-none-any.whl.

File metadata

  • Download URL: smc3rateware-1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.7.6

File hashes

Hashes for smc3rateware-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28239472f2ddb026331753891f2ac84e65103d897c62932abbe71925cbfef57e
MD5 77f642439b92ad3763c402f88b5044cc
BLAKE2b-256 d6d7bec315906392b8fcb9ee52df65e4066d4096671cf9215e69b3fa6d56334a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page