Skip to main content

GİB e-Arşiv Portal e-Fatura, e-SMM, e-Müstahsil Oluşturucu

Project description

🧾 eArsivPortal

Boyut Görüntülenme

PyPI Yükleyici

PyPI PyPI - Yüklenme PyPI - Wheel

Python Version Lisans Durum

GİB e-Arşiv Portal e-Fatura, e-SMM, e-Müstahsil Oluşturucu

Bu paket Fatih Kadir Akın'ın hazırlamış olduğu fatura (js) paketinin Python dili ile yazılmış versiyonudur.

ForTheBadge made-with-python ForTheBadge built-with-love

🚀 Kurulum

PyPI

# Yüklemek
pip install eArsivPortal

# Güncellemek
pip install -U eArsivPortal

📝 Kullanım

Lib

from eArsivPortal import eArsivPortal

portal = eArsivPortal(
    kullanici_kodu = "33333301",
    sifre          = "1",
    test_modu      = True
)
portal.bilgilerim()
#--------------------------------------------------------------#
{
    "vknTckn": "3333333301",
    "unvan": "HOSAM ALDEEN ABUSHAWER TİCARİ GİRİŞİMİ",
    "ad": "",
    "soyad": "",
    "cadde": "şehit yusuf bey",
    "apartmanAdi": "yıldız",
    "apartmanNo": "8",
    "kapiNo": "2",
    "kasaba": "ortakapı",
    "ilce": "Merkez",
    "il": "Kars",
    "postaKodu": "36000",
    "ulke": "Türkiye",
    "telNo": "05524775288",
    "faksNo": "",
    "ePostaAdresi": "",
    "webSitesiAdresi": "",
    "vergiDairesi": "kars",
    "sicilNo": "8729",
    "isMerkezi": "",
    "mersisNo": "9962438036000001"
}
portal.kisi_getir(vkn_veya_tckn="3333333301")
#--------------------------------------------------------------#
{
    "unvan":"HOSAM ALDEEN ABUSHAWER TİCARİ GİRİŞİMİ",
    "adi":"",
    "soyadi":"",
    "vergiDairesi":"kars"
}
portal.fatura_olustur(
    tarih:str         = "07/10/1995",
    saat:str          = "14:28:37",
    vkn_veya_tckn:str = "11111111111",
    ad:str            = "Ömer Faruk",
    soyad:str         = "Sancak",
    unvan:str         = "",
    vergi_dairesi:str = "",
    urun_adi:str      = "Python Yazılım Hizmeti",
    fiyat:int | float = 100,
    fatura_notu:str   = "— QNB Finansbank —\nTR70 0011 1000 0000 0118 5102 59\nÖmer Faruk Sancak"
)
#--------------------------------------------------------------#
{"ettn": "b40c16ae-8509-434e-bd6f-894459372134"}
faturalar = portal.faturalari_getir(
    baslangic_tarihi = "01/05/2023",
    bitis_tarihi     = "28/05/2023"
)
#--------------------------------------------------------------#
[
    {
        'belgeNumarasi': 'GIB2023000002672',
        'aliciVknTckn': '16045751784',
        'aliciUnvanAdSoyad': 'Sercan AYDIN',
        'belgeTarihi': '28-05-2023',
        'belgeTuru': 'FATURA',
        'onayDurumu': 'Onaylanmadı',
        'ettn': '0c111c74-fcd4-11ed-8026-3ae56703837b'
    },
    {
        'belgeNumarasi': 'GIB2023000002673',
        'aliciVknTckn': '16045751784',
        'aliciUnvanAdSoyad': 'Sercan AYDIN',
        'belgeTarihi': '28-05-2023',
        'belgeTuru': 'FATURA',
        'onayDurumu': 'Silinmiş',
        'ettn': '234baa8e-fcd5-11ed-827f-3ae56703837b'
    }
]
html_fatura = portal.fatura_html(
    ettn        = faturalar[0].get("ettn")
    onay_durumu = faturalar[0].get("onayDurumu")
)

with open(f"{faturalar[0].get("aliciUnvanAdSoyad")}.html", "w", encoding="utf-8") as dosya:
    dosya.write(html_fatura)
portal.fatura_sil(
    faturalar = [faturalar[0], faturalar[1]]
    aciklama  = "Fatura silindi."
)
#--------------------------------------------------------------#
2 fatura başarıyla silindi.
oid = portal.gib_imza()
portal.gib_sms_onay(faturalar[3], oid, input("SMS Doğrulama Kodu: "))
portal.cikis_yap()

🌐 Telif Hakkı ve Lisans

♻️ İletişim

Benimle iletişime geçmek isterseniz, Telegram'dan mesaj göndermekten çekinmeyin; @keyiflerolsun

💸 Bağış Yap

☕️ Kahve Ismarla


@KekikAkademi için yazılmıştır..

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

eArsivPortal-0.0.6.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

eArsivPortal-0.0.6-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file eArsivPortal-0.0.6.tar.gz.

File metadata

  • Download URL: eArsivPortal-0.0.6.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for eArsivPortal-0.0.6.tar.gz
Algorithm Hash digest
SHA256 090bbc4d0aa174b790b150067e8d6d8fcad98cce1c52b492cd9f84bc55c30bab
MD5 9866442415fa6a4715c6349b65741ecb
BLAKE2b-256 5846f4fca89bcce026718e1cee53d49f2886f8b4399d7ab1a0329e6697aebf48

See more details on using hashes here.

File details

Details for the file eArsivPortal-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: eArsivPortal-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for eArsivPortal-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 806d61b75060550ed906e80e534070dcdd513aa365678216d362d4fd66ae0bcd
MD5 d18f22f57c70de2be40d5b69df27af2b
BLAKE2b-256 a22f222ef5dbf221379bfe58183d54c0a13a7a253174176a13f7911145151cfc

See more details on using hashes here.

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