semvec/pypi-packages huggingface dataset:
anet-drf-common 0.4.0
Shared response contract for Django/DRF microservices
Requires Python: >=3.9

# anet-drf-common

Umumiy response formatiga ega Django REST Framework kengaytmasi mikroservislar uchun.

## O'rnatish

```bash
pip install anet-drf-common
```

## Sozlash

### 1. Settings.py ga qo'shing

```python
INSTALLED_APPS = [
    # ... boshqa applar
    'rest_framework',
    'drf_spectacular',
    'service_contract',
]

REST_FRAMEWORK = {
    'DEFAULT_SCHEMA_CLASS': 'service_contract.spectacular.StandardAutoSchema',
    'EXCEPTION_HANDLER': 'service_contract.views.standard_exception_handler',
    'DEFAULT_PAGINATION_CLASS': 'service_contract.pagination.StandardPageNumberPagination',
}

MIDDLEWARE = [
    # ... boshqa middlewarelar
    'service_contract.middleware.RequestIdMiddleware',
]
```

### 2. ViewSet yoki View ga mixin qo'shing

```python
from rest_framework import viewsets
from service_contract import StandardResponseMixin

class CompanyViewSet(StandardResponseMixin, viewsets.ModelViewSet):
    queryset = Company.objects.all()
    serializer_class = CompanySerializer
```

### 3. Exception ishlatish

```python
from service_contract import StandardException

raise StandardException(
    detail="No BookingItem matches the given query.",
    code="VAL-0001",
    field="booking_id"
)
```

## Response Format

### Muvaffaqiyatli response

```json
{
  "success": true,
  "data": [
    {"id": 1, "name": "Acme LLC"},
    {"id": 2, "name": "Beta LLC"}
  ],
  "errors": [],
  "meta": {
    "request_id": "req-123",
    "timestamp": "2026-01-21T10:15:30Z",
    "service": "company-service",
    "version": "v1",
    "language": "uz",
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_items": 120,
      "total_pages": 6,
      "has_next": true,
      "has_prev": false
    }
  }
}
```

### Xatolik response

```json
{
  "success": false,
  "data": null,
  "errors": [
    {
      "code": "VAL-0001",
      "message": "Topilmadi",
      "detail_message": "No BookingItem matches the given query.",
      "field": "email",
      "source": null,
      "details": null
    }
  ],
  "meta": {
    "request_id": "req-123",
    "timestamp": "2026-01-21T10:15:30Z",
    "service": "auth-service",
    "version": "v1",
    "language": "uz"
  }
}
```

## Xususiyatlar

- ✅ Standart response format
- ✅ Avtomatik language detection (Accept-Language header)
- ✅ Request ID avtomatik yaratish va qaytarish
- ✅ Error catalog bilan xatoliklar
- ✅ Pagination qo'llab-quvvatlash
- ✅ drf-spectacular integratsiyasi
- ✅ Model translation qo'llab-quvvatlash

## Headers

- `Accept-Language`: Til kodi (uz, en, ru). Default: uz
- `X-Request-ID`: Request ID (avtomatik yaratiladi agar yo'q bo'lsa)
pydantic-diagram 0.1.5
Generate ERD-style D2 diagrams from Pydantic models
Requires Python: >=3.10
Keywords: d2, diagram, erd, pydantic, visualization

# pydantic-diagram

