Metadata-Version: 2.1
Name: py17track
Version: 1.0.2
Summary: An simple API for to track package info from 17track.com
Home-page: https://github.com/bachya/py17track
Author: Aaron Bach
Author-email: bachya1208@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: attrs
Requires-Dist: requests


py17track: A Simple Python API for 17track.net
================================================

.. image:: https://travis-ci.org/bachya/py17track.svg?branch=master
  :target: https://travis-ci.org/bachya/py17track

.. image:: https://img.shields.io/pypi/v/py17track.svg
  :target: https://pypi.python.org/pypi/py17track

.. image:: https://img.shields.io/pypi/pyversions/py17track.svg
  :target: https://pypi.python.org/pypi/py17track

.. image:: https://img.shields.io/pypi/l/py17track.svg
  :target: https://github.com/bachya/py17track/blob/master/LICENSE

.. image:: https://codecov.io/gh/bachya/py17track/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/bachya/py17track

.. image:: https://api.codeclimate.com/v1/badges/af60d65b69d416136fc9/maintainability
  :target: https://codeclimate.com/github/bachya/py17track

.. image:: https://img.shields.io/badge/SayThanks-!-1EAEDB.svg
  :target: https://saythanks.io/to/bachya

py17track is a simple Python library to track pacakges via
`17track.net <http://www.17track.net/>`_.

Installation
============

.. code-block:: bash

  $ pip install py17track

Usage
=====

.. code-block:: python

  from py17track import Client

  client = Client()

  # Track as many packages as you like:
  packages = client.track('12345ABCDE', '78901FGHIJ')
  # -> {'12345ABCDE': Package(...), '78901FGHIJ', Package(...)}

Each `Package` object has the following info:

* :code:`destination_country`: the country the package was shipped to
* :code:`info`: a text description of the latest status
* :code:`location`: the current location (if known)
* :code:`origin_country`: the country the package was shipped from
* :code:`package_type`: the type of package (if known)
* :code:`status`: the overall package status ("In Transit", "Delivered", etc.)
* :code:`tracking_info_language`: the language of the tracking info
* :code:`tracking_number`: the all-important tracking number

Contributing
============

#. `Check for open features/bugs <https://github.com/bachya/py17track/issues>`_
   or `initiate a discussion on one <https://github.com/bachya/py17track/issues/new>`_.
#. `Fork the repository <https://github.com/bachya/py17track/fork>`_.
#. Install the dev environment: :code:`make init`.
#. Enter the virtual environment: :code:`pipenv shell`
#. Code your new feature or bug fix.
#. Write a test that covers your new functionality.
#. Run tests: :code:`make test`
#. Build new docs: :code:`make docs`
#. Add yourself to AUTHORS.rst.
#. Submit a pull request!


