Skip to main content

Simple and useful parser that helps you get actual All-Russian Classifier of Municipal Territories (OKTMO)

Project description

All-Russian Classifier of Municipal Territories (OKTMO) Parser

What is this?

Simple and useful parser that helps you get actual All-Russian Classifier of Municipal Territories (OKTMO).

Install

pip install oktmoparser

Quick Guide

The parser is based on the following structure:

parser = OktmoParser()
start_keyword = ''
end_keyword = ''
parser.parse_oktmo(start_keyword, end_keyword)

Parser returns .json file with actual OKTMO from Federal State Statistics Service.


Using

Using the library is as simple and convenient as possible:

  1. Import:

from OktmoParser import OktmoParser

  1. Create object:

parser = OktmoParser()

  1. Set start_keyword value and end_keyword value.

Notice: for the first usage set it empty to get full .json file to see the structure and then you can set your values.

Examples:

start_keyword = 'Муниципальные образования Приморского края'
end_keyword = 'Муниципальные образования Ставропольского края'

You will get all rows between this municipal territories.

  1. Parse and get .json file:

parser.parse_oktmo(start_keyword, end_keyword)

  1. That's it.

Developer

@letimvkocmoc

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

oktmoparser-1.3.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oktmoparser-1.3.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file oktmoparser-1.3.2.tar.gz.

File metadata

  • Download URL: oktmoparser-1.3.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.0

File hashes

Hashes for oktmoparser-1.3.2.tar.gz
Algorithm Hash digest
SHA256 76ac050c74a468372d77067551347ff0f8d8ed0234ccfff17e1f9255d9938436
MD5 2054cdc648d5c7e57a69786cb01a18ee
BLAKE2b-256 52a634271c83cecef64c8091911cc1450cadb233842cb48226e94937121df0b1

See more details on using hashes here.

File details

Details for the file oktmoparser-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: oktmoparser-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.0

File hashes

Hashes for oktmoparser-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a34da59046433a195949fff8a632cdc0c2accb3ddd8ba69c909b3f0da5979aef
MD5 c8d4fd10bb39df91a09e21a4f2623623
BLAKE2b-256 38a0b76630aa238c4754e0f69c217a9cb17f1fa2ceb0db0b308284987264012a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page