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):
git clone https://github.com/NFI-Industries/python_SMCRateware.gitcd python_SMCRatewarestart .- drop .env in python_SMCRateware
bash/run.sh
else:
git clone https://github.com/NFI-Industries/python_SMCRateware.gitcd python_SMCRatewarestart .- drop .env in python_SMCRateware
pip install -r requirements.txtpython 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
Metadata
Release files for smc3rateware 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smc3rateware-1.0-py3-none-any.whl | Python 3 | none | any | Details for smc3rateware-1.0-py3-none-any.whl |
Release files / smc3rateware-1.0-py3-none-any.whl
| Download URL | smc3rateware-1.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28239472f2ddb026331753891f2ac84e65103d897c62932abbe71925cbfef57e
|
|
BLAKE2b-256 checksum How to use checksums |
d6d7bec315906392b8fcb9ee52df65e4066d4096671cf9215e69b3fa6d56334a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for smc3rateware 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.