Skip to main content

SearchEngineForJSON

Project description

SearchEngine for JSON (自作パッケージ公開)

  • json形式のデータから指定の型を持つkeyとvalueを再起的に取得します

Downloads Downloads Downloads

install

pip install {{package_name}}

ディレクトリ構造

|--packagingTutorial
|  |--SearchEngineForJSON
|  |  |--__init__.py
|  |  |--search.py
|  |--setup.py

Usage

import SearchEngineForJSON

SearchEngineForJSON.Search.moldSearch(探索したいデータ, 探索したい型) -> [[key, value], []]

Author

{{author}}

[![github](http://www.google.com/s2/favicons?domain=github.com)](https://github.com/aoimaru "github")

Example

import SearchEngineForJSON

data = {
    "name1": "Nakamura",
    "name2": {
        "name2-1": "Aoi",
        "name2-2": [
            "listA",
            "listB",
            {
                "listC-1": "listInDict1",
                "listC-2": "listInDict2",
                "listC-3": {
                    "listC-3-1": "hello",
                    "listC-3-2": "world",
                    "listC-3-3": [
                        "Sunday",
                        "Monday",
                        "Tuesday"
                    ],
                    "listC-3-4": 5,
                    "listC-3-5": True
                }
            },
            "listD",
            "listE"
        ],
        "name2-3": "python",
        "name2-4": [
            "Docker",
            "kubernetes",
            "Docker-compose"
        ]
    }
}

items = SearchEngineForJSON.Search.typeSearch(data, str)

for item in items:
    print(item)
['name1', 'Nakamura']
['name2.name2-1', 'Aoi']
['name2.name2-3', 'python']
['name2.name2-2.0', 'listA']
['name2.name2-2.1', 'listB']
['name2.name2-2.3', 'listD']
['name2.name2-2.4', 'listE']
['name2.name2-2.2.listC-1', 'listInDict1']
['name2.name2-2.2.listC-2', 'listInDict2']
['name2.name2-2.2.listC-3.listC-3-1', 'hello']
['name2.name2-2.2.listC-3.listC-3-2', 'world']
['name2.name2-2.2.listC-3.listC-3-3.0', 'Sunday']
['name2.name2-2.2.listC-3.listC-3-3.1', 'Monday']
['name2.name2-2.2.listC-3.listC-3-3.2', 'Tuesday']
['name2.name2-4.0', 'Docker']
['name2.name2-4.1', 'kubernetes']
['name2.name2-4.2', 'Docker-compose']

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

SearchEngineForJSON-0.1.7.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

SearchEngineForJSON-0.1.7-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file SearchEngineForJSON-0.1.7.tar.gz.

File metadata

  • Download URL: SearchEngineForJSON-0.1.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for SearchEngineForJSON-0.1.7.tar.gz
Algorithm Hash digest
SHA256 6fbc102c8fff93fb6b27a7f409f6c08ac0dc39e08ef5f0f24bc16320fdf20b0d
MD5 6ed4ca649568cea248dea788b77a4296
BLAKE2b-256 b4c7663cafd3cb9221628330c01934aeca5a3eade58e5c057d4ecc97a18b57d0

See more details on using hashes here.

File details

Details for the file SearchEngineForJSON-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: SearchEngineForJSON-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for SearchEngineForJSON-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5a2adad7f0954fd6b6a1b4bdcb2223d41f1388945d41c8c2148c377f45daca
MD5 c8edfd02e83f97c29abfe288692bae96
BLAKE2b-256 492be4f0a39a08d77c5f6a24d0738d3fd465e692230aa51e3b2463b0e6e10f4c

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