A package to call UN Comtrade APIs
Project description
ComtradeAPICALL Package
This package simplifies calling APIs of UN Comtrade to extract and download data . New users can learn more about UN Comtrade at the wiki.
The main script is located at /src/comtradeapicall_package_3m/init.py. And the folder tests contains example script how to install and use the package.
The packaging instruction is located at Packaging Python Project.
##Available functions:
- previewFinalData, previewTarifflineData (extract data to pandas data frame, max record 500, no subscription key)
- getFinalData, getTarifflineData (extract data to pandas data frame, max record 250K, require free or premium subscription key)
- bulkDownloadFinalFile, bulkDownloadTarifflineFile (download data files, require premium subscription key)
(See tests folder for examples)
###Downloaded file name The naming convention follows the following : "COMTRADE-<DATA>-<TYPE><FREQ><COUNTRY CODE><YEAR[ -MONTH]><CLASSIFICATION CODE>[<RELEASE DATE>]"
As examples:
- Final merchandise trade data from Morocco (code 504) in March 2000 released on 3 Jan 2023 coded using H1 classification : COMTRADE -FINAL-CM504200003H1[2023-01-03]
- Tariffline merchandise trade from Morocco (code 504) in March 2000 released on 3 Jan 2023 coded using H1 classification: COMTRADE -TARIFFLINE-CM504200003H1[2023-01-03]
See differences between final and tariffline data at the Wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for comtradeapicall-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8130c6ed031552c0c7d009061473e036771cc9a28730f40f07ff644a932d74f |
|
MD5 | a77e8fdc2ee66200e6c87c00291e8cd9 |
|
BLAKE2b-256 | 9c2b6d32a5c24a1a7b3d1c4451bed1eb3aa6313c58f16091f9d2ae38ffdb4959 |