A Python package for automating E-BIR forms
Project description
ebir-automation
A Python package for robust automation of the eBIRForms application on Windows, powered by Rust, PyO3, and UIAutomation.
Features
- Launches or focuses the eBIRForms application (including mshta.exe child windows)
- Waits for the application to be fully loaded before proceeding
- Snaps the window to the left half of the screen (Windows 11 supported)
- Reliable window and element polling (no fixed sleeps)
- Python bindings via PyO3
- Automate TIN entry, section navigation, button clicks, tax type selection, and more
Installation
Install via pip:
pip install ebir-automation
Usage
from ebir_automation import (
open_ebir_window_py,
type_tin_py,
navigate_to_section_py,
click_button_py,
select_tax_type_py,
set_accept_terms_py,
complete_form_py,
SECTION_TAXPAYER_INFO,
SECTION_TAX_TYPE,
SECTION_PAYMENT_DETAILS,
SECTION_SUMMARY,
BUTTON_NEXT,
BUTTON_PREVIOUS,
BUTTON_SUBMIT,
BUTTON_CANCEL,
)
# Launch or focus eBIRForms, snap window (default: use_winapi=True, ebir_path=None)
open_ebir_window_py()
# Fill in TIN fields
type_tin_py("123", "456", "789", "000")
# Navigate to a section
navigate_to_section_py(SECTION_TAXPAYER_INFO)
# Click a button
click_button_py(BUTTON_NEXT)
# Select a tax type
select_tax_type_py("Income Tax")
# Check the accept terms checkbox
set_accept_terms_py(True)
# Complete the form workflow (TIN + tax type + navigation + submit)
complete_form_py("123", "456", "789", "000", "Income Tax")
Project Links
- Source code: https://github.com/noizrom/ebir-automation
- Issue tracker: https://github.com/noizrom/ebir-automation/issues
License
MIT
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
ebir_automation-0.3.0.tar.gz
(21.8 kB
view details)
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 ebir_automation-0.3.0.tar.gz.
File metadata
- Download URL: ebir_automation-0.3.0.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5857b1e06d4bc94e0c5d2153f92052b663fc3223ff85cbe8b0c5adfa2bb9dff0
|
|
| MD5 |
f3a1629052f3658aadff588d64c14641
|
|
| BLAKE2b-256 |
7992651c02707ed0abecbbb4f098c71fb3ba2291dc04d8676572bc8a319b1615
|
File details
Details for the file ebir_automation-0.3.0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: ebir_automation-0.3.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 213.4 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3b973a36681187f59735bb40d9838c6529aadabebc448c6d4e32814dbe44d06
|
|
| MD5 |
f7fcf9f10174d252fc2154a1c38abe24
|
|
| BLAKE2b-256 |
31b632f9db37ca34d265e9fa6f8471c0b371a79e81129fca7551590b539cda26
|