semvec/pypi-packages huggingface dataset:
starlette-graphql 0.2.1
The starlette GraphQL implement, which  support query, mutate and subscription.
License: MIT
Requires Python: >=3.7

# Starlette GraphQL

The starlette GraphQL implement, which  support query, mutate and subscription. Based on [python-gql](https://github.com/syfun/python-gql).

## Requirement

Python 3.7+

## Installation

`pip install starlette-graphql`


## Getting started

```python
# app.py
from gql import query, gql
from stargql import GraphQL

type_defs = gql("""
type Query {
    hello(name: String!): String!
}
""")


@query
async def hello(parent, info, name: str) -> str:
    return name


app = GraphQL(type_defs=type_defs)
```

Use [uvicorn](https://www.uvicorn.org) to run app.

`uvicorn app:app --reload`

## Upload File

```python
import uvicorn
from gql import gql, mutate
from stargql import GraphQL

type_defs = gql("""
 scalar Upload
 
 type File {
    filename: String!
  }

  type Query {
    uploads: [File]
  }

  type Mutation {
    singleUpload(file: Upload!): File!
    multiUpload(files: [Upload!]!): [File!]!
  }
""")


@mutate
def single_upload(parent, info, file):
    return file


@mutate
def multi_upload(parent, info, files):
    return files


app = GraphQL(type_defs=type_defs)


if __name__ == '__main__':
    uvicorn.run(app, port=8080)

```

## Subscription

For more about subscription, please see [gql-subscriptions](https://github.com/syfun/starlette-graphql).

## Apollo Federation

[Example](https://github.com/syfun/starlette-graphql/tree/master/examples/federation)

For more abount subscription, please see [Apollo Federation](https://www.apollographql.com/docs/apollo-server/federation/introduction/)
django-mom 0.0.6
Maps plain text data to a model, creating, updating, or removing it as it changes
License: MIT
Requires Python: >=3.6

[![PyPI version](https://badge.fury.io/py/django-mom.svg)](https://badge.fury.io/py/django-mom)
[![View the Docs](https://readthedocs.org/projects/django-mom/badge/?version=latest&style=flat)](https://django-mom.readthedocs.org/)
![example workflow](https://github.com/velitasali/django-mom/actions/workflows/python-test.yml/badge.svg)

# Model Object Mapper for Django 

Map YAML files to a database and add/update/delete them as they change.

## Installation

### For Fresh Builds

`pip install -i https://test.pypi.org/simple/ django-mom`

### For Milestone Builds

`pip install django-mom`

## Usage

### Model

```python3
# File: home/models.py

from django.db import models

class Post(models.Model):
    title = models.CharField(max_length=100, )
    date = models.DateTimeField()
    slug = models.SlugField(unique=True, )
```

### Map 

```YAML
# File: mom.yaml

mom:
  map:
    post:
      model: home.models.Post
      lookupField: slug
```

### Object

```YAML
# File: post.my-awesome-post.mom.yaml
#            ^^^^^^^^^^^^^^^ is `slug` 

field:
  title: My Awesome Title
  date: 2021-06-25 13:00:00+3
```

### Result

```YAML
title: My Awesome Title
date: 2021-06-25 13:00:00+3
slug: my-awesome-post 
```