Tariff rate and duty calculation based on Bangladesh Import and Export related H.S. Code
Project description
tariff rate take from https://customs.gov.bd/files/Tariff-2025-2026(02-06-2025).pdf ------- How to get total duty -------------
from bdtariff import duty duty()
Enter HSCode and then Assess Value in BDT you get totat duty in BDT.
------ How to know tariff rate ------------
from bdtariff import rate rate()
Enter HScode You get Tariff rate
------ How to get one by one --------------
from bdtariff import hscode
result = hscode(HSCODE) print(result.cd) # Get the 'cd' field print(result.sd) # Get the 'sd' field print(result.rd) # Get the 'rd' field print(result.vat) # Get the 'vat' field print(result.at) # Get the 'at' field print(result.ait) # Get the 'ait' field print(result.tti) # Get the 'tti' field print(result.tarriff_description) # Get the 'Tariff Description' field
################# Sample Program #############
from bdtariff import hscode
result = hscode("01012100") if result: print(result.cd) # Get the 'cd' field print(result.sd) # Get the 'sd' field print(result.as_dict()) # Get the full dictionary else: print("HSCode not found")
################# Sample Program for duty calculation #############
from bdtariff import duty
result = duty(hscode("01012100"),100) if result: print(result.cd) # Get the 'cd' print(result.sd) # Get the 'sd' print(result.tti) # Get the total duty else: print("HSCode not found")
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bdtariff-1.0.0.tar.gz.
File metadata
- Download URL: bdtariff-1.0.0.tar.gz
- Upload date:
- Size: 173.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c773b3c837d1a13fabcaf4412ba7c4a32a837f886db6eb301fdd0310d944eebb
|
|
| MD5 |
6ffc16950d612ae953ae9bcf282d9c1e
|
|
| BLAKE2b-256 |
1ccce080bebcf0fbd9e72e154e5ef21b6a8fa185498cc39d5ccdfab37eff6019
|
File details
Details for the file bdtariff-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bdtariff-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
201dee738371113fedebac5e9fa8cb4f47b33b70ff8edef46da342e588d56721
|
|
| MD5 |
ad220faef876ec5a3117ae325d95d051
|
|
| BLAKE2b-256 |
9328aa1896069567ed0acc9bc88d7310df9a5f5b1ae025d0a283c1ff57f13034
|