oktmoparser


Nameoktmoparser JSON
Version 1.3.2 PyPI version JSON
download
home_pagehttps://github.com/letimvkocmoc/oktmo-parser
SummarySimple and useful parser that helps you get actual All-Russian Classifier of Municipal Territories (OKTMO)
upload_time2024-05-27 01:27:58
maintainerNone
docs_urlNone
authorletimvkocmoc
requires_pythonNone
licenseNone
keywords oktmo parser municipal territory classifier
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://rosstat.gov.ru/).


----------


### Using ###


Using the library is as simple and convenient as possible:

1. Import:

`from OktmoParser import OktmoParser`

2. Create object:

`parser = OktmoParser()`

3. 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.

4. Parse and get .json file:

`parser.parse_oktmo(start_keyword, end_keyword)`

5. That's it.


----------


## Developer ##
[@letimvkocmoc](https://github.com/letimvkocmoc/) 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/letimvkocmoc/oktmo-parser",
    "name": "oktmoparser",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "oktmo parser municipal territory classifier",
    "author": "letimvkocmoc",
    "author_email": "letimvkocmoc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/52/a6/34271c83cecef64c8091911cc1450cadb233842cb48226e94937121df0b1/oktmoparser-1.3.2.tar.gz",
    "platform": null,
    "description": "# All-Russian Classifier of Municipal Territories (OKTMO) Parser #\r\n\r\n## What is this? ##\r\nSimple and useful parser that helps you get actual All-Russian Classifier of Municipal Territories (OKTMO).\r\n\r\n## Install ##\r\n`pip install oktmoparser`\r\n\r\n## Quick Guide ##\r\nThe parser is based on the following structure:\r\n\r\n    parser = OktmoParser()\r\n    start_keyword = ''\r\n    end_keyword = ''\r\n    parser.parse_oktmo(start_keyword, end_keyword)\r\n    \r\nParser returns .json file with actual OKTMO from [Federal State Statistics Service](https://rosstat.gov.ru/).\r\n\r\n\r\n----------\r\n\r\n\r\n### Using ###\r\n\r\n\r\nUsing the library is as simple and convenient as possible:\r\n\r\n1. Import:\r\n\r\n`from OktmoParser import OktmoParser`\r\n\r\n2. Create object:\r\n\r\n`parser = OktmoParser()`\r\n\r\n3. Set `start_keyword` value and `end_keyword` value.\r\n\r\n*Notice:* for the first usage set it empty to get full .json file to see the structure and then you can set your values.\r\n\r\nExamples:\r\n\r\n    start_keyword = '\u0420\u045a\u0421\u0453\u0420\u0405\u0420\u0451\u0421\u2020\u0420\u0451\u0420\u0457\u0420\u00b0\u0420\u00bb\u0421\u040a\u0420\u0405\u0421\u2039\u0420\u00b5 \u0420\u0455\u0420\u00b1\u0421\u0402\u0420\u00b0\u0420\u00b7\u0420\u0455\u0420\u0406\u0420\u00b0\u0420\u0405\u0420\u0451\u0421\u040f \u0420\u045f\u0421\u0402\u0420\u0451\u0420\u0458\u0420\u0455\u0421\u0402\u0421\u0403\u0420\u0454\u0420\u0455\u0420\u0456\u0420\u0455 \u0420\u0454\u0421\u0402\u0420\u00b0\u0421\u040f'\r\n    end_keyword = '\u0420\u045a\u0421\u0453\u0420\u0405\u0420\u0451\u0421\u2020\u0420\u0451\u0420\u0457\u0420\u00b0\u0420\u00bb\u0421\u040a\u0420\u0405\u0421\u2039\u0420\u00b5 \u0420\u0455\u0420\u00b1\u0421\u0402\u0420\u00b0\u0420\u00b7\u0420\u0455\u0420\u0406\u0420\u00b0\u0420\u0405\u0420\u0451\u0421\u040f \u0420\u040e\u0421\u201a\u0420\u00b0\u0420\u0406\u0421\u0402\u0420\u0455\u0420\u0457\u0420\u0455\u0420\u00bb\u0421\u040a\u0421\u0403\u0420\u0454\u0420\u0455\u0420\u0456\u0420\u0455 \u0420\u0454\u0421\u0402\u0420\u00b0\u0421\u040f'\r\n\r\nYou will get all rows between this municipal territories.\r\n\r\n4. Parse and get .json file:\r\n\r\n`parser.parse_oktmo(start_keyword, end_keyword)`\r\n\r\n5. That's it.\r\n\r\n\r\n----------\r\n\r\n\r\n## Developer ##\r\n[@letimvkocmoc](https://github.com/letimvkocmoc/) \r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simple and useful parser that helps you get actual All-Russian Classifier of Municipal Territories (OKTMO)",
    "version": "1.3.2",
    "project_urls": {
        "GitGub": "https://github.com/letimvkocmoc",
        "Homepage": "https://github.com/letimvkocmoc/oktmo-parser"
    },
    "split_keywords": [
        "oktmo",
        "parser",
        "municipal",
        "territory",
        "classifier"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38a0b76630aa238c4754e0f69c217a9cb17f1fa2ceb0db0b308284987264012a",
                "md5": "c8d4fd10bb39df91a09e21a4f2623623",
                "sha256": "a34da59046433a195949fff8a632cdc0c2accb3ddd8ba69c909b3f0da5979aef"
            },
            "downloads": -1,
            "filename": "oktmoparser-1.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8d4fd10bb39df91a09e21a4f2623623",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3367,
            "upload_time": "2024-05-27T01:27:56",
            "upload_time_iso_8601": "2024-05-27T01:27:56.579162Z",
            "url": "https://files.pythonhosted.org/packages/38/a0/b76630aa238c4754e0f69c217a9cb17f1fa2ceb0db0b308284987264012a/oktmoparser-1.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52a634271c83cecef64c8091911cc1450cadb233842cb48226e94937121df0b1",
                "md5": "2054cdc648d5c7e57a69786cb01a18ee",
                "sha256": "76ac050c74a468372d77067551347ff0f8d8ed0234ccfff17e1f9255d9938436"
            },
            "downloads": -1,
            "filename": "oktmoparser-1.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2054cdc648d5c7e57a69786cb01a18ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3252,
            "upload_time": "2024-05-27T01:27:58",
            "upload_time_iso_8601": "2024-05-27T01:27:58.235372Z",
            "url": "https://files.pythonhosted.org/packages/52/a6/34271c83cecef64c8091911cc1450cadb233842cb48226e94937121df0b1/oktmoparser-1.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-27 01:27:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "letimvkocmoc",
    "github_project": "oktmo-parser",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "oktmoparser"
}
        
Elapsed time: 0.23991s