Coder Social home page Coder Social logo

nix1947 / pynepal Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 19 KB

python package to know about Nepal administrative and geographical information

Python 100.00%
nepal nepal-geojson nepal-python-package geo-information-nepal pynepal province python provinces-nepal districts-nepal municipality-nepal

pynepal's Introduction

pynepal

python package to get info related to Nepal administrative and geographical information

Installation

pip install pynepal

Usages:

Get general info

import pynepal
>>> pynepal.population
'26,494,504'

>>> pynepal.provinces.province_five.districts.gulmi.area
>>> pynepal.provinces.province_one.districts

Get provinces information

>>> from pynepal import provinces
>>> provinces
[Province('sagarmatha pradesh'), Province('janakpur pradesh'), Province('kathmandu pradesh'), Province('annapurna pradesh'), Province('lumbini pradesh'), Province('karnali pradesh'), Province('mahakali pradesh')]

Get province five info

>>> from pynepal import province_five
>>> from pynepal import provinces

>>> province_five
Province('lumbini pradesh')


# Get name
>>> province_five.name
'lumbini pradesh'

# Get all metropolitan list of province five. 
>>> province_five.metropolitans

# Get submetropolitan list 
>>> provinces.province_five.sub_metropolitans

# Get all the municipalities list of province five
>>> provinces.province_five.municipalities

# Get all the gaupalika(rural muncipilites) of province five
>>> provinces.province_five.rural_municipalities

# Get the province five districts gulmi info 
>>> province_five.districts.gulmi.headquarter
'resunga'

# Know who is the CM
>>> provinces.province_five.chief_minister
'shankar pokhrel'

# Get human development index
>>> provinces.province_five.hdi
'0.519'

Get all the district info of a province one

from pynepal import province_five

# province one district
>>> province_five.districts
[District('kapilvastu'), District('parasi'),....]

# Get  district information
>>> provinces.province_five.districts.gulmi.province_no
5

Links

pynepal's People

Contributors

nix1947 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.