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:
- Import:
from OktmoParser import OktmoParser
- Create object:
parser = OktmoParser()
- Set
start_keywordvalue andend_keywordvalue.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76ac050c74a468372d77067551347ff0f8d8ed0234ccfff17e1f9255d9938436
|
|
| MD5 |
2054cdc648d5c7e57a69786cb01a18ee
|
|
| BLAKE2b-256 |
52a634271c83cecef64c8091911cc1450cadb233842cb48226e94937121df0b1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a34da59046433a195949fff8a632cdc0c2accb3ddd8ba69c909b3f0da5979aef
|
|
| MD5 |
c8d4fd10bb39df91a09e21a4f2623623
|
|
| BLAKE2b-256 |
38a0b76630aa238c4754e0f69c217a9cb17f1fa2ceb0db0b308284987264012a
|