semvec/pypi-packages huggingface dataset:
jsonomy 0.0.3
Basic JSON parser, that converts APIs JSON output to be more pythonic, including camel case to snake case conversion, and converting timestamps to datetime objects.
License: MIT
Requires Python: >=3.6
Keywords: json parser pythonic camelcase snakecase datetime conversion

Copy code
# Jsonomy

Jsonomy is a basic JSON parser that converts API's JSON output to be more Pythonic. It includes functionalities like converting camel case to snake case, and timestamps to datetime objects.

## Features

- Convert JSON keys from camel case to snake case.
- Identify strings that represent dates and convert them to datetime objects.
- Recursively process JSON data structures.

## Installation

To install Jsonomy, you can use pip:

```bash
pip install jsonomy
```

## Usage

```python  
from jsonomy import Jsonomy

data = {
    "createdAt": "2022-07-01T10:00:00Z",
    "someNestedData": {
        "moreDetails": "data"
    },
    "aList": ["item1", "item2"]
}

# load data into Jsonomy and process
formatter = Jsonomy(data)
processed = formatter.format()

# print the processed data 
formatter.pprint()

# reload new data
formatter.load(data)

#load and format
Jsonomy(data).format()

#load and pretty print to a string
pretty_json = Jsonomy(data).pprint(as_str=True)

```


## License
This project is licensed under the terms of the MIT license.

## Contact
For questions, feel free to reach out to Lewis Morris at lewis.morris@gmail.com
npblind 0.0.10
A package to help managing data privacy
License: MIT
Requires Python: >=3.6, <4

# npblind
A package to manage BigQuery policy tag and GCP IAM related tasks

Reference:
- [GCP roles](https://github.com/ecneladis/gcp_managed_roles/blob/master/gcp-roles.json)
- [GCP roles](https://cloud.google.com/iam/docs/understanding-roles)
- [GCP roles predefined](https://codehex.dev/gcp_predefined_roles/)
- https://github.com/googleapis/python-dlp/tree/main/samples/generated_samples
- https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/dlp/snippets
- https://github.com/googleapis/python-bigquery-datapolicies
- https://cloud.google.com/python/docs/reference/datacatalog/latest/google.cloud.datacatalog_v1.services.policy_tag_manager.PolicyTagManagerClient


Workaround:
- https://cloud.google.com/sdk/gcloud/reference/data-catalog/taxonomies
  - Untested: `gcloud data-catalog taxonomies policy-tags set-iam-policy POLICY_TAG --location=LOCATION --taxonomy=TAXONOMY policy.json`
  - Tested & Works:
  ```bash
  # one by one: works !!!
  gcloud beta data-catalog taxonomies policy-tags \
      add-iam-policy-binding projects/nplearn/locations/asia-southeast1/taxonomies/7979849403702726703/policyTags/6110705995628818296 \
      --location='asia-southeast1' \
      --taxonomy='7979849403702726703' \
      --member='user:nplearn.channel@gmail.com' \
      --role='roles/datacatalog.categoryFineGrainedReader'


  # using file: not working
  gcloud data-catalog taxonomies policy-tags \
      set-iam-policy projects/nplearn/locations/asia-southeast1/taxonomies/7979849403702726703/policyTags/6110705995628818296 \
      --location=asia-southeast1 \
      --taxonomy=7979849403702726703 policytag.yaml

  # get policy
  gcloud beta data-catalog taxonomies policy-tags \
      get-iam-policy projects/nplearn/locations/asia-southeast1/taxonomies/7979849403702726703/policyTags/6110705995628818296 \
      --location='asia-southeast1' \
      --taxonomy='7979849403702726703'


  # describe
  gcloud beta data-catalog taxonomies policy-tags \
      describe projects/nplearn/locations/asia-southeast1/taxonomies/7979849403702726703/policyTags/6110705995628818296 \
      --location='asia-southeast1' \
      --taxonomy='7979849403702726703'

  # list
  gcloud beta data-catalog taxonomies policy-tags \
      list \
      --location='asia-southeast1' \
      --taxonomy='7979849403702726703'
  ```
nonebot-plugin-userinfo 0.1.0
Nonebot2 用户信息获取插件
License: MIT
Requires Python: >=3.8,<4.0

<div align="center">

  <a href="https://nonebot.dev/">
    <img src="https://nonebot.dev/logo.png" width="200" height="200" alt="nonebot">
  </a>

# nonebot-plugin-userinfo

_✨ [Nonebot2](https://github.com/nonebot/nonebot2) 用户信息获取插件 ✨_

<p align="center">
  <img src="https://img.shields.io/github/license/noneplugin/nonebot-plugin-userinfo" alt="license">
  <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="Python">
  <img src="https://img.shields.io/badge/nonebot-2.0.0+-red.svg" alt="NoneBot">
  <a href="https://pypi.org/project/nonebot-plugin-userinfo">
    <img src="https://badgen.net/pypi/v/nonebot-plugin-userinfo" alt="pypi">
  </a>
</p>

</div>


多平台的用户信息获取插件，可以获取用户名、用户头像等信息

可以获取的信息：

| 字段 | 类型 | 说明 | 默认值 | 备注 |
| --- | --- | --- | --- | --- |
| user_id | `str` | 用户 id | | |
| user_name | `str` | 用户名 | | |
| user_displayname | `Optional[str]` | 用户昵称 | `None` | |
| user_remark | `Optional[str]` | 用户备注 | `None` | |
| user_avatar | `Optional[ImageSource]` | 用户头像 | `None` | [ImageSource](https://github.com/noneplugin/nonebot-plugin-userinfo/blob/main/nonebot_plugin_userinfo/image_source.py) 可通过 `get_image` 获取 `bytes` 结果 |
| user_gender | `str` | 用户性别 | `"unknown"` | |


### 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_userinfo
```

- 使用 pip

```
pip install nonebot_plugin_userinfo
```


### 使用

```python
from nonebot_plugin_userinfo import get_user_info

@matcher.handle()
async def handle(bot: Bot, event: Event):
    user_info = get_user_info(bot, event, event.get_user_id())  # 获取当前事件主体用户的信息
```

可以用依赖注入的方式使用：

```python
from nonebot_plugin_userinfo import EventUserInfo, UserInfo

@matcher.handle()
async def handle(user_info: UserInfo = EventUserInfo()):  # 获取当前事件主体用户的信息
    pass
```

```python
from nonebot_plugin_userinfo import BotUserInfo, UserInfo

@matcher.handle()
async def handle(user_info: UserInfo = BotUserInfo()):  # 获取Bot用户信息
    pass
```


### 支持的 adapter

| OneBot v11 | OneBot v12 | Console | Kaiheila | QQ Guild | Telegram | Feishu |
| :--------: | :--------: | :-----: | :------: | :------: | :------: | :----: |
|     ✅    |     ✅     |    ✅   |    ✅   |    ✅   |    ✅    |  ✅   |


### 鸣谢

- [nonebot-plugin-send-anything-anywhere](https://github.com/felinae98/nonebot-plugin-send-anything-anywhere) 项目的灵感来源以及部分实现的参考
- [uy/sun](https://github.com/he0119) 感谢歪日佬的技术支持