Skip to main content

A little utility to download Brazil's foreign trade data

Project description

comexdown: Brazil's foreign trade data downloader

This package contains functions to download brazilian foreign trade data published by Ministério da Economia(ME)/Secretaria de Comércio Exterior (SCE).

Installation

git clone https://github.com/dkkomesu/comexdown.git
cd comexdown
pip setup.py install

Usage

import comexdown

# Download main NCM table in the directory ./DATA
comexdown.ncm(table="ncm", path="./DATA")

# Download 2019 exports data file in the directory ./DATA
comexdown.exp(year=2019, path="./DATA")

Command line tool

Download data on Brazilian foreign trade transactions (Exports / Imports).

You can specify a range of years to download at once.

comexdown download trade 2008:2019 -o "./DATA"

Download code tables.

comexdown download code all  # Download all related code files
comexdown download code uf   # Download only the UF.csv file
comexdown download ncm_cgce  # Download only the NCM_CGCE.csv file
comexdown download nbm_ncm   # Download only the NBM_NCM.csv file

Project details


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

comexdown-1.0-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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