Simple and useful parser that helps you get actual All-Russian Classifier of Municipal Territories (OKTMO)
Reason this release was yanked:
errors detected
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).
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:
- Import:
from OktmoParser import OktmoParser
- Create object:
parser = OktmoParser()
- Set
start_keyword
value andend_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.
- Parse and get .json file:
parser.parse_oktmo(start_keyword, end_keyword)
- That's it.
Developer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oktmoparser-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da28e02fd6097d9ff265f1f3b5c90be2e8cfb24f1e9a32638b5f0ad9f7d8170a |
|
MD5 | 911e18c7002e51821b44dd7eab2feee5 |
|
BLAKE2b-256 | 39ff698b590436cd8f379aacb67c0497f21646b0aeca5caece510f4b87466d15 |