Skip to main content
https://travis-ci.org/migonzalvar/pysagec.svg?branch=master https://codecov.io/github/migonzalvar/pysagec/coverage.svg?branch=master

pysagec is a Python library to use with SAGEC MRW webservices.

It aims to be simple to use but with the ability to use any of the fields of the underlying API:

import pysagec
import datetime as dt

url = '//user:pass@example.com/?franchise=12&subscriber=34&department=56'

client = pysagec.create_client(url)

pickup_info = pysagec.PickupInfo(
    pickup_address=pysagec.Address(street_name='Plaza de España',
                                   postal_code='36001',
                                   city='Pontevedra'),
    recipient_name='Juan Pérez',
    recipient_phone_number='555555555',
    comments='Por las mañanas.',
)

service_info = pysagec.ServiceInfo(
    number_of_packages=1,
    date=dt.date.today(),
    service_code='0000',
)

response = client.send(pickup_info, service_info)

print(response.shipping_number)

Features

  • Use python classes instead of XML.

  • Simplify method invocation.

  • It has no dependencies, only standard library.

Installation

Install pysagec from PyPI:

$ pip install pysagec

Change log

Unreleased

0.1.2 - 2017-04-19

  • Remove unneeded print statement.

0.1.1 - 2016-09-02

  • Add an example.

  • Include more models into __init__.

0.1.0 - 2016-08-25

  • First production ready release.

License

MIT.

Release files for pysagec 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysagec 0.1.2
File Size Uploaded
pysagec-0.1.2.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysagec 0.1.2
File Interpreter ABI Platform
pysagec-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 20.7 kB

Release files / pysagec-0.1.2.tar.gz

Download URL pysagec-0.1.2.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0cad600b62018ee343d60b599e6f92c5f72acf8e1a86d15744095d7057258922
BLAKE2b-256 checksum
How to use checksums
09993be7bad3b87fd2dfc355fc3d7c7817cca1b92116e6ab178f4415d3f4ad26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pysagec-0.1.2-py2.py3-none-any.whl

Download URL pysagec-0.1.2-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f0c33d5d563e2592b08f39e906e42f89d023675647053e092f3f8898ef05fcea
BLAKE2b-256 checksum
How to use checksums
2a5f80f70d371f139b63311bcbd838f2817ea5181ce08bcdc57698b8ad168da0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page