Generate ERD-style diagrams from your Pydantic models using [D2](https://d2lang.com/).

Takes a set of Pydantic models and outputs D2 code that renders as a nice visual diagram showing model relationships, inheritance, and field types.

## Installation

```bash
pip install pydantic-diagram
```

## Usage

### As a library

```python
from pydantic import BaseModel
from pydantic_diagram import render_d2

class User(BaseModel):
    id: int
    name: str

class Post(BaseModel):
    id: int
    title: str
    author: User

# Generate D2 code
# Options allow you to toggle specific features
d2_code = render_d2(
    [User, Post],
    show_inheritance=True,
    show_composition=True
)
print(d2_code)
```

### From the command line

```bash
# From a file path (no install needed)
pydantic-diagram path/to/models.py:User,Post

# From an installed module
pydantic-diagram myapp.models:User,Post

# Diagram all models in a module/file
pydantic-diagram myapp.models

# Write to file, then render with D2
pydantic-diagram models.py -o schema.d2
d2 schema.d2 schema.svg
```

### CLI options

```
pydantic-diagram <module:models> [options]

Options:
  -o, --output FILE          Write to file instead of stdout
  --direction DIR            Layout direction: right, down, left, up (default: right)
  --no-inherited             Exclude inherited fields from subclasses
  --no-inheritance-edges     Do not draw inheritance (extends) arrows
  --no-composition-edges     Do not draw composition/relation arrows
  --qualified-names          Use fully qualified names (module.ClassName)
  --no-docstrings            Exclude docstrings and field descriptions
```

## What it diagrams

- **Model relationships**: composition, collections, unions
- **Inheritance**: shows parent/child class relationships
- **Field types**: rendered as D2 sql_table shapes
- **Self-references**: handles recursive models correctly
- **Docstrings**: model and field descriptions appear as tooltips/constraints

## Requirements

- Python 3.10+
- Pydantic 2.0+
- [D2](https://d2lang.com/) (for rendering the output)

## License

MIT
icalcreate 1.0.1
A CLI tool to create .ics calendar files and Google Calendar links
Requires Python: >=3.8

# icalcreate

A CLI tool to create `.ics` calendar files and Google Calendar links.

## Installation

```bash
pip install icalcreate
```

Or install dependencies directly:

```bash
pip install icalendar pytz
```

## Usage

```bash
ical -t "Event Title" --time "2024-12-25 14:00" -d 1h [options]
```

### Required Arguments

| Argument | Description |
|----------|-------------|
| `-t, --title` | Event title |
| `--time` | Start time (e.g., "2024-12-25 14:00") |
| `-d, --duration` | Duration (e.g., "1h", "30m", "1h30m") |

### Optional Arguments

| Argument | Description |
|----------|-------------|
| `-l, --location` | Event location |
| `-n, --notes` | Event notes/description |
| `-u, --url` | Event URL |
| `-z, --timezone` | Time zone (default: UTC) |
| `-a, --alert` | Alert before event (can be used multiple times) |
| `-o, --output` | Output file name (default: `<title>.ics`) |
| `--google` | Generate and print Google Calendar URL |

## Examples

### Basic event
```bash
icalcreate -t "Team Meeting" --time "2024-12-25 14:00" -d 1h
```

### Event with location and notes
```bash
icalcreate -t "Conference" --time "2024-12-25 09:00" -d 2h30m \
    -l "Room 101" -n "Quarterly review meeting" -o conference.ics
```

### Event with multiple alerts
```bash
icalcreate -t "Important Call" --time "2024-12-25 10:00" -d 30m \
    --alert 15m --alert 5m --alert 1h
```

### Event with timezone
```bash
icalcreate -t "Webinar" --time "2024-12-25 15:00" -d 1h \
    -z "America/New_York"
```

### Generate Google Calendar link
```bash
icalcreate -t "Quick Sync" --time "2024-12-25 11:00" -d 15m --google
```

## Duration Format

- `30m` - 30 minutes
- `1h` - 1 hour
- `1h30m` - 1 hour 30 minutes
- `2d` - 2 days
- `90` - 90 minutes (plain number)

## Time Zones

Use standard IANA time zone names:
- `UTC`
- `America/New_York`
- `America/Los_Angeles`
- `Europe/London`
- `Europe/Paris`
- `Asia/Tokyo`

## Running as a Module

```bash
python -m icalcreate -t "Event" --time "2024-12-25 14:00" -d 1h
```

## License

AGPL3
scivianna 0.3.3
Python generic module to visualize simulation geometries and results.
Requires Python: <4,>=3.8
Keywords: visualization

# Scivianna : SCIentific VIsualizer for simulAtioN aNAlysis 

Scivianna is an open-source python simulation geometry and result visualizer based on holoviz panel. 

##  Main features

The visualizer allows:

-   Visualize simultaneously 1D plots and 2D geometries
-   Real time simulation result visualization using the C3PO code coupling platform
-   Simulation code/post-processed generic interface to let users customize their plots 
-   Access the visualizer from a distant computer using the server/client panel feature

An example of each is provided in the **examples** folder.

##  Installation

Pypi incoming...
nys-schemas 0.3.3
Shared Pydantic schemas for Noyes packages
Requires Python: >=3.8

# NysSchemas

Shared Pydantic schemas for Noyes packages.

## Installation

```bash
pip install nys_schemas
```

## Usage

```python
from nys_schemas.request_schema import (
    RequestResponseComposite,
    RequestFilter,
    FulfillmentRequestCreateInput
)
from nys_schemas.job_schema import JobResponse, JobFilter
from nys_schemas.bot_schema import Bot, BotResponse

# Use the schemas
request_filter = RequestFilter(status="ACCEPTED")
job_response = JobResponse(id="job-123", status="EXECUTING")
```

## Development

This package is part of the Noyes monorepo. To install in development mode:

```bash
pip install -e .
```