Taiwan Tender API
This API allows you to search for Taiwan procurement tenders. The data is sourced from the 政府電子採購網.
Usage
available at https://tender.hlin.tw/
Installation
-
Clone the repository:
git clone https://github.com/hunglin59638/twtender.git cd twtender
-
Install the dependencies:
pip install -r requirements.txt
-
Run the application:
python -m twtender.main
-
Open the browser and go to http://localhost:8000/
-
You can also access the Swagger documentation at http://localhost:8000/docs
Docker Usage
Build and Run the Docker Container
-
Build the Docker image:
docker build -t twtender .
-
Run the Docker container:
docker run --rm -p 8000:8000 twtender
Use Pre-built Docker Image
-
Pull the Docker image from Docker Hub:
docker pull hunglin59638/twtender:latest
-
Run the Docker container:
docker run -p 8000:8000 hunglin59638/twtender:latest
Endpoints
Search Tenders
GET /
Query Parameters
tender_name(Optional): Name of the tender.tender_id(Optional): ID of the tender.org_id(Optional): ID of the organization.start_date(Optional): Start date in the format 'yyyy/mm/dd'.end_date(Optional): End date in the format 'yyyy/mm/dd'.p(Optional): Page number (default: 1).page_size(Optional): Number of results per page (default: 100).format(Optional): Response format, either 'json' or 'html' (default: 'html').
Example Request
curl -X GET "http://localhost:8000?start_date=2023/01/01&end_date=2023/12/31&format=json"
{
"標案編號": ["12345", "67890"],
"標案名稱": ["Example Tender 1", "Example Tender 2"],
// ...other fields...
}
Metadata
Release files for twtender 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| twtender-0.1.0.tar.gz | 16.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| twtender-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.2 kB
Release files / twtender-0.1.0.tar.gz
| Download URL | twtender-0.1.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1f3ca328c79cf4672f337e245d370ed0a6749fa407ca3f5548626b488e72dbb
|
|
BLAKE2b-256 checksum How to use checksums |
b294320bc769b142c6b8423760a25d8900865964a56db29656cededf5b5886a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.6
|
Release files / twtender-0.1.0-py3-none-any.whl
| Download URL | twtender-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8298551e2af9ec3a68234ee357307f7b6ec0ad712057a1fe2ac9d79e9702bb19
|
|
BLAKE2b-256 checksum How to use checksums |
a4f10b73c734605dfcde698ed3756dc07ad15ea40ffd3f0649c99d7e853e10a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.6
|
Security for twtender 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.