semvec/pypi-packages huggingface dataset:
nicovideo_api_client 3.0.1
ニコニコ動画 スナップショット検索APIv2の Python クライアント
Requires Python: <4.0.0,>=3.10.2

# NicoApiClient

## 概要
[ニコニコ動画 『スナップショット検索API v2』](https://site.nicovideo.jp/search-api-docs/snapshot) などの API について、仕様をなるべく意識せずに利用できるクライアントを提供する。

## install

PyPIリポジトリ: https://pypi.org/project/nicovideo-api-client/

```shell
pip install nicovideo-api-client
```

### installed

[![Downloads](https://pepy.tech/badge/nicovideo-api-client)](https://pepy.tech/project/nicovideo-api-client) [![Downloads](https://pepy.tech/badge/nicovideo-api-client/month)](https://pepy.tech/project/nicovideo-api-client) [![Downloads](https://pepy.tech/badge/nicovideo-api-client/week)](https://pepy.tech/project/nicovideo-api-client)

## Code Climate

[![Maintainability](https://api.codeclimate.com/v1/badges/9d090928fdb99bf5fa06/maintainability)](https://codeclimate.com/github/Javakky/NicoApiClient/maintainability)

### documentation

[NicoApiClient コードドキュメント](https://javakky.github.io/NicoApiClientDocs/)

## example

```python
from nicovideo_api_client.api.v2.snapshot_search_api_v2 import SnapshotSearchAPIV2
from nicovideo_api_client.constants import FieldType

json = SnapshotSearchAPIV2() \
    .tags_exact() \
    .single_query("VOCALOID") \
    .field({FieldType.TITLE, FieldType.CONTENT_ID}) \
    .sort(FieldType.VIEW_COUNTER) \
    .no_filter() \
    .limit(100) \
    .user_agent("NicoApiClient", "0.5.0") \
    .request() \
    .json()
```

## 利用規約

https://site.nicovideo.jp/search-api-docs/snapshot#api%E5%88%A9%E7%94%A8%E8%A6%8F%E7%B4%84
django-saccess-response 1.0.5
Django app for customizing response
Requires Python: >=3.6

# Django Saccess Response

`django-saccess-response` is a Django REST Framework extension that provides a standardized success response format for API views. It simplifies handling both successful and error responses with customizable data structures.

## Installation

Install the package via pip:

```bash
pip install django-saccess-response
```

## Usage

In your Django views, use `SaccessResponse` to wrap the response data.

### Example: Standard Success Response

```python
from saccess_response.response import SaccessResponse
from rest_framework.views import APIView


class MyView(APIView):
    @staticmethod
    def get(request):
        data = {'key': 'value'}
        return SaccessResponse(data)
```

### Result:

```json
{
    "success": true,
    "result": {
        "key": "value"
    }
}
```

### Example: Error Response

To handle errors, pass `saccess=False`:

```python
from saccess_response.response import SaccessResponse
from rest_framework.views import APIView


class MyView(APIView):
    @staticmethod
    def get(request):
        data = {'key': 'value'}
        return SaccessResponse(data, saccess=False)
```

### Result:

```json
{
    "success": false,
    "result": {
        "detail": "error"
    }
}
```

## Error Handling

You can also customize Django REST Framework's error responses globally by modifying the `EXCEPTION_HANDLER` setting in your `settings.py`:

```python
REST_FRAMEWORK = {
    'EXCEPTION_HANDLER': 'saccess_response.views.saccess_exception_handler'
}
```

This will format all exceptions using the `SaccessResponse` structure.

## Generic Views and ViewSets

This package also provides customized DRF generic views and viewsets for standardized response handling.

| Standard View                  | Saccess Equivalent                    |
|--------------------------------|---------------------------------------|
| `CreateAPIView`                | `SaccessCreateAPIView`                |
| `RetrieveAPIView`              | `SaccessRetrieveAPIView`              |
| `UpdateAPIView`                | `SaccessUpdateAPIView`                |
| `DestroyAPIView`               | `SaccessDestroyAPIView`               |
| `ListAPIView`                  | `SaccessListAPIView`                  |
| `RetrieveUpdateAPIView`        | `SaccessRetrieveUpdateAPIView`        |
| `RetrieveDestroyAPIView`       | `SaccessRetrieveDestroyAPIView`       |
| `RetrieveUpdateDestroyAPIView` | `SaccessRetrieveUpdateDestroyAPIView` |
| `ModelViewSet`                 | `SaccessModelViewSet`                 |
| `ReadOnlyModelViewSet`         | `SaccessReadOnlyModelViewSet`         |

These classes behave like their DRF counterparts but automatically format responses using `SaccessResponse`.

## License

This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
ViteRegistry 1.0.0
A free Python module to help you control your windows registry

# Vite Registry Python

A free Python module to help you control your Windows registry

## Use Cases

- CRUD your registry

## Features

- Easy to control your registry with a few lines of coding

## Requirements

- **Python**: 2.x or 3.x or higher

## Quick Start

If you prefer to install this package into your own Python project, please follow the installation steps below

## Installation

#### Require the current package using pip:

```bash
pip install viteregistry
```

## Testing

``` python
from ViteRegistry import *

result = read_registry('HKEY_LOCAL_MACHINE', "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\DefaultProductKey", "ProductId")
print('Product ID: ', )
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please email contact@adminvitelicense.io or use the issue tracker.

## Credits

- [Funny Dev., JSC](https://github.com/funnydevjsc)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.