A django client library for Brazilian Correios API's, current solution available to find addresses by zipcode, calculate the shipping service and tracking.
See REQUIREMENTS in the setup.py file for additional dependencies:
- Python 3.4 or higher
- Django 1.9 or higher
- Django Rest Framework 3.8 or higher
- Requests 2.19 or higher
- run
pip install django-brazilian-addresses
- add
addresses
to yourINSTALLED_APPS
- add
addresses.urls
to yoururls.py
- run
python manage.py address_loaddata
to load brazilian states
settings.py
INSTALLED_APPS = [
# ...
'addresses',
]
urls.py
from django.urls import path, include
urlpatterns = [
# ...
path('addresses/', include('addresses.urls'))
]
- Calculate the shipping service
- Clone repository.
- Create a virtualenv with python 3.4 or higher and activate.
- Install dependencies.
- Run tests.
$ git clone https://github.com/felipefrizzo/django-brazilian-addresses.git
$ cd django-brazilian-addresses
$ python -m venv .venv
$ source .venv/bin/activete
$ pip install pipenv && pipenv install --dev
$ python manage.py test
This django library was created in 2018 by Felipe Frizzo
The MIT License (MIT)