GithubHelp home page GithubHelp logo

erayerdin / pynvi Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 23 KB

pynvi Türkiye Cumhuriyeti Nüfus ve Vatandaşlık İşleri Genel Müdürlüğü SOAP servisi için oluşturulmuş köprü bir Python kütüphanesidir.

Python 100.00%
soap rest http turkiye

pynvi's Introduction

pynvi

PyPI PyPI - Status PyPI - Python Version PyPI - License Style Black Telegram

Build Coverage
master Travis (.org) master Codecov master
development Travis (.org) development Codecov development

pynvi Türkiye Cumhuriyeti Nüfus ve Vatandaşlık İşleri Genel Müdürlüğü SOAP servisi için oluşturulmuş köprü bir Python kütüphanesidir.

Neler Yapılabilir?

Bu kütüphane ile Türkiye Cumhuriyeti Nüfus ve Vatandaşlık İşleri Genel Müdürlüğü'nün SOAP servisinin verdiği hizmetlerden yararlanılabilir. Neler yapılacağına dair bir fikir edinmek için ilgili bağlantıya gözatın.

Her ne kadar resmi kaynaklarda kullanımın sınırları ([throttling](https://en.wikipedia.org/wiki/Throttling_process_(computing) gibi)) belirtilmemişse de geliştirici servise fazla yüklenmemeyi göz önünde bulundurmalıdır.

Yükleme

pip ile yükleme yapabilirsiniz.

pip install pynvi

Kullanım

Vatandaş Sorgulama

pynvi.verify_identity metodu ile vatandaş sorgusu yapabilirsiniz.

Argüman Tür Varsayılan
identity_number int -
name str -
surname str -
year_of_birth int -

Örnekler

pynvi.verify_identity(11111111111, "ERAY", "ERDİN", 1994)
# True

Uyarı

NVİ, name ve surname değerlerini hepsi büyük harf olarak kabul etmektedir. Ad ve soyadın hepsinin büyük harf olmaması durumunda ise False döndürmektedir. Bu kütüphane, name ve surname değerlerinizi otomatik olarak büyük harfe döndürmeyecektir. Bunu sizin sağlamanız beklenmektedir.

# Eğer yukarıdaki örnek doğruysa
pynvi.verify_identity(11111111111, "Eray", "Erdin", 1994)
# False
pynvi.verify_identity(11111111111, "eray", "erdin", 1994)
# False

Uyarı

Sunuucu tarafından bir hata geldiğinde NVIException ile yakalayabilirsiniz.

try:
    pynvi.verify_identity(11111111111, "ERAY", "ERDİN", 1994)
except pynvi.NVIException as e:
    # bir hata var ise buradayız
    # birçok sebepten sunucu hata verebilir
    # sunucu meşgul ya da düşmüş olabilir
    print(e.message)  # hata mesajı
    print(e.response)  # hataya ait Response

pynvi's People

Contributors

erayerdin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pynvi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.