semvec/pypi-packages huggingface dataset:
mdict-query-r 0.3.1
A package to query mdict
Requires Python: >=3.6

# MDict Query R

This project is based on [mdict-query](https://github.com/mmjang/mdict-query), [mdict-analysis](https://bitbucket.org/xwang/mdict-analysis/src/master/), [writemdict](https://github.com/zhansliu/writemdict).

You can use this library to query MDX and MDD files. The library will create SQLite files to save dictionary indexes when you initiate a querier or add new dictionaries.

You can also use the original library to query and write MDX and MDD files.

# Install

```bash
pip install mdict_query_r
```

# Usage

## Basic Usage

```python
from mdict_query_r.query import Querier, Dictionary

d = Dictionary('test', 'test.mdx')
querier = Querier([Dictionary('test', mdx_file_path)])
records = querier.query('doe')

# records = [
#     Record(
#         dictionary_name='test',
#         entry=Entry(
#             id=1,
#             key_text='doe',
#             data='a deer, a female deer.'
#         )
#     )
# ]


# query multi words
records = querier.query(keywords=['doe', 'ray'])

# query with case insensitive
records = querier.query('doe', ignore_case=True)
```

## Use mdict lib

use [readmdict](https://bitbucket.org/xwang/mdict-analysis/src/master/) to directly read mdx file.

```python
from mdict_query_r.lib.readmdict import MDX

mdx = MDX('test.mdx')
```

use [writemdict](https://github.com/zhansliu/writemdict) to directly create mdx file.

```python
from mdict_query_r.lib.writemdict import MDictWriter

dictionary = {
    "doe": "a deer, a female deer.",
    "ray": "a drop of golden sun.",
    "me": "a name I call myself.",
    "far": "a long, long way to run."
}

writer = MDictWriter(
    dictionary,
    title="Example Dictionary",
    description="This is an example dictionary."
)

with open('test.mdx', 'wb') as f:
    writer.write(f)
```
boto3-pydantic-snow-device-management 1.0.2
Pydantic models for AWS Snow_device_management
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, snow_device_management

# boto3-pydantic-snow_device_management

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Snow_device_management.
boto3-pydantic-sms-voice 1.0.2
Pydantic models for AWS Sms_voice
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, sms_voice

# boto3-pydantic-sms_voice

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Sms_voice.
boto3-pydantic-sms 1.0.2
Pydantic models for AWS Sms
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, sms

# boto3-pydantic-sms

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Sms.
boto3-pydantic-simspaceweaver 1.0.2
Pydantic models for AWS Simspaceweaver
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, simspaceweaver

# boto3-pydantic-simspaceweaver

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Simspaceweaver.
boto3-pydantic-signer 1.0.2
Pydantic models for AWS Signer
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, signer

# boto3-pydantic-signer

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Signer.
boto3-pydantic-shield 1.0.2
Pydantic models for AWS Shield
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, shield

# boto3-pydantic-shield

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Shield.
boto3-pydantic-sesv2 1.0.2
Pydantic models for AWS Sesv2
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, sesv2

# boto3-pydantic-sesv2

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Sesv2.
boto3-pydantic-ses 1.0.2
Pydantic models for AWS Ses
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, ses

# boto3-pydantic-ses

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Ses.
boto3-pydantic-servicediscovery 1.0.2
Pydantic models for AWS Servicediscovery
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, servicediscovery

# boto3-pydantic-servicediscovery

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Servicediscovery.
boto3-pydantic-servicecatalog-appregistry 1.0.2
Pydantic models for AWS Servicecatalog_appregistry
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, servicecatalog_appregistry

# boto3-pydantic-servicecatalog_appregistry

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Servicecatalog_appregistry.
boto3-pydantic-servicecatalog 1.0.2
Pydantic models for AWS Servicecatalog
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, servicecatalog

# boto3-pydantic-servicecatalog

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Servicecatalog.
boto3-pydantic-service-quotas 1.0.2
Pydantic models for AWS Service_quotas
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, service_quotas

# boto3-pydantic-service_quotas

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Service_quotas.
boto3-pydantic-serverlessrepo 1.0.2
Pydantic models for AWS Serverlessrepo
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, serverlessrepo

# boto3-pydantic-serverlessrepo

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Serverlessrepo.
boto3-pydantic-securitylake 1.0.2
Pydantic models for AWS Securitylake
Requires Python: <4.0,>=3.9
Keywords: aws, boto3, pydantic, models, securitylake

# boto3-pydantic-securitylake

This package was automatically generated by aws-resource-validator repository.

For more information, visit:
- Package homepage: https://coreoxide.github.io/aws_resource_validator/
- GitHub repository: https://github.com/CoreOxide/aws_resource_validator
- PyPI project: https://pypi.org/project/aws-resource-validator/

Pydantic models for AWS Securitylake